]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commita3bab3258568fa3157b0d657328ea3c6a2d924d7
tree9e59f09be6abbba739f4b81ab81fa630e57fcfa4
parent23d9bd60bd116c31936d012d79ba0e9972bafa9c
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