diff --git a/sys/dev/drm/amd/amdgpu/psp_v10_0.c b/sys/dev/drm/amd/amdgpu/psp_v10_0.c --- a/sys/dev/drm/amd/amdgpu/psp_v10_0.c +++ b/sys/dev/drm/amd/amdgpu/psp_v10_0.c @@ -432,7 +432,7 @@ 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)