diff options
author | Ma Jun <Jun.Ma2@amd.com> | 2022-11-02 10:53:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-30 13:49:31 +0300 |
commit | 0ac954ec7f6c6dd6b7e94340599ba4b788d056d5 (patch) | |
tree | ff29e0bc358db2a102e17ebbc4656d7e93345f00 /init | |
parent | a5528973c676dad09a1af25cd49e4312238d1428 (diff) | |
download | linux-0ac954ec7f6c6dd6b7e94340599ba4b788d056d5.tar.xz |
drm/amdkfd: Fix the warning of array-index-out-of-bounds
commit c0cc999f3c32e65a7c88fb323893ddf897b24488 upstream.
For some GPUs with more CUs, the original sibling_map[32]
in struct crat_subtype_cache is not enough
to save the cache information when create the VCRAT table,
so skip filling the struct crat_subtype_cache info instead
fill struct kfd_cache_properties directly to fix this problem.
Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: "Limonciello, Mario" <Mario.Limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions