drm/amdgpu/UAPI: add new CS chunk for GFX shadow buffers
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Mar 2023 18:48:11 +0000 (13:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Apr 2023 22:16:14 +0000 (18:16 -0400)
commit043dc33f443fd7abaf3fe076897503ce3d5dbc26
treee8fea26e4b67a701762bd2cf9eddf85b95e8d2a1
parentb418e7193965a5f064a0e422ccf25e6203f265b5
drm/amdgpu/UAPI: add new CS chunk for GFX shadow buffers

For GFX11, the UMD needs to allocate some shadow buffers
to be used for preemption.  The UMD allocates the buffers
and passes the GPU virtual address to the kernel since the
kernel will program the packet that specified these
addresses as part of its IB submission frame.

v2: UMD passes shadow init to tell kernel when to initialize
    the shadow

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
include/uapi/drm/amdgpu_drm.h