diff --git a/sys/dev/drm/amd/amdgpu/psp_v11_0.c b/sys/dev/drm/amd/amdgpu/psp_v11_0.c --- a/sys/dev/drm/amd/amdgpu/psp_v11_0.c +++ b/sys/dev/drm/amd/amdgpu/psp_v11_0.c @@ -495,7 +495,7 @@ WREG32(fw_sram_addr_reg_offset, fw_sram_reg_val); - ucode_size = ucode->ucode_size; + ucode_size = ucode->ucode_size & ~0x3; ucode_mem = (uint32_t *)ucode->kaddr; while (ucode_size) { fw_sram_reg_val = RREG32(fw_sram_data_reg_offset);