OSDN Git Service

drm/amd/amdkfd: Surface files in Sysfs to allow users to get number of
authorRamesh Errabolu <Ramesh.Errabolu@amd.com>
Tue, 29 Sep 2020 17:15:13 +0000 (12:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Sep 2020 19:26:27 +0000 (15:26 -0400)
commitf2fa07b39fafb2a5f49c71a504862c5efa57d03e
tree8450b33c3f7b6eda43227491d455f7a5af015b4a
parent43a4bc828c5b156f08024fd0a966c5c2a3f09af1
drm/amd/amdkfd: Surface files in Sysfs to allow users to get number of
compute units that are in use.

[Why]
Allow user to know how many compute units (CU) are in use at any given
moment.

[How]
Surface files in Sysfs that allow user to determine the number of compute
units that are in use for a given process. One Sysfs file is used per
device.

Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Reviewed-By: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c