Re: [PATCH 4/4] drm/amdkfd: Check against device cgroup

2019-05-14 Thread Kasiviswanathan, Harish
Hi Roman, Thanks for your feedback. I will rework and send new patch soon. Best Regards, Harish From: Roman Gushchin Sent: Tuesday, May 14, 2019 1:37 PM To: Kasiviswanathan, Harish Cc: cgro...@vger.kernel.org; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH 4/4] drm/amdkfd: Check

Re: [PATCH 4/4] drm/amdkfd: Check against device cgroup

2019-05-14 Thread Roman Gushchin
On Tue, May 14, 2019 at 01:58:40AM +, Roman Gushchin wrote: > On Wed, May 01, 2019 at 02:59:29PM +, Kasiviswanathan, Harish wrote: > > Participate in device cgroup. All kfd devices are exposed via /dev/kfd. > > So use /dev/dri/renderN node. > > > > Before exposing the device to a task chec

Re: [PATCH 4/4] drm/amdkfd: Check against device cgroup

2019-05-13 Thread Roman Gushchin
On Wed, May 01, 2019 at 02:59:29PM +, Kasiviswanathan, Harish wrote: > Participate in device cgroup. All kfd devices are exposed via /dev/kfd. > So use /dev/dri/renderN node. > > Before exposing the device to a task check if it has permission to > access it. If the task (based on its cgroup) c

[PATCH 4/4] drm/amdkfd: Check against device cgroup

2019-05-01 Thread Kasiviswanathan, Harish
Participate in device cgroup. All kfd devices are exposed via /dev/kfd. So use /dev/dri/renderN node. Before exposing the device to a task check if it has permission to access it. If the task (based on its cgroup) can access /dev/dri/renderN then expose the device via kfd node. If the task cannot