drm/amdgpu: allow multipipe policy on ASICs with one MEC
authorLang Yu <Lang.Yu@amd.com>
Wed, 11 Jan 2023 01:32:15 +0000 (09:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:24:40 +0000 (07:24 +0100)
commitd693fdf73eb296081523e18d1ac3bc38787e7cab
tree21ba2def5c0d4f0d64014137f2eec3bb5e488c79
parentaf4a3c274a92ee0545d65b9102b398fb75d7cc9a
drm/amdgpu: allow multipipe policy on ASICs with one MEC

commit dc88063b87775971be564d79dc1b05f7b8b5c135 upstream.

Always enable multipipe policy on ASICs with GC VERSION > 9.0.0
instead of MEC number > 1.

This will allow multipipe policy on ASICs with one MEC,
e.g., gfx11 APUs.

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c