Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

PCI: endpoint: Allow only_64bit on BAR_RESERVED

Remove the documentation that forbids setting only_64bit on a BAR of type
BAR_RESERVED.

When a reserved BAR is 64-bit by default, setting only_64bit is the most
accurate description. If we later add support to disable a reserved BAR
(e.g. disable_bar() for BARs that were never set via set_bar()), the
implementation will need to clear the adjacent BAR (upper 32 bits) as well;
having only_64bit set documents that requirement.

Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260312130229.2282001-14-cassel@kernel.org

authored by

Manikanta Maddireddy and committed by
Manivannan Sadhasivam
27ce1d8e 0834d6f4

-5
-5
include/linux/pci-epc.h
··· 207 207 * @only_64bit: if true, an EPF driver is not allowed to choose if this BAR 208 208 * should be configured as 32-bit or 64-bit, the EPF driver must 209 209 * configure this BAR as 64-bit. 210 - * 211 - * only_64bit should not be set on a BAR of type BAR_RESERVED. 212 - * (If BARx is a 64-bit BAR that an EPF driver is not allowed to 213 - * touch, then both BARx and BARx+1 must be set to type 214 - * BAR_RESERVED.) 215 210 */ 216 211 struct pci_epc_bar_desc { 217 212 enum pci_epc_bar_type type;