projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cce244
)
drm/amdgpu/gmc8: skip MC ucode loading on SR-IOV capable boards
author
Alex Deucher
<
[email protected]
>
Mon, 1 Feb 2016 16:29:54 +0000
(11:29 -0500)
committer
Alex Deucher
<
[email protected]
>
Wed, 10 Feb 2016 19:17:12 +0000
(14:17 -0500)
VBIOS does this for us in asic_init.
Reviewed-by: Monk Liu <
[email protected]
>
Reviewed-by: Christian König <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
index 7011f8b2971aceeb1022465b830d4896e558b320..ca0a0c666b71840554f64f0bb4397c175eba13b3 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
@@
-252,6
+252,12
@@
static int gmc_v8_0_mc_load_microcode(struct amdgpu_device *adev)
if (!adev->mc.fw)
return -EINVAL;
+ /* Skip MC ucode loading on SR-IOV capable boards.
+ * vbios does this for us in asic_init in that case.
+ */
+ if (adev->virtualization.supports_sr_iov)
+ return 0;
+
hdr = (const struct mc_firmware_header_v1_0 *)adev->mc.fw->data;
amdgpu_ucode_print_mc_hdr(&hdr->header);