Skip to content

Commit d30fea2

Browse files
committed
PCI/ATS: Show PASID Capability register width in bitmasks
The PASID Capability and Control registers are both 16 bits wide. Use 16-bit wide constants in field names to match the register width. No functional change intended. Link: https://lore.kernel.org/r/20231010204436.1000644-5-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
1 parent 04e82fa commit d30fea2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

include/uapi/linux/pci_regs.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -930,12 +930,12 @@
930930

931931
/* Process Address Space ID */
932932
#define PCI_PASID_CAP 0x04 /* PASID feature register */
933-
#define PCI_PASID_CAP_EXEC 0x02 /* Exec permissions Supported */
934-
#define PCI_PASID_CAP_PRIV 0x04 /* Privilege Mode Supported */
933+
#define PCI_PASID_CAP_EXEC 0x0002 /* Exec permissions Supported */
934+
#define PCI_PASID_CAP_PRIV 0x0004 /* Privilege Mode Supported */
935935
#define PCI_PASID_CTRL 0x06 /* PASID control register */
936-
#define PCI_PASID_CTRL_ENABLE 0x01 /* Enable bit */
937-
#define PCI_PASID_CTRL_EXEC 0x02 /* Exec permissions Enable */
938-
#define PCI_PASID_CTRL_PRIV 0x04 /* Privilege Mode Enable */
936+
#define PCI_PASID_CTRL_ENABLE 0x0001 /* Enable bit */
937+
#define PCI_PASID_CTRL_EXEC 0x0002 /* Exec permissions Enable */
938+
#define PCI_PASID_CTRL_PRIV 0x0004 /* Privilege Mode Enable */
939939
#define PCI_EXT_CAP_PASID_SIZEOF 8
940940

941941
/* Single Root I/O Virtualization */

0 commit comments

Comments
 (0)