lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 9 Jan 2016 02:05:31 +0000
From:	"Maciej W. Rozycki" <macro@...tec.com>
To:	Ralf Baechle <ralf@...ux-mips.org>
CC:	Brian Norris <computersforpeace@...il.com>,
	Rafał Miłecki <zajec5@...il.com>,
	<linux-mips@...ux-mips.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] MIPS: io.h: Define `ioremap_cache'

Signed-off-by: Maciej W. Rozycki <macro@...tec.com>
---
Ralf,

 Please try and push it ASAP, with 4.5 if possible.  This should be an 
obviously correct internal API consistency fix, along the lines of the 
recent `ioremap_uc' addition.  NB, there's a fallback `ioremap_cache' 
implementation in kernel/memremap.c redirecting to plain `ioremap', but I 
think we should simply do the right thing rather than relying on that 
code.

 Thanks,

  Maciej

linux-mips-ioremap-cache.diff
Index: linux-sfr-test/arch/mips/include/asm/io.h
===================================================================
--- linux-sfr-test.orig/arch/mips/include/asm/io.h	2015-10-07 19:33:20.000000000 +0100
+++ linux-sfr-test/arch/mips/include/asm/io.h	2016-01-09 01:32:14.432587000 +0000
@@ -275,6 +275,7 @@ static inline void __iomem * __ioremap_m
  */
 #define ioremap_cachable(offset, size)					\
 	__ioremap_mode((offset), (size), _page_cachable_default)
+#define ioremap_cache ioremap_cachable
 
 /*
  * These two are MIPS specific ioremap variant.	 ioremap_cacheable_cow

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