drm/amdgpu: add gfx shadow callback
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Mar 2023 19:56:07 +0000 (14:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Apr 2023 22:16:33 +0000 (18:16 -0400)
commit0db0c0379d15cd811214bdb631a0b6bdcdd22c84
treeb2841513aa10847d7bf02bd3eb432cd1cc7956a6
parentedd9038000352ba846cba9dfb84d8c397c3b6499
drm/amdgpu: add gfx shadow callback

To provide IP specific shadow sizes.  UMDs will use
this to query the kernel driver for the size of the
shadow buffers.

v2: make callback return an int (Alex)
v3: drop GDS (Alex)

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h