Re: [Qemu-devel] [PATCH for-3.0 0/1] Fix the Nokia N810 tablet MMC

2018-07-09 Thread Peter Maydell
On 6 July 2018 at 17:21, Philippe Mathieu-Daudé  wrote:
> Hi Peter,
>
> This bug was previously reported here:
> http://lists.nongnu.org/archive/html/qemu-devel/2018-06/msg01824.html
>
> Diff before/after ecd219f7abb using -append "console=ttyS1 printk.time=0"
> option to boot http://people.linaro.org/~peter.maydell/n8x0-images.tgz
>
>  mmci-omap mmci-omap.0: command timeout (CMD5)
>  mmc0: host does not support reading read-only switch. assuming
> write-enable.
>  mmc0: new SDHC card at address 4567
> -Waiting for root device /dev/mmcblk0p1...
>  mmcblk0: mmc0:4567 QEMU! 1.81 GiB
>   mmcblk0: p1 p2
> -EXT3-fs: barriers not enabled
> -EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode
> -VFS: Mounted root (ext3 filesystem) readonly on device 179:1.
> -kjournald starting.  Commit interval 5 seconds
> -devtmpfs: mounted
> -Freeing init memory: 132K
> -mmci-omap mmci-omap.0: command timeout (CMD52)
> -mmci-omap mmci-omap.0: command timeout (CMD52)
> -mmci-omap mmci-omap.0: command timeout (CMD8)
> -mmci-omap mmci-omap.0: command timeout (CMD5)
> -mmci-omap mmci-omap.0: command timeout (CMD5)
> -mmci-omap mmci-omap.0: command timeout (CMD5)
> -mmci-omap mmci-omap.0: command timeout (CMD5)
> -mmci-omap mmci-omap.0: command timeout (CMD55)
> -mmci-omap mmci-omap.0: command timeout (CMD55)
> -mmci-omap mmci-omap.0: command timeout (CMD55)
> -mmci-omap mmci-omap.0: command timeout (CMD55)
> -mmci-omap mmci-omap.0: command timeout (CMD1)

