Re: drm/fbdev-dma: regression

2024-12-09 Thread Nuno Gonçalves
On Mon, Dec 9, 2024 at 1:43 PM Thomas Zimmermann wrote: > Thanks you so much for testing. I'll prepare a real patch. Can I add > your Reported-by and Tested-by tags? Reported-by: Nuno Gonçalves Tested-by: Nuno Gonçalves Thanks, Nuno

Re: drm/fbdev-dma: regression

2024-12-07 Thread Nuno Gonçalves
On Mon, Dec 2, 2024 at 12:18 PM Thomas Zimmermann wrote: > Thanks for testing. Attached is another patch. It attempts to restore > the fbdev handling as before the regression. Please give it a try. This one fixes it for me. Thanks

Re: drm/fbdev-dma: regression

2024-11-28 Thread Nuno Gonçalves
> Here's a first attempt to address this bug. Could you please apply the > attached patch and report on the results? It should work against the > upcoming v6.13-rc1 or against a recent drm-misc-next. Hi. No luck yet. I collected crashes before the patch: BUG: Bad page map in process husband pte

Re: drm/fbdev-dma: regression

2024-11-11 Thread Nuno Gonçalves
On Mon, Nov 11, 2024, 14:37 Thomas Zimmermann wrote: > Hi > > > Am 11.11.24 um 14:42 schrieb Nuno Gonçalves: > > On Mon, Nov 11, 2024 at 1:22 PM Thomas Zimmermann > wrote: > >> The patch in question changes the whole memory management of the > >> affected

Re: drm/fbdev-dma: regression

2024-11-11 Thread Nuno Gonçalves
On Mon, Nov 11, 2024 at 1:22 PM Thomas Zimmermann wrote: > The patch in question changes the whole memory management of the > affected code. It's also noteworthy that most of it has been reworked > for the upcoming v6.12. Maybe this already fixed the problem. Kernel > v6.11-rc7 added commit 5a498d

drm/fbdev-dma: regression

2024-10-21 Thread Nuno Gonçalves
Hi Thomas, Since 5ab91447aa13b8b98bc11f5326f33500b0ee2c48 and still happening in master, I often get a kernel crash, either a "Unable to handle kernel NULL pointer dereference at virtual address" or "Unable to handle kernel paging request at virtual address". This happens in ARM64 with ili9225 an

Re: DRM FB interface does not sanitize len when mmap'ed

2022-06-19 Thread Nuno Gonçalves
On Fri, Jun 17, 2022 at 10:27 AM Thomas Zimmermann wrote: > Could you please try the attached patch? It's similar to your solution, > but closer to the original intention of the code. Works fine. Tested-by: Nuno Gonçalves Thanks, Nuno

DRM FB interface does not sanitize len when mmap'ed

2022-06-15 Thread Nuno Gonçalves
I am crashing the kernel by doing something I believe I am allowed to do. Using mmap to write to /dev/fb0 as the compatibility layer for Tiny DRM vot,v220hf01a-t (ili9225). First it happens that because of the display resolution of 220*176 the buffer is (16 bit) 77440 bytes, which is not a multip