Skip to contentSkip to conversation

imx1 and imx27 boot problem with __ipipe_tsc_get()

Xenomai gwenhael.goavec 3 participants 11 messages Sep 1, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi,

I have 2 boards, the first is based on imx1 and the second on imx27. With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a kernel panic. The message start with : "Unable to handle kernel paging request at virtual address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in __ipipe_tsc_update()

To verify my toolchain I have tested 2.6.38.8 with at91 successfully.

If someone has a idea?

Thank you very much.

Gwenhael Goavec-Merou

#1 lore raw
Quoted 10 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on imx27. With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a kernel panic. The message start with : "Unable to handle kernel paging request at virtual address 10003010" on imx27.

Quoted 5 lines

This is due to the call of __ipipe_tsc_get() in __ipipe_tsc_update()

To verify my toolchain I have tested 2.6.38.8 with at91 successfully.

If someone has a idea?

Not enough information, to understand what happens we need the kernel oops (at least the register values).

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 14 lines · On Sat, 01 Sep 2012 15:41:55 +0200 Gilles Chanteperdrix…
Quoted 12 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on imx27. With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a kernel panic. The message start with : "Unable to handle kernel paging request at virtual address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in __ipipe_tsc_update()

Quoted 10 lines
Quoted 3 lines

To verify my toolchain I have tested 2.6.38.8 with at91 successfully.

If someone has a idea?

Not enough information, to understand what happens we need the kernel oops (at least the register values).

Signature · 1 line
                                                                Gilles.

Sorry,

