OSDN Git Service

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)
commit0e961589f53e6d5164f308dd10c0e3c0b655f6ee
treecf081addd6bc38dbcbab10ec29cc429f225f5b8c
parentd1ffa512c635d5df81e18f2686b5e5060ca03f18
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