drm/amdgpu: add get_gfx_shadow_info callback for gfx11
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Mar 2023 20:10:14 +0000 (15:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Apr 2023 22:16:38 +0000 (18:16 -0400)
commit02527099ddc74244b9d94c93ec54e123fcee5899
tree7d0d2d283a41457b43e32114287cf72ba0498efa
parent0db0c0379d15cd811214bdb631a0b6bdcdd22c84
drm/amdgpu: add get_gfx_shadow_info callback for gfx11

Used to get the size and alignment requirements for
the gfx shadow buffer for preemption.

v2: use FW version check to determine whether to
    return a valid size here
    return an error if not supported (Alex)
v3: drop GDS (Alex)
v4: make amdgpu_gfx_shadow_info mandatory (Alex)

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c