All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Simon Horman <horms@verge.net.au>
Cc: kexec mailing list <kexec@lists.infradead.org>
Subject: [PATCH] Increase kernel text size for x86_64
Date: Wed, 12 Aug 2009 09:41:23 +0200	[thread overview]
Message-ID: <4A827223.8090907@suse.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]

Hi all,

I cannot load a x86_64 kernel with kexec on 2.6.31; the error message is:

Can't find kernel text map area from kcore
Cannot load /boot/vmlinuz

Digging through the source I found a mismatch between the assumed
kernel text size; kexec has:

#define KERNEL_TEXT_SIZE  (40UL*1024*1024)

but on the kernel side we have:

include/asm/page_64_types.h:
#define KERNEL_IMAGE_SIZE   (512 * 1024 * 1024)

And, indeed, changing the definition in kexec-tools to the kernel one
fixed the problem.

Not sure if this has been reported before, if so please ignore
the noise.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)

[-- Attachment #2: kexec-tools-increase-kernel-text-size --]
[-- Type: text/plain, Size: 566 bytes --]

diff --git a/kexec/arch/x86_64/crashdump-x86_64.h b/kexec/arch/x86_64/crashdump-x86_64.h
index 9f4dee9..0e83527 100644
--- a/kexec/arch/x86_64/crashdump-x86_64.h
+++ b/kexec/arch/x86_64/crashdump-x86_64.h
@@ -11,7 +11,7 @@ int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline,
 #define MAXMEM           0x3fffffffffffUL
 
 /* Kernel text size */
-#define KERNEL_TEXT_SIZE  (40UL*1024*1024)
+#define KERNEL_TEXT_SIZE  (512UL*1024*1024)
 
 #define CRASH_MAX_MEMMAP_NR	(KEXEC_MAX_SEGMENTS + 1)
 #define CRASH_MAX_MEMORY_RANGES	(MAX_MEMORY_RANGES + 2)

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

             reply	other threads:[~2009-08-12  7:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-12  7:41 Hannes Reinecke [this message]
2009-08-13  0:40 ` [PATCH] Increase kernel text size for x86_64 Simon Horman
2009-08-13  8:12   ` Hannes Reinecke
2009-08-13  8:21     ` Simon Horman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A827223.8090907@suse.de \
    --to=hare@suse.de \
    --cc=horms@verge.net.au \
    --cc=kexec@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.