From: Jack Steiner <steiner@sgi.com>
To: mingo@elte.hu, tglx@linutronix.de, yhlu.kernel@gmail.com
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 8/8] x86_64: V2 Support for new UV apic
Date: Sun, 30 Mar 2008 21:02:07 -0500 [thread overview]
Message-ID: <20080331020207.GA20605@sgi.com> (raw)
In-Reply-To: <20080328191216.GA16455@sgi.com>
Fix double-shift of apicid in previous patch.
Signed-off-by: Jack Steiner <steiner@sgi.com>
---
The code is clearly wrong. I booted on an 8p AMD box and
had no problems. Apparently the kernel (at least basic booting) is
not too sensitive to incorrect apicids being returned. Most
critical-to-boot code must use apicids from the ACPI tables.
arch/x86/kernel/genapic_64.c | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
Index: linux/arch/x86/kernel/genapic_64.c
===================================================================
--- linux.orig/arch/x86/kernel/genapic_64.c 2008-03-30 20:37:18.000000000 -0500
+++ linux/arch/x86/kernel/genapic_64.c 2008-03-30 20:48:30.000000000 -0500
@@ -98,8 +98,6 @@ unsigned int read_apic_id(void)
id = apic_read(APIC_ID);
if (uv_system_type >= UV_X2APIC)
id |= __get_cpu_var(x2apic_extra_bits);
- else
- id = (id >> 24) & 0xFFu;;
return id;
}
WARNING: multiple messages have this Message-ID (diff)
From: Jack Steiner <steiner@sgi.com>
To: mingo@elte.hu, tglx@linutronix.de, yhlu.kernel@gmail.com
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 8/8] x86_64: V2 Support for new UV apic
Date: Sun, 30 Mar 2008 21:02:07 -0500 [thread overview]
Message-ID: <20080331020207.GA20605@sgi.com> (raw)
In-Reply-To: <20080328191216.GA16455@sgi.com>
Fix double-shift of apicid in previous patch.
Signed-off-by: Jack Steiner <steiner@sgi.com>
---
The code is clearly wrong. I booted on an 8p AMD box and
had no problems. Apparently the kernel (at least basic booting) is
not too sensitive to incorrect apicids being returned. Most
critical-to-boot code must use apicids from the ACPI tables.
arch/x86/kernel/genapic_64.c | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
Index: linux/arch/x86/kernel/genapic_64.c
===================================================================
--- linux.orig/arch/x86/kernel/genapic_64.c 2008-03-30 20:37:18.000000000 -0500
+++ linux/arch/x86/kernel/genapic_64.c 2008-03-30 20:48:30.000000000 -0500
@@ -98,8 +98,6 @@ unsigned int read_apic_id(void)
id = apic_read(APIC_ID);
if (uv_system_type >= UV_X2APIC)
id |= __get_cpu_var(x2apic_extra_bits);
- else
- id = (id >> 24) & 0xFFu;;
return id;
}
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-03-31 2:02 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 19:12 [PATCH 8/8] x86_64: Support for new UV apic Jack Steiner
2008-03-28 19:12 ` Jack Steiner
2008-03-28 20:15 ` Ingo Molnar
2008-03-28 20:15 ` Ingo Molnar
2008-03-28 20:24 ` Jack Steiner
2008-03-28 20:24 ` Jack Steiner
2008-03-28 20:45 ` Ingo Molnar
2008-03-28 20:45 ` Ingo Molnar
2008-03-28 21:08 ` Jack Steiner
2008-03-28 21:08 ` Jack Steiner
2008-03-30 23:22 ` Yinghai Lu
2008-03-30 23:22 ` Yinghai Lu
2008-03-31 1:33 ` Yinghai Lu
2008-03-31 1:33 ` Yinghai Lu
2008-03-31 2:12 ` Jack Steiner
2008-03-31 2:12 ` Jack Steiner
2008-03-31 2:23 ` Yinghai Lu
2008-03-31 2:23 ` Yinghai Lu
2008-03-31 2:26 ` Jack Steiner
2008-03-31 2:26 ` Jack Steiner
2008-03-31 2:29 ` Yinghai Lu
2008-03-31 2:29 ` Yinghai Lu
2008-03-31 2:40 ` Jack Steiner
2008-03-31 2:40 ` Jack Steiner
2008-03-31 2:06 ` Jack Steiner
2008-03-31 2:06 ` Jack Steiner
2008-03-31 2:13 ` Yinghai Lu
2008-03-31 2:13 ` Yinghai Lu
2008-03-31 2:23 ` Jack Steiner
2008-03-31 2:23 ` Jack Steiner
2008-03-31 2:27 ` Yinghai Lu
2008-03-31 2:27 ` Yinghai Lu
2008-03-31 2:31 ` Jack Steiner
2008-03-31 2:31 ` Jack Steiner
2008-03-31 2:02 ` Jack Steiner [this message]
2008-03-31 2:02 ` [PATCH 8/8] x86_64: V2 " Jack Steiner
2008-03-31 13:07 ` Ingo Molnar
2008-03-31 13:07 ` Ingo Molnar
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=20080331020207.GA20605@sgi.com \
--to=steiner@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=yhlu.kernel@gmail.com \
/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.