linux-mips
[Top] [All Lists]

flush_kernel_vmap_range() invalidate_kernel_vmap_range() API not exists

To: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: flush_kernel_vmap_range() invalidate_kernel_vmap_range() API not exists for MIPS
From: naveen yadav <yad.naveen@gmail.com>
Date: Fri, 25 Mar 2011 14:38:13 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=rYD40/jETXEeKKLbGAEn4Q8JhIk7GnJ4NgnW6JikXiE=; b=TtPZP0xkOuM4X5lp3IvWEf7gy6aJStSwwTHb9XlaDp0bT6iLyZe9JW7TV25wSHl3YP 2cVL1mmRSm8uKK1YEI8dGLMJ140q5f0st6i4BWOkmQDmqbrU5fvZClfVpT2JQi4LsKk5 gg7ZIG1YS9Ct+GF2HAou/e0rl4NAUF6cOwfd0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=dsN0S/CeHxxFd0MEn9w+tSqDfkuCG8XiKCdVMySRQOuQuzxpiNEwwOahiHShlt5K29 +dh4HVf9ScpzTGi5pRd555tw9tTPPWiLGnbGlu3H0rIby7B6UNIG/8JX46y6mEOq6b8P gGt5R22RckTwTet7RdhlMR7zR6V2dQBYSpZWE=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Dear All,

We are working on 2.6.35.9 linux kernel on MIPS 34kce core and our
cache is VIVT having cache aliasing .
When I check the implementation on ARM I can check the implemenation
exists , but there is not similar implementation exists on MIPS.
These API's are used by XFS module:

static inline void flush_kernel_vmap_range(void *vaddr, int size)
static inline void invalidate_kernel_vmap_range(void *vaddr, int size)
static inline void flush_kernel_dcache_page(struct page *page)


I can check implementation on ARM at
http://git.kernel.org/?p=linux/kernel/git/longterm/linux-2.6.34.y.git;a=commit;h=252a9afff76097667429b583e8b5b170b47665a4
 and
----------------------------------------------------------------------------------------------------------------------------
--- a/arch/arm/include/asm/cacheflush.h+++ b/arch/arm/include/asm/cacheflush.h
@@ -432,6 +432,16
 @@ static inline void __flush_icache_all(void)
  : "r" (0)); #endif }
+static inline void flush_kernel_vmap_range(void *addr, int size)
+{
+       if ((cache_is_vivt() || cache_is_vipt_aliasing()))
+         __cpuc_flush_dcache_area(addr, (size_t)size);
+}
+static inline void invalidate_kernel_vmap_range(void *addr, int size)
+{
+       if ((cache_is_vivt() || cache_is_vipt_aliasing()))
+         __cpuc_flush_dcache_area(addr, (size_t)size);
+}
-------------------------------------------------------------------------------------------------------------------------------------


http://git.kernel.org/?p=linux/kernel/git/longterm/linux-2.6.34.y.git;a=blobdiff;f=arch/arm/include/asm/cacheflush.h;h=1a711ea8418b6045c581a576caa3f85496ee2673;hp=bb7d695f3900f70d635a3597cd19d7cb68c0d732;hb=73be1591579084a8103a7005dd3172f3e9dd7362;hpb=44b7532b8b464f606053562400719c9c21276037

======================================================
+#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
+static inline void flush_kernel_dcache_page(struct page *page)
+{
+       /* highmem pages are always flushed upon kunmap already */
+       if ((cache_is_vivt() || cache_is_vipt_aliasing()) && !PageHighMem(page))
+               __cpuc_flush_dcache_page(page_address(page));
+}
+
==========================================================


Is there any similar API exists for MIPS.  I want to use for XFS these API's

thanks

<Prev in Thread] Current Thread [Next in Thread>