From mboxrd@z Thu Jan 1 00:00:00 1970 From: rabin@rab.in (Rabin Vincent) Date: Sun, 2 Jan 2011 10:50:46 +0530 Subject: [PATCH] mmci: call flush_dcache_page() outside of atomic kmap In-Reply-To: References: <1293878168-12741-1-git-send-email-rabin@rab.in> <20110101120539.GA25924@n2100.arm.linux.org.uk> <20110101221309.GA2653@n2100.arm.linux.org.uk> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sun, Jan 2, 2011 at 10:41 AM, Rabin Vincent wrote: > On Sun, Jan 2, 2011 at 10:08 AM, Rabin Vincent wrote: >> On Sun, Jan 2, 2011 at 3:43 AM, Russell King - ARM Linux >> wrote: >>> Err, hang on. ?The sg iter API uses flush_kernel_dcache_page(), not >>> flush_dcache_page(). ?flush_kernel_dcache_page() is not expected to >>> touch userspace mappings. >>> >>> On ARM, we don't implement flush_kernel_dcache_page() because it's >>> not required (see commit f8b63c1.) ?Essentially, because we now consider >>> freshly created page cache pages dirty, we always flush them before we >>> map them into userspace, so a call to flush_kernel_dcache_page() has >>> nothing to do. >> >> This email thread was never about the flush_kernel_dcache_page() in the >> sg_miter API. ?It's about the flush_dcache_page() in MMCI. > > This flush_dcache_page() can also be removed because of what you mention > above, right?