[PATCH] drm/amdgpu: add flag for high priority contexts

Sagalovitch, Serguei Serguei.Sagalovitch at amd.com
Wed Jan 4 11:03:00 UTC 2017


Andres,

I have on rather generic design question:

Why we want to restrict it to CAP_SYS_ADMIN?

+       if (priority == AMD_SCHED_PRIORITY_HIGH && !capable(CAP_SYS_ADMIN))
+               return -EACCES;

Should we make it generic? My understanding is that If we follow "nice" semantic
then it will not require such privilege. 

Sincerely yours,
Serguei Sagalovitch

    


More information about the amd-gfx mailing list