diff options
author | Kenneth Feng <kenneth.feng@amd.com> | 2018-09-06 02:56:19 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-14 10:35:57 -0400 |
commit | a06c3ee083b5c622bb9f4a687d7ab5265ee73dbf (patch) | |
tree | b942812ba68479e42c2f1e6cc18e0dbe8e92cb0e /drivers/gpu/drm/amd | |
parent | 367b013ce0064c782cec784233805eeb67417747 (diff) |
drm/amdgpu: enable gfxoff in non-sriov and stutter mode by default
enable gfxoff in non-sriov and stutter mode by default
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 25e7e1cccaa1..39fe66810d53 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1492,6 +1492,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) | |||
1492 | } | 1492 | } |
1493 | 1493 | ||
1494 | adev->powerplay.pp_feature = amdgpu_pp_feature_mask; | 1494 | adev->powerplay.pp_feature = amdgpu_pp_feature_mask; |
1495 | if (amdgpu_sriov_vf(adev)) | ||
1496 | adev->powerplay.pp_feature &= ~PP_GFXOFF_MASK; | ||
1495 | 1497 | ||
1496 | for (i = 0; i < adev->num_ip_blocks; i++) { | 1498 | for (i = 0; i < adev->num_ip_blocks; i++) { |
1497 | if ((amdgpu_ip_block_mask & (1 << i)) == 0) { | 1499 | if ((amdgpu_ip_block_mask & (1 << i)) == 0) { |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index b575728ead07..33e1856fb8cc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
@@ -114,8 +114,8 @@ uint amdgpu_pg_mask = 0xffffffff; | |||
114 | uint amdgpu_sdma_phase_quantum = 32; | 114 | uint amdgpu_sdma_phase_quantum = 32; |
115 | char *amdgpu_disable_cu = NULL; | 115 | char *amdgpu_disable_cu = NULL; |
116 | char *amdgpu_virtual_display = NULL; | 116 | char *amdgpu_virtual_display = NULL; |
117 | /* OverDrive(bit 14),gfxoff(bit 15),stutter mode(bit 17) disabled by default*/ | 117 | /* OverDrive(bit 14) disabled by default*/ |
118 | uint amdgpu_pp_feature_mask = 0xfffd3fff; | 118 | uint amdgpu_pp_feature_mask = 0xffffbfff; |
119 | int amdgpu_ngg = 0; | 119 | int amdgpu_ngg = 0; |
120 | int amdgpu_prim_buf_per_se = 0; | 120 | int amdgpu_prim_buf_per_se = 0; |
121 | int amdgpu_pos_buf_per_se = 0; | 121 | int amdgpu_pos_buf_per_se = 0; |