From: "H. Peter Anvin" <h.peter.anvin@intel.com>
To: Shaohua Li <shaohua.li@intel.com>
Cc: Markus Trippelsdorf <markus@trippelsdorf.de>,
"Lu, Hongjiu" <hongjiu.lu@intel.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>, Sam Ravnborg <sam@ravnborg.org>
Subject: Re: Linux 2.6.38-rc1 doesn't boot
Date: Wed, 19 Jan 2011 00:56:57 -0800 [thread overview]
Message-ID: <4D36A759.60704@intel.com> (raw)
In-Reply-To: <1295424766.1949.879.camel@sli10-conroe>
[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]
On 01/19/2011 12:12 AM, Shaohua Li wrote:
> On Wed, 2011-01-19 at 15:49 +0800, Markus Trippelsdorf wrote:
>> On 2011.01.19 at 08:39 +0100, Markus Trippelsdorf wrote:
>>> On 2011.01.18 at 15:54 -0800, Linus Torvalds wrote:
>>>>
>>>> And as usual, report any regressions to the lists and the appropriate
>>>> authorities.
>>>
>>> Unfortunately 2.6.38-rc1 doesn't even boot on my machine (amd64).
>>> This is caused by 86b1e8dd83cbb0f:
>>> x86: Make relocatable kernel work with new binutils
>>>
>>> Reverting the commit solves the problem.
>>
>> I'm running the latest binutils:
>> GNU ld (Linux/GNU Binutils) 2.21.51.0.5.20110104
> Hmm, reproduce it here with binutils-2.21.51.0.6-20110118
> but not with GNU ld (GNU Binutils for Ubuntu) 2.20.51-system.20100908
> I got this in system.map: ffffffff03514880 D jiffies_64, which looks
> wrong.
> looks binutils changed something again.
> Have no idea, CC Lu Hongjiu.
>
Either way... the whole jiffies vs jiffies_64 thing is kind of
ridiculous. We should be able to do it in a completely
architecture-generic way by either making it a union(!) (with "jiffies"
and "jiffies_64" presumably would be #defines, or we do a global replace
across the tree), moving the variable declaration itself to a .S file
(which would only have data components and therefore would be
arch-generic) or doing something like the attached (untested since it is
1 am here) patch.
This should let us get rid of the hacks in *all* the architectures, not
just x86.
-hpa
[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 586 bytes --]
diff --git a/kernel/timer.c b/kernel/timer.c
index 43ca993..cb4db47 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -41,6 +41,7 @@
#include <linux/sched.h>
#include <linux/slab.h>
+#include <asm/byteorder.h>
#include <asm/uaccess.h>
#include <asm/unistd.h>
#include <asm/div64.h>
@@ -54,6 +55,12 @@ u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
EXPORT_SYMBOL(jiffies_64);
+#if defined(__LITTLE_ENDIAN) || (BITS_PER_LONG >= 64)
+asm("jiffies = jiffies_64");
+#else
+asm("jiffies = jiffies_64 + 4");
+#endif
+
/*
* per-CPU timer vector definitions:
*/
next prev parent reply other threads:[~2011-01-19 8:57 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 23:54 Linux 2.6.38-rc1 Linus Torvalds
2011-01-19 2:07 ` Linus Torvalds
2011-01-19 3:42 ` Justin Mattock
2011-01-19 3:53 ` Linus Torvalds
2011-01-19 4:05 ` Justin Mattock
2011-01-19 5:10 ` nobody
2011-01-19 5:42 ` Linus Torvalds
2011-01-19 5:56 ` Linus Torvalds
2011-01-19 18:07 ` Steven Rostedt
2011-01-19 18:26 ` Linus Torvalds
2011-01-21 3:23 ` tag&track [Re: Linux 2.6.38-rc1] nobody
2011-01-21 8:24 ` Alexey Dobriyan
2011-01-23 8:13 ` Linux 2.6.38-rc1 Török Edwin
2011-01-19 7:39 ` Linux 2.6.38-rc1 doesn't boot Markus Trippelsdorf
2011-01-19 7:46 ` Shaohua Li
2011-01-19 7:55 ` Markus Trippelsdorf
2011-01-19 7:49 ` Markus Trippelsdorf
2011-01-19 8:12 ` Shaohua Li
2011-01-19 8:56 ` H. Peter Anvin [this message]
2011-01-19 9:09 ` Ingo Molnar
2011-01-20 2:08 ` Shaohua Li
2011-01-20 3:32 ` Lu, Hongjiu
2011-01-20 11:25 ` Ingo Molnar
2011-01-20 15:08 ` Anvin, H Peter
2011-01-21 7:18 ` Shaohua Li
2011-01-21 7:55 ` Shaohua Li
2011-01-21 15:28 ` H. Peter Anvin
2011-01-21 15:37 ` Lu, Hongjiu
2011-01-21 21:09 ` Ingo Molnar
2011-01-19 9:33 ` [tip:x86/urgent] Revert "x86: Make relocatable kernel work with new binutils" tip-bot for Ingo Molnar
2011-01-20 4:59 ` Linux 2.6.38-rc1 doesn't boot Alexandre Courbot
2011-01-19 8:39 ` PPS parport boot lockup: INFO: HARDIRQ-READ-safe -> HARDIRQ-READ-unsafe lock order detected Ingo Molnar
2011-01-20 13:04 ` Alexander Gordeev
2011-01-21 14:44 ` Alexander Gordeev
2011-01-21 16:37 ` Linus Torvalds
2011-01-21 19:43 ` Ingo Molnar
2011-01-24 23:28 ` Alexander Gordeev
2011-01-24 23:46 ` [PATCH] pps: claim parallel port exclusively Alexander Gordeev
2011-01-25 0:19 ` Ingo Molnar
2011-01-24 15:00 ` PPS parport boot lockup: INFO: HARDIRQ-READ-safe -> HARDIRQ-READ-unsafe lock order detected Alexander Gordeev
2011-01-24 15:12 ` [PATCH] parport: make lockdep happy with waitlist_lock Alexander Gordeev
2011-01-24 15:28 ` Ingo Molnar
2011-01-24 15:33 ` Alexander Gordeev
2011-01-19 12:02 ` percpu related boot crash on x86 (was: Linux 2.6.38-rc1) Ingo Molnar
2011-01-19 12:44 ` Tejun Heo
2011-01-19 12:48 ` Peter Zijlstra
2011-01-19 12:56 ` Pekka Enberg
2011-01-19 13:12 ` Peter Zijlstra
2011-01-19 13:13 ` Tejun Heo
2011-01-19 20:53 ` Ingo Molnar
2011-01-19 23:11 ` Ingo Molnar
2011-01-20 8:31 ` percpu related boot crash on x86 Pekka Enberg
2011-01-20 10:47 ` Peter Zijlstra
2011-01-20 11:12 ` Eric Dumazet
2011-01-20 11:19 ` Tejun Heo
2011-01-20 11:06 ` [PATCH 1/2] lockdep: move early boot local IRQ enable/disable status to init/main.c Tejun Heo
2011-01-20 11:07 ` [PATCH 2/2] smp: allow on_each_cpu() to be called while early_boot_irqs_disabled " Tejun Heo
2011-01-20 20:22 ` [tip:core/urgent] smp: Allow " tip-bot for Tejun Heo
2011-01-20 11:11 ` [PATCH 1/2] lockdep: move early boot local IRQ enable/disable " Tejun Heo
2011-01-20 11:23 ` Peter Zijlstra
2011-01-20 11:26 ` Tejun Heo
2011-01-20 11:30 ` Pekka Enberg
2011-01-20 11:38 ` Peter Zijlstra
2011-01-20 12:00 ` Ingo Molnar
2011-01-20 12:20 ` [PATCH UPDATED " Tejun Heo
2011-01-20 11:51 ` [PATCH " Ingo Molnar
2011-01-20 20:21 ` [tip:core/urgent] lockdep: Move " tip-bot for Tejun Heo
2011-01-19 21:40 ` Linux 2.6.38-rc1 Alan Cox
2011-01-21 15:30 ` Aaro Koskinen
-- strict thread matches above, loose matches on Subject: below --
2011-01-19 8:32 Linux 2.6.38-rc1 doesn't boot Sedat Dilek
2011-01-19 12:31 ` H.J. Lu
2011-01-19 14:03 ` Jeff Chua
2011-01-21 16:06 Anvin, H Peter
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=4D36A759.60704@intel.com \
--to=h.peter.anvin@intel.com \
--cc=hongjiu.lu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=markus@trippelsdorf.de \
--cc=mingo@elte.hu \
--cc=sam@ravnborg.org \
--cc=shaohua.li@intel.com \
--cc=torvalds@linux-foundation.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 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).