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:
06465d8
)
drm/amdgpu: do not reset gpu for virtualization
author
Xiangliang Yu
<
[email protected]
>
Sat, 17 Dec 2016 14:48:57 +0000
(22:48 +0800)
committer
Alex Deucher
<
[email protected]
>
Fri, 27 Jan 2017 16:13:27 +0000
(11:13 -0500)
Current amdgpu reset process only works on bare-metal and for
SRIOV many inside it need re-work to adapt to vf device.
This is a temporary workaround to skip gpu reset.
Signed-off-by: Monk Liu <
[email protected]
>
Signed-off-by: Xiangliang Yu <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Reviewed-by: Christian König <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index e0fcfea99328aede215e6e1f400e7f40acc68b43..867d7d4077d0bc8b3a2a6a978baacd6e36c840fe 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@
-2288,6
+2288,9
@@
int amdgpu_gpu_reset(struct amdgpu_device *adev)
int resched;
bool need_full_reset;
+ if (amdgpu_sriov_vf(adev))
+ return 0;
+
if (!amdgpu_check_soft_reset(adev)) {
DRM_INFO("No hardware hang detected. Did some blocks stall?\n");
return 0;