All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Latest bk can NOT compile on x86_64
@ 2005-05-31  6:37 Nakajima, Jun
  2005-05-31 15:16 ` David F Barrera
  0 siblings, 1 reply; 14+ messages in thread
From: Nakajima, Jun @ 2005-05-31  6:37 UTC (permalink / raw)
  To: xen-devel

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

Nakajima, Jun wrote:
> Nakajima, Jun wrote:
>> Actually xen itself is broken (again) too on x86-64. It dies like the
>> below. I think the breakage happened very recently (today, yesterday,
>> or the day before yesterday).
> 
> Did a quick debugging. It's failing at phys_pkg_id (it's NULL) in
> detect_ht because genacpi is not set yet when this is called. Putting
> "apic=default" makes it boot. I think it should be initialized as
> "default".   

Attached is a patch to this.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>

Jun
---
Intel Open Source Technology Center

[-- Attachment #2: genapic_probe.patch --]
[-- Type: application/octet-stream, Size: 811 bytes --]

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/05/30 23:13:49-07:00 jnakajim@los-vmm64.sc.intel.com 
#   Set genapic to genapic to apic_default as it's used before it's probled
# 
# xen/arch/x86/genapic/probe.c
#   2005/05/30 23:09:43-07:00 jnakajim@los-vmm64.sc.intel.com +1 -1
#   Set genapic to genapic to apic_default as it's used before it's probled.
# 
diff -Nru a/xen/arch/x86/genapic/probe.c b/xen/arch/x86/genapic/probe.c
--- a/xen/arch/x86/genapic/probe.c	2005-05-30 23:14:05 -07:00
+++ b/xen/arch/x86/genapic/probe.c	2005-05-30 23:14:05 -07:00
@@ -19,7 +19,7 @@
 extern struct genapic apic_es7000;
 extern struct genapic apic_default;
 
-struct genapic *genapic;
+struct genapic *genapic = &apic_default;
 
 struct genapic *apic_probe[] __initdata = { 
 	&apic_summit,

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

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Latest bk can NOT compile on x86_64
@ 2005-05-31 21:35 Nakajima, Jun
  0 siblings, 0 replies; 14+ messages in thread
From: Nakajima, Jun @ 2005-05-31 21:35 UTC (permalink / raw)
  To: David F Barrera; +Cc: xen-devel

David F Barrera wrote:
> On Tue, 2005-05-31 at 12:32 -0700, Nakajima, Jun wrote:
>> David F Barrera wrote:
>>> OK. This is the first time that I've been able to build Xen on SLES
>>> 9 x86_64. When attempting to boot, Dom0 crashes. Although there is
>>> already a defect open (Bugzilla #26) for a failure to boot Dom0 on
>>> x86_64 on FC4, I am opening a new defect (Bugzilla #65) since the
>>> failures appear different. 
>>> 
>>> (XEN) Scrubbing Free RAM: ...........done.
>>> (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
>>> input to Xen). (XEN) CPU:    0
>>> (XEN) EIP:    e030:[<0000000000000000>]
>>> (XEN) EFLAGS: 0000000000010282
>>> (XEN) rax: 00000000ffffffea   rbx: 00000000105f5000   rcx:
>>> 0000000000000000 rdx: 0000000000000000
>>> (XEN) rsi: 0000000000000001   rdi: ffffffff804ebf40   rbp:
>>> 0000000000000808 rsp: ffffffff804ebf08
>>> (XEN) r8:  0000000000000000   r9:  0000000000000000   r10:
>>> 0000000000007ff0 r11: 0000000000000282
>>> (XEN) r12: 0000000000000000   r13: ffffffff805f4000   r14:
>>> ffffffff80102000 r15: ffffffff804ebfb0
>>> (XEN) Xen stack trace from rsp=ffffffff804ebf08:
>>> (XEN)    ffffffff80118d9d 0000000000000202 ffffffff80118da1
>>> 000000000001e030 0000000000010282 ffffffff804ebf40 000000000000e02b
>>> 00000000105f5808 (XEN)    0000000010101065 0000000000000000
>>> ffffffff80115d08 0000000000000000 0000000000000000 ffffffff804d8080
>>> ffffffff80 on CPU0: Domain 0 crashed!
>>> ****************************************
>>> 
>> 
>> This is different from the other ones, but we need more hints as I
>> don't see this problem on our machines. For example, can you show the
>> instructions around 0xffffffff80118d9d? Please do like
>> 1. objdump -d vmlinux > out (in linux-2.6.11-xen0)
>> 2. search ffffffff80118d9d in 'out'
>> 3. cut and send the disassembled instructions around
>> ffffffff80118d9d. 
> OK. Here they are:(ffffffff80118d9d is in the middle)

Looks like xen_l1_entry_update is failing because xen did not like the
page. 

Can you do the same thing with 0xffffffff80115d08?

Jun
---
Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Latest bk can NOT compile on x86_64
@ 2005-05-31 19:32 Nakajima, Jun
  2005-05-31 20:33 ` David F Barrera
  0 siblings, 1 reply; 14+ messages in thread
