On 8/2/2022 5:58 PM, Michel Dänzer wrote:
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 <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Marek Olsak <[email protected]>
Cc: Christian Koenig <[email protected]>
Cc: Amarnath Somalapuram <[email protected]>
---
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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.freedesktop.org%2Fmesa%2Fdrm%2F-%2Fmerge_requests&data=05%7C01%7Cshashank.sharma%40amd.com%7C50e342a42eac4d4d4fd408da749fd574%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637950527087917031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qU41z3Hxo0jKMWgehDWLYi7r4x1QDsA%2F2KfOigj9iew%3D&reserved=0
Noted, Thanks.
Regards
Shashank