All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Remove unused /dev/oldmem interface
@ 2013-05-26  6:31 ` Zhang Yanfei
  0 siblings, 0 replies; 34+ messages in thread
From: Zhang Yanfei @ 2013-05-26  6:31 UTC (permalink / raw)
  To: Eric W. Biederman, Vivek Goyal, Andrew Morton, H. Peter Anvin,
	Simon Horman
  Cc: linux-kernel, kexec

/dev/oldmem provides the interface for us to access the "old memory" in
the dump-capture kernel. Unfortunately, no one actually uses this interface.

And this interface could actually cause some real problems if used on ia64
where the cached/uncached accesses are mixed. See the discussion from
the link: https://lkml.org/lkml/2013/4/12/386.

So Eric suggested that we should remove /dev/oldmem as an unused piece of
code.

Besides, we used a global variable saved_max_pfn to let the capture kernel
know the amount of memory that the previous kernel used. And for almost all
architectures (except x86. In x86, saved_max_pfn is used by detect_calgary()),
the only user of this variable is the read_oldmem interface of /dev/oldmem, so
also remove the setting for saved_max_pfn in those architectures.

-v2:
Keep /dev/oldmem and its number 12 in case this number will get reused in the
future. And mark it obsolete since /dev/oldmem will be removed from kernel.

Zhang Yanfei (7):
  /dev/oldmem: Remove this interface
  Documentation/devices.txt: Mark /dev/oldmem obsolete
  Documentation/kdump/kdump.txt: Remove /dev/oldmem description
  mips: Remove savemaxmem parameter setup
  powerpc: Remove savemaxmem parameter setup
  ia64: Remove setting for saved_max_pfn
  s390: Remove setting for saved_max_pfn

 Documentation/devices.txt        |    3 +-
 Documentation/kdump/kdump.txt    |   31 +++++--------------------
 arch/ia64/kernel/efi.c           |    5 ----
 arch/mips/kernel/crash_dump.c    |   10 --------
 arch/powerpc/kernel/crash_dump.c |   10 --------
 arch/s390/kernel/setup.c         |    4 ---
 drivers/char/mem.c               |   47 --------------------------------------
 7 files changed, 7 insertions(+), 103 deletions(-)


^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2013-05-29  7:48 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-26  6:31 [PATCH v2 0/7] Remove unused /dev/oldmem interface Zhang Yanfei
2013-05-26  6:31 ` Zhang Yanfei
2013-05-26  6:34 ` [PATCH v2 1/7] /dev/oldmem: Remove the interface Zhang Yanfei
2013-05-26  6:34   ` Zhang Yanfei
2013-05-26  6:36 ` [PATCH v2 2/7] Documentation/devices.txt: Mark /dev/oldmem obsolete Zhang Yanfei
2013-05-26  6:36   ` Zhang Yanfei
2013-05-27  1:46   ` HATAYAMA Daisuke
2013-05-27  1:46     ` HATAYAMA Daisuke
2013-05-27  1:54     ` Zhang Yanfei
2013-05-27  1:54       ` Zhang Yanfei
2013-05-27  2:16       ` HATAYAMA Daisuke
2013-05-27  2:16         ` HATAYAMA Daisuke
2013-05-28  6:17       ` Rob Landley
2013-05-28  6:17         ` Rob Landley
2013-05-28  6:25         ` Zhang Yanfei
2013-05-28  6:25           ` Zhang Yanfei
2013-05-28 17:26           ` Rob Landley
2013-05-28 17:26             ` Rob Landley
2013-05-28 17:35             ` H. Peter Anvin
2013-05-28 17:35               ` H. Peter Anvin
2013-05-28 22:29   ` Eric W. Biederman
2013-05-28 22:29     ` Eric W. Biederman
2013-05-29  7:45     ` Zhang Yanfei
2013-05-29  7:45       ` Zhang Yanfei
2013-05-26  6:38 ` [PATCH v2 3/7] Documentation/kdump/kdump.txt: Remove /dev/oldmem description Zhang Yanfei
2013-05-26  6:38   ` Zhang Yanfei
2013-05-26  6:40 ` [PATCH v2 4/7] mips: Remove savemaxmem parameter setup Zhang Yanfei
2013-05-26  6:40   ` Zhang Yanfei
2013-05-26  6:42 ` [PATCH v2 5/7] powerpc: " Zhang Yanfei
2013-05-26  6:42   ` Zhang Yanfei
2013-05-26  6:44 ` [PATCH v2 6/7] ia64: Remove setting for saved_max_pfn Zhang Yanfei
2013-05-26  6:44   ` Zhang Yanfei
2013-05-26  6:45 ` [PATCH v2 7/7] s390: " Zhang Yanfei
2013-05-26  6:45   ` Zhang Yanfei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.