AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* AMDKFD (AMD GPU compute) support for device cgroup.
@ 2019-09-16 18:05 Kasiviswanathan, Harish
       [not found] ` <20190916180523.27341-1-Harish.Kasiviswanathan-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Kasiviswanathan, Harish @ 2019-09-16 18:05 UTC (permalink / raw)
  To: tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Deucher, Alexander,
	airlied-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
  Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org

Hi Tejun,

Sorry. Resending these patches as I got distracted with other stuff and
couldn't follow through. As per our previous discussion the plan was to
upstream these changes (mainly patch 3 "Export devcgroup_check_permission")
through Alex Deucher's amd-staging-drm-next and Dave Airlie's drm-next trees. I
am planning to take this route. I have rebased my patches to
amd-staging-drm-next.

You and Roman acked patch 3, it will be great if I can Reviewed-by, so that the
upstream path can be smoother.

Best Regards,
Harish

***** Original note about this patch series for ref. ****

amdkfd (part of amdgpu) driver supports the AMD GPU compute stack. amdkfd
exposes only a single device /dev/kfd even if multiple AMD GPU (compute)
devices exist in a system. However, amdgpu drvier exposes a separate render
device file /dev/dri/renderDN for each device. To participate in device cgroup
amdkfd driver will rely on these rendner device files


_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH v2 0/4] AMDKFD (AMD GPU compute) support for device cgroup.
@ 2019-05-17 16:14 Kasiviswanathan, Harish
       [not found] ` <20190517161435.14121-1-Harish.Kasiviswanathan-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Kasiviswanathan, Harish @ 2019-05-17 16:14 UTC (permalink / raw)
  To: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
  Cc: Kasiviswanathan, Harish

amdkfd (part of amdgpu) driver supports the AMD GPU compute stack.
amdkfd exposes only a single device /dev/kfd even if multiple AMD GPU
(compute) devices exist in a system. However, amdgpu drvier exposes a
separate render device file /dev/dri/renderDN for each device. To participate
in device cgroup amdkfd driver will rely on these redner device files.

v2: Exporting devcgroup_check_permission() instead of
__devcgroup_check_permission() as per review comments.

Harish Kasiviswanathan (4):
  drm/amdkfd: Store kfd_dev in iolink and cache properties
  drm/amd: Pass drm_device to kfd
  device_cgroup: Export devcgroup_check_permission
  drm/amdkfd: Check against device cgroup

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c   |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h   |  1 +
 drivers/gpu/drm/amd/amdkfd/kfd_device.c      |  2 ++
 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c |  9 ++++++--
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h        | 20 ++++++++++++++++++
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c    | 22 ++++++++++++++++++++
 drivers/gpu/drm/amd/amdkfd/kfd_topology.h    |  3 +++
 include/linux/device_cgroup.h                | 19 ++++-------------
 security/device_cgroup.c                     | 15 +++++++++++--
 9 files changed, 73 insertions(+), 20 deletions(-)

-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-09-24 17:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-16 18:05 AMDKFD (AMD GPU compute) support for device cgroup Kasiviswanathan, Harish
     [not found] ` <20190916180523.27341-1-Harish.Kasiviswanathan-5C7GfCeVMHo@public.gmane.org>
2019-09-16 18:05   ` [PATCH v2 1/4] drm/amdkfd: Store kfd_dev in iolink and cache properties Kasiviswanathan, Harish
2019-09-16 18:05   ` [PATCH v2 2/4] drm/amd: Pass drm_device to kfd Kasiviswanathan, Harish
2019-09-16 18:05   ` [PATCH v2 3/4] device_cgroup: Export devcgroup_check_permission Kasiviswanathan, Harish
     [not found]     ` <20190916180523.27341-4-Harish.Kasiviswanathan-5C7GfCeVMHo@public.gmane.org>
2019-09-24 15:54       ` Kasiviswanathan, Harish
     [not found]         ` <MN2PR12MB2911F59E9B91AAD349B4E40F8C840-rweVpJHSKTpv4wpD+z6awQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-09-24 17:13           ` Roman Gushchin
2019-09-16 18:05   ` [PATCH v2 4/4] drm/amdkfd: Check against device cgroup Kasiviswanathan, Harish
  -- strict thread matches above, loose matches on Subject: below --
2019-05-17 16:14 [PATCH v2 0/4] AMDKFD (AMD GPU compute) support for " Kasiviswanathan, Harish
     [not found] ` <20190517161435.14121-1-Harish.Kasiviswanathan-5C7GfCeVMHo@public.gmane.org>
2019-05-17 16:15   ` [PATCH v2 3/4] device_cgroup: Export devcgroup_check_permission Kasiviswanathan, Harish
     [not found]     ` <20190517161435.14121-4-Harish.Kasiviswanathan-5C7GfCeVMHo@public.gmane.org>
2019-05-17 17:06       ` Roman Gushchin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox