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
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>
  • Loading branch information
Ma Jun authored and Alex Deucher committed Nov 4, 2022
1 parent cfa61b8 commit c0cc999
Show file tree
Hide file tree
Showing 4 changed files with 282 additions and 292 deletions.
Loading

0 comments on commit c0cc999

Please sign in to comment.