]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
PCI/DPC: Quirk PIO log size for certain Intel Root Ports
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 16 Aug 2022 10:20:42 +0000 (13:20 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 27 Sep 2022 23:13:18 +0000 (18:13 -0500)
commit5459c0b7046752e519a646e1c2404852bb628459
tree6130d59b4cd245cc0e5dd0eeca3299ae1628c5cf
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
PCI/DPC: Quirk PIO log size for certain Intel Root Ports

Some Root Ports on Intel Tiger Lake and Alder Lake systems support the RP
Extensions for DPC and the RP PIO Log registers but incorrectly advertise
an RP PIO Log Size of zero.  This means the kernel complains that:

  DPC: RP PIO log size 0 is invalid

and if DPC is triggered, the DPC driver will not dump the RP PIO Log
registers when it should.

This is caused by a BIOS bug and should be fixed the BIOS for future CPUs.

Add a quirk to set the correct RP PIO Log size for the affected Root Ports.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=209943
Link: https://lore.kernel.org/r/20220816102042.69125-1-mika.westerberg@linux.intel.com
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
drivers/pci/pcie/dpc.c
drivers/pci/quirks.c