]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Clear doorbell interrupt status for Sienna Cichlid
authorChengzhe Liu <ChengZhe.Liu@amd.com>
Tue, 20 Jul 2021 07:18:12 +0000 (15:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jul 2021 14:09:40 +0000 (10:09 -0400)
commit4f96882bdb9d2ae881c0cf48b4cc5c34a8a77765
tree9504670a7f981c878e732e03ea2dc8fd1c2c6806
parenta817ad9b320f1fcef4514cef740a1094c8aff356
drm/amdgpu: Clear doorbell interrupt status for Sienna Cichlid

On Sienna Cichlid, in pass-through mode, if we unload the driver in BACO
mode(RTPM), then the kernel would receive thousands of interrupts.
That's because there is doorbell monitor interrupt on BIF, so KVM keeps
injecting interrupts to the guest VM. So we should clear the doorbell
interrupt status after BACO exit.

v2: Modify coding style and commit message

Signed-off-by: Chengzhe Liu <ChengZhe.Liu@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c