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:
ca82a74
)
drm/amdgpu:two fixings for sdma v4 for SRIOV
author
Monk Liu
<
[email protected]
>
Tue, 21 Mar 2017 10:58:53 +0000
(18:58 +0800)
committer
Alex Deucher
<
[email protected]
>
Thu, 30 Mar 2017 03:55:39 +0000
(23:55 -0400)
no hw_fini for SRIOV, otherwise other VF will be affected
no CG for SRIOV
Signed-off-by: Monk Liu <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index f8eb53b70315f70336320efe04160dba03246ddc..bc19e5ebdb9077fc13fe6bb00837df2350e3a6c8 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@
-1172,6
+1172,9
@@
static int sdma_v4_0_hw_fini(void *handle)
{
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ if (amdgpu_sriov_vf(adev))
+ return 0;
+
sdma_v4_0_ctx_switch_enable(adev, false);
sdma_v4_0_enable(adev, false);
@@
-1406,6
+1409,9
@@
static int sdma_v4_0_set_clockgating_state(void *handle,
{
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ if (amdgpu_sriov_vf(adev))
+ return 0;
+
switch (adev->asic_type) {
case CHIP_VEGA10:
sdma_v4_0_update_medium_grain_clock_gating(adev,