linux-ia64.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Initial Kexec patches
@ 2016-04-14 19:59 Russell King - ARM Linux
  2016-04-14 20:00 ` [PATCH 1/3] kexec: don't invoke OOM-killer for control page allocation Russell King
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: Russell King - ARM Linux @ 2016-04-14 19:59 UTC (permalink / raw)
  To: Eric Biederman; +Cc: Fenghua Yu, kexec, linux-ia64, linux-kernel, Tony Luck

Eric,

Here are some initial patches from my stack to bring functional kexec
support to the TI Keystone 2 platform.  These are relatively independent
of that work, but I believe are useful changes in their own regard.
Each patch is independent of each other; these do not really comprise
a strict series.

The first fixes an obscure problem - if we try to allocate the control
page, and we're unable to allocate a page within the memory region we
want, we end up killing processes, trying to gain that page.  In the
case where there is no memory located within the desired range, this
results in the OOM killer killing off many processes rather than a
graceful failure.  The patch changes the behaviour to allow a graceful
failure instead without invoking the OOM killer.

The second patch fixes a missing check in the kexec code, where the
user could supply a start and size address for a segment which causes
the calculation to wrap.  Eg, the case where segment[0].mem = 0xffff0000,
segment[0].memsz = 0x10000 would pass this check.  This patch adds an
explicit check for cases such as these.

The third patch allows the vmcoreinfo note data to be located above
4GB in physical memory space.  Since kexec tools only use this value
when opening /dev/mem, having this located above 4GB physical is not
a problem - kexec tools even expect this to potentially be a 64-bit
value already.  Making this change means there is one less area which
becomes Keystone 2 specific.

 arch/ia64/kernel/machine_kexec.c | 2 +-
 include/linux/kexec.h            | 4 ++--
 kernel/kexec_core.c              | 4 +++-
 kernel/ksysfs.c                  | 4 ++--
 4 files changed, 8 insertions(+), 6 deletions(-)

Thanks.

-- 
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

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

end of thread, other threads:[~2016-04-29 10:45 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14 19:59 [PATCH 0/3] Initial Kexec patches Russell King - ARM Linux
2016-04-14 20:00 ` [PATCH 1/3] kexec: don't invoke OOM-killer for control page allocation Russell King
2016-04-18  5:32   ` Baoquan He
2016-04-18  8:39     ` Russell King - ARM Linux
2016-04-18 10:12       ` Baoquan He
2016-04-28  9:53         ` Baoquan He
2016-04-14 20:00 ` [PATCH 2/3] kexec: ensure user memory sizes do not wrap Russell King
2016-04-18  5:35   ` Baoquan He
2016-04-18  8:37     ` Russell King - ARM Linux
2016-04-18 10:17       ` Baoquan He
2016-04-28  9:56   ` Baoquan He
2016-04-28 11:07   ` Minfei Huang
2016-04-28 12:22     ` Russell King - ARM Linux
2016-04-29  9:32       ` Minfei Huang
2016-04-29  9:30         ` Russell King - ARM Linux
2016-04-29 10:45           ` Minfei Huang
2016-04-14 20:00 ` [PATCH 3/3] kexec: arrange for paddr_vmcoreinfo_note() to return phys_addr_t Russell King
2016-04-18  5:38   ` Baoquan He
2016-04-18  8:36     ` Russell King - ARM Linux
2016-04-18 10:32       ` Baoquan He
2016-04-18 10:52         ` Russell King - ARM Linux
2016-04-18 11:28           ` Baoquan He
2016-04-28  8:56             ` Russell King - ARM Linux
2016-04-28  9:59   ` Baoquan He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).