]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: move amdgpu_num_kcq handling to a helper
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Oct 2020 14:02:56 +0000 (10:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Oct 2020 19:11:17 +0000 (15:11 -0400)
commitfc30d3dbc1c3ba4c5dde3ab64c10252ae080689a
tree9e59f09be6abbba739f4b81ab81fa630e57fcfa4
parente15cc89b6290b2684127fa4d463a3345b1acdc40
drm/amdgpu: move amdgpu_num_kcq handling to a helper

Add a helper so we can set per asic default values. Also,
the module parameter is currently clamped to 8, but clamp it
per asic just in case some asics have different limits in the
future. Enable the option on gfx6,7 as well for consistency.

Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c