Re: [PATCH v3] drm/amdkfd: Fix the warning of array-index-out-of-bounds

2022-10-31 Thread Ma, Jun
On 10/29/2022 4:17 AM, Felix Kuehling wrote: > On 2022-10-27 04:14, Ma Jun wrote: >> 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_s

Re: [PATCH v3] drm/amdkfd: Fix the warning of array-index-out-of-bounds

2022-10-28 Thread Felix Kuehling
On 2022-10-27 04:14, Ma Jun wrote: 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 direct

[PATCH v3] drm/amdkfd: Fix the warning of array-index-out-of-bounds

2022-10-27 Thread Ma Jun
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. v3: - Drop p