AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] amdgpu, pci: improved BAR resizing support
@ 2020-12-13 22:53 Darren Salt
  2020-12-13 22:53 ` [PATCH 1/8] pci: export pci_rebar_get_possible_sizes Darren Salt
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Darren Salt @ 2020-12-13 22:53 UTC (permalink / raw)
  To: amd-gfx; +Cc: Darren Salt

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(-)

-- 
2.20.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 0/8] amdgpu, pci: improved BAR resizing support
@ 2020-12-15  1:08 Darren Salt
  0 siblings, 0 replies; 12+ messages in thread
From: Darren Salt @ 2020-12-15  1:08 UTC (permalink / raw)
  To: amd-gfx; +Cc: Darren Salt

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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-12-15  1:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-13 22:53 [PATCH 0/8] amdgpu, pci: improved BAR resizing support Darren Salt
2020-12-13 22:53 ` [PATCH 1/8] pci: export pci_rebar_get_possible_sizes Darren Salt
2020-12-13 22:53 ` [PATCH 2/8] pci: add BAR bytes->size helper & expose size->bytes helper Darren Salt
2020-12-13 22:53 ` [PATCH 3/8] amdgpu: resize BAR0 to the maximum available size, even if it doesn't cover VRAM (v4) Darren Salt
2020-12-14  8:15   ` Christian König
2020-12-13 22:53 ` [PATCH 4/8] amdgpu: limit maximum BAR0 size when attempting to enlarge (v2) Darren Salt
2020-12-13 22:53 ` [PATCH 5/8] pci: allow for overriding the list of advertised BAR sizes Darren Salt
2020-12-13 22:53 ` [PATCH 6/8] amdgpu: allow overriding of the GPU's list of supported BAR sizes (v3) Darren Salt
2020-12-13 22:53 ` [PATCH 7/8] amdgpu: implement a BAR size quirks list Darren Salt
2020-12-13 22:53 ` [PATCH 8/8] amdgpu: add a BAR size quirk for Sapphire RX 5600 XT Pulse Darren Salt
2020-12-13 23:02 ` [PATCH 0/8] amdgpu, pci: improved BAR resizing support Darren Salt
  -- strict thread matches above, loose matches on Subject: below --
2020-12-15  1:08 Darren Salt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox