amdgpu, pci: improved BAR resizing support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | pci: export pci_rebar_get_possible_sizesdrivers/ drivers/ include/ | +2 | 0 replies | |
| 2/8 | pci: add BAR bytes->size helper & expose size->bytes helperdrivers/ include/ | +9 | 0 replies | |
| 3/8 | amdgpu: resize BAR0 to the maximum available size, even if it doesn't cover VRAM (v4)drivers/ | +44 | 1 reply | |
| 4/8 | amdgpu: limit maximum BAR0 size when attempting to enlarge (v2)drivers/ drivers/ drivers/ | +36 | 0 replies | |
| 5/8 | pci: allow for overriding the list of advertised BAR sizesdrivers/ drivers/ include/ | +4 | 0 replies | |
| 6/8 | amdgpu: allow overriding of the GPU's list of supported BAR sizes (v3)drivers/ drivers/ drivers/ | +17 | 0 replies | |
| 7/8 | amdgpu: implement a BAR size quirks listdrivers/ | +39 | 0 replies | |
| 8/8 | amdgpu: add a BAR size quirk for Sapphire RX 5600 XT Pulse.drivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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 dGPU present to cover the VRAM, falling back to smaller sizes if necessary, e.g. if there's not enough address space remaining or support for the size is not advertised.
Basic boot-time (or module load time) options to control this resizing are
implemented: one to control whether resizing is done (and whether the advertised BAR sizes are ignored) and one to control the maximum BAR size (where the size would be increased). 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 (v4)
amdgpu: limit maximum BAR0 size when attempting to enlarge (v2)
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 | 115 +++++++++++++++++++-- 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, 140 insertions(+), 18 deletions(-)
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx