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
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -592,6 +592,7 @@ struct drm_amdgpu_gem_va { · 591 unmodified lines | |||
| 592 | #define AMDGPU_CHUNK_ID_SCHEDULED_DEPENDENCIES 0x07 | 592 | #define AMDGPU_CHUNK_ID_SCHEDULED_DEPENDENCIES 0x07 |
| 593 | #define AMDGPU_CHUNK_ID_SYNCOBJ_TIMELINE_WAIT 0x08 | 593 | #define AMDGPU_CHUNK_ID_SYNCOBJ_TIMELINE_WAIT 0x08 |
| 594 | #define AMDGPU_CHUNK_ID_SYNCOBJ_TIMELINE_SIGNAL 0x09 | 594 | #define AMDGPU_CHUNK_ID_SYNCOBJ_TIMELINE_SIGNAL 0x09 |
| 595 | #define AMDGPU_CHUNK_ID_CP_GFX_SHADOW 0x0a | ||
| 595 | 596 | ||
| 596 | struct drm_amdgpu_cs_chunk { | 597 | struct drm_amdgpu_cs_chunk { |
| 597 | __u32 chunk_id; | 598 | __u32 chunk_id; |
| @@ -708,6 +709,15 @@ struct drm_amdgpu_cs_chunk_data { · 110 unmodified lines | |||
| 708 | }; | 709 | }; |
| 709 | }; | 710 | }; |
| 710 | 711 | ||
| 712 | #define AMDGPU_CS_CHUNK_CP_GFX_SHADOW_FLAGS_INIT_SHADOW 0x1 | ||
| 713 | |||
| 714 | struct drm_amdgpu_cs_chunk_cp_gfx_shadow { | ||
| 715 | __u64 shadow_va; | ||
| 716 | __u64 csa_va; | ||
| 717 | __u64 gds_va; | ||
| 718 | __u64 flags; | ||
| 719 | }; | ||
| 720 | |||
| 711 | /* | 721 | /* |
| 712 | * Query h/w info: Flag that this is integrated (a.h.a. fusion) GPU | 722 | * Query h/w info: Flag that this is integrated (a.h.a. fusion) GPU |
| 713 | * | 723 | * |