From: Nakajima, Jun @ 2005-05-31 19:32 UTC (permalink / raw)
  To: David F Barrera, Keir Fraser; +Cc: xen-devel

David F Barrera wrote:
> OK. This is the first time that I've been able to build Xen on SLES 9
> x86_64. When attempting to boot, Dom0 crashes. Although there is
> already 
> a defect open (Bugzilla #26) for a failure to boot Dom0 on x86_64 on
> FC4, I am opening a new defect (Bugzilla #65) since the failures
> appear different.
> 
> (XEN) Scrubbing Free RAM: ...........done.
> (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
> input to Xen). (XEN) CPU:    0
> (XEN) EIP:    e030:[<0000000000000000>]
> (XEN) EFLAGS: 0000000000010282
> (XEN) rax: 00000000ffffffea   rbx: 00000000105f5000   rcx:
> 0000000000000000 
> rdx: 0000000000000000
> (XEN) rsi: 0000000000000001   rdi: ffffffff804ebf40   rbp:
> 0000000000000808 
> rsp: ffffffff804ebf08
> (XEN) r8:  0000000000000000   r9:  0000000000000000   r10:
> 0000000000007ff0 
> r11: 0000000000000282
> (XEN) r12: 0000000000000000   r13: ffffffff805f4000   r14:
> ffffffff80102000 
> r15: ffffffff804ebfb0
> (XEN) Xen stack trace from rsp=ffffffff804ebf08:
> (XEN)    ffffffff80118d9d 0000000000000202 ffffffff80118da1
> 000000000001e030 0000000000010282 ffffffff804ebf40 000000000000e02b
> 00000000105f5808 (XEN)    0000000010101065 0000000000000000
> ffffffff80115d08 0000000000000000 0000000000000000 ffffffff804d8080
> ffffffff80 on CPU0: 
> Domain 0 crashed!
> ****************************************
> 

This is different from the other ones, but we need more hints as I don't
see this problem on our machines. For example, can you show the
instructions around 0xffffffff80118d9d? Please do like
1. objdump -d vmlinux > out (in linux-2.6.11-xen0)
2. search ffffffff80118d9d in 'out'
3. cut and send the disassembled instructions around ffffffff80118d9d.

Jun
---
Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Latest bk can NOT compile on x86_64
@ 2005-05-31  6:15 Nakajima, Jun
  2005-05-31  8:28 ` Keir Fraser
  0 siblings, 1 reply; 14+ messages in thread
From: Nakajima, Jun @ 2005-05-31  6:15 UTC (permalink / raw)
  To: Nakajima, Jun, Li, Xin B, xen-devel

Nakajima, Jun wrote:
> Actually xen itself is broken (again) too on x86-64. It dies like the
> below. I think the breakage happened very recently (today, yesterday,
> or the day before yesterday).

Did a quick debugging. It's failing at phys_pkg_id (it's NULL) in
detect_ht because genacpi is not set yet when this is called. Putting
"apic=default" makes it boot. I think it should be initialized as
"default".

void __init detect_ht(struct cpuinfo_x86 *c) {
...
	phys_proc_id[cpu] = phys_pkg_id((ebx >> 24) & 0xFF, index_msb);

Jun
---
Intel Open Source Technology Center

> ---
>  Xen version 3.0-devel (jnakajim@sc.intel.com) (gcc version 3.4.2
> 20041017 (Red
> Hat 3.4.2-6.fc3)) Mon May 30 21:26:28 PDT 2005
>  Latest ChangeSet: 2005/05/30 20:19:59 1.1577
> 429bd7dfnKHSDeYeOeCr4yRO7YCrFQ
> 
> (XEN) Physical RAM map:
> (XEN)  0000000000000000 - 000000000009fc00 (usable)
> (XEN)  000000000009fc00 - 00000000000a0000 (reserved)
> (XEN)  00000000000e6000 - 0000000000100000 (reserved)
> (XEN)  0000000000100000 - 000000003f630000 (usable)
> (XEN)  000000003f630000 - 000000003f640000 (ACPI data)
> (XEN)  000000003f640000 - 000000003f6f0000 (ACPI NVS)
> (XEN)  000000003f6f0000 - 000000003f800000 (reserved)
> (XEN)  00000000cff00000 - 00000000f0000000 (reserved)
> (XEN)  00000000fed13000 - 00000000fed1a000 (reserved)
> (XEN)  00000000fed1c000 - 00000000fed90000 (reserved)
> (XEN) System RAM: 1013MB (1038140kB)
> (XEN) Xen heap: 14MB (14828kB)
> (XEN) CPU: Trace cache: 12K uops, L1 D cache: 16K
> (XEN) CPU: L2 cache: 2048K
> (XEN) Unknown interrupt
> 
> Li, Xin B wrote:
>> When doing "make linux-2.6-xen0-build", it failed with:
>> 
>> make[3]: `arch/xen/x86_64/kernel/asm-offsets.s' is up to date.
>>   CHK     include/linux/compile.h
>>   CHK     usr/initramfs_list
>>   GEN     .version
>>   CHK     include/linux/compile.h
>>   UPD     include/linux/compile.h
>>   CC      init/version.o
>>   LD      init/built-in.o
>>   LD      .tmp_vmlinux1
>> arch/xen/x86_64/kernel/built-in.o(.text+0x291): In function
>> `xen_idle':
>>> undefined reference to `set_timeout_timer'
>> make[2]: *** [.tmp_vmlinux1] Error 1
>> make[2]: Leaving directory
>> `/home/xin/bk/xeno-unstable.bk/linux-2.6.11-xen0'
>> make[1]: *** [build] Error 2
>> make[1]: Leaving directory `/home/xin/bk/xeno-unstable.bk'
>> make: *** [linux-2.6-xen0-build] Error 2
>> 
>> -Xin
>> 
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
> 
> 
> 
> Jun
> ---
> Intel Open Source Technology Center
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Latest bk can NOT compile on x86_64
@ 2005-05-31  4:52 Nakajima, Jun
  0 siblings, 0 replies; 14+ messages in thread
From: Nakajima, Jun @ 2005-05-31  4:52 UTC (permalink / raw)
  To: Li, Xin B, xen-devel

Actually xen itself is broken (again) too on x86-64. It dies like the
below. I think the breakage happened very recently (today, yesterday, or
the day before yesterday). 
---
 Xen version 3.0-devel (jnakajim@sc.intel.com) (gcc version 3.4.2
20041017 (Red
Hat 3.4.2-6.fc3)) Mon May 30 21:26:28 PDT 2005
 Latest ChangeSet: 2005/05/30 20:19:59 1.1577
429bd7dfnKHSDeYeOeCr4yRO7YCrFQ

(XEN) Physical RAM map:
(XEN)  0000000000000000 - 000000000009fc00 (usable)
(XEN)  000000000009fc00 - 00000000000a0000 (reserved)
(XEN)  00000000000e6000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 000000003f630000 (usable)
(XEN)  000000003f630000 - 000000003f640000 (ACPI data)
(XEN)  000000003f640000 - 000000003f6f0000 (ACPI NVS)
(XEN)  000000003f6f0000 - 000000003f800000 (reserved)
(XEN)  00000000cff00000 - 00000000f0000000 (reserved)
(XEN)  00000000fed13000 - 00000000fed1a000 (reserved)
(XEN)  00000000fed1c000 - 00000000fed90000 (reserved)
(XEN) System RAM: 1013MB (1038140kB)
(XEN) Xen heap: 14MB (14828kB)
(XEN) CPU: Trace cache: 12K uops, L1 D cache: 16K
(XEN) CPU: L2 cache: 2048K
(XEN) Unknown interrupt

Li, Xin B wrote:
> When doing "make linux-2.6-xen0-build", it failed with:
> 
> make[3]: `arch/xen/x86_64/kernel/asm-offsets.s' is up to date.
>   CHK     include/linux/compile.h
>   CHK     usr/initramfs_list
>   GEN     .version
>   CHK     include/linux/compile.h
>   UPD     include/linux/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> arch/xen/x86_64/kernel/built-in.o(.text+0x291): In function
> `xen_idle': 
>> undefined reference to `set_timeout_timer'
> make[2]: *** [.tmp_vmlinux1] Error 1
> make[2]: Leaving directory
> `/home/xin/bk/xeno-unstable.bk/linux-2.6.11-xen0'
> make[1]: *** [build] Error 2
> make[1]: Leaving directory `/home/xin/bk/xeno-unstable.bk'
> make: *** [linux-2.6-xen0-build] Error 2
> 
> -Xin
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel



Jun
---
Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Latest bk can NOT compile on x86_64
@ 2005-05-30 23:13 Li, Xin B
  0 siblings, 0 replies; 14+ messages in thread
From: Li, Xin B @ 2005-05-30 23:13 UTC (permalink / raw)
  To: xen-devel

When doing "make linux-2.6-xen0-build", it failed with:

make[3]: `arch/xen/x86_64/kernel/asm-offsets.s' is up to date.
  CHK     include/linux/compile.h
  CHK     usr/initramfs_list
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/xen/x86_64/kernel/built-in.o(.text+0x291): In function `xen_idle':
: undefined reference to `set_timeout_timer'
make[2]: *** [.tmp_vmlinux1] Error 1
make[2]: Leaving directory
`/home/xin/bk/xeno-unstable.bk/linux-2.6.11-xen0'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/xin/bk/xeno-unstable.bk'
make: *** [linux-2.6-xen0-build] Error 2

-Xin

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

end of thread, other threads:[~2005-05-31 21:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31  6:37 Latest bk can NOT compile on x86_64 Nakajima, Jun
2005-05-31 15:16 ` David F Barrera
2005-05-31 15:49   ` Keir Fraser
2005-05-31 17:01     ` David F Barrera
2005-05-31 17:16       ` Keir Fraser
2005-05-31 16:52         ` Scott Parish
2005-05-31 16:59           ` Scott Parish
  -- strict thread matches above, loose matches on Subject: below --
2005-05-31 21:35 Nakajima, Jun
2005-05-31 19:32 Nakajima, Jun
2005-05-31 20:33 ` David F Barrera
2005-05-31  6:15 Nakajima, Jun
2005-05-31  8:28 ` Keir Fraser
2005-05-31  4:52 Nakajima, Jun
2005-05-30 23:13 Li, Xin B

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.