drm/amdgpu: set the APU flag based on package type
authorShiwu Zhang <shiwu.zhang@amd.com>
Mon, 22 May 2023 09:11:59 +0000 (17:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 15:07:04 +0000 (11:07 -0400)
commit20997c04b7168b1833da77f882eb5a6f246c4b96
tree17fc4c60f6b47f3a6194460b21643a2d65613468
parent28bb7f13e70dcd3a6c736ee1567cf91c47af2600
drm/amdgpu: set the APU flag based on package type

Since currently APU and dGPU share the same pcie class
while gmc init needs the flag to set up correctly for upcomming
memory allocations

v2: call get_pkg_type in smuio 13_0_3 is enough (hawking)

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c