drm/amdkfd: Fix permissions of hang_hws
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 20 Dec 2019 03:36:55 +0000 (22:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:54:30 +0000 (11:54 -0500)
commit2bdac179e217a0c0b548a8c60524977586621b19
tree84bd31ffa9b79b58edf15fedbe4a7cbf45db411f
parentb6025eeaa10eef8d6d6c413b0668d6ebe7375b2a
drm/amdkfd: Fix permissions of hang_hws

Reading from /sys/kernel/debug/kfd/hang_hws would cause a kernel
oops because we didn't implement a read callback. Set the permission
to write-only to prevent that.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: shaoyunl <shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_debugfs.c