drm/amdgpu: Initialize VF partition mode
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 3 Jul 2024 06:22:47 +0000 (11:52 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Jul 2024 14:12:28 +0000 (10:12 -0400)
commitd02ddefc7eedaa6394279bad522c70fd5d63e163
tree3b76a3e2fa60bfed4b89d064045fda0f4bdf50f4
parent5d64af40e3a99c3bbe7a66c3cfe23295f8e97130
drm/amdgpu: Initialize VF partition mode

For SOCs with GFX v9.4.3, a VF may have multiple compute partitions.
Fetch the partition information during init and initialize partition
nodes. There is no support to switch partition mode in VF mode, hence
disable the same.

Signed-off-by: Lijo Lazar <lijo.lazar@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_gfx.h
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c