arch: Set IORESOURCE_SYSTEM_RAM flag for System RAM
authorToshi Kani <toshi.kani@hpe.com>
Tue, 26 Jan 2016 20:57:22 +0000 (21:57 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 30 Jan 2016 08:49:57 +0000 (09:49 +0100)
commit35d98e93fe6a7ab612f6b389ce42c1dc135d6eef
treefe2d32527ed270c65c2137b3256818cdbc4b467b
parent03cb525eb25018cf5f3da01d0f1391fc8b37805a
arch: Set IORESOURCE_SYSTEM_RAM flag for System RAM

Set IORESOURCE_SYSTEM_RAM in flags of resource ranges with
"System RAM", "Kernel code", "Kernel data", and "Kernel bss".

Note that:

 - IORESOURCE_SYSRAM (i.e. modifier bit) is set in flags when
   IORESOURCE_MEM is already set. IORESOURCE_SYSTEM_RAM is defined
   as (IORESOURCE_MEM|IORESOURCE_SYSRAM).

 - Some archs do not set 'flags' for children nodes, such as
   "Kernel code".  This patch does not change 'flags' in this
   case.

Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Luis R. Rodriguez <mcgrof@suse.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Toshi Kani <toshi.kani@hp.com>
Cc: linux-arch@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mips@linux-mips.org
Cc: linux-mm <linux-mm@kvack.org>
Cc: linux-parisc@vger.kernel.org
Cc: linux-s390@vger.kernel.org
Cc: linux-sh@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: sparclinux@vger.kernel.org
Link: http://lkml.kernel.org/r/1453841853-11383-7-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
13 files changed:
arch/arm/kernel/setup.c
arch/arm64/kernel/setup.c
arch/avr32/kernel/setup.c
arch/m32r/kernel/setup.c
arch/mips/kernel/setup.c
arch/parisc/mm/init.c
arch/powerpc/mm/mem.c
arch/s390/kernel/setup.c
arch/score/kernel/setup.c
arch/sh/kernel/setup.c
arch/sparc/mm/init_64.c
arch/tile/kernel/setup.c
arch/unicore32/kernel/setup.c