FWIW my n8x0 image still produces these command timeout complaints
even with your patch (and it doesn't oops either way). Probably
just a different kernel version.

thanks
-- PMM



[Qemu-devel] [PATCH for-3.0 0/1] Fix the Nokia N810 tablet MMC

2018-07-06 Thread Philippe Mathieu-Daudé
Hi Peter,

This bug was previously reported here:
http://lists.nongnu.org/archive/html/qemu-devel/2018-06/msg01824.html

Diff before/after ecd219f7abb using -append "console=ttyS1 printk.time=0"
option to boot http://people.linaro.org/~peter.maydell/n8x0-images.tgz

 mmci-omap mmci-omap.0: command timeout (CMD5)
 mmc0: host does not support reading read-only switch. assuming
write-enable.
 mmc0: new SDHC card at address 4567
-Waiting for root device /dev/mmcblk0p1...
 mmcblk0: mmc0:4567 QEMU! 1.81 GiB
  mmcblk0: p1 p2
-EXT3-fs: barriers not enabled
-EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode
-VFS: Mounted root (ext3 filesystem) readonly on device 179:1.
-kjournald starting.  Commit interval 5 seconds
-devtmpfs: mounted
-Freeing init memory: 132K
-mmci-omap mmci-omap.0: command timeout (CMD52)
-mmci-omap mmci-omap.0: command timeout (CMD52)
-mmci-omap mmci-omap.0: command timeout (CMD8)
-mmci-omap mmci-omap.0: command timeout (CMD5)
-mmci-omap mmci-omap.0: command timeout (CMD5)
-mmci-omap mmci-omap.0: command timeout (CMD5)
-mmci-omap mmci-omap.0: command timeout (CMD5)
-mmci-omap mmci-omap.0: command timeout (CMD55)
-mmci-omap mmci-omap.0: command timeout (CMD55)
-mmci-omap mmci-omap.0: command timeout (CMD55)
-mmci-omap mmci-omap.0: command timeout (CMD55)
-mmci-omap mmci-omap.0: command timeout (CMD1)
-lcd_mipid spi1.1: performing LCD ESD recovery
-lcd_mipid spi1.1: performing LCD ESD recovery
+mmci-omap mmci-omap.0: command timeout (CMD18)
+mmcblk0: retrying using single block read
+mmci-omap mmci-omap.0: command timeout (CMD17)
+Unable to handle kernel NULL pointer dereference at virtual address
0018
+pgd = c0004000
+[0018] *pgd=
+Internal error: Oops: 5 [#1] PREEMPT
+last sysfs file:
+Modules linked in:
+CPU: 0Tainted: GW(2.6.35~rc4-129.1-n8x0 #1)
+PC is at mmc_omap_dma_cb+0xb8/0x174
+LR is at omap2_dma_irq_handler+0x240/0x294
+pc : []lr : []psr: 2193
+sp : c7d49db8  ip : c7c4c800  fp : 0001
+r10: 0060  r9 : c7c4c950  r8 : 0001
+r7 : 032c  r6 : 0007  r5 : 0150  r4 : c7d4ba00
+r3 :   r2 : 0007  r1 : 0060  r0 : 0007
+Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
+Control: 00c5387d  Table: 80004008  DAC: 0017
+Process mmcqd (pid: 462, stack limit = 0xc7d48268)
+Stack: (0xc7d49db8 to 0xc7d4a000)
+9da0:   c03baed4
0150
+9dc0: 0007 032c 0001 c003c3ac 000c  c7d49e18
c0399a20
+9de0:   000c  c7d48000 0001 0001
c0081318
+9e00: c039ccc8 000c c0399a20 0001  c00834c8 000c

+9e20: 0001 c002906c  fa0fe000 0001 c0029ac8 c7d5ed24
c7d5ed24
+9e40: c7d49e68 0001 c7d57320 c7d64400 0001 c7d5ed24 c7d49e90
c7d48000
+9e60: 0001 0001 0ffe c7d49e80 c0215fa8 c0215ffc 6013

+9e80: 0001 29e8d608 c7d57320 c7d49ea4 c7d49ea4 c7d49efc 
c7d49e64
+9ea0: c0210128 0011 0022    
00b5
+9ec0:  ff92 c7d49efc c7d49e90 000c  

+9ee0:   049d    
05f5e100
+9f00:  0200 0001  0200  
c7d49e90
+9f20: 0001 c7d64800 c7eca800 c7d60980 c7d57320 c0171dc4 c7eca800
c7d60980
+9f40: c7d57320  01b1 c01729a0 c7ec4e40  
c7d48000
+9f60: c7ec4e40  c7d48000 c7ec4e40  c7d49f84 c7d57320
c0167680
+9f80: c7ec4e40 c7d48000 c7d5ed24 c7d5ed2c c7ec4e40  c7ec4fb0
0001
+9fa0: c7d57320 c02169b8  c7c6be28 c7d49fd4 c02168c0 c7d5ed24

+9fc0:    c00692dc   c7d49fd8
c7d49fd8
+9fe0:      c002af04 

+[] (mmc_omap_dma_cb+0xb8/0x174) from []
(omap2_dma_irq_handler+0x240/0x294)
+[] (omap2_dma_irq_handler+0x240/0x294) from []
(handle_IRQ_event+0x24/0xe4)
+[] (handle_IRQ_event+0x24/0xe4) from []
(handle_level_irq+0xd4/0x16c)
+[] (handle_level_irq+0xd4/0x16c) from []
(asm_do_IRQ+0x6c/0x8c)
+[] (asm_do_IRQ+0x6c/0x8c) from [] (__irq_svc+0x48/0xac)
+Exception stack(0xc7d49e38 to 0xc7d49e80)
+9e20:   c7d5ed24
c7d5ed24
+9e40: c7d49e68 0001 c7d57320 c7d64400 0001 c7d5ed24 c7d49e90
c7d48000
+9e60: 0001 0001 0ffe c7d49e80 c0215fa8 c0215ffc 6013

+[] (__irq_svc+0x48/0xac) from []
(mmc_blk_issue_rq+0x240/0x590)
+[] (mmc_blk_issue_rq+0x240/0x590) from []
(mmc_queue_thread+0xf8/0xfc)
+[] (mmc_queue_thread+0xf8/0xfc) from []
(kthread+0x78/0x80)
+[] (kthread+0x78/0x80) from []
(kernel_thread_exit+0x0/0x8)
+Code: e59f00c0 eaf0 e3110020 08bd81f0 (e5931018)
+---[ end trace 1b75b31a2719ed20 ]---
+Kernel panic - not syncing: Fatal exception in interrupt

Trace diff:

@@ -245,6 +247,7 @@
  16-bit register 0x04
  16-bit register 0x03