Re: [PATCH v2 2/3] fbdev: Track deferred-I/O pages in pageref struct

2022-04-26 Thread Sam Ravnborg
Hi Thomas, > > > + > > > /* this is to find and return the vmalloc-ed fb pages */ > > > static vm_fault_t fb_deferred_io_fault(struct vm_fault *vmf) > > > { > > > @@ -59,7 +113,7 @@ static vm_fault_t fb_deferred_io_fault(struct vm_fault > > > *vmf) > > > printk(KERN_ERR

Re: [PATCH v2 2/3] fbdev: Track deferred-I/O pages in pageref struct

2022-04-26 Thread Thomas Zimmermann
Hi Am 25.04.22 um 20:17 schrieb Sam Ravnborg: Hi Thomas, a little ramblings below. Just my thoughts while trying to understand the code - especially since I looked at it before. Thanks for reviewing the patches. Sam On Mon, Apr 25, 2022 at 01:27:50PM +0200, Thomas Zimmermann

Re: [PATCH v2 2/3] fbdev: Track deferred-I/O pages in pageref struct

2022-04-25 Thread Sam Ravnborg
Hi Thomas, a little ramblings below. Just my thoughts while trying to understand the code - especially since I looked at it before. Sam On Mon, Apr 25, 2022 at 01:27:50PM +0200, Thomas Zimmermann wrote: > Store the per-page state for fbdev's deferred I/O in struct >

[PATCH v2 2/3] fbdev: Track deferred-I/O pages in pageref struct

2022-04-25 Thread Thomas Zimmermann
Store the per-page state for fbdev's deferred I/O in struct fb_deferred_io_pageref. Maintain a list of pagerefs for the pages that have to be written back to video memory. Update all affected drivers. As with pages before, fbdev acquires a pageref when an mmaped page of the framebuffer is being