]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix mutex lock from atomic context.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 10 Sep 2019 19:34:16 +0000 (15:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 15:09:59 +0000 (10:09 -0500)
commit685957ba0ef32bde1e2729d6a40a4c7f8bb4a61d
tree7e7df3e3263172e052993b599980f13dc6e4c1c8
parent61e499e8538a3b472bb5df7f5d58fc529e57d861
drm/amdgpu: Fix mutex lock from atomic context.

Problem:
amdgpu_ras_reserve_bad_pages was moved to amdgpu_ras_reset_gpu
because writing to EEPROM during ASIC reset was unstable.
But for ERREVENT_ATHUB_INTERRUPT amdgpu_ras_reset_gpu is called
directly from ISR context and so locking is not allowed. Also it's
irrelevant for this partilcular interrupt as this is generic RAS
interrupt and not memory errors specific.

Fix:
Avoid calling amdgpu_ras_reserve_bad_pages if not in task context.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h