[PATCH v3 0/3] Use kvmalloc_array for radeon and amdgpu CS chunks

Alex Deucher alexdeucher at gmail.com
Wed Mar 3 15:00:15 UTC 2021


Applied.  Thanks!

Alex

On Wed, Mar 3, 2021 at 6:30 AM Christian König <christian.koenig at amd.com> wrote:
>
> Reviewed-by: Christian König <christian.koenig at amd.com> for the entire
> series.
>
> Am 03.03.21 um 04:49 schrieb Chen Li:
> > When testing kernel with trinity, the kernel turned to tainted in that radeon CS require large memory and order is over MAX_ORDER.
> >
> > kvmalloc/kvmalloc_array should be used here in that it will fallback to vmalloc if necessary.
> >
> > Chen Li (3):
> >    drm/radeon: Use kvmalloc for CS chunks
> >    drm/amdgpu: Use kvmalloc for CS chunks
> >    drm/amdgpu: correct DRM_ERROR for kvmalloc_array
> >
> > Changelog:
> >    v1->v2:
> >      * also use kvmalloc in amdgpu
> >      * fix a DRM_ERROR message for kvmalloc_array.
> >    v2->v3:
> >      * add missing kvfree for amdgpu CS
> >
> >   drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 14 +++++++-------
> >   drivers/gpu/drm/radeon/radeon_cs.c     |  8 ++++----
> >   2 files changed, 11 insertions(+), 11 deletions(-)
> >
> > --
> > 2.30.0
> >
> >
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list