OSDN Git Service

drm/amdkfd: Add procfs-style information for KFD processes
authorKent Russell <kent.russell@amd.com>
Thu, 13 Jun 2019 13:55:40 +0000 (09:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Jun 2019 16:34:00 +0000 (11:34 -0500)
commitde9f26bbd3842a7e8fca4f88b448636cc56319ff
tree4e7ad849b4f6454b561bc0c9c348787473963c66
parente82fdb16a0650250e27f7241133682342d476ad3
drm/amdkfd: Add procfs-style information for KFD processes

Add a folder structure to /sys/class/kfd/kfd/ called proc which contains
subfolders, each representing an active KFD process' PID, containing 1
file: pasid.

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_module.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c