[PATCH 4/5 v5] arc: Add our own implementation of fb_pgprotect()

2016-04-05 Thread Alexey Brodkin
Hi Vineet, > From: Alexey Brodkin [abrodkin at synopsys.com] > Sent: Monday, March 28, 2016 2:36 PM > To: dri-devel at lists.freedesktop.org > Cc: linux-kernel at vger.kernel.org; Alexey Brodkin; Vineet Gupta; > linux-snps-arc at lists.infradead.org > Subject: [PATCH 4/5 v5

[PATCH 4/5 v5] arc: Add our own implementation of fb_pgprotect()

2016-03-28 Thread Alexey Brodkin
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