diff options
author | Sonny Jiang <sonny.jiang@amd.com> | 2022-07-21 13:27:08 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-07-28 16:28:54 -0400 |
commit | 736f7308d3e6201322142d98abe4e9af33a429f7 (patch) | |
tree | de0943666c59989934a48322fe48b526dc605dfd /drivers/gpu/drm | |
parent | 6fdd2077ec03f4b34d127a1713ca19248539d6e0 (diff) | |
download | linux-736f7308d3e6201322142d98abe4e9af33a429f7.tar.bz2 |
drm/amdgpu: fix a vcn4 boot poll bug in emulation mode
The return value should be set in vcn4 boot poll.
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c index 0bde38449fd2..ca14c3ef742e 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; |