Unable to handle kernel paging request at virtual address 10003010
pgd = c0004000
[10003010] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
last sysfs file: 
Modules linked in:
CPU: 0    Not tainted  (2.6.38.8-ipipe #34)
PC is at 0xffff0f48
LR is at __ipipe_tsc_update+0xfc/0x1c0
pc : [<ffff0f48>]    lr : [<c0032cd4>]    psr: 600000d3

sp : c049fe80 ip : c04af0b0 fp : c04af040
r10: c04af0b0 r9 : c04d5300 r8 : c04d5300
r7 : 0000001a r6 : c04c99f8 r5 : ffff0f40 r4 : ffff0f20 r3 : 00000000 r2 : 00000000 r1 : c04d5300 r0 : 10003010
Flags: nZCv IRQs off FIQs off Mode SVC_32 ISA ARM Segment kernel
Control: 0005317f Table: a0004000 DAC: 00000017
Process swapper (pid: 0, stack limit = 0xc049e270)

Stack: (0xc049fe80 to 0xc04a0000)

fe80: c04a5a78 00000000 00000000 c0039710 c00396fc c0075188 00000000 c04a878c
fea0: c049e000 0000001a c04a5a78 c007750c 0000001a c04b545c 00000000 00000002
fec0: c04d5300 c002b044 0000001d c04af0e8 0000001a c007bdf0 c049e000 c0043dd8
fee0: 00000001 c049e000 c04a60ec 0000000c 00000001 c04a60ec 00000034 c049ffb4
ff00: 00000000 c007c4dc c04d5300 c0044248 c049e000 00000000 00000000 c0044250
ff20: c3801470 00000000 00000001 00000000 c3801460 c3801470 c3803200 00000000
ff40: c04d5300 c00b2a20 c055a020 c38014c0 c38014c0 c00b1c04 c38025a0 00000000
ff60: c04b1290 c04af0e8 00000000 ffffffff 00000000 c0022578 00000001 c0442f50
ff80: 41069264 a0021148 00000000 c0399d78 41069264 c049ffb4 c04c98c0 c04c98c0
ffa0: c0022578 c056a360 a002117c c0015ff4 c0442f50 c04d5300 00000002 00000000
ffc0: c04c98c0 c04c98c0 c0022578 c0008c34 c0008464 00000000 00000000 c0022578
ffe0: 00000000 00053175 c04a0010 c0022574 c04a35cc a0008034 00000000 00000000 [<c0032cd4>] (__ipipe_tsc_update+0xfc/0x1c0) from [<c0039710>] (mxc_timer_interrupt+0x14/0x34) [<c0039710>] (mxc_timer_interrupt+0x14/0x34) from [<c0075188>] (handle_IRQ_event+0x40/0x130) [<c0075188>] (handle_IRQ_event+0x40/0x130) from [<c007750c>] (handle_level_irq+0x94/0x140) [<c007750c>] (handle_level_irq+0x94/0x140) from [<c002b044>] (asm_do_IRQ+0x44/0x9c) [<c002b044>] (asm_do_IRQ+0x44/0x9c) from [<c007bdf0>] (__ipipe_sync_stage+0x1a0/0x1bc)

Exception stack(0xc049fed8 to 0xc049ff20)

fec0: c049e000 c0043dd8
fee0: 00000001 c049e000 c04a60ec 0000000c 00000001 c04a60ec 00000034 c049ffb4
ff00: 00000000 c007c4dc c04d5300 c0044248 c049e000 00000000 00000000 c0044250 [<c007bdf0>] (__ipipe_sync_stage+0x1a0/0x1bc) from [<c007c4dc>] (__ipipe_unstall_root+0x48/0x54) [<c007c4dc>] (__ipipe_unstall_root+0x48/0x54) from [<c0044248>] (vprintk+0x2d0/0x480) [<c0044248>] (vprintk+0x2d0/0x480) from [<c0399d78>] (printk+0xf4/0x1a0) [<c0399d78>] (printk+0xf4/0x1a0) from [<c0015ff4>] (console_init+0xc/0x60) [<c0015ff4>] (console_init+0xc/0x60) from [<c0008c34>] (start_kernel+0x4a4/0x638) [<c0008c34>] (start_kernel+0x4a4/0x638) from [<a0008034>] (0xa0008034)

Code: 00000000 10003010 e51f000c e14f22dc (e5900000) 
---[ end trace 1b75b31a2719ed1c ]---
Kernel panic - not syncing: Fatal exception in interrupt
[<c0031e2c>] (unwind_backtrace+0x0/0xf0) from [<c0399b64>] (panic+0x60/0x180)
[<c0399b64>] (panic+0x60/0x180) from [<c0030050>] (die+0x1c4/0x1f8)
[<c0030050>] (die+0x1c4/0x1f8) from [<c0033b84>] (__do_kernel_fault+0x64/0x84)
[<c0033b84>] (__do_kernel_fault+0x64/0x84) from [<c0033da4>] (do_page_fault+0x200/0x390)
[<c0033da4>] (do_page_fault+0x200/0x390) from [<c002b2b8>] (do_DataAbort+0x30/0x134)
[<c002b2b8>] (do_DataAbort+0x30/0x134) from [<c002bc6c>] (__dabt_svc+0x4c/0x60)
Exception stack(0xc049fe38 to 0xc049fe80)

fe20: 10003010 c04d5300
fe40: 00000000 00000000 ffff0f20 ffff0f40 c04c99f8 0000001a c04d5300 c04d5300
fe60: c04af0b0 c04af040 c04af0b0 c049fe80 c0032cd4 ffff0f48 600000d3 ffffffff [<c002bc6c>] (__dabt_svc+0x4c/0x60) from [<ffff0f48>] (0xffff0f48)

Gwenhael

#3 lore raw
Quoted 40 lines · gwenhael.goavec
Quoted 14 lines · On Sat, 01 Sep 2012 15:41:55 +0200 Gilles Chanteperdrix…
Quoted 12 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on imx27. With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a kernel panic. The message start with : "Unable to handle kernel paging request at virtual address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in __ipipe_tsc_update()

Quoted 10 lines
Quoted 3 lines

To verify my toolchain I have tested 2.6.38.8 with at91 successfully.

If someone has a idea?

Not enough information, to understand what happens we need the kernel oops (at least the register values).

Signature · 1 line
                                                                Gilles.

Sorry,

Unable to handle kernel paging request at virtual address 10003010
pgd = c0004000
[10003010] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
last sysfs file: 
Modules linked in:
CPU: 0    Not tainted  (2.6.38.8-ipipe #34)
PC is at 0xffff0f48
LR is at __ipipe_tsc_update+0xfc/0x1c0
pc : [<ffff0f48>]    lr : [<c0032cd4>]    psr: 600000d3
Quoted 4 lines

sp : c049fe80 ip : c04af0b0 fp : c04af040
r10: c04af0b0 r9 : c04d5300 r8 : c04d5300
r7 : 0000001a r6 : c04c99f8 r5 : ffff0f40 r4 : ffff0f20 r3 : 00000000 r2 : 00000000 r1 : c04d5300 r0 : 10003010

Ok. In the mean time I remembered someone signalled this bug and I fixed it in the patch for 3.4. r0 is supposed to be the address of the hardware timer, 10003010 is a physical address instead of being a virtual address. Please try the following patch:

arch/arm/plat-mxc/time.c +1 -1
index 255e759..7a3d6b9 100644
@@ -352,7 +352,7 @@ mxc_timer_init(struct clk *timer_clk,
 
 	if (timer_is_v1()) {
 		tsc_info.u.counter_paddr = phys + MX1_2_TCN;
-		tsc_info.counter_vaddr =(unsigned long)(phys + MX1_2_TCN);
+		tsc_info.counter_vaddr = (unsigned long)(timer_base + MX1_2_TCN);
 	} else {
 		tsc_info.u.counter_paddr = phys + V2_TCN;
 		tsc_info.counter_vaddr = (unsigned long)(timer_base + V2_TCN);
Signature · 1 line
                                                                Gilles.
#4 lore raw

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 67 lines · gwenhael.goavec
Quoted 9 lines
Quoted 5 lines · On Sat, 01 Sep 2012 15:41:55 +0200 Gilles Chanteperdrix…
Quoted 3 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on

imx27.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a

kernel panic.

Quoted 1 line
Quoted 1 line
Quoted 1 line

The message start with : "Unable to handle kernel paging request at

virtual

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in

__ipipe_tsc_update()

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

To verify my toolchain I have tested 2.6.38.8 with at91

successfully.

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

If someone has a idea?

Not enough information, to understand what happens we need the

kernel

Quoted 4 lines
Quoted 4 lines

oops (at least the register values).

Gilles.

Quoted 13 lines

Sorry,

Unable to handle kernel paging request at virtual address 10003010
pgd = c0004000
[10003010] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
last sysfs file: 
Modules linked in:
CPU: 0    Not tainted  (2.6.38.8-ipipe #34)
PC is at 0xffff0f48
LR is at __ipipe_tsc_update+0xfc/0x1c0
pc : [<ffff0f48>]    lr : [<c0032cd4>]    psr: 600000d3
Quoted 4 lines

sp : c049fe80 ip : c04af0b0 fp : c04af040
r10: c04af0b0 r9 : c04d5300 r8 : c04d5300
r7 : 0000001a r6 : c04c99f8 r5 : ffff0f40 r4 : ffff0f20 r3 : 00000000 r2 : 00000000 r1 : c04d5300 r0 : 10003010

Ok. In the mean time I remembered someone signalled this bug and I fixed it in the patch for 3.4. r0 is supposed to be the address of the hardware timer, 10003010 is a physical address instead of being a virtual address. Please try the following patch:

arch/arm/plat-mxc/time.c +0 -0
index 255e759..7a3d6b9 100644

arch/arm/plat-mxc/time.c mxc_timer_init(struct clk *timer_clk, · line 358

Quoted 8 lines
arch/arm/plat-mxc/time.c +1 -1
@@ -352,7 +352,7 @@ mxc_timer_init(struct clk *timer_clk,
 
 	if (timer_is_v1()) {
 		tsc_info.u.counter_paddr = phys + MX1_2_TCN;
-		tsc_info.counter_vaddr =(unsigned long)(phys + MX1_2_TCN);
+		tsc_info.counter_vaddr = (unsigned long)(timer_base + MX1_2_TCN);
 	} else {
 		tsc_info.u.counter_paddr = phys + V2_TCN;
 		tsc_info.counter_vaddr = (unsigned long)(timer_base + V2_TCN);

It was my patch

Michael

Quoted 7 lines
Signature · 6 lines
                                                               Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
#5 lore raw
Quoted 70 lines · Michael Trimarchi

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 66 lines · gwenhael.goavec
Quoted 9 lines
Quoted 5 lines · On Sat, 01 Sep 2012 15:41:55 +0200 Gilles Chanteperdrix…
Quoted 3 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on

imx27.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a

kernel panic.

Quoted 1 line
Quoted 1 line
Quoted 1 line

The message start with : "Unable to handle kernel paging request at

virtual

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in

__ipipe_tsc_update()

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

To verify my toolchain I have tested 2.6.38.8 with at91

successfully.

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

If someone has a idea?

Not enough information, to understand what happens we need the

kernel

Quoted 4 lines
Quoted 4 lines

oops (at least the register values).

Gilles.

Quoted 13 lines

Sorry,

Unable to handle kernel paging request at virtual address 10003010
pgd = c0004000
[10003010] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
last sysfs file: 
Modules linked in:
CPU: 0    Not tainted  (2.6.38.8-ipipe #34)
PC is at 0xffff0f48
LR is at __ipipe_tsc_update+0xfc/0x1c0
pc : [<ffff0f48>]    lr : [<c0032cd4>]    psr: 600000d3
Quoted 4 lines

sp : c049fe80 ip : c04af0b0 fp : c04af040
r10: c04af0b0 r9 : c04d5300 r8 : c04d5300
r7 : 0000001a r6 : c04c99f8 r5 : ffff0f40 r4 : ffff0f20 r3 : 00000000 r2 : 00000000 r1 : c04d5300 r0 : 10003010

Ok. In the mean time I remembered someone signalled this bug and I fixed it in the patch for 3.4. r0 is supposed to be the address of the hardware timer, 10003010 is a physical address instead of being a virtual address. Please try the following patch:

arch/arm/plat-mxc/time.c +0 -0
index 255e759..7a3d6b9 100644
@@ -352,7 +352,7 @@ mxc_timer_init(struct clk *timer_clk,
 
Quoted 11 lines

arch/arm/plat-mxc/time.c mxc_timer_init(struct clk *timer_clk, · line 358

Quoted 9 lines
arch/arm/plat-mxc/time.c +1 -1
 	if (timer_is_v1()) {
 		tsc_info.u.counter_paddr = phys + MX1_2_TCN;
-		tsc_info.counter_vaddr =(unsigned long)(phys + MX1_2_TCN);
+		tsc_info.counter_vaddr = (unsigned long)(timer_base + MX1_2_TCN);
 	} else {
 		tsc_info.u.counter_paddr = phys + V2_TCN;
 		tsc_info.counter_vaddr = (unsigned long)(timer_base + V2_TCN);

It was my patch

No, you promised to send a patch for 3.2 and I never received it, so I fixed it myself.

Signature · 1 line
                                                                Gilles.
#6 lore raw

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 87 lines · Michael Trimarchi
Quoted 22 lines

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 17 lines · gwenhael.goavec
Quoted 9 lines
Quoted 5 lines · On Sat, 01 Sep 2012 15:41:55 +0200 Gilles Chanteperdrix…
Quoted 3 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on

imx27.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a

kernel panic.

Quoted 1 line
Quoted 1 line
Quoted 1 line

The message start with : "Unable to handle kernel paging request

at

Quoted 38 lines
Quoted 38 lines

virtual

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in

__ipipe_tsc_update()

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

To verify my toolchain I have tested 2.6.38.8 with at91

successfully.

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

If someone has a idea?

Not enough information, to understand what happens we need the

kernel

Quoted 4 lines
Quoted 4 lines

oops (at least the register values).

Gilles.

Quoted 17 lines

Sorry,

Unable to handle kernel paging request at virtual address 10003010
pgd = c0004000
[10003010] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
last sysfs file: 
Modules linked in:
CPU: 0    Not tainted  (2.6.38.8-ipipe #34)
PC is at 0xffff0f48
LR is at __ipipe_tsc_update+0xfc/0x1c0
pc : [<ffff0f48>]    lr : [<c0032cd4>]    psr: 600000d3

sp : c049fe80 ip : c04af0b0 fp : c04af040
r10: c04af0b0 r9 : c04d5300 r8 : c04d5300
r7 : 0000001a r6 : c04c99f8 r5 : ffff0f40 r4 : ffff0f20 r3 : 00000000 r2 : 00000000 r1 : c04d5300 r0 : 10003010

Quoted 2 lines
Quoted 2 lines

Ok. In the mean time I remembered someone signalled this bug and I fixed it in the patch for 3.4. r0 is supposed to be the address of

the

Quoted 9 lines
Quoted 9 lines

hardware timer, 10003010 is a physical address instead of being a virtual address. Please try the following patch:

arch/arm/plat-mxc/time.c +0 -0
index 255e759..7a3d6b9 100644
@@ -352,7 +352,7 @@ mxc_timer_init(struct clk *timer_clk,
 
Quoted 11 lines

arch/arm/plat-mxc/time.c mxc_timer_init(struct clk *timer_clk, · line 358

Quoted 9 lines
arch/arm/plat-mxc/time.c +1 -1
 	if (timer_is_v1()) {
 		tsc_info.u.counter_paddr = phys + MX1_2_TCN;
-		tsc_info.counter_vaddr =(unsigned long)(phys + MX1_2_TCN);
+		tsc_info.counter_vaddr = (unsigned long)(timer_base + MX1_2_TCN);
 	} else {
 		tsc_info.u.counter_paddr = phys + V2_TCN;
 		tsc_info.counter_vaddr = (unsigned long)(timer_base + V2_TCN);

It was my patch

Quoted 3 lines

No, you promised to send a patch for 3.2 and I never received it, so I fixed it myself.

Sorry , I was thinking that you only need some test on it,

Execuse me for it

Michael

Quoted 2 lines
Signature · 1 line
                                                               Gilles.
Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
#7 lore raw
Quoted 91 lines · Michael Trimarchi

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 87 lines · Michael Trimarchi
Quoted 22 lines

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 17 lines · gwenhael.goavec
Quoted 9 lines
Quoted 5 lines · On Sat, 01 Sep 2012 15:41:55 +0200 Gilles Chanteperdrix…
Quoted 3 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on

imx27.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a

kernel panic.

Quoted 1 line
Quoted 1 line
Quoted 1 line

The message start with : "Unable to handle kernel paging request

at

Quoted 38 lines
Quoted 38 lines

virtual

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in

__ipipe_tsc_update()

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

To verify my toolchain I have tested 2.6.38.8 with at91

successfully.

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

If someone has a idea?

Not enough information, to understand what happens we need the

kernel

Quoted 4 lines
Quoted 4 lines

oops (at least the register values).

Gilles.

Quoted 17 lines

Sorry,

Unable to handle kernel paging request at virtual address 10003010
pgd = c0004000
[10003010] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
last sysfs file: 
Modules linked in:
CPU: 0    Not tainted  (2.6.38.8-ipipe #34)
PC is at 0xffff0f48
LR is at __ipipe_tsc_update+0xfc/0x1c0
pc : [<ffff0f48>]    lr : [<c0032cd4>]    psr: 600000d3

sp : c049fe80 ip : c04af0b0 fp : c04af040
r10: c04af0b0 r9 : c04d5300 r8 : c04d5300
r7 : 0000001a r6 : c04c99f8 r5 : ffff0f40 r4 : ffff0f20 r3 : 00000000 r2 : 00000000 r1 : c04d5300 r0 : 10003010

Quoted 2 lines
Quoted 2 lines

Ok. In the mean time I remembered someone signalled this bug and I fixed it in the patch for 3.4. r0 is supposed to be the address of

the

Quoted 20 lines
Quoted 10 lines

hardware timer, 10003010 is a physical address instead of being a virtual address. Please try the following patch:

arch/arm/plat-mxc/time.c +0 -0
index 255e759..7a3d6b9 100644

arch/arm/plat-mxc/time.c mxc_timer_init(struct clk *timer_clk, · line 358

Quoted 8 lines
arch/arm/plat-mxc/time.c +1 -1
@@ -352,7 +352,7 @@ mxc_timer_init(struct clk *timer_clk,
 
 	if (timer_is_v1()) {
 		tsc_info.u.counter_paddr = phys + MX1_2_TCN;
-		tsc_info.counter_vaddr =(unsigned long)(phys + MX1_2_TCN);
+		tsc_info.counter_vaddr = (unsigned long)(timer_base + MX1_2_TCN);
 	} else {
 		tsc_info.u.counter_paddr = phys + V2_TCN;
 		tsc_info.counter_vaddr = (unsigned long)(timer_base + V2_TCN);

It was my patch

Quoted 7 lines
Quoted 3 lines

No, you promised to send a patch for 3.2 and I never received it, so I fixed it myself.

Sorry , I was thinking that you only need some test on it,

Execuse me for it

No problem, I am just explaining why the fix did not make it into 3.2. I forgot about the issue, and remembered it when doing the port to 3.4.

Signature · 1 line
                                                                Gilles.
#8 lore raw
In reply to Michael Trimarchi
Quoted 95 lines · Michael Trimarchi

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 87 lines · Michael Trimarchi
Quoted 22 lines

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 17 lines · gwenhael.goavec
Quoted 9 lines
Quoted 5 lines · On Sat, 01 Sep 2012 15:41:55 +0200 Gilles Chanteperdrix…
Quoted 3 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on

imx27.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a

kernel panic.

Quoted 1 line
Quoted 1 line
Quoted 1 line

The message start with : "Unable to handle kernel paging request

at

Quoted 38 lines
Quoted 38 lines

virtual

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in

__ipipe_tsc_update()

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

To verify my toolchain I have tested 2.6.38.8 with at91

successfully.

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

If someone has a idea?

Not enough information, to understand what happens we need the

kernel

Quoted 4 lines
Quoted 4 lines

oops (at least the register values).

Gilles.

Quoted 17 lines

Sorry,

Unable to handle kernel paging request at virtual address 10003010
pgd = c0004000
[10003010] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
last sysfs file: 
Modules linked in:
CPU: 0    Not tainted  (2.6.38.8-ipipe #34)
PC is at 0xffff0f48
LR is at __ipipe_tsc_update+0xfc/0x1c0
pc : [<ffff0f48>]    lr : [<c0032cd4>]    psr: 600000d3

sp : c049fe80 ip : c04af0b0 fp : c04af040
r10: c04af0b0 r9 : c04d5300 r8 : c04d5300
r7 : 0000001a r6 : c04c99f8 r5 : ffff0f40 r4 : ffff0f20 r3 : 00000000 r2 : 00000000 r1 : c04d5300 r0 : 10003010

Quoted 2 lines
Quoted 2 lines

Ok. In the mean time I remembered someone signalled this bug and I fixed it in the patch for 3.4. r0 is supposed to be the address of

the

Quoted 9 lines
Quoted 9 lines

hardware timer, 10003010 is a physical address instead of being a virtual address. Please try the following patch:

arch/arm/plat-mxc/time.c +0 -0
index 255e759..7a3d6b9 100644
@@ -352,7 +352,7 @@ mxc_timer_init(struct clk *timer_clk,
 
Quoted 11 lines

arch/arm/plat-mxc/time.c mxc_timer_init(struct clk *timer_clk, · line 358

Quoted 9 lines
arch/arm/plat-mxc/time.c +1 -1
 	if (timer_is_v1()) {
 		tsc_info.u.counter_paddr = phys + MX1_2_TCN;
-		tsc_info.counter_vaddr =(unsigned long)(phys + MX1_2_TCN);
+		tsc_info.counter_vaddr = (unsigned long)(timer_base + MX1_2_TCN);
 	} else {
 		tsc_info.u.counter_paddr = phys + V2_TCN;
 		tsc_info.counter_vaddr = (unsigned long)(timer_base + V2_TCN);

It was my patch

Quoted 3 lines

No, you promised to send a patch for 3.2 and I never received it, so I fixed it myself.

Quoted 5 lines

Sorry , I was thinking that you only need some test on it,

Execuse me for it

Michael

The point is: I can not test the patch for imx27 or imx25 because I do not have access to such hardware, so I simply compile-test. Could you check whether the 3.2 branch still has the issues you fixed, and send patches please? I swear they will be merged this time.

Last time your patch had issues, I told you that and we never got further.

Signature · 1 line
                                                                Gilles.
#9 lore raw

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 110 lines · Michael Trimarchi
Quoted 26 lines

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 21 lines · Michael Trimarchi
Quoted 20 lines

Hi

Gilles Chanteperdrix <[email protected]> ha scritto:

Quoted 15 lines · gwenhael.goavec
Quoted 9 lines
Quoted 5 lines · On Sat, 01 Sep 2012 15:41:55 +0200 Gilles Chanteperdrix…
Quoted 3 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on

imx27.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with

a

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

kernel panic.

Quoted 1 line
Quoted 1 line
Quoted 1 line

The message start with : "Unable to handle kernel paging

request

Quoted 17 lines
Quoted 17 lines

at

Quoted 16 lines
Quoted 16 lines

virtual

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in

__ipipe_tsc_update()

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

To verify my toolchain I have tested 2.6.38.8 with at91

successfully.

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

If someone has a idea?

Not enough information, to understand what happens we need the

kernel

Quoted 2 lines
Quoted 2 lines

oops (at least the register values).

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

Gilles.

Quoted 4 lines

Sorry,

Unable to handle kernel paging request at virtual address

10003010

Quoted 28 lines
Quoted 28 lines
Quoted 15 lines
Quoted 15 lines
Quoted 13 lines

pgd = c0004000
[10003010] *pgd=00000000

Internal error: Oops: 5 [#1] PREEMPT
last sysfs file: 
Modules linked in:
CPU: 0    Not tainted  (2.6.38.8-ipipe #34)
PC is at 0xffff0f48
LR is at __ipipe_tsc_update+0xfc/0x1c0
pc : [<ffff0f48>]    lr : [<c0032cd4>]    psr: 600000d3

sp : c049fe80 ip : c04af0b0 fp : c04af040
r10: c04af0b0 r9 : c04d5300 r8 : c04d5300
r7 : 0000001a r6 : c04c99f8 r5 : ffff0f40 r4 : ffff0f20 r3 : 00000000 r2 : 00000000 r1 : c04d5300 r0 : 10003010

Quoted 3 lines
Quoted 3 lines

Ok. In the mean time I remembered someone signalled this bug and I

fixed it in the patch for 3.4. r0 is supposed to be the address of

the

Quoted 9 lines
Quoted 9 lines

hardware timer, 10003010 is a physical address instead of being a virtual address. Please try the following patch:

arch/arm/plat-mxc/time.c +0 -0
index 255e759..7a3d6b9 100644
@@ -352,7 +352,7 @@ mxc_timer_init(struct clk *timer_clk,
 
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

arch/arm/plat-mxc/time.c mxc_timer_init(struct clk *timer_clk,

Quoted 4 lines
arch/arm/plat-mxc/time.c +1 -1
 	if (timer_is_v1()) {
 		tsc_info.u.counter_paddr = phys + MX1_2_TCN;
-		tsc_info.counter_vaddr =(unsigned long)(phys + MX1_2_TCN);
+		tsc_info.counter_vaddr = (unsigned long)(timer_base +

MX1_2_TCN);

Quoted 10 lines
Quoted 10 lines
Quoted 7 lines

arch/arm/plat-mxc/time.c mxc_timer_init(struct clk *timer_clk, · line 358

Quoted 5 lines
arch/arm/plat-mxc/time.c +0 -0
 	} else {
 		tsc_info.u.counter_paddr = phys + V2_TCN;
 		tsc_info.counter_vaddr = (unsigned long)(timer_base + V2_TCN);

It was my patch

No, you promised to send a patch for 3.2 and I never received it, so

I

Quoted 8 lines
Quoted 2 lines

fixed it myself.

Sorry , I was thinking that you only need some test on it,

Execuse me for it

Michael

Quoted 7 lines

The point is: I can not test the patch for imx27 or imx25 because I do not have access to such hardware, so I simply compile-test. Could you check whether the 3.2 branch still has the issues you fixed, and send patches please? I swear they will be merged this time.

Last time your patch had issues, I told you that and we never got further.

Ok understand. Let me finish it

Michael

Quoted 3 lines
Signature · 2 lines
-- 
                                                               Gilles.
Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
#10 lore raw
In reply to Gilles Chanteperdrix
Quoted 70 lines · On Sat, 01 Sep 2012 15:54:10 +0200 Gilles Chanteperdrix…
Quoted 40 lines · gwenhael.goavec
Quoted 14 lines · On Sat, 01 Sep 2012 15:41:55 +0200 Gilles Chanteperdrix…
Quoted 12 lines · gwenhael.goavec

Hi,

I have 2 boards, the first is based on imx1 and the second on imx27. With this 2 boards, I'm unable to boot a 2.6.38.8 kernel. For the imx1 with 3.2.21 the result is the same.

I have enabled early_printk. On every boards the boot stop with a kernel panic. The message start with : "Unable to handle kernel paging request at virtual address 10003010" on imx27.

This is due to the call of __ipipe_tsc_get() in __ipipe_tsc_update()

Quoted 10 lines
Quoted 3 lines

To verify my toolchain I have tested 2.6.38.8 with at91 successfully.

If someone has a idea?

Not enough information, to understand what happens we need the kernel oops (at least the register values).

Signature · 1 line
                                                                Gilles.

Sorry,

Unable to handle kernel paging request at virtual address 10003010
pgd = c0004000
[10003010] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
last sysfs file: 
Modules linked in:
CPU: 0    Not tainted  (2.6.38.8-ipipe #34)
PC is at 0xffff0f48
LR is at __ipipe_tsc_update+0xfc/0x1c0
pc : [<ffff0f48>]    lr : [<c0032cd4>]    psr: 600000d3
Quoted 4 lines

sp : c049fe80 ip : c04af0b0 fp : c04af040
r10: c04af0b0 r9 : c04d5300 r8 : c04d5300
r7 : 0000001a r6 : c04c99f8 r5 : ffff0f40 r4 : ffff0f20 r3 : 00000000 r2 : 00000000 r1 : c04d5300 r0 : 10003010

Ok. In the mean time I remembered someone signalled this bug and I fixed it in the patch for 3.4. r0 is supposed to be the address of the hardware timer, 10003010 is a physical address instead of being a virtual address. Please try the following patch:

arch/arm/plat-mxc/time.c +1 -1
index 255e759..7a3d6b9 100644
@@ -352,7 +352,7 @@ mxc_timer_init(struct clk *timer_clk,
 
 	if (timer_is_v1()) {
 		tsc_info.u.counter_paddr = phys + MX1_2_TCN;
-		tsc_info.counter_vaddr =(unsigned long)(phys + MX1_2_TCN);
+		tsc_info.counter_vaddr = (unsigned long)(timer_base + MX1_2_TCN);
 	} else {
 		tsc_info.u.counter_paddr = phys + V2_TCN;
 		tsc_info.counter_vaddr = (unsigned long)(timer_base + V2_TCN);
Signature · 2 lines
-- 
                                                                Gilles.

Perfect!
I'm able to boot my imx27.

Thank you.
Gwenhael