From: Tony Lindgren Date: Tue, 16 Sep 2014 20:50:01 +0000 (-0700) Subject: pstore-ram: Allow optional mapping with pgprot_noncached X-Git-Tag: omap-for-v3.19/fixes-rc1~110^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=027bc8b08242c59e19356b4b2c189f2d849ab660;p=pandora-kernel.git pstore-ram: Allow optional mapping with pgprot_noncached On some ARMs the memory can be mapped pgprot_noncached() and still be working for atomic operations. As pointed out by Colin Cross , in some cases you do want to use pgprot_noncached() if the SoC supports it to see a debug printk just before a write hanging the system. On ARMs, the atomic operations on strongly ordered memory are implementation defined. So let's provide an optional kernel parameter for configuring pgprot_noncached(), and use pgprot_writecombine() by default. Cc: Arnd Bergmann Cc: Rob Herring Cc: Randy Dunlap Cc: Anton Vorontsov Cc: Colin Cross Cc: Olof Johansson Cc: Russell King Cc: stable@vger.kernel.org Acked-by: Kees Cook Signed-off-by: Tony Lindgren Signed-off-by: Tony Luck --- Reading git-diff-tree failed