drm/amdgpu: nuke dynamic gfx scratch reg allocation
authorChristian König <christian.koenig@amd.com>
Thu, 5 May 2022 09:03:51 +0000 (11:03 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 May 2022 20:57:21 +0000 (16:57 -0400)
commitd54762cc3e6abb08f5ae31e3fa6a249768c07617
tree99abd972695ff3e4e4f675e20ae2e1121fdb2d94
parentbf1781e17f30a594f959671af59a253e9313a9b9
drm/amdgpu: nuke dynamic gfx scratch reg allocation

It's over a decade ago that this was actually used for more than ring and
IB tests. Just use the static register directly where needed and nuke the
now useless infrastructure.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Lang Yu <Lang.Yu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c