]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu/gmc: add a way to force a particular placement for GART
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Sep 2023 20:23:01 +0000 (16:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Oct 2023 22:36:07 +0000 (18:36 -0400)
commit917f91d8d8e866965f2193d7962e064a4d139d8d
tree3bf31a2a679afde517fdab7e624b9eecb874aab7
parent52ed23dc29db2fe80e8332200e66a0e5a5c20683
drm/amdgpu/gmc: add a way to force a particular placement for GART

We normally place GART based on the location of VRAM and the
available address space around that, but provide an option
to force a particular location for hardware that needs it.

v2: Switch to passing the placement via parameter

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c