drm/amdgpu: Convert query_memory_partition into common helpers
authorHawking Zhang <Hawking.Zhang@amd.com>
Sat, 21 Jun 2025 13:11:30 +0000 (21:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jun 2025 14:04:09 +0000 (10:04 -0400)
commitc9df2dcf9054273c7f493b7912744de6eefd2aea
tree45ab8c21aa7d51f192593e8e7fe62a2eb4bc5181
parent97c894758b9f1d7a01794d85b95a7b2854d85009
drm/amdgpu: Convert query_memory_partition into common helpers

The query_memory_partition does not need to remain
as soc specific callbacks. They can be shared across
multiple products

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@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