[PATCH 1/5] drm/amdgpu: fix a vcn4 boot poll bug in emulation mode

Sonny Jiang sonny.jiang at amd.com
Thu Jul 21 17:27:08 UTC 2022


The return value should be set in vcn4 boot poll.

Signed-off-by: Sonny Jiang <sonny.jiang at amd.com>
Reviewed-by: James Zhu <James.Zhu at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
index a91ffbf902d4..3a16588024d6 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
@@ -1041,6 +1041,7 @@ static int vcn_v4_0_start(struct amdgpu_device *adev)
 			}
 
 			if (amdgpu_emu_mode==1) {
+				r = -1;
 				if (status & 2) {
 					r = 0;
 					break;
-- 
2.36.1



More information about the amd-gfx mailing list