PCI: Restore resized BAR state on resume
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Sat, 30 Jun 2018 00:54:55 +0000 (19:54 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Sat, 30 Jun 2018 00:54:55 +0000 (19:54 -0500)
commitd3252ace0bc652a1a244455556b6a549f969bf99
tree322c243a9e9d1a1b2394e8d36beca5cf5346dd60
parent93c9a7f8793175fdad5c472af5af07f994116a04
PCI: Restore resized BAR state on resume

Resize BARs after resume to the expected size again.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199959
Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org # v4.15+
drivers/pci/pci.c