]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc94950ee8e375eb447d4923e0ee3fb8efe8a3dd8
treea29849ba877dd712df4013ede4cdb12a5f20982d
parent06cbc96024af16761e5a7e665a551b6d09b434b3
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