drm/amdgpu: move PX checking into amdgpu_device_ip_early_init
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Jan 2022 18:42:30 +0000 (13:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:22:48 +0000 (14:22 +0200)
commit0884abb259f180bc737cdb2c681d907b86f266e8
tree2a3f9e7bc49bfaca7f06a017ce5b7a09ff47005d
parent03f836fcb655417693aef350dcb830451ab7d388
drm/amdgpu: move PX checking into amdgpu_device_ip_early_init

commit 901e2be20dc55079997ea1885ea77fc72e6826e7 upstream.

We need to set the APU flag from IP discovery before
we evaluate this code.

Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c