Skip to content

amdgpu, pci: improved BAR resizing support

Darren Salt amd-gfx 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8pci: export pci_rebar_get_possible_sizesdrivers/pci/pci.c drivers/pci/pci.h include/linux/pci.h+2 -10 replies
2/8pci: add BAR bytes->size helper & expose size->bytes helperdrivers/pci/pci.h include/linux/pci.h+9 -40 replies
3/8amdgpu: resize BAR0 to the maximum available size, even if it doesn't cover VRAM (v5)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c+29 -90 replies
4/8amdgpu: limit maximum BAR0 size when attempting to enlarge (v3)drivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c+37 -50 replies
5/8pci: allow for overriding the list of advertised BAR sizesdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/pci/setup-res.c include/linux/pci.h+4 -40 replies
6/8amdgpu: allow overriding of the GPU's list of supported BAR sizes (v3)drivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c+17 -20 replies
7/8amdgpu: implement a BAR size quirks listdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c+39 -40 replies
8/8amdgpu: add a BAR size quirk for Sapphire RX 5600 XT Pulse.drivers/gpu/drm/amd/amdgpu/amdgpu_device.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] amdgpu, pci: improved BAR resizing support

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(-)
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx