From: Alex Deucher Date: Thu, 9 Mar 2023 18:43:13 +0000 (-0500) Subject: drm/amdgpu: add UAPI to query GFX shadow sizes X-Git-Tag: v6.6.7~2401^2~12^2~763 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edd9038000352ba846cba9dfb84d8c397c3b6499;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: add UAPI to query GFX shadow sizes Add UAPI to query the GFX shadow buffer requirements for preemption on GFX11. UMDs need to specify the shadow areas for preemption. v2: move into existing asic info query drop GDS as its use is determined by the UMD (Marek) v3: Update comments to note that alignment is base virtual alignment (Alex) Reviewed-by: Marek Olšák Signed-off-by: Alex Deucher --- diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index fc09465..cc78528 100644 --- a/include/uapi/drm/amdgpu_drm.h +++ b/include/uapi/drm/amdgpu_drm.h @@ -1138,6 +1138,14 @@ struct drm_amdgpu_info_device { __u64 mall_size; /* AKA infinity cache */ /* high 32 bits of the rb pipes mask */ __u32 enabled_rb_pipes_mask_hi; + /* shadow area size for gfx11 */ + __u32 shadow_size; + /* shadow area base virtual alignment for gfx11 */ + __u32 shadow_alignment; + /* context save area size for gfx11 */ + __u32 csa_size; + /* context save area base virtual alignment for gfx11 */ + __u32 csa_alignment; }; struct drm_amdgpu_info_hw_ip {