[PATCH 07/13] drm/amdgpu: add UAPI to query GFX shadow sizes
Marek Olšák
maraeo at gmail.com
Mon Mar 27 21:15:10 UTC 2023
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
On Thu, Mar 23, 2023 at 5:41 PM Alex Deucher <alexander.deucher at amd.com>
wrote:
> 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)
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> include/uapi/drm/amdgpu_drm.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
> index 3d9474af6566..3563c69521b0 100644
> --- a/include/uapi/drm/amdgpu_drm.h
> +++ b/include/uapi/drm/amdgpu_drm.h
> @@ -1136,6 +1136,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 alignment for gfx11 */
> + __u32 shadow_alignment;
> + /* context save area size for gfx11 */
> + __u32 csa_size;
> + /* context save area alignment for gfx11 */
> + __u32 csa_alignment;
> };
>
> struct drm_amdgpu_info_hw_ip {
> --
> 2.39.2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20230327/8dcec644/attachment.htm>
More information about the amd-gfx
mailing list