drm/amdkfd: add helper to generate cache info from gfx config
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Mar 2022 20:41:12 +0000 (16:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:54 +0000 (10:43 -0400)
commit3b9186fa868be5d0f2756d06af54c497288d2601
treea29849ba877dd712df4013ede4cdb12a5f20982d
parent3d879e81f0f9ed5d33b5eda0fe5226c884bb8073
drm/amdkfd: add helper to generate cache info from gfx config

Rather than using hardcoded tables, we can use the gfx and
gmc config pulled from the IP discovery table to generate the
cache configuration.

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