diff options
author | Andres Rodriguez <andresx7@gmail.com> | 2017-09-26 12:22:46 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-28 16:03:21 -0400 |
commit | 4a75aefe3feb99ff87c1ea594b4db377b98f50e8 (patch) | |
tree | 2dd2f568285048c077663b1e768c5e6393df54f2 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
parent | 0f7607d484f57c31a3e0b5b4e75ff1366cc90b6b (diff) |
drm/amdgpu: add option for force enable multipipe policy for compute
Useful for testing the effects of multipipe compute without recompiling.
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c index 3930fcc3e344..83435ccbad44 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |||
@@ -111,6 +111,12 @@ void amdgpu_gfx_parse_disable_cu(unsigned *mask, unsigned max_se, unsigned max_s | |||
111 | 111 | ||
112 | static bool amdgpu_gfx_is_multipipe_capable(struct amdgpu_device *adev) | 112 | static bool amdgpu_gfx_is_multipipe_capable(struct amdgpu_device *adev) |
113 | { | 113 | { |
114 | if (amdgpu_compute_multipipe != -1) { | ||
115 | DRM_INFO("amdgpu: forcing compute pipe policy %d\n", | ||
116 | amdgpu_compute_multipipe); | ||
117 | return amdgpu_compute_multipipe == 1; | ||
118 | } | ||
119 | |||
114 | /* FIXME: spreading the queues across pipes causes perf regressions | 120 | /* FIXME: spreading the queues across pipes causes perf regressions |
115 | * on POLARIS11 compute workloads */ | 121 | * on POLARIS11 compute workloads */ |
116 | if (adev->asic_type == CHIP_POLARIS11) | 122 | if (adev->asic_type == CHIP_POLARIS11) |