[0/3] drm/amdgpu: Use KMEM_CACHE instead of kmem_cache_create

Message ID 20240221095907.172408-1-chentao@kylinos.cn
Headers
Series drm/amdgpu: Use KMEM_CACHE instead of kmem_cache_create |

Message

Kunwu Chan Feb. 21, 2024, 9:59 a.m. UTC
  For where the cache name and the structure name match.
Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.

Kunwu Chan (3):
  drm/amdgpu: Simplify the allocation of fence slab caches
  drm/amdgpu: Simplify the allocation of mux_chunk slab caches
  drm/amdgpu: Simplify the allocation of sync slab caches

 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c    | 4 +---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c | 4 +---
 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c     | 4 +---
 3 files changed, 3 insertions(+), 9 deletions(-)
  

Comments

Christian König Feb. 21, 2024, 10:57 a.m. UTC | #1
Am 21.02.24 um 10:59 schrieb Kunwu Chan:
> For where the cache name and the structure name match.
> Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
> to simplify the creation of SLAB caches.

Reviewed-by: Christian König <christian.koenig@amd.com> for the entire 
series.

>
> Kunwu Chan (3):
>    drm/amdgpu: Simplify the allocation of fence slab caches
>    drm/amdgpu: Simplify the allocation of mux_chunk slab caches
>    drm/amdgpu: Simplify the allocation of sync slab caches
>
>   drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c    | 4 +---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c | 4 +---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c     | 4 +---
>   3 files changed, 3 insertions(+), 9 deletions(-)
>
  
Alex Deucher Feb. 21, 2024, 8:34 p.m. UTC | #2
Applied.  Thanks!

On Wed, Feb 21, 2024 at 6:08 AM Christian König
<christian.koenig@amd.com> wrote:
>
> Am 21.02.24 um 10:59 schrieb Kunwu Chan:
> > For where the cache name and the structure name match.
> > Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
> > to simplify the creation of SLAB caches.
>
> Reviewed-by: Christian König <christian.koenig@amd.com> for the entire
> series.
>
> >
> > Kunwu Chan (3):
> >    drm/amdgpu: Simplify the allocation of fence slab caches
> >    drm/amdgpu: Simplify the allocation of mux_chunk slab caches
> >    drm/amdgpu: Simplify the allocation of sync slab caches
> >
> >   drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c    | 4 +---
> >   drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c | 4 +---
> >   drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c     | 4 +---
> >   3 files changed, 3 insertions(+), 9 deletions(-)
> >
>