RE: [PATCH 4/5 v5] arc: Add our own implementation of fb_pgprotect()
From: Alexey Brodkin
Date: Tue Apr 05 2016 - 14:37:24 EST
Hi Vineet,
> From: Alexey Brodkin [abrodkin@xxxxxxxxxxxx]
> Sent: Monday, March 28, 2016 2:36 PM
> To: dri-devel@xxxxxxxxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx; Alexey Brodkin; Vineet Gupta; linux-snps-arc@xxxxxxxxxxxxxxxxxxx
> Subject: [PATCH 4/5 v5] arc: Add our own implementation of fb_pgprotect()
>
> During mmaping of frame-buffer pages to user-space
> fb_protect() is called to set proper page settings.
>
> In case of ARC we need to mark pages that are mmaped to
> user as uncached because of 2 reasons:
> * Huge amount of data if passing through data cache will
> thrash cache a lot making cache almost useless for other
> less traffic hungry processes.
> * Data written by user in FB will be immediately available for
> hardware (such as PGU etc) without requirements to flush data
> cache regularly.
>
> Signed-off-by: Alexey Brodkin <abrodkin@xxxxxxxxxxxx>
> Cc: Vineet Gupta <vgupta@xxxxxxxxxxxx>
> Cc: linux-snps-arc@xxxxxxxxxxxxxxxxxxx
Could you please pick up this patch in your tree so in DRM-related series won't be external dependencies any longer?
-Alexey