Re: [PATCH] RFC: drm/lima: fix calling drm_mm_init with an empty range

2023-12-20 Thread Alban Browaeys
Le lundi 18 décembre 2023 à 10:50 +0800, Qiang Yu a écrit : > Thanks for the fix. It could be done in a simpler way that swap the > va_start/va_end init/fini and empty_vm create/release. The thing is I do not get what you suggest by swaping :-/ Do you mean I should check for "dev->va_end -

Re: [PATCH] RFC: drm/lima: fix calling drm_mm_init with an empty range

2023-12-18 Thread Qiang Yu
Thanks for the fix. It could be done in a simpler way that swap the va_start/va_end init/fini and empty_vm create/release. On Thu, Dec 14, 2023 at 5:04 PM Alban Browaeys wrote: > > For the empty_vm initialization the range is empty which is not supported > by drm_mm_init. > > With

[PATCH] RFC: drm/lima: fix calling drm_mm_init with an empty range

2023-12-14 Thread Alban Browaeys
For the empty_vm initialization the range is empty which is not supported by drm_mm_init. With CONFIG_DRM_DEBUG_MM set, I get: [ cut here ] kernel BUG at drivers/gpu/drm/drm_mm.c:965! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM Modules linked in: lima(+)