This patch series improves the existing BAR resizing support in amdgpu. By default, it will attempt to resize BAR0 for each supported dGPU present to cover the VRAM. Basic boot-time (or module load time) options to control this resizing are implemented: one to control the maximum BAR size (may extend, may shrink) and one to control whether the sizes advertised as supported by the VBIOS are ignored. At present, these are coarse; there is no support for applying limits to specific GPUs in multi-GPU systems. The override and the quirks list (which uses it) are to cope with GPU VBIOSes which don't properly advertise supported BAR sizes. Mine appears to be one such. Darren Salt (8): pci: export pci_rebar_get_possible_sizes pci: add BAR bytes->size helper & expose size->bytes helper amdgpu: resize BAR0 to the maximum available size, even if it doesn't cover VRAM (v5) amdgpu: limit maximum BAR0 size when attempting to enlarge (v3) pci: allow for overriding the list of advertised BAR sizes amdgpu: allow overriding of the GPU's list of supported BAR sizes (v3) amdgpu: implement a BAR size quirks list amdgpu: add a BAR size quirk for Sapphire RX 5600 XT Pulse. drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 102 +++++++++++++++++++-- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 19 ++++ drivers/pci/pci.c | 1 + drivers/pci/pci.h | 5 - drivers/pci/setup-res.c | 4 +- include/linux/pci.h | 12 ++- 7 files changed, 127 insertions(+), 18 deletions(-) -- 2.20.1 _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx