[PATCH] amdgpu: add context creation flags in CS IOCTL
Michel Dänzer
michel.daenzer at mailbox.org
Tue Aug 2 15:58:05 UTC 2022
On 2022-08-02 15:55, Shashank Sharma wrote:
> This patch adds:
> - A new input parameter "flags" in the amdgpu_ctx_create2 call.
> - Some new flags defining workload type hints.
> - Some change in the caller function of amdgpu_ctx_create2, to
> accomodate this new parameter.
>
> The idea is to pass the workload hints while context creation, so
> that kernel GPU scheduler can pass this information to GPU FW, which in
> turn can adjust the GPU characterstics as per the workload type.
>
> Signed-off-by: Shashank Sharma <shashank.sharma at amd.com>
> Cc: Alex Deucher <alexander.deucher at amd.com>
> Cc: Marek Olsak <marek.olsak at amd.com>
> Cc: Christian Koenig <christian.koenig at amd.com>
> Cc: Amarnath Somalapuram <amaranath.somalapuram at amd.com>
> ---
> amdgpu/amdgpu.h | 2 ++
> amdgpu/amdgpu_cs.c | 5 ++++-
> include/drm/amdgpu_drm.h | 10 +++++++++-
See include/drm/README on how to handle changes to include/drm/*_drm.h .
Also, libdrm changes are now reviewed and merged as GitLab merge requests: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests
--
Earthling Michel Dänzer | https://redhat.com
Libre software enthusiast | Mesa and Xwayland developer
More information about the amd-gfx
mailing list