mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/amdgpu: refine isp firmware loading
refine isp firmware loading Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -97,16 +97,14 @@ static int isp_load_fw_by_psp(struct amdgpu_device *adev)
|
||||
{
|
||||
const struct common_firmware_header *hdr;
|
||||
char ucode_prefix[10];
|
||||
char fw_name[40];
|
||||
int r = 0;
|
||||
|
||||
/* get isp fw binary name and path */
|
||||
amdgpu_ucode_ip_version_decode(adev, ISP_HWIP, ucode_prefix,
|
||||
sizeof(ucode_prefix));
|
||||
snprintf(fw_name, sizeof(fw_name), "amdgpu/%s.bin", ucode_prefix);
|
||||
|
||||
/* read isp fw */
|
||||
r = amdgpu_ucode_request(adev, &adev->isp.fw, fw_name);
|
||||
r = amdgpu_ucode_request(adev, &adev->isp.fw, "amdgpu/%s.bin", ucode_prefix);
|
||||
if (r) {
|
||||
amdgpu_ucode_release(&adev->isp.fw);
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user