Skip to content

Commit

Permalink
drm/amdkfd: Fix the warning of array-index-out-of-bounds
Browse files Browse the repository at this point in the history
commit c0cc999 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>
  • Loading branch information
Ma Jun authored and Greg Kroah-Hartman committed Mar 30, 2023
1 parent a552897 commit 0ac954e
Show file tree
Hide file tree
Showing 4 changed files with 282 additions and 292 deletions.
Loading

0 comments on commit 0ac954e

Please sign in to comment.