]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
PCI: Decline to resize resources if boot config must be preserved
authorArd Biesheuvel <ardb@kernel.org>
Sat, 9 Jan 2021 09:53:53 +0000 (10:53 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:20 +0000 (18:31 +0200)
commit4a3ae4000af2926364cf6ce5ff18691b508cbd36
tree1961b86c802ef23a3d44ab59064bb9842d2785f8
parent579e390ab4e634d04feddec610a21e71c9e96ab8
PCI: Decline to resize resources if boot config must be preserved

BugLink: https://bugs.launchpad.net/bugs/1918974
commit 729e3a669d1b62e9876a671ac03ccba399a23b68 upstream.

The _DSM #5 method in the ACPI host bridge object tells us whether the OS
must preserve the resource assignments done by firmware. If this is the
case, we should not permit drivers to resize BARs on the fly. Make
pci_resize_resource() take this into account.

Link: https://lore.kernel.org/r/20210109095353.13417-1-ardb@kernel.org
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org # v5.4+
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/setup-res.c