drm/amdgpu: Fetch NPS mode for GCv9.4.3 VFs
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 13 Sep 2024 11:47:19 +0000 (17:17 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2024 15:19:46 +0000 (11:19 -0400)
commitb3c687169256ec637172b661cf59518eb756db28
tree80b1201e61897d2bf07bda005f728d1095bbb171
parent40f2cd98828f454bdc5006ad3d94330a5ea164b7
drm/amdgpu: Fetch NPS mode for GCv9.4.3 VFs

Use the memory ranges published in discovery table to deduce NPS mode
of GC v9.4.3 VFs.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Vignesh Chander <Vignesh.Chander@amd.com>
Tested-by: Vignesh Chander <Vignesh.Chander@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c