]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: refine reboot debugfs operation in ras case (v3)
authorGuchun Chen <guchun.chen@amd.com>
Mon, 21 Oct 2019 08:56:00 +0000 (16:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:50:10 +0000 (16:50 -0400)
commitbff53c18931ff087a58f4976156ff3e5d59b5999
treeef8bd80d76e2710dee6f919266d54792ee8d97d0
parentd473bfb6e57e122375518b799d6e68bb0c9f7744
drm/amdgpu: refine reboot debugfs operation in ras case (v3)

Ras reboot debugfs node allows user one easy control to avoid
gpu recovery hang problem and directly reboot system per card
basis, after ras uncorrectable error happens. However, it is
one common entry, which should get rid of ras_ctrl node and
remove ip dependence when inputting by user. So add one new
auto_reboot node in ras debugfs dir to achieve this.

v2: in commit mssage, add justification why ras reboot debugfs
node is needed.
v3: use debugfs_create_bool to create debugfs file for boolean value

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c