]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
PCI: pci-bridge-emul: Properly mark reserved PCIe bits in PCI config space
authorPali Rohár <pali@kernel.org>
Wed, 24 Nov 2021 15:59:40 +0000 (16:59 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 10:03:11 +0000 (11:03 +0100)
commit6f424308e44771454e3dd3ef4cbabc3fd46848f7
tree8090f67d944bc35788416347521aee65504ef7e0
parent4aa84c2b7198d54a78f20b42fa9638348f36c5fa
PCI: pci-bridge-emul: Properly mark reserved PCIe bits in PCI config space

BugLink: https://bugs.launchpad.net/bugs/1959376
commit 7b067ac63a5730d2fae18399fed7e45f23d36912 upstream.

Some bits in PCI config space are reserved when device is PCIe. Properly
define behavior of PCI registers for PCIe emulated bridge and ensure that
it would not be possible change these reserved bits.

Link: https://lore.kernel.org/r/20211124155944.1290-3-pali@kernel.org
Fixes: 23a5fba4d941 ("PCI: Introduce PCI bridge emulated config space common logic")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/pci/pci-bridge-emul.c