]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix wait for RLCG command completion
authorVictor Skvortsov <victor.skvortsov@amd.com>
Thu, 3 Feb 2022 21:13:40 +0000 (21:13 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Feb 2022 22:30:02 +0000 (17:30 -0500)
commitf85b439e1b0f987b43241a3f836d4f10cb24faef
treede9b1907536e2a69845a4c439cbdec718a5de223
parent508cfca7c05c9d6acf97b0ae7edfe28e81c13de4
drm/amdgpu: Fix wait for RLCG command completion

if (!(tmp & flag)) condition will always evaluate to true
when the flag is 0x0 (AMDGPU_RLCG_GC_WRITE). Instead check
that address bits are cleared to determine whether
the command is complete.

Signed-off-by: Victor Skvortsov <victor.skvortsov@amd.com>
Tested-by: Bokun Zhang <bokun.zhang@amd.com>
Reviewed by: Shaoyun.liu <Shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h