OSDN Git Service

drm/amdgpu/discovery: add a function to get the mall_size
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Mar 2022 21:23:49 +0000 (17:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Apr 2022 21:47:30 +0000 (17:47 -0400)
commit24681cb50bcbe09a4f8f609d35c350c7d246fe5e
tree2315b77d428d29d6330e92f5c0f9839e447de815
parent478d338bb0ca49f4974436f6e005d3816dcba115
drm/amdgpu/discovery: add a function to get the mall_size

Add a function to fetch the mall size from the IP discovery
table. Properly handle harvest configurations where more
or less cache may be available.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.h