]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: switch to use smuio callbacks for AI family
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 20 Oct 2020 15:50:46 +0000 (23:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Nov 2020 05:13:28 +0000 (00:13 -0500)
commit5c6806339dbb4d52a2a22f32b86355f928b66c20
treecf081addd6bc38dbcbab10ec29cc429f225f5b8c
parentbf76a81cde1f1f1ffe129b82156736d6c58304dc
drm/amdgpu: switch to use smuio callbacks for AI family

Switch to smuio callbacks: use smuio v9_0 callbacks
for Vega10/12, smuio v11_0 callbacks for Vega20/Arcturus.
APUs don't support enable/disable rom clock gating and
also don't support read bios from rom. So APU flag check
is needed in clock gating callbacks and asic funciton
for read bios from rom to prevent access unknown offset
on APU.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c