Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42459 )
Change subject: device: Add method to configure bus mastering based on Kconfig
......................................................................
Patch Set 12:
(3 comments)
https://review.coreboot.org/c/coreboot/+/42459/1/src/device/Kconfig
File src/device/Kconfig:
https://review.coreboot.org/c/coreboot/+/42459/1/src/device/Kconfig@519
PS1, Line 519: config PCI_ALLOW_BUS_MASTER
Right, I see the point now. […]
Done
https://review.coreboot.org/c/coreboot/+/42459/8/src/device/Kconfig
File src/device/Kconfig:
https://review.coreboot.org/c/coreboot/+/42459/8/src/device/Kconfig@520
PS8, Line 520: Enable
maybe: "Allow PCI bus master bit to be enabled by coreboot"? […]
I've taken over your suggestion and added a help text. I hope this is fine.
Using a linter sounds good to me.
https://review.coreboot.org/c/coreboot/+/42459/1/src/device/pci_device.c
File src/device/pci_device.c:
https://review.coreboot.org/c/coreboot/+/42459/1/src/device/pci_device.c@165...
PS1, Line 1653: void pci_configure_bus_master(const struct device *dev)
I would prefer having inline functions in pci_ops.h to handle the PCI command register.
We are planning to expand this function in the future, since we think about adding other options too. So I would keep this for now. We can still make this inline later.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/42459
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I876c48ea3fb4f9cf7b6a5c2dcaeda07ea36cbed3
Gerrit-Change-Number: 42459
Gerrit-PatchSet: 12
Gerrit-Owner: Felix Singer
felixsinger@posteo.net
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Duncan Laurie
dlaurie@chromium.org
Gerrit-Reviewer: John Zhao
john.zhao@intel.com
Gerrit-Reviewer: Jonathan Zhang
jonzhang@fb.com
Gerrit-Reviewer: Marshall Dawson
marshalldawson3rd@gmail.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Ron Minnich
rminnich@google.com
Gerrit-Reviewer: Subrata Banik
subrata.banik@intel.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Aaron Durbin
adurbin@chromium.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Mon, 17 Aug 2020 11:08:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Singer
felixsinger@posteo.net
Comment-In-Reply-To: Nico Huber
nico.h@gmx.de
Comment-In-Reply-To: Tim Wawrzynczak
twawrzynczak@chromium.org
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Gerrit-MessageType: comment