]> 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)
commitcff7a37d6044217b0137a3b855928a06beed42f6
treea29849ba877dd712df4013ede4cdb12a5f20982d
parent9cba7e80f3894d8260ad2d892db5d5b3673c196c
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