Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/pm: early return if disabling DPMS for GFX IP v11.5.2

This was intended to add support for GFX IP v11.5.2, but it needs
to be applied to all GFX11 and subsequent APUs. Therefore the code
should be revised to accommodate this.

Signed-off-by: Tim Huang <tim.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tim Huang and committed by
Alex Deucher
2fdc99b9 b3fb79cd

+4 -12
+4 -12
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
··· 1924 1924 } 1925 1925 1926 1926 /* 1927 - * For SMU 13.0.4/11 and 14.0.0, PMFW will handle the features disablement properly 1927 + * For GFX11 and subsequent APUs, PMFW will handle the features disablement properly 1928 1928 * for gpu reset and S0i3 cases. Driver involvement is unnecessary. 1929 1929 */ 1930 - if (amdgpu_in_reset(adev) || adev->in_s0ix) { 1931 - switch (amdgpu_ip_version(adev, MP1_HWIP, 0)) { 1932 - case IP_VERSION(13, 0, 4): 1933 - case IP_VERSION(13, 0, 11): 1934 - case IP_VERSION(14, 0, 0): 1935 - case IP_VERSION(14, 0, 1): 1936 - return 0; 1937 - default: 1938 - break; 1939 - } 1940 - } 1930 + if (IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) >= 11 && 1931 + smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix)) 1932 + return 0; 1941 1933 1942 1934 /* 1943 1935 * For gpu reset, runpm and hibernation through BACO,