Attention is currently required from: Shelley Chen, Hung-Te Lin, Angel Pons, Yu-Ping Wu.
Jianjun Wang has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/56789 )
Change subject: libpayload/pci: Split PCI interfaces as common and chip related
......................................................................
Patch Set 39:
(1 comment)
File payloads/libpayload/drivers/pci_map_bus_ops.c:
https://review.coreboot.org/c/coreboot/+/56789/comment/fbf0868c_ceb3ae19
PS35, Line 38: |
Is the address always aligned? I mean, should we write "+" here?
The cfg_base should be 4K alignment, and the range of reg should be 0 ~ 4K for each device's config space.
But it makes me wondering if we should remain the capability that some device may need 4Byte alignment access.
For Mediatek chips, we will connect this address space (cfg_base) to AHB/AXI bus, so it's ok to access without 4Byte alignment.
But if some device is connected to APB bus, it's only support 32bit access, so we should guarantee alignment and calculate the correct data here, just like the 'pci_generic_config_read32/write32' functions in Linux:
https://elixir.bootlin.com/linux/latest/source/drivers/pci/access.c#L120
--
To view, visit
https://review.coreboot.org/c/coreboot/+/56789
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie74801bd4f3de51cbb574e86cd9bb09931152554
Gerrit-Change-Number: 56789
Gerrit-PatchSet: 39
Gerrit-Owner: Jianjun Wang
jianjun.wang@mediatek.com
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Hung-Te Lin
hungte@chromium.org
Gerrit-Reviewer: Jianjun Wang
jianjun.wang@mediatek.com
Gerrit-Reviewer: Shelley Chen
shchen@google.com
Gerrit-Reviewer: Yu-Ping Wu
yupingso@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Furquan Shaikh
furquan.m.shaikh@gmail.com
Gerrit-CC: Nico Huber
nico.h@gmx.de
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-CC: Rex-BC Chen
rex-bc.chen@mediatek.com
Gerrit-Attention: Shelley Chen
shchen@google.com
Gerrit-Attention: Hung-Te Lin
hungte@chromium.org
Gerrit-Attention: Angel Pons
th3fanbus@gmail.com
Gerrit-Attention: Yu-Ping Wu
yupingso@google.com
Gerrit-Comment-Date: Wed, 30 Mar 2022 06:00:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Yu-Ping Wu
yupingso@google.com
Gerrit-MessageType: comment