summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
diff options
context:
space:
mode:
authorTom St Denis <tom.stdenis@amd.com>2017-04-04 18:36:20 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-04-06 20:27:18 +0300
commit61a8cee51f2c14c472f29f2f192936e716694f72 (patch)
tree89ff5c52737cea199bb0ad2bf1caedd93a6d192c /drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
parent03f89feb57bf61749885ae98ce98b8c0fd28903b (diff)
downloadlinux-61a8cee51f2c14c472f29f2f192936e716694f72.tar.xz
drm/amd/amdgpu: Fix psp_v3_1 compare sram
Had the wrong sense in the loop Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_v3_1.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/psp_v3_1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c b/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
index 5191c45ffdf3..0900fdf0651b 100644
--- a/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c
@@ -491,7 +491,7 @@ bool psp_v3_1_compare_sram_data(struct psp_context *psp,
ucode_size = ucode->ucode_size;
ucode_mem = (uint32_t *)ucode->kaddr;
- while (!ucode_size) {
+ while (ucode_size) {
fw_sram_reg_val = RREG32(fw_sram_data_reg_offset);
if (*ucode_mem != fw_sram_reg_val)