]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
PCI: aardvark: Fix reporting CRS value
authorPali Rohár <pali@kernel.org>
Thu, 22 Jul 2021 14:40:41 +0000 (16:40 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 5 Nov 2021 09:19:44 +0000 (10:19 +0100)
commit11f6c89ae965fb0026238d430aa5d8e1051aea60
tree85b7a77b36baea358708489b347dabf9459b2867
parentf0c014db37e787cf06ad7c07ce4c6c82217edc61
PCI: aardvark: Fix reporting CRS value

BugLink: https://bugs.launchpad.net/bugs/1949397
commit 43f5c77bcbd27cce70bf33c2b86d6726ce95dd66 upstream.

Set CRSVIS flag in emulated root PCI bridge to indicate support for
Completion Retry Status.

Add check for CRSSVE flag from root PCI brige when issuing Configuration
Read Request via PIO to correctly returns fabricated CRS value as it is
required by PCIe spec.

Link: https://lore.kernel.org/r/20210722144041.12661-5-pali@kernel.org
Fixes: 8a3ebd8de328 ("PCI: aardvark: Implement emulated root PCI bridge config space")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org # e0d9d30b7354 ("PCI: pci-bridge-emul: Fix big-endian support")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/pci/controller/pci-aardvark.c