drm/amdgpu: add support for new GFX shadow size query
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Mar 2023 20:28:25 +0000 (15:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Apr 2023 22:16:43 +0000 (18:16 -0400)
commit1ba91b54a9051205c2110ed43a7dc5650d49ca0e
tree1fd01dee1a1671b3e2cb5c3d2a141aeaca90b183
parent02527099ddc74244b9d94c93ec54e123fcee5899
drm/amdgpu: add support for new GFX shadow size query

Use the new callback to fetch the data.  Return an error if
not supported.  UMDs should use this query to check whether
shadow buffers are supported and if so what size they
should be.

v2: return an error rather than a zerod structure.
v3: drop GDS, move into dev_info structure.  Data will be
    0 if not supported.
v4: drop local variable r

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