summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2023-03-09 13:43:13 -0500
committerAlex Deucher <alexander.deucher@amd.com>2023-04-24 18:16:30 -0400
commitedd9038000352ba846cba9dfb84d8c397c3b6499 (patch)
tree7e01fbbc2e5442b0b5a69b98b163b56275be2457 /include
parent38be7796f310cd2bc84dcc40c4fd1964df39a5b0 (diff)
downloadlinux-stable-edd9038000352ba846cba9dfb84d8c397c3b6499.tar.gz
linux-stable-edd9038000352ba846cba9dfb84d8c397c3b6499.tar.bz2
linux-stable-edd9038000352ba846cba9dfb84d8c397c3b6499.zip
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 <marek.olsak@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/drm/amdgpu_drm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index fc094653b13f..cc78528c3b4b 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 {