Attention is currently required from: Angel Pons, Arthur Heymans, Felix Held, Kyösti Mälkki, Michał Żygowski.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/77338?usp=email )
Change subject: device/pciexp_device.c: Fix setting Max Payload Size
......................................................................
Patch Set 4: Code-Review+1
(3 comments)
Patchset:
PS2:
Implemented your suggested approach, Nico. […]
Thanks, looks good! Only two minor suggestions...
Let's let others have a look.
File src/device/pciexp_device.c:
https://review.coreboot.org/c/coreboot/+/77338/comment/e3fc1a71_9ba9ebdc :
PS4, Line 603: pci_write_config16(dev, pcie_cap + PCI_EXP_DEVCTL, devctl);
We have pci_update_config*() functions now, so this could also be
pci_update_config16(dev, pcie_cap + PCI_EXP_DEVCTL, ~PCI_EVP_DEVCTL_PAYLOAD, max_payload << 5);
https://review.coreboot.org/c/coreboot/+/77338/comment/3a6c3c68_e5782ab0 :
PS4, Line 654: {
As a small optimization we could look up the caps here and pass the
offsets down. pciexp_tune_dev() already knows them and could pass them
to pciexp_configure_max_payload() respectively.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/77338?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I24386dc208363b7d94fea46dec25c231a3968225
Gerrit-Change-Number: 77338
Gerrit-PatchSet: 4
Gerrit-Owner: Michał Żygowski
michal.zygowski@3mdeb.com
Gerrit-Reviewer: Angel Pons
angel.pons@9elements.com
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Attention: Michał Żygowski
michal.zygowski@3mdeb.com
Gerrit-Attention: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Attention: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Attention: Angel Pons
angel.pons@9elements.com
Gerrit-Attention: Felix Held
felix-coreboot@felixheld.de
Gerrit-Comment-Date: Thu, 31 Aug 2023 19:10:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Nico Huber
nico.h@gmx.de
Comment-In-Reply-To: Michał Żygowski
michal.zygowski@3mdeb.com
Gerrit-MessageType: comment