drm/amdgpu: Set memory partitions to 1 for SRIOV.
authorGavin Wan <Gavin.Wan@amd.com>
Mon, 10 Apr 2023 19:04:26 +0000 (15:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:58:06 +0000 (09:58 -0400)
commit46f7b4deb30558593c1d2e62d561a3cee21f558a
treed2876e7773abe5e793440bce4703b4c6f2790b91
parentb0a3bbf947f6ed690336cec1f6cde2a30d082dbb
drm/amdgpu: Set memory partitions to 1 for SRIOV.

For SRIOV, the memory partitions are set on host drover. Each VF only
has one memory partition. We need set the memory partitions to 1 on
guest driver for SRIOV.

V2: sqaush in fix ("drm/amdgpu: Fix memory range info of GC 9.4.3 VFs")

Signed-off-by: Gavin Wan <Gavin.Wan@amd.com>
Acked-by: Zhigang Luo <zhigang.luo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c