Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-08 Thread Lukasz Majewski
Dear Peiyong Feng,

  Please enable the debug at s3c-hsotg.c driver and then paste the
  dmesg/debug output.  
 I have defined DEGUG in s3c-hsotg.c

Thank you for 2.6.36 log.
I'd also need the log from 3.6-rc1 kernel with DEBUG enabled.

-- 
Best regards,

Lukasz Majewski

Samsung Poland RD Center | Linux Platform Group
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-08 Thread Peiyong Feng
2012/8/8 Lukasz Majewski l.majew...@samsung.com:
 Dear Peiyong Feng,

  Please enable the debug at s3c-hsotg.c driver and then paste the
  dmesg/debug output.
 I have defined DEGUG in s3c-hsotg.c

 Thank you for 2.6.36 log.
 I'd also need the log from 3.6-rc1 kernel with DEBUG enabled.
I have made a define like:
#define DEBUG
in s3c-hsotg.c of 3.6-rc1 kernel and the patch:
==
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index b13e0bb..b35d275 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -36,6 +36,7 @@

 #include mach/map.h

+#define DEBUG
 #include s3c-hsotg.h

 #define DMA_ADDR_INVALID (~((dma_addr_t)0))
=-

And the output is just the same as I have posted.

If that is not the way you want, please let me know.



 --
 Best regards,

 Lukasz Majewski

 Samsung Poland RD Center | Linux Platform Group
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-07 Thread Lukasz Majewski
On Tue, 07 Aug 2012 11:04:10 +0800
Peiyong Feng peiyong.feng.ker...@gmail.com wrote:

 2012/8/6 Lukasz Majewski l.majew...@samsung.com:
  Hi,
 
  Hi,
 
  On Mon, Aug 06, 2012 at 06:12:05PM +0800, Peiyong Feng wrote:
   I got a kernel panic when try hsotg of ok6410 which is based on
   s3c6410:
  As you said, you are using the ok6410. And it is based on the
  s3c6410 CPU. S3C6410 is a single core CPU. I assume that ok6410 is
  also single core?
 yes
 
  
  
   cdc_acm: USB Abstract Control Model driver for USB modems and
   ISDN adapters Unable to handle kernel NULL pointer dereference at
   virtual address 0100
 
   pgd = c0004000
   [0100] *pgd=
   Internal error: Oops: 5 [#1] ARM
   Modules linked in:
   CPU: 0Not tainted  (3.5.0 #9)
   PC is at s3c_hsotg_handle_outdone+0x44/0x158
   LR is at s3c_hsotg_irq+0x75c/0x804
   pc : [c023e7fc]lr : [c024061c]psr: 6193
   sp : c782fd20  ip : 0029  fp : c13a1460
   r10:   r9 : 0008  r8 : 00d0
   r7 : c13a1400  r6 : 0002  r5 :   r4 : 00060002
   r3 : 00d0  r2 :   r1 : 00080200  r0 : c13a1400
   Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment
   kernel Control: 00c5387d  Table: 50004008  DAC: 0017
   Process swapper (pid: 1, stack limit = 0xc782e268)
   Stack: (0xc782fd20 to 0xc783)
   fd20: c13a1460 c0200f64  00060002  0002
   c13a1400 0010 fd40:  c024061c 00060002 
   0002 0008 c782fda0 c139a5c0 fd60: c139a5c0 
    005a c04cc52c c04cc594 c04ea5fe c00565c0 fd80:
      c04cc52c c139a5c0 c04cc57c 
   c04eb328 fda0: c04cc55c c04eb324 c04c44c0 c0056768 c04cc52c
   c04cc57c  c0058d64 fdc0: 005a c04d7dd8 
   c005617c 005a c000efbc c04eb350 0001 fde0: c782fe08
   c000853c c036c540 6013  c782fe3c c04cc57c c04cc55c
   fe00: 6013 c000dd80 c04cc57c c782c000  0001
   6013 c04cc52c fe20: c139a5c0 005a c04cc57c c04cc55c
   6013 c04c44c0 f601 c782fe50 fe40: c036c53c c036c540
   6013  c023fec0 c00574c8  c008b2dc fe60:
   c023fec0   c13a1400 005a c139a5c0 c04cc52c
   c0057960 fe80: 005a c13a1400 c04c44b8  c051d238
   c049b0ec  c03688fc fea0: c7853e60 c13a1400 c7804f80
    c04c44f4 6013 c7855a80  fec0: c04e1bb4
   c04c44c0 c04c44c0 c04e1bb4 c04e1bb4 c051d238 c049b0ec 
   fee0: c04eb040 c020588c c04c44c0 c0204524 c04c44c0 c04c44f4
   c04e1bb4 c02046ac ff00: c13a01e0 c0204738  c782ff18
   c04e1bb4 c0202e30 c7803878 c7823700 ff20: c04dd1d0 c040b8d4
   c04e1bb4 c04e1bb4 c04dd1d0 c0203600 c040b8d4 c01b8568 ff40:
     c04e1bb4 0007 c04eb040 c782e000 c04a65e0
   c0204ce8 ff60:  c04a65d4 0007 c04eb040 c782e000
   c0008628 c04c7ea0  ff80: 009c  c0625cf9
   c0037178 0006 0006 c0461b84 c042cee8 ffa0: c04c7ea0
   c04abdd4 c04a65d4 0007 c04eb040 009c c04841b0 c04a65e0
   ffc0:  c048430c 0006 0006 c04841b0 
    c048421c ffe0: c000f08c 0013  
    c000f08c   [c023e7fc]
   (s3c_hsotg_handle_outdone+0x44/0x158) from [c024061c]
   (s3c_hsotg_irq+0x75c/0x804) [c024061c]
   (s3c_hsotg_irq+0x75c/0x804) from [c00565c0]
   (handle_irq_event_percpu+0x50/0x1bc) [c00565c0]
   (handle_irq_event_percpu+0x50/0x1bc) from [c0056768]
   (handle_irq_event+0x3c/0x5c) [c0056768]
   (handle_irq_event+0x3c/0x5c) from [c0058d64]
   (handle_level_irq+0x8c/0x118) [c0058d64]
   (handle_level_irq+0x8c/0x118) from [c005617c]
   (generic_handle_irq+0x38/0x44) [c005617c]
   (generic_handle_irq+0x38/0x44) from [c000efbc]
   (handle_IRQ+0x30/0x84) [c000efbc] (handle_IRQ+0x30/0x84) from
   [c000853c] (vic_handle_irq+0x68/0xa8) [c000853c]
   (vic_handle_irq+0x68/0xa8) from [c000dd80]
   (__irq_svc+0x40/0x60) Exception stack(0xc782fe08 to 0xc782fe50)
   fe00: c04cc57c c782c000  0001 6013 c04cc52c fe20:
   c139a5c0 005a c04cc57c c04cc55c 6013 c04c44c0 f601
   c782fe50 fe40: c036c53c c036c540 6013  [c000dd80]
   (__irq_svc+0x40/0x60) from [c036c540]
   (_raw_spin_unlock_irqrestore+0x10/0x14) [c036c540]
   (_raw_spin_unlock_irqrestore+0x10/0x14) from [c00574c8]
   (__setup_irq+0x178/0x3f8) [c00574c8] (__setup_irq+0x178/0x3f8)
   from [c0057960] (request_threaded_irq+0xc4/0x12c) [c0057960]
   (request_threaded_irq+0xc4/0x12c) from [c03688fc]
   (s3c_hsotg_probe+0x14c/0x700) [c03688fc]
   (s3c_hsotg_probe+0x14c/0x700) from [c020588c]
   (platform_drv_probe+0x18/0x1c) [c020588c]
   (platform_drv_probe+0x18/0x1c) from [c0204524]
   (driver_probe_device+0x78/0x200) [c0204524]
   (driver_probe_device+0x78/0x200) from [c0204738]
   (__driver_attach+0x8c/0x90) [c0204738]
   (__driver_attach+0x8c/0x90) from [c0202e30]
   (bus_for_each_dev+0x60/0x8c) [c0202e30]
   (bus_for_each_dev+0x60/0x8c) from 

Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-07 Thread Mark Brown
On Mon, Aug 06, 2012 at 03:14:36PM +0200, Lukasz Majewski wrote:
  On Mon, Aug 06, 2012 at 06:12:05PM +0800, Peiyong Feng wrote:
   I got a kernel panic when try hsotg of ok6410 which is based on
   s3c6410:

 As you said, you are using the ok6410. And it is based on the s3c6410
 CPU. S3C6410 is a single core CPU. I assume that ok6410 is also single
 core?

FWIW I think what the above means is I am using the ok6410 board which
has a s3c6410 SoC on it.
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-07 Thread Peiyong Feng
2012/8/7 Lukasz Majewski l.majew...@samsung.com:
 On Tue, 07 Aug 2012 11:04:10 +0800
 Peiyong Feng peiyong.feng.ker...@gmail.com wrote:

 2012/8/6 Lukasz Majewski l.majew...@samsung.com:
  Hi,
 
  Hi,
 
  On Mon, Aug 06, 2012 at 06:12:05PM +0800, Peiyong Feng wrote:
   I got a kernel panic when try hsotg of ok6410 which is based on
   s3c6410:
  As you said, you are using the ok6410. And it is based on the
  s3c6410 CPU. S3C6410 is a single core CPU. I assume that ok6410 is
  also single core?
 yes
 
  
  
   cdc_acm: USB Abstract Control Model driver for USB modems and
   ISDN adapters Unable to handle kernel NULL pointer dereference at
   virtual address 0100
 
   pgd = c0004000
   [0100] *pgd=
   Internal error: Oops: 5 [#1] ARM
   Modules linked in:
   CPU: 0Not tainted  (3.5.0 #9)
   PC is at s3c_hsotg_handle_outdone+0x44/0x158
   LR is at s3c_hsotg_irq+0x75c/0x804
   pc : [c023e7fc]lr : [c024061c]psr: 6193
   sp : c782fd20  ip : 0029  fp : c13a1460
   r10:   r9 : 0008  r8 : 00d0
   r7 : c13a1400  r6 : 0002  r5 :   r4 : 00060002
   r3 : 00d0  r2 :   r1 : 00080200  r0 : c13a1400
   Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment
   kernel Control: 00c5387d  Table: 50004008  DAC: 0017
   Process swapper (pid: 1, stack limit = 0xc782e268)
   Stack: (0xc782fd20 to 0xc783)
   fd20: c13a1460 c0200f64  00060002  0002
   c13a1400 0010 fd40:  c024061c 00060002 
   0002 0008 c782fda0 c139a5c0 fd60: c139a5c0 
    005a c04cc52c c04cc594 c04ea5fe c00565c0 fd80:
      c04cc52c c139a5c0 c04cc57c 
   c04eb328 fda0: c04cc55c c04eb324 c04c44c0 c0056768 c04cc52c
   c04cc57c  c0058d64 fdc0: 005a c04d7dd8 
   c005617c 005a c000efbc c04eb350 0001 fde0: c782fe08
   c000853c c036c540 6013  c782fe3c c04cc57c c04cc55c
   fe00: 6013 c000dd80 c04cc57c c782c000  0001
   6013 c04cc52c fe20: c139a5c0 005a c04cc57c c04cc55c
   6013 c04c44c0 f601 c782fe50 fe40: c036c53c c036c540
   6013  c023fec0 c00574c8  c008b2dc fe60:
   c023fec0   c13a1400 005a c139a5c0 c04cc52c
   c0057960 fe80: 005a c13a1400 c04c44b8  c051d238
   c049b0ec  c03688fc fea0: c7853e60 c13a1400 c7804f80
    c04c44f4 6013 c7855a80  fec0: c04e1bb4
   c04c44c0 c04c44c0 c04e1bb4 c04e1bb4 c051d238 c049b0ec 
   fee0: c04eb040 c020588c c04c44c0 c0204524 c04c44c0 c04c44f4
   c04e1bb4 c02046ac ff00: c13a01e0 c0204738  c782ff18
   c04e1bb4 c0202e30 c7803878 c7823700 ff20: c04dd1d0 c040b8d4
   c04e1bb4 c04e1bb4 c04dd1d0 c0203600 c040b8d4 c01b8568 ff40:
     c04e1bb4 0007 c04eb040 c782e000 c04a65e0
   c0204ce8 ff60:  c04a65d4 0007 c04eb040 c782e000
   c0008628 c04c7ea0  ff80: 009c  c0625cf9
   c0037178 0006 0006 c0461b84 c042cee8 ffa0: c04c7ea0
   c04abdd4 c04a65d4 0007 c04eb040 009c c04841b0 c04a65e0
   ffc0:  c048430c 0006 0006 c04841b0 
    c048421c ffe0: c000f08c 0013  
    c000f08c   [c023e7fc]
   (s3c_hsotg_handle_outdone+0x44/0x158) from [c024061c]
   (s3c_hsotg_irq+0x75c/0x804) [c024061c]
   (s3c_hsotg_irq+0x75c/0x804) from [c00565c0]
   (handle_irq_event_percpu+0x50/0x1bc) [c00565c0]
   (handle_irq_event_percpu+0x50/0x1bc) from [c0056768]
   (handle_irq_event+0x3c/0x5c) [c0056768]
   (handle_irq_event+0x3c/0x5c) from [c0058d64]
   (handle_level_irq+0x8c/0x118) [c0058d64]
   (handle_level_irq+0x8c/0x118) from [c005617c]
   (generic_handle_irq+0x38/0x44) [c005617c]
   (generic_handle_irq+0x38/0x44) from [c000efbc]
   (handle_IRQ+0x30/0x84) [c000efbc] (handle_IRQ+0x30/0x84) from
   [c000853c] (vic_handle_irq+0x68/0xa8) [c000853c]
   (vic_handle_irq+0x68/0xa8) from [c000dd80]
   (__irq_svc+0x40/0x60) Exception stack(0xc782fe08 to 0xc782fe50)
   fe00: c04cc57c c782c000  0001 6013 c04cc52c fe20:
   c139a5c0 005a c04cc57c c04cc55c 6013 c04c44c0 f601
   c782fe50 fe40: c036c53c c036c540 6013  [c000dd80]
   (__irq_svc+0x40/0x60) from [c036c540]
   (_raw_spin_unlock_irqrestore+0x10/0x14) [c036c540]
   (_raw_spin_unlock_irqrestore+0x10/0x14) from [c00574c8]
   (__setup_irq+0x178/0x3f8) [c00574c8] (__setup_irq+0x178/0x3f8)
   from [c0057960] (request_threaded_irq+0xc4/0x12c) [c0057960]
   (request_threaded_irq+0xc4/0x12c) from [c03688fc]
   (s3c_hsotg_probe+0x14c/0x700) [c03688fc]
   (s3c_hsotg_probe+0x14c/0x700) from [c020588c]
   (platform_drv_probe+0x18/0x1c) [c020588c]
   (platform_drv_probe+0x18/0x1c) from [c0204524]
   (driver_probe_device+0x78/0x200) [c0204524]
   (driver_probe_device+0x78/0x200) from [c0204738]
   (__driver_attach+0x8c/0x90) [c0204738]
   (__driver_attach+0x8c/0x90) from [c0202e30]
   (bus_for_each_dev+0x60/0x8c) 

[BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-06 Thread Peiyong Feng
I got a kernel panic when try hsotg of ok6410 which is based on s3c6410:


cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Unable to handle kernel NULL pointer dereference at virtual address 0100
pgd = c0004000
[0100] *pgd=
Internal error: Oops: 5 [#1] ARM
Modules linked in:
CPU: 0Not tainted  (3.5.0 #9)
PC is at s3c_hsotg_handle_outdone+0x44/0x158
LR is at s3c_hsotg_irq+0x75c/0x804
pc : [c023e7fc]lr : [c024061c]psr: 6193
sp : c782fd20  ip : 0029  fp : c13a1460
r10:   r9 : 0008  r8 : 00d0
r7 : c13a1400  r6 : 0002  r5 :   r4 : 00060002
r3 : 00d0  r2 :   r1 : 00080200  r0 : c13a1400
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 00c5387d  Table: 50004008  DAC: 0017
Process swapper (pid: 1, stack limit = 0xc782e268)
Stack: (0xc782fd20 to 0xc783)
fd20: c13a1460 c0200f64  00060002  0002 c13a1400 0010
fd40:  c024061c 00060002  0002 0008 c782fda0 c139a5c0
fd60: c139a5c0   005a c04cc52c c04cc594 c04ea5fe c00565c0
fd80:    c04cc52c c139a5c0 c04cc57c  c04eb328
fda0: c04cc55c c04eb324 c04c44c0 c0056768 c04cc52c c04cc57c  c0058d64
fdc0: 005a c04d7dd8  c005617c 005a c000efbc c04eb350 0001
fde0: c782fe08 c000853c c036c540 6013  c782fe3c c04cc57c c04cc55c
fe00: 6013 c000dd80 c04cc57c c782c000  0001 6013 c04cc52c
fe20: c139a5c0 005a c04cc57c c04cc55c 6013 c04c44c0 f601 c782fe50
fe40: c036c53c c036c540 6013  c023fec0 c00574c8  c008b2dc
fe60: c023fec0   c13a1400 005a c139a5c0 c04cc52c c0057960
fe80: 005a c13a1400 c04c44b8  c051d238 c049b0ec  c03688fc
fea0: c7853e60 c13a1400 c7804f80  c04c44f4 6013 c7855a80 
fec0: c04e1bb4 c04c44c0 c04c44c0 c04e1bb4 c04e1bb4 c051d238 c049b0ec 
fee0: c04eb040 c020588c c04c44c0 c0204524 c04c44c0 c04c44f4 c04e1bb4 c02046ac
ff00: c13a01e0 c0204738  c782ff18 c04e1bb4 c0202e30 c7803878 c7823700
ff20: c04dd1d0 c040b8d4 c04e1bb4 c04e1bb4 c04dd1d0 c0203600 c040b8d4 c01b8568
ff40:   c04e1bb4 0007 c04eb040 c782e000 c04a65e0 c0204ce8
ff60:  c04a65d4 0007 c04eb040 c782e000 c0008628 c04c7ea0 
ff80: 009c  c0625cf9 c0037178 0006 0006 c0461b84 c042cee8
ffa0: c04c7ea0 c04abdd4 c04a65d4 0007 c04eb040 009c c04841b0 c04a65e0
ffc0:  c048430c 0006 0006 c04841b0   c048421c
ffe0: c000f08c 0013    c000f08c  
[c023e7fc] (s3c_hsotg_handle_outdone+0x44/0x158) from [c024061c]
(s3c_hsotg_irq+0x75c/0x804)
[c024061c] (s3c_hsotg_irq+0x75c/0x804) from [c00565c0]
(handle_irq_event_percpu+0x50/0x1bc)
[c00565c0] (handle_irq_event_percpu+0x50/0x1bc) from [c0056768]
(handle_irq_event+0x3c/0x5c)
[c0056768] (handle_irq_event+0x3c/0x5c) from [c0058d64]
(handle_level_irq+0x8c/0x118)
[c0058d64] (handle_level_irq+0x8c/0x118) from [c005617c]
(generic_handle_irq+0x38/0x44)
[c005617c] (generic_handle_irq+0x38/0x44) from [c000efbc]
(handle_IRQ+0x30/0x84)
[c000efbc] (handle_IRQ+0x30/0x84) from [c000853c] (vic_handle_irq+0x68/0xa8)
[c000853c] (vic_handle_irq+0x68/0xa8) from [c000dd80] (__irq_svc+0x40/0x60)
Exception stack(0xc782fe08 to 0xc782fe50)
fe00:   c04cc57c c782c000  0001 6013 c04cc52c
fe20: c139a5c0 005a c04cc57c c04cc55c 6013 c04c44c0 f601 c782fe50
fe40: c036c53c c036c540 6013 
[c000dd80] (__irq_svc+0x40/0x60) from [c036c540]
(_raw_spin_unlock_irqrestore+0x10/0x14)
[c036c540] (_raw_spin_unlock_irqrestore+0x10/0x14) from [c00574c8]
(__setup_irq+0x178/0x3f8)
[c00574c8] (__setup_irq+0x178/0x3f8) from [c0057960]
(request_threaded_irq+0xc4/0x12c)
[c0057960] (request_threaded_irq+0xc4/0x12c) from [c03688fc]
(s3c_hsotg_probe+0x14c/0x700)
[c03688fc] (s3c_hsotg_probe+0x14c/0x700) from [c020588c]
(platform_drv_probe+0x18/0x1c)
[c020588c] (platform_drv_probe+0x18/0x1c) from [c0204524]
(driver_probe_device+0x78/0x200)
[c0204524] (driver_probe_device+0x78/0x200) from [c0204738]
(__driver_attach+0x8c/0x90)
[c0204738] (__driver_attach+0x8c/0x90) from [c0202e30]
(bus_for_each_dev+0x60/0x8c)
[c0202e30] (bus_for_each_dev+0x60/0x8c) from [c0203600]
(bus_add_driver+0xac/0x250)
[c0203600] (bus_add_driver+0xac/0x250) from [c0204ce8]
(driver_register+0x58/0x130)
[c0204ce8] (driver_register+0x58/0x130) from [c0008628]
(do_one_initcall+0x34/0x17c)
[c0008628] (do_one_initcall+0x34/0x17c) from [c048430c]
(kernel_init+0xf0/0x1bc)
[c048430c] (kernel_init+0xf0/0x1bc) from [c000f08c]
(kernel_thread_exit+0x0/0x8)
Code: e0433106 e0833006 e1a03183 e0828003 (e5984030)
---[ end trace 2ea4e574318ecf99 ]---
Kernel panic - not syncing: Fatal exception in interrupt
---


When I try locate the 

Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-06 Thread Felipe Balbi
Hi,

On Mon, Aug 06, 2012 at 06:12:05PM +0800, Peiyong Feng wrote:
 I got a kernel panic when try hsotg of ok6410 which is based on s3c6410:
 
 
 cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
 Unable to handle kernel NULL pointer dereference at virtual address 0100
 pgd = c0004000
 [0100] *pgd=
 Internal error: Oops: 5 [#1] ARM
 Modules linked in:
 CPU: 0Not tainted  (3.5.0 #9)
 PC is at s3c_hsotg_handle_outdone+0x44/0x158
 LR is at s3c_hsotg_irq+0x75c/0x804
 pc : [c023e7fc]lr : [c024061c]psr: 6193
 sp : c782fd20  ip : 0029  fp : c13a1460
 r10:   r9 : 0008  r8 : 00d0
 r7 : c13a1400  r6 : 0002  r5 :   r4 : 00060002
 r3 : 00d0  r2 :   r1 : 00080200  r0 : c13a1400
 Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
 Control: 00c5387d  Table: 50004008  DAC: 0017
 Process swapper (pid: 1, stack limit = 0xc782e268)
 Stack: (0xc782fd20 to 0xc783)
 fd20: c13a1460 c0200f64  00060002  0002 c13a1400 0010
 fd40:  c024061c 00060002  0002 0008 c782fda0 c139a5c0
 fd60: c139a5c0   005a c04cc52c c04cc594 c04ea5fe c00565c0
 fd80:    c04cc52c c139a5c0 c04cc57c  c04eb328
 fda0: c04cc55c c04eb324 c04c44c0 c0056768 c04cc52c c04cc57c  c0058d64
 fdc0: 005a c04d7dd8  c005617c 005a c000efbc c04eb350 0001
 fde0: c782fe08 c000853c c036c540 6013  c782fe3c c04cc57c c04cc55c
 fe00: 6013 c000dd80 c04cc57c c782c000  0001 6013 c04cc52c
 fe20: c139a5c0 005a c04cc57c c04cc55c 6013 c04c44c0 f601 c782fe50
 fe40: c036c53c c036c540 6013  c023fec0 c00574c8  c008b2dc
 fe60: c023fec0   c13a1400 005a c139a5c0 c04cc52c c0057960
 fe80: 005a c13a1400 c04c44b8  c051d238 c049b0ec  c03688fc
 fea0: c7853e60 c13a1400 c7804f80  c04c44f4 6013 c7855a80 
 fec0: c04e1bb4 c04c44c0 c04c44c0 c04e1bb4 c04e1bb4 c051d238 c049b0ec 
 fee0: c04eb040 c020588c c04c44c0 c0204524 c04c44c0 c04c44f4 c04e1bb4 c02046ac
 ff00: c13a01e0 c0204738  c782ff18 c04e1bb4 c0202e30 c7803878 c7823700
 ff20: c04dd1d0 c040b8d4 c04e1bb4 c04e1bb4 c04dd1d0 c0203600 c040b8d4 c01b8568
 ff40:   c04e1bb4 0007 c04eb040 c782e000 c04a65e0 c0204ce8
 ff60:  c04a65d4 0007 c04eb040 c782e000 c0008628 c04c7ea0 
 ff80: 009c  c0625cf9 c0037178 0006 0006 c0461b84 c042cee8
 ffa0: c04c7ea0 c04abdd4 c04a65d4 0007 c04eb040 009c c04841b0 c04a65e0
 ffc0:  c048430c 0006 0006 c04841b0   c048421c
 ffe0: c000f08c 0013    c000f08c  
 [c023e7fc] (s3c_hsotg_handle_outdone+0x44/0x158) from [c024061c]
 (s3c_hsotg_irq+0x75c/0x804)
 [c024061c] (s3c_hsotg_irq+0x75c/0x804) from [c00565c0]
 (handle_irq_event_percpu+0x50/0x1bc)
 [c00565c0] (handle_irq_event_percpu+0x50/0x1bc) from [c0056768]
 (handle_irq_event+0x3c/0x5c)
 [c0056768] (handle_irq_event+0x3c/0x5c) from [c0058d64]
 (handle_level_irq+0x8c/0x118)
 [c0058d64] (handle_level_irq+0x8c/0x118) from [c005617c]
 (generic_handle_irq+0x38/0x44)
 [c005617c] (generic_handle_irq+0x38/0x44) from [c000efbc]
 (handle_IRQ+0x30/0x84)
 [c000efbc] (handle_IRQ+0x30/0x84) from [c000853c] 
 (vic_handle_irq+0x68/0xa8)
 [c000853c] (vic_handle_irq+0x68/0xa8) from [c000dd80] 
 (__irq_svc+0x40/0x60)
 Exception stack(0xc782fe08 to 0xc782fe50)
 fe00:   c04cc57c c782c000  0001 6013 c04cc52c
 fe20: c139a5c0 005a c04cc57c c04cc55c 6013 c04c44c0 f601 c782fe50
 fe40: c036c53c c036c540 6013 
 [c000dd80] (__irq_svc+0x40/0x60) from [c036c540]
 (_raw_spin_unlock_irqrestore+0x10/0x14)
 [c036c540] (_raw_spin_unlock_irqrestore+0x10/0x14) from [c00574c8]
 (__setup_irq+0x178/0x3f8)
 [c00574c8] (__setup_irq+0x178/0x3f8) from [c0057960]
 (request_threaded_irq+0xc4/0x12c)
 [c0057960] (request_threaded_irq+0xc4/0x12c) from [c03688fc]
 (s3c_hsotg_probe+0x14c/0x700)
 [c03688fc] (s3c_hsotg_probe+0x14c/0x700) from [c020588c]
 (platform_drv_probe+0x18/0x1c)
 [c020588c] (platform_drv_probe+0x18/0x1c) from [c0204524]
 (driver_probe_device+0x78/0x200)
 [c0204524] (driver_probe_device+0x78/0x200) from [c0204738]
 (__driver_attach+0x8c/0x90)
 [c0204738] (__driver_attach+0x8c/0x90) from [c0202e30]
 (bus_for_each_dev+0x60/0x8c)
 [c0202e30] (bus_for_each_dev+0x60/0x8c) from [c0203600]
 (bus_add_driver+0xac/0x250)
 [c0203600] (bus_add_driver+0xac/0x250) from [c0204ce8]
 (driver_register+0x58/0x130)
 [c0204ce8] (driver_register+0x58/0x130) from [c0008628]
 (do_one_initcall+0x34/0x17c)
 [c0008628] (do_one_initcall+0x34/0x17c) from [c048430c]
 (kernel_init+0xf0/0x1bc)
 [c048430c] (kernel_init+0xf0/0x1bc) from [c000f08c]
 (kernel_thread_exit+0x0/0x8)
 Code: e0433106 e0833006 e1a03183 e0828003 (e5984030)
 ---[ end trace 2ea4e574318ecf99 ]---
 

Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-06 Thread Lukasz Majewski
Hi,

 Hi,
 
 On Mon, Aug 06, 2012 at 06:12:05PM +0800, Peiyong Feng wrote:
  I got a kernel panic when try hsotg of ok6410 which is based on
  s3c6410:
As you said, you are using the ok6410. And it is based on the s3c6410
CPU. S3C6410 is a single core CPU. I assume that ok6410 is also single
core?

  
  
  cdc_acm: USB Abstract Control Model driver for USB modems and ISDN
  adapters Unable to handle kernel NULL pointer dereference at
  virtual address 0100 

  pgd = c0004000
  [0100] *pgd=
  Internal error: Oops: 5 [#1] ARM
  Modules linked in:
  CPU: 0Not tainted  (3.5.0 #9)
  PC is at s3c_hsotg_handle_outdone+0x44/0x158
  LR is at s3c_hsotg_irq+0x75c/0x804
  pc : [c023e7fc]lr : [c024061c]psr: 6193
  sp : c782fd20  ip : 0029  fp : c13a1460
  r10:   r9 : 0008  r8 : 00d0
  r7 : c13a1400  r6 : 0002  r5 :   r4 : 00060002
  r3 : 00d0  r2 :   r1 : 00080200  r0 : c13a1400
  Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
  Control: 00c5387d  Table: 50004008  DAC: 0017
  Process swapper (pid: 1, stack limit = 0xc782e268)
  Stack: (0xc782fd20 to 0xc783)
  fd20: c13a1460 c0200f64  00060002  0002
  c13a1400 0010 fd40:  c024061c 00060002 
  0002 0008 c782fda0 c139a5c0 fd60: c139a5c0 
   005a c04cc52c c04cc594 c04ea5fe c00565c0 fd80:
     c04cc52c c139a5c0 c04cc57c 
  c04eb328 fda0: c04cc55c c04eb324 c04c44c0 c0056768 c04cc52c
  c04cc57c  c0058d64 fdc0: 005a c04d7dd8 
  c005617c 005a c000efbc c04eb350 0001 fde0: c782fe08
  c000853c c036c540 6013  c782fe3c c04cc57c c04cc55c
  fe00: 6013 c000dd80 c04cc57c c782c000  0001
  6013 c04cc52c fe20: c139a5c0 005a c04cc57c c04cc55c
  6013 c04c44c0 f601 c782fe50 fe40: c036c53c c036c540
  6013  c023fec0 c00574c8  c008b2dc fe60:
  c023fec0   c13a1400 005a c139a5c0 c04cc52c
  c0057960 fe80: 005a c13a1400 c04c44b8  c051d238
  c049b0ec  c03688fc fea0: c7853e60 c13a1400 c7804f80
   c04c44f4 6013 c7855a80  fec0: c04e1bb4
  c04c44c0 c04c44c0 c04e1bb4 c04e1bb4 c051d238 c049b0ec 
  fee0: c04eb040 c020588c c04c44c0 c0204524 c04c44c0 c04c44f4
  c04e1bb4 c02046ac ff00: c13a01e0 c0204738  c782ff18
  c04e1bb4 c0202e30 c7803878 c7823700 ff20: c04dd1d0 c040b8d4
  c04e1bb4 c04e1bb4 c04dd1d0 c0203600 c040b8d4 c01b8568 ff40:
    c04e1bb4 0007 c04eb040 c782e000 c04a65e0
  c0204ce8 ff60:  c04a65d4 0007 c04eb040 c782e000
  c0008628 c04c7ea0  ff80: 009c  c0625cf9
  c0037178 0006 0006 c0461b84 c042cee8 ffa0: c04c7ea0
  c04abdd4 c04a65d4 0007 c04eb040 009c c04841b0 c04a65e0
  ffc0:  c048430c 0006 0006 c04841b0 
   c048421c ffe0: c000f08c 0013  
   c000f08c   [c023e7fc]
  (s3c_hsotg_handle_outdone+0x44/0x158) from [c024061c]
  (s3c_hsotg_irq+0x75c/0x804) [c024061c]
  (s3c_hsotg_irq+0x75c/0x804) from [c00565c0]
  (handle_irq_event_percpu+0x50/0x1bc) [c00565c0]
  (handle_irq_event_percpu+0x50/0x1bc) from [c0056768]
  (handle_irq_event+0x3c/0x5c) [c0056768]
  (handle_irq_event+0x3c/0x5c) from [c0058d64]
  (handle_level_irq+0x8c/0x118) [c0058d64]
  (handle_level_irq+0x8c/0x118) from [c005617c]
  (generic_handle_irq+0x38/0x44) [c005617c]
  (generic_handle_irq+0x38/0x44) from [c000efbc]
  (handle_IRQ+0x30/0x84) [c000efbc] (handle_IRQ+0x30/0x84) from
  [c000853c] (vic_handle_irq+0x68/0xa8) [c000853c]
  (vic_handle_irq+0x68/0xa8) from [c000dd80] (__irq_svc+0x40/0x60)
  Exception stack(0xc782fe08 to 0xc782fe50) fe00:
  c04cc57c c782c000  0001 6013 c04cc52c fe20:
  c139a5c0 005a c04cc57c c04cc55c 6013 c04c44c0 f601
  c782fe50 fe40: c036c53c c036c540 6013  [c000dd80]
  (__irq_svc+0x40/0x60) from [c036c540]
  (_raw_spin_unlock_irqrestore+0x10/0x14) [c036c540]
  (_raw_spin_unlock_irqrestore+0x10/0x14) from [c00574c8]
  (__setup_irq+0x178/0x3f8) [c00574c8] (__setup_irq+0x178/0x3f8)
  from [c0057960] (request_threaded_irq+0xc4/0x12c) [c0057960]
  (request_threaded_irq+0xc4/0x12c) from [c03688fc]
  (s3c_hsotg_probe+0x14c/0x700) [c03688fc]
  (s3c_hsotg_probe+0x14c/0x700) from [c020588c]
  (platform_drv_probe+0x18/0x1c) [c020588c]
  (platform_drv_probe+0x18/0x1c) from [c0204524]
  (driver_probe_device+0x78/0x200) [c0204524]
  (driver_probe_device+0x78/0x200) from [c0204738]
  (__driver_attach+0x8c/0x90) [c0204738]
  (__driver_attach+0x8c/0x90) from [c0202e30]
  (bus_for_each_dev+0x60/0x8c) [c0202e30]
  (bus_for_each_dev+0x60/0x8c) from [c0203600]
  (bus_add_driver+0xac/0x250) [c0203600]
  (bus_add_driver+0xac/0x250) from [c0204ce8]
  (driver_register+0x58/0x130) [c0204ce8]
  (driver_register+0x58/0x130) from [c0008628]
  (do_one_initcall+0x34/0x17c) [c0008628]
  

Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-06 Thread Peiyong Feng
2012/8/6 Lukasz Majewski l.majew...@samsung.com:
 Hi,

 Hi,

 On Mon, Aug 06, 2012 at 06:12:05PM +0800, Peiyong Feng wrote:
  I got a kernel panic when try hsotg of ok6410 which is based on
  s3c6410:
 As you said, you are using the ok6410. And it is based on the s3c6410
 CPU. S3C6410 is a single core CPU. I assume that ok6410 is also single
 core?
yes

 
 
  cdc_acm: USB Abstract Control Model driver for USB modems and ISDN
  adapters Unable to handle kernel NULL pointer dereference at
  virtual address 0100

  pgd = c0004000
  [0100] *pgd=
  Internal error: Oops: 5 [#1] ARM
  Modules linked in:
  CPU: 0Not tainted  (3.5.0 #9)
  PC is at s3c_hsotg_handle_outdone+0x44/0x158
  LR is at s3c_hsotg_irq+0x75c/0x804
  pc : [c023e7fc]lr : [c024061c]psr: 6193
  sp : c782fd20  ip : 0029  fp : c13a1460
  r10:   r9 : 0008  r8 : 00d0
  r7 : c13a1400  r6 : 0002  r5 :   r4 : 00060002
  r3 : 00d0  r2 :   r1 : 00080200  r0 : c13a1400
  Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
  Control: 00c5387d  Table: 50004008  DAC: 0017
  Process swapper (pid: 1, stack limit = 0xc782e268)
  Stack: (0xc782fd20 to 0xc783)
  fd20: c13a1460 c0200f64  00060002  0002
  c13a1400 0010 fd40:  c024061c 00060002 
  0002 0008 c782fda0 c139a5c0 fd60: c139a5c0 
   005a c04cc52c c04cc594 c04ea5fe c00565c0 fd80:
     c04cc52c c139a5c0 c04cc57c 
  c04eb328 fda0: c04cc55c c04eb324 c04c44c0 c0056768 c04cc52c
  c04cc57c  c0058d64 fdc0: 005a c04d7dd8 
  c005617c 005a c000efbc c04eb350 0001 fde0: c782fe08
  c000853c c036c540 6013  c782fe3c c04cc57c c04cc55c
  fe00: 6013 c000dd80 c04cc57c c782c000  0001
  6013 c04cc52c fe20: c139a5c0 005a c04cc57c c04cc55c
  6013 c04c44c0 f601 c782fe50 fe40: c036c53c c036c540
  6013  c023fec0 c00574c8  c008b2dc fe60:
  c023fec0   c13a1400 005a c139a5c0 c04cc52c
  c0057960 fe80: 005a c13a1400 c04c44b8  c051d238
  c049b0ec  c03688fc fea0: c7853e60 c13a1400 c7804f80
   c04c44f4 6013 c7855a80  fec0: c04e1bb4
  c04c44c0 c04c44c0 c04e1bb4 c04e1bb4 c051d238 c049b0ec 
  fee0: c04eb040 c020588c c04c44c0 c0204524 c04c44c0 c04c44f4
  c04e1bb4 c02046ac ff00: c13a01e0 c0204738  c782ff18
  c04e1bb4 c0202e30 c7803878 c7823700 ff20: c04dd1d0 c040b8d4
  c04e1bb4 c04e1bb4 c04dd1d0 c0203600 c040b8d4 c01b8568 ff40:
    c04e1bb4 0007 c04eb040 c782e000 c04a65e0
  c0204ce8 ff60:  c04a65d4 0007 c04eb040 c782e000
  c0008628 c04c7ea0  ff80: 009c  c0625cf9
  c0037178 0006 0006 c0461b84 c042cee8 ffa0: c04c7ea0
  c04abdd4 c04a65d4 0007 c04eb040 009c c04841b0 c04a65e0
  ffc0:  c048430c 0006 0006 c04841b0 
   c048421c ffe0: c000f08c 0013  
   c000f08c   [c023e7fc]
  (s3c_hsotg_handle_outdone+0x44/0x158) from [c024061c]
  (s3c_hsotg_irq+0x75c/0x804) [c024061c]
  (s3c_hsotg_irq+0x75c/0x804) from [c00565c0]
  (handle_irq_event_percpu+0x50/0x1bc) [c00565c0]
  (handle_irq_event_percpu+0x50/0x1bc) from [c0056768]
  (handle_irq_event+0x3c/0x5c) [c0056768]
  (handle_irq_event+0x3c/0x5c) from [c0058d64]
  (handle_level_irq+0x8c/0x118) [c0058d64]
  (handle_level_irq+0x8c/0x118) from [c005617c]
  (generic_handle_irq+0x38/0x44) [c005617c]
  (generic_handle_irq+0x38/0x44) from [c000efbc]
  (handle_IRQ+0x30/0x84) [c000efbc] (handle_IRQ+0x30/0x84) from
  [c000853c] (vic_handle_irq+0x68/0xa8) [c000853c]
  (vic_handle_irq+0x68/0xa8) from [c000dd80] (__irq_svc+0x40/0x60)
  Exception stack(0xc782fe08 to 0xc782fe50) fe00:
  c04cc57c c782c000  0001 6013 c04cc52c fe20:
  c139a5c0 005a c04cc57c c04cc55c 6013 c04c44c0 f601
  c782fe50 fe40: c036c53c c036c540 6013  [c000dd80]
  (__irq_svc+0x40/0x60) from [c036c540]
  (_raw_spin_unlock_irqrestore+0x10/0x14) [c036c540]
  (_raw_spin_unlock_irqrestore+0x10/0x14) from [c00574c8]
  (__setup_irq+0x178/0x3f8) [c00574c8] (__setup_irq+0x178/0x3f8)
  from [c0057960] (request_threaded_irq+0xc4/0x12c) [c0057960]
  (request_threaded_irq+0xc4/0x12c) from [c03688fc]
  (s3c_hsotg_probe+0x14c/0x700) [c03688fc]
  (s3c_hsotg_probe+0x14c/0x700) from [c020588c]
  (platform_drv_probe+0x18/0x1c) [c020588c]
  (platform_drv_probe+0x18/0x1c) from [c0204524]
  (driver_probe_device+0x78/0x200) [c0204524]
  (driver_probe_device+0x78/0x200) from [c0204738]
  (__driver_attach+0x8c/0x90) [c0204738]
  (__driver_attach+0x8c/0x90) from [c0202e30]
  (bus_for_each_dev+0x60/0x8c) [c0202e30]
  (bus_for_each_dev+0x60/0x8c) from [c0203600]
  (bus_add_driver+0xac/0x250) [c0203600]
  (bus_add_driver+0xac/0x250) from [c0204ce8]
  (driver_register+0x58/0x130) [c0204ce8]
  (driver_register+0x58/0x130) from [c0008628]