drm/amdgpu: switch to atomfirmware_asic_init
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 28 Feb 2022 10:35:02 +0000 (18:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Apr 2022 21:48:00 +0000 (17:48 -0400)
commit85d1bcc6e0c0367af04ca16fcf2de514465d3f32
tree0b792d4d6f0ff30832d35a95a41e7d76a42dc005
parentba75f6eb87bcf9b47f8fefaecec294ca57051f30
drm/amdgpu: switch to atomfirmware_asic_init

Some initial settings now are not available from
the atom data table. The assumption that !ps[0]
|| !ps[1] in amdgpu_atom_asic_init is not valid.
In addition, driver needs to strictly follow
atomfirmware structure (asic_init_parameters) to
initialize parameters used to execute asic_init
function, otherwise, the execution of asic_init
would fail.

This shall be applicable to all soc15 adapters,but
let make the transition on soc21 first.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c