Skip to content

rework stolen pre-OS fb allocation handling

Alex Deucher amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14drm/amdgpu: handle bo size 0 in amdgpu_bo_create_kernel_atdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c+5 -02 replies
2/14drm/amdgpu: use create_at for the stolen pre-OS bufferdrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c+4 -40 replies
3/14drm/amdgpu: use a define for the memory size of the vga emulatordrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +3 more+8 -60 replies
4/14drm/amdgpu: move stolen vga bo from amdgpu to amdgpu.gmcdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +5 more+11 -111 reply
5/14drm/amdgpu: move keep stolen memory check into gmc coredrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c+12 -90 replies
6/14drm/amdgpu: add support for extended stolen vga memorydrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c+13 -20 replies
7/14drm/amdgpu/gmc: add new helper to get the FB size used by pre-OS consoledrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h+48 -00 replies
8/14drm/amdgpu/gmc6: switch to using amdgpu_gmc_get_vbios_allocationsdrivers/gpu/drm/amd/amdgpu/gmc_v6_0.c+2 -40 replies
9/14drm/amdgpu/gmc7: switch to using amdgpu_gmc_get_vbios_allocationsdrivers/gpu/drm/amd/amdgpu/gmc_v7_0.c+4 -50 replies
10/14drm/amdgpu/gmc8: switch to using amdgpu_gmc_get_vbios_allocationsdrivers/gpu/drm/amd/amdgpu/gmc_v8_0.c+4 -50 replies
11/14drm/amdgpu/gmc9: switch to using amdgpu_gmc_get_vbios_allocationsdrivers/gpu/drm/amd/amdgpu/gmc_v9_0.c+38 -740 replies
12/14drm/amdgpu/gmc10: switch to using amdgpu_gmc_get_vbios_allocationsdrivers/gpu/drm/amd/amdgpu/gmc_v10_0.c+25 -320 replies
13/14drm/amdgpu: drop the CPU pointers for the stolen vga bosdrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c+5 -111 reply
14/14drm/amdgpu/gmc: disable keep_stolen_vga_memory on arcturusdrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c+0 -11 reply

Reviews trailers per patch

2 of 14 patches have a Reviewed-by or Acked-by.

PatchFelix KuehlingChristian König
1/14
2/14
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14R-b
14/14R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/14] rework stolen pre-OS fb allocation handling

Split the allocations into two so we can still support the S3 workarounds required on some platforms while also avoiding any artifacts when transitioning from bios to driver.

In the future we could integrate handling of the ip discovery data and other vbios allocations into this helper function to consolidate handling of all of the vbios reservations.

Alex Deucher (14):
drm/amdgpu: handle bo size 0 in amdgpu_bo_create_kernel_at drm/amdgpu: use create_at for the stolen pre-OS buffer drm/amdgpu: use a define for the memory size of the vga emulator drm/amdgpu: move stolen vga bo from amdgpu to amdgpu.gmc drm/amdgpu: move keep stolen memory check into gmc core drm/amdgpu: add support for extended stolen vga memory drm/amdgpu/gmc: add new helper to get the FB size used by pre-OS
console
drm/amdgpu/gmc6: switch to using amdgpu_gmc_get_vbios_allocations drm/amdgpu/gmc7: switch to using amdgpu_gmc_get_vbios_allocations drm/amdgpu/gmc8: switch to using amdgpu_gmc_get_vbios_allocations drm/amdgpu/gmc9: switch to using amdgpu_gmc_get_vbios_allocations drm/amdgpu/gmc10: switch to using amdgpu_gmc_get_vbios_allocations drm/amdgpu: drop the CPU pointers for the stolen vga bos drm/amdgpu/gmc: disable keep_stolen_vga_memory on arcturus

 drivers/gpu/drm/amd/amdgpu/amdgpu.h        |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c    |  42 ++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h    |  11 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c |   5 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c    |  24 +++--
 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c     |  57 +++++-----
 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c      |   8 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c      |  11 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c      |  11 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c      | 119 +++++++--------------
 10 files changed, 153 insertions(+), 138 deletions(-)
Signature · 6 lines
2.25.4

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