All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yong Zhang <yong.zhang0@gmail.com>
To: werner <w.landgraf@ru.ru>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 3.1-rc5 dont boot
Date: Fri, 9 Sep 2011 11:13:23 +0800	[thread overview]
Message-ID: <20110909031323.GE18249@zhy> (raw)
In-Reply-To: <web-603681984@zbackend1.aha.ru>

On Thu, Sep 08, 2011 at 05:54:09PM -0400, werner wrote:
> Thank you.
> At the moment, kernel.org don't open here. And by google for "git
> cherry-pick b4ca46e4e82a" I dont find it somewhere else. Perhaps you
> could e-mail me the patch. Then I apply it, and recompile -rc1 and
> try to boot again with that.

Fortunately it residents on my local PC

---
commit b4ca46e4e82a0a5976fe5eab85be585d75f8202f
Author: Andy Lutomirski <luto@mit.edu>
Date:   Thu Aug 25 16:10:33 2011 -0400

    x86-32: Fix boot with CONFIG_X86_INVD_BUG
    
    entry_32.S contained a hardcoded alternative instruction entry, and the
    format changed in commit 59e97e4d6fbc ("x86: Make alternative
    instruction pointers relative").
    
    Replace the hardcoded entry with the altinstruction_entry macro.  This
    fixes the 32-bit boot with CONFIG_X86_INVD_BUG=y.
    
    Reported-and-tested-by: Arnaud Lacombe <lacombar@gmail.com>
    Signed-off-by: Andy Lutomirski <luto@mit.edu>
    Cc: Peter Anvin <hpa@zytor.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
index 5c1a9197..f3f6f53 100644
--- a/arch/x86/kernel/entry_32.S
+++ b/arch/x86/kernel/entry_32.S
@@ -54,6 +54,7 @@
 #include <asm/ftrace.h>
 #include <asm/irq_vectors.h>
 #include <asm/cpufeature.h>
+#include <asm/alternative-asm.h>
 
 /* Avoid __ASSEMBLER__'ifying <linux/audit.h> just for this.  */
 #include <linux/elf-em.h>
@@ -873,12 +874,7 @@ ENTRY(simd_coprocessor_error)
 661:	pushl_cfi $do_general_protection
 662:
 .section .altinstructions,"a"
-	.balign 4
-	.long 661b
-	.long 663f
-	.word X86_FEATURE_XMM
-	.byte 662b-661b
-	.byte 664f-663f
+	altinstruction_entry 661b, 663f, X86_FEATURE_XMM, 662b-661b, 664f-663f
 .previous
 .section .altinstr_replacement,"ax"
 663:	pushl $do_simd_coprocessor_error

  reply	other threads:[~2011-09-09  3:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08 21:54 3.1-rc5 dont boot werner
2011-09-09  3:13 ` Yong Zhang [this message]
2011-09-09  8:08 ` Américo Wang
  -- strict thread matches above, loose matches on Subject: below --
2011-09-10 20:37 werner
2011-09-10 20:58 ` Linus Torvalds
2011-09-08  3:06 werner
2011-09-08  3:44 ` Linus Torvalds
2011-09-07 13:28 werner
2011-09-07 14:45 ` Linus Torvalds

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=20110909031323.GE18249@zhy \
    --to=yong.zhang0@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=w.landgraf@ru.ru \
    /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.