From: Greg Kroah-Hartman Date: Mon, 15 Nov 2021 15:37:48 +0000 (+0100) Subject: 4.4-stable patches X-Git-Tag: v5.4.160~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fc610c27bc3661fb8969ae67dd769a03ae4a16d;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: pci-add-pci_exp_devctl_payload_-macros.patch --- diff --git a/queue-4.4/pci-add-pci_exp_devctl_payload_-macros.patch b/queue-4.4/pci-add-pci_exp_devctl_payload_-macros.patch new file mode 100644 index 00000000000..bf77b98a842 --- /dev/null +++ b/queue-4.4/pci-add-pci_exp_devctl_payload_-macros.patch @@ -0,0 +1,41 @@ +From 460275f124fb072dca218a6b43b6370eebbab20d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Pali=20Roh=C3=A1r?= +Date: Tue, 5 Oct 2021 20:09:40 +0200 +Subject: PCI: Add PCI_EXP_DEVCTL_PAYLOAD_* macros +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Pali Rohár + +commit 460275f124fb072dca218a6b43b6370eebbab20d upstream. + +Define a macro PCI_EXP_DEVCTL_PAYLOAD_* for every possible Max Payload +Size in linux/pci_regs.h, in the same style as PCI_EXP_DEVCTL_READRQ_*. + +Link: https://lore.kernel.org/r/20211005180952.6812-2-kabel@kernel.org +Signed-off-by: Pali Rohár +Signed-off-by: Marek Behún +Signed-off-by: Lorenzo Pieralisi +Reviewed-by: Marek Behún +Reviewed-by: Bjorn Helgaas +Signed-off-by: Greg Kroah-Hartman +--- + include/uapi/linux/pci_regs.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +--- a/include/uapi/linux/pci_regs.h ++++ b/include/uapi/linux/pci_regs.h +@@ -488,6 +488,12 @@ + #define PCI_EXP_DEVCTL_URRE 0x0008 /* Unsupported Request Reporting En. */ + #define PCI_EXP_DEVCTL_RELAX_EN 0x0010 /* Enable relaxed ordering */ + #define PCI_EXP_DEVCTL_PAYLOAD 0x00e0 /* Max_Payload_Size */ ++#define PCI_EXP_DEVCTL_PAYLOAD_128B 0x0000 /* 128 Bytes */ ++#define PCI_EXP_DEVCTL_PAYLOAD_256B 0x0020 /* 256 Bytes */ ++#define PCI_EXP_DEVCTL_PAYLOAD_512B 0x0040 /* 512 Bytes */ ++#define PCI_EXP_DEVCTL_PAYLOAD_1024B 0x0060 /* 1024 Bytes */ ++#define PCI_EXP_DEVCTL_PAYLOAD_2048B 0x0080 /* 2048 Bytes */ ++#define PCI_EXP_DEVCTL_PAYLOAD_4096B 0x00a0 /* 4096 Bytes */ + #define PCI_EXP_DEVCTL_EXT_TAG 0x0100 /* Extended Tag Field Enable */ + #define PCI_EXP_DEVCTL_PHANTOM 0x0200 /* Phantom Functions Enable */ + #define PCI_EXP_DEVCTL_AUX_PME 0x0400 /* Auxiliary Power PM Enable */ diff --git a/queue-4.4/series b/queue-4.4/series index ac62e00bdb6..4b1356eb4f9 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -110,3 +110,4 @@ fuse-fix-page-stealing.patch usb-chipidea-fix-interrupt-deadlock.patch arm-9156-1-drop-cc-option-fallbacks-for-architecture-selection.patch mm-oom-pagefault_out_of_memory-don-t-force-global-oom-for-dying-tasks.patch +pci-add-pci_exp_devctl_payload_-macros.patch