File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4116,6 +4116,7 @@ static void gfx_v10_0_check_gfxoff_flag(struct amdgpu_device *adev)
4116
4116
4117
4117
static int gfx_v10_0_init_microcode (struct amdgpu_device * adev )
4118
4118
{
4119
+ char fw_name [53 ];
4119
4120
char ucode_prefix [30 ];
4120
4121
const char * wks = "" ;
4121
4122
int err ;
@@ -4149,8 +4150,8 @@ static int gfx_v10_0_init_microcode(struct amdgpu_device *adev)
4149
4150
amdgpu_gfx_cp_init_microcode (adev , AMDGPU_UCODE_ID_CP_CE );
4150
4151
4151
4152
if (!amdgpu_sriov_vf (adev )) {
4152
- err = amdgpu_ucode_request ( adev , & adev -> gfx . rlc_fw ,
4153
- "amdgpu/%s_rlc.bin" , ucode_prefix );
4153
+ snprintf ( fw_name , sizeof ( fw_name ), "amdgpu/%s_rlc.bin" , ucode_prefix );
4154
+ err = request_firmware ( & adev -> gfx . rlc_fw , fw_name , adev -> dev );
4154
4155
if (err )
4155
4156
goto out ;
4156
4157
You can’t perform that action at this time.
0 commit comments