xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* cubieboard2's sd/mmc driver on xen about DMA read data error
@ 2014-04-01 16:10 杜琪
  2014-04-02  7:20 ` Ian Campbell
  2014-04-02  9:52 ` Ian Campbell
  0 siblings, 2 replies; 19+ messages in thread
From: 杜琪 @ 2014-04-01 16:10 UTC (permalink / raw)
  To: xen-devel@lists.xen.org; +Cc: Ian Campbell, bjzhang@suse.com


[-- Attachment #1.1: Type: text/plain, Size: 41777 bytes --]

Hi all,
     I have got this kernel with mmc driver on cubieboard2 from : https://github.com/jwrdegoede/linux-sunxi.git  (test branch) . 
     I  have made the Xen's Dom0 configuration according this :http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs. and the kernel can be booted by Xen4.4.
     The question we met is that some CMD can be accepted(CMD7,CMD0 ....) and but some can't(CMD52,CMD5,CMD51). 
     We have found that the CMD51 is attempted to read the data from SD card to memory through DMA , so we replaced all the dma_ops with xen_dma_ops , where it is in struct "dma_map_ops xen_swiotlb_dma_ops" in arch/arm/xen/mm.c.

Below is my kernel dump information, thanks everyone.

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.13.0-rc4+ (root@Lenovo-G480) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-1ubuntu1) ) #36 SMP Tue Apr 4
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Cubietech Cubieboard2
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0b40b00, node_mem_map c0c42000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] psci: probing function IDs from device-tree
[    0.000000] PERCPU: Embedded 9 pages/cpu @c104b000 s13632 r8192 d15040 u36864
[    0.000000] pcpu-alloc: s13632 r8192 d15040 u36864 alloc=9*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=hvc0,115200n8 debug ignore_loglevel rw rootwait earlyprintk=xen clk_ignore_unused rof
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 1048576 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 407828K/524288K available (5994K kernel code, 508K rwdata, 2384K rodata, 2669K init, 953K bss, 116460K re)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0836bf8   (8379 kB)
[    0.000000]       .init : 0xc0837000 - 0xc0ad2540   (2670 kB)
[    0.000000]       .data : 0xc0ad4000 - 0xc0b53050   ( 509 kB)
[    0.000000]        .bss : 0xc0b53050 - 0xc0c415e8   ( 954 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[    0.000000] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps every 26843545593ns
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] Switching to timer-based delay loop
[    0.000000] Console: colour dummy device 80x30
[    0.000526] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000541] pid_max: default: 32768 minimum: 301
[    0.000724] Security Framework initialized
[    0.000776] SELinux:  Initializing.
[    0.000859] SELinux:  Starting in permissive mode
[    0.001081] Mount-cache hash table entries: 512
[    0.004444] Initializing cgroup subsys memory
[    0.004497] Initializing cgroup subsys devices
[    0.004508] Initializing cgroup subsys freezer
[    0.004518] Initializing cgroup subsys net_cls
[    0.004527] Initializing cgroup subsys blkio
[    0.004536] Initializing cgroup subsys perf_event
[    0.004665] CPU: Testing write buffer coherency: ok
[    0.004713] ftrace: allocating 24448 entries in 48 pages
[    0.038458] /cpus/cpu@0 missing clock-frequency property
[    0.038487] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.038528] Setting up static identity map for 0x405a9318 - 0x405a9370
[    0.045722] Brought up 1 CPUs
[    0.045739] SMP: Total of 1 processors activated.
[    0.045747] CPU: All CPU(s) started in SVC mode.
[    0.046768] devtmpfs: initialized
[    0.051741] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.051918] Xen 4.4 support found, events_irq=31 gnttab_frame_pfn=b0000
[    0.051998] xen:grant_table: Grant tables using version 1 layout
[    0.052065] Grant table initialized
[    0.058963] atomic64 test passed
[    0.058980] pinctrl core: initialized pinctrl subsystem
[    0.059502] regulator-dummy: no parameters
[    0.059965] NET: Registered protocol family 16
[    0.060581] Xen: initializing cpu0
[    0.060913] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.062386] xen:swiotlb_xen: Warning: only able to allocate 4 MB for software IO TLB
[    0.064611] software IO TLB [mem 0x5f000000-0x5f400000] (4MB) mapped at [df000000-df3fffff]
[    0.067079] No ATAGs?
[    0.067109] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.067120] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.067350] Serial: AMBA PL011 UART driver
[    0.074656] bio: create slab <bio-0> at 0
[    0.075468] xen:balloon: Initialising balloon driver
[    0.075862] reg-fixed-voltage ahci-5v.3: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, defere
[    0.075888] platform ahci-5v.3: Driver reg-fixed-voltage requests probe deferral
[    0.075914] reg-fixed-voltage usb1-vbus.4: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, dee
[    0.075928] platform usb1-vbus.4: Driver reg-fixed-voltage requests probe deferral
[    0.075950] reg-fixed-voltage usb2-vbus.5: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, dee
[    0.075964] platform usb2-vbus.5: Driver reg-fixed-voltage requests probe deferral
[    0.077184] SCSI subsystem initialized
[    0.077514] libata version 3.00 loaded.
[    0.077805] usbcore: registered new interface driver usbfs
[    0.077862] usbcore: registered new interface driver hub
[    0.078016] usbcore: registered new device driver usb
[    0.078250] pps_core: LinuxPPS API ver. 1 registered
[    0.078259] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.078285] PTP clock support registered
[    0.079081] NetLabel: Initializing
[    0.079093] NetLabel:  domain hash size = 128
[    0.079099] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.079177] NetLabel:  unlabeled traffic allowed by default
[    0.079598] Switched to clocksource arch_sys_counter
[    0.137655] NET: Registered protocol family 2
[    0.138683] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.138738] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.138804] TCP: Hash tables configured (established 4096 bind 4096)
[    0.138880] TCP: reno registered
[    0.138901] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.138935] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.139299] NET: Registered protocol family 1
[    0.139916] RPC: Registered named UNIX socket transport module.
[    0.139933] RPC: Registered udp transport module.
[    0.139940] RPC: Registered tcp transport module.
[    0.139947] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.320150] Unpacking initramfs...
[    0.320194] Initramfs unpacking failed: junk in compressed archive
[    0.439015] Freeing initrd memory: 98304K (c8200000 - ce200000)
[    0.441096] audit: initializing netlink socket (disabled)
[    0.441168] type=2000 audit(0.430:1): initialized
[    0.607368] zbud: loaded
[    0.608062] VFS: Disk quotas dquot_6.5.2
[    0.608340] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.610963] NFS: Registering the id_resolver key type
[    0.611036] Key type id_resolver registered
[    0.611045] Key type id_legacy registered
[    0.611065] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.611433] msgmni has been set to 988
[    0.611884] SELinux:  Registering netfilter hooks
[    0.615413] alg: No test for stdrng (krng)
[    0.615449] NET: Registered protocol family 38
[    0.615770] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.615992] io scheduler noop registered
[    0.616002] io scheduler deadline registered
[    0.616260] io scheduler cfq registered (default)
[    0.619227] sunxi-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.620530] xen:xen_evtchn: Event-channel device installed
[    1.419789] console [hvc0] enabled
[    1.423167] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.430973] Serial: AMBA driver
[    1.434822] [drm] Initialized drm 1.1.0 20060810
[    1.441206] libphy: Fixed MDIO Bus: probed
[    1.445778] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.452327] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.458724] usbcore: registered new interface driver usbserial
[    1.464574] usbcore: registered new interface driver usbserial_generic
[    1.471148] usbserial: USB Serial support registered for generic
[    1.477426] mousedev: PS/2 mouse device common for all mice
[    1.484234] #############+++sunxi_mmc_probe
[    1.488799] sunxi-mci 1c0f000.mmc: base:0xe08be000 irq:64
[    1.494197] probe success!!!!!!!!!
[    1.497935] hidraw: raw HID events driver (C) Jiri Kosina
[    1.503403] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
[    1.510641] usbcore: registered new interface driver usbhid
[    1.516141] usbhid: USB HID core driver
[    1.520110] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 timing 0
[    1.527329] Address of dma phy address is 5e838000 
[    1.532297] sunxi-mci 1c0f000.mmc: power on!
[    1.536795] drop_monitor: Initializing network drop monitor service
[    1.543341] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.548650] TCP: cubic registered
[    1.552053] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    1.559700] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.564823] sunxi-mci 1c0f000.mmc: setting clk to 400000, rounded 400000
[    1.571611] sunxi-mci 1c0f000.mmc: clk is now 400000
[    1.576617] Initializing XFRM netlink socket
[    1.581846] NET: Registered protocol family 10
[    1.587180] mip6: Mobile IPv6
[    1.590167] NET: Registered protocol family 17
[    1.594730] Key type dns_resolver registered
[    1.599201] ThumbEE CPU extension supported.
[    1.603453] Registering SWP/SWPB emulation handler
[    1.609056] registered taskstats version 1
[    1.614021] ahci-5v: 5000 mV 
[    1.617347] usb1-vbus: 5000 mV 
[    1.620895] usb2-vbus: 5000 mV 
[    1.624116] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.649733] mmc0: starting CMD52 arg 00000c00 flags 00000195
[    1.655319] 111111 sunxi mmc request
[    1.658949] SDXC_IntErrBit:bbc2
[    1.662210] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg c00 ie 0x0000bbc6 len 0
[    1.670342] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    1.675500] in sunxi_mmc_irq msk_int=260
[    1.679488] sunxi-mci 1c0f000.mmc: irq: rq df8a7e50 mi 00000104 idi 00000000
[    1.686573] in sunxi_mmc_irq host->int_sum=0
[    1.690906] in sunxi_mmc_irq host->int_sum=260
[    1.695412] SDXC_IntErrBit
[    1.698208] enter the sunxi_mmc_finalize_request!!!!
[    1.703214] here is error@@@@@@@@@@@@@@@,bbc2
[    1.707641] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    1.715526] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
[    1.722787] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    1.730026] mmc0: gated MCI clock
[    1.733388] mmc0: starting CMD52 arg 80000c08 flags 00000195
[    1.739124] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    1.746836] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.751957] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    1.813531] mmc0: ungated MCI clock
[    1.816936] 111111 sunxi mmc request
[    1.820596] SDXC_IntErrBit:bbc2
[    1.823793] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg 80000c08 ie 0x0000bbc6 len 0
[    1.832413] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    1.837559] in sunxi_mmc_irq msk_int=260
[    1.841551] sunxi-mci 1c0f000.mmc: irq: rq df8a7e50 mi 00000104 idi 00000000
[    1.848641] in sunxi_mmc_irq host->int_sum=0
[    1.852987] in sunxi_mmc_irq host->int_sum=260
[    1.857480] SDXC_IntErrBit
[    1.860271] enter the sunxi_mmc_finalize_request!!!!
[    1.865282] here is error@@@@@@@@@@@@@@@,bbc2
[    1.869708] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    1.877593] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
[    1.884842] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    1.892085] mmc0: gated MCI clock
[    1.895475] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    1.903182] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.908279] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    1.969892] mmc0: ungated MCI clock
[    1.973300] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    1.981033] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.986129] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.047778] mmc0: clock 0Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    2.054931] mmc0: gated MCI clock
[    2.059298] mmc0: starting CMD0 arg 00000000 flags 000000c0
[    2.064827] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    2.072508] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.077605] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.139219] mmc0: ungated MCI clock
[    2.142642] 111111 sunxi mmc request
[    2.146262] SDXC_IntErrBit:bbc2
[    2.149478] sunxi-mci 1c0f000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
[    2.156977] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    2.162120] in sunxi_mmc_irq msk_int=4
[    2.165933] sunxi-mci 1c0f000.mmc: irq: rq df8a7e78 mi 00000004 idi 00000000
[    2.173033] in sunxi_mmc_irq host->int_sum=0
[    2.177366] in sunxi_mmc_irq host->int_sum=4
[    2.181698] SDXC_IntDoneBit
[    2.184579] enter the sunxi_mmc_finalize_request!!!!
[    2.189593] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.197478] mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
[    2.204383] mmc0: clock 0Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    2.211622] mmc0: gated MCI clock
[    2.216013] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    2.223600] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.228697] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.290308] mmc0: ungated MCI clock
[    2.293716] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    2.301450] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.306545] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.368192] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    2.375342] mmc0: gated MCI clock
[    2.379711] mmc0: starting CMD8 arg 000001aa flags 000002f5
[    2.385228] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    2.392931] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.398028] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.459640] mmc0: ungated MCI clock
[    2.463042] 111111 sunxi mmc request
[    2.466682] SDXC_IntErrBit:bbc2
[    2.469918] sunxi-mci 1c0f000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
[    2.477489] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    2.482631] in sunxi_mmc_irq msk_int=4
[    2.486443] sunxi-mci 1c0f000.mmc: irq: rq df8a7e78 mi 00000004 idi 00000000
[    2.493543] in sunxi_mmc_irq host->int_sum=0
[    2.497876] in sunxi_mmc_irq host->int_sum=4
[    2.502208] SDXC_IntDoneBit
[    2.505089] enter the sunxi_mmc_finalize_request!!!!
[    2.510103] sunxi-mci 1c0f000.mmc: req done, resp 000001aa 00000000 00000000 00000000
[    2.517988] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
[    2.524893] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    2.532132] mmc0: gated MCI clock
[    2.535501] mmc0: starting CMD5 arg 00000000 flags 000002e1
[    2.541180] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    2.548842] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.553986] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.615570] mmc0: ungated MCI clock
[    2.618982] 111111 sunxi mmc request
[    2.622631] SDXC_IntErrBit:bbc2
[    2.625829] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.633754] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    2.638900] in sunxi_mmc_irq msk_int=260
[    2.642893] sunxi-mci 1c0f000.mmc: irq: rq df8a7e30 mi 00000104 idi 00000000
[    2.649982] in sunxi_mmc_irq host->int_sum=0
[    2.654316] in sunxi_mmc_irq host->int_sum=260
[    2.658821] SDXC_IntErrBit
[    2.661630] enter the sunxi_mmc_finalize_request!!!!
[    2.666623] here is error@@@@@@@@@@@@@@@,bbc2
[    2.671050] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.678987] mmc0: req failed (CMD5): -110, retrying...
[    2.684160] 111111 sunxi mmc request
[    2.687770] SDXC_IntErrBit:bbc2
[    2.691002] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.698891] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    2.704044] in sunxi_mmc_irq msk_int=260
[    2.708031] sunxi-mci 1c0f000.mmc: irq: rq df8a7e30 mi 00000104 idi 00000000
[    2.715120] in sunxi_mmc_irq host->int_sum=0
[    2.719453] in sunxi_mmc_irq host->int_sum=260
[    2.723959] SDXC_IntErrBit
[    2.726749] enter the sunxi_mmc_finalize_request!!!!
[    2.731760] here is error@@@@@@@@@@@@@@@,bbc2
[    2.736186] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.744092] mmc0: req failed (CMD5): -110, retrying...
[    2.749266] 111111 sunxi mmc request
[    2.752926] SDXC_IntErrBit:bbc2
[    2.756122] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.764052] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    2.769197] in sunxi_mmc_irq msk_int=260
[    2.773190] sunxi-mci 1c0f000.mmc: irq: rq df8a7e30 mi 00000104 idi 00000000
[    2.780280] in sunxi_mmc_irq host->int_sum=0
[    2.784613] in sunxi_mmc_irq host->int_sum=260
[    2.789119] SDXC_IntErrBit
[    2.791909] enter the sunxi_mmc_finalize_request!!!!
[    2.796927] here is error@@@@@@@@@@@@@@@,bbc2
[    2.801346] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.809250] mmc0: req failed (CMD5): -110, retrying...
[    2.814457] 111111 sunxi mmc request
[    2.818067] SDXC_IntErrBit:bbc2
[    2.821301] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.829188] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    2.834333] in sunxi_mmc_irq msk_int=260
[    2.838326] sunxi-mci 1c0f000.mmc: irq: rq df8a7e30 mi 00000104 idi 00000000
[    2.845416] in sunxi_mmc_irq host->int_sum=0
[    2.849749] in sunxi_mmc_irq host->int_sum=260
[    2.854255] SDXC_IntErrBit
[    2.857045] enter the sunxi_mmc_finalize_request!!!!
[    2.862056] here is error@@@@@@@@@@@@@@@,bbc2
[    2.866483] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.874380] mmc0: req done (CMD5): -110: 00000000 00000000 00000000 00000000
[    2.881528] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    2.888759] mmc0: gated MCI clock
[    2.892164] mmc0: starting CMD55 arg 00000000 flags 000000f5
[    2.897876] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    2.905588] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.910704] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.972289] mmc0: ungated MCI clock
[    2.975691] 111111 sunxi mmc request
[    2.979339] SDXC_IntErrBit:bbc2
[    2.982567] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[    2.990071] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    2.995216] in sunxi_mmc_irq msk_int=4
[    2.999025] sunxi-mci 1c0f000.mmc: irq: rq df8a7dc0 mi 00000004 idi 00000000
[    3.006126] in sunxi_mmc_irq host->int_sum=0
[    3.010459] in sunxi_mmc_irq host->int_sum=4
[    3.014791] SDXC_IntDoneBit
[    3.017668] enter the sunxi_mmc_finalize_request!!!!
[    3.022686] sunxi-mci 1c0f000.mmc: req done, resp 00400120 00000000 00000000 00000000
[    3.030571] mmc0: req done (CMD55): 0: 00400120 00000000 00000000 00000000
[    3.037565] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.044802] mmc0: gated MCI clock
[    3.048170] mmc0: starting CMD41 arg 00000000 flags 000000e1
[    3.053926] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.061618] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.066714] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.128325] mmc0: ungated MCI clock
[    3.131749] 111111 sunxi mmc request
[    3.135377] SDXC_IntErrBit:bbc2
[    3.138584] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 0 ie 0x0000bbc6 len 0
[    3.146106] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    3.151255] in sunxi_mmc_irq msk_int=4
[    3.155064] sunxi-mci 1c0f000.mmc: irq: rq df8a7e40 mi 00000004 idi 00000000
[    3.162165] in sunxi_mmc_irq host->int_sum=0
[    3.166498] in sunxi_mmc_irq host->int_sum=4
[    3.170830] SDXC_IntDoneBit
[    3.173706] enter the sunxi_mmc_finalize_request!!!!
[    3.178725] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
[    3.186609] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
[    3.193601] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.200840] mmc0: gated MCI clock
[    3.204233] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.211938] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.217034] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.278648] mmc0: ungated MCI clock
[    3.282075] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    3.289787] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.294885] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.356532] mmc0: clock 0Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    3.363682] mmc0: gated MCI clock
[    3.368050] mmc0: starting CMD0 arg 00000000 flags 000000c0
[    3.373590] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    3.381268] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.386365] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.447976] mmc0: ungated MCI clock
[    3.451396] 111111 sunxi mmc request
[    3.455028] SDXC_IntErrBit:bbc2
[    3.458233] sunxi-mci 1c0f000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
[    3.465732] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    3.470878] in sunxi_mmc_irq msk_int=4
[    3.474687] sunxi-mci 1c0f000.mmc: irq: rq df8a7e00 mi 00000004 idi 00000000
[    3.481787] in sunxi_mmc_irq host->int_sum=0
[    3.486120] in sunxi_mmc_irq host->int_sum=4
[    3.490453] SDXC_IntDoneBit
[    3.493328] enter the sunxi_mmc_finalize_request!!!!
[    3.498348] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
[    3.506232] mmc0: req done (CMD0): 0: 00ff8000 00000000 00000000 00000000
[    3.513139] mmc0: clock 0Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    3.520376] mmc0: gated MCI clock
[    3.524765] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    3.532351] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.537448] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.599059] mmc0: ungated MCI clock
[    3.602485] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.610198] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.615296] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.676950] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.684105] mmc0: gated MCI clock
[    3.688479] mmc0: starting CMD8 arg 000001aa flags 000002f5
[    3.694011] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.701697] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.706795] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.768418] mmc0: ungated MCI clock
[    3.771840] 111111 sunxi mmc request
[    3.775461] SDXC_IntErrBit:bbc2
[    3.778677] sunxi-mci 1c0f000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
[    3.786283] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    3.791430] in sunxi_mmc_irq msk_int=4
[    3.795240] sunxi-mci 1c0f000.mmc: irq: rq df8a7e00 mi 00000004 idi 00000000
[    3.802340] in sunxi_mmc_irq host->int_sum=0
[    3.806673] in sunxi_mmc_irq host->int_sum=4
[    3.811005] SDXC_IntDoneBit
[    3.813882] enter the sunxi_mmc_finalize_request!!!!
[    3.818901] sunxi-mci 1c0f000.mmc: req done, resp 000001aa 00000000 00000000 00000000
[    3.826785] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
[    3.833690] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.840929] mmc0: gated MCI clock
[    3.844299] mmc0: starting CMD55 arg 00000000 flags 000000f5
[    3.850053] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.857726] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.862871] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.924439] mmc0: ungated MCI clock
[    3.927840] 111111 sunxi mmc request
[    3.931508] SDXC_IntErrBit:bbc2
[    3.934698] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[    3.942216] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    3.947362] in sunxi_mmc_irq msk_int=4
[    3.951171] sunxi-mci 1c0f000.mmc: irq: rq df8a7d60 mi 00000004 idi 00000000
[    3.958271] in sunxi_mmc_irq host->int_sum=0
[    3.962604] in sunxi_mmc_irq host->int_sum=4
[    3.966936] SDXC_IntDoneBit
[    3.969813] enter the sunxi_mmc_finalize_request!!!!
[    3.974831] sunxi-mci 1c0f000.mmc: req done, resp 00000120 00000000 00000000 00000000
[    3.982716] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[    3.989711] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.996926] mmc0: gated MCI clock
[    4.000334] mmc0: starting CMD41 arg 41200000 flags 000000e1
[    4.006050] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.013764] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    4.018859] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    4.080470] mmc0: ungated MCI clock
[    4.083874] 111111 sunxi mmc request
[    4.087524] SDXC_IntErrBit:bbc2
[    4.090758] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 41200000 ie 0x0000bbc6 len 0
[    4.098841] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    4.103988] in sunxi_mmc_irq msk_int=4
[    4.107813] sunxi-mci 1c0f000.mmc: irq: rq df8a7de0 mi 00000004 idi 00000000
[    4.114898] in sunxi_mmc_irq host->int_sum=0
[    4.119231] in sunxi_mmc_irq host->int_sum=4
[    4.123563] SDXC_IntDoneBit
[    4.126441] enter the sunxi_mmc_finalize_request!!!!
[    4.131458] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
[    4.139354] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
[    4.146346] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.153574] mmc0: gated MCI clock
[    4.159670] mmc0: starting CMD55 arg 00000000 flags 000000f5
[    4.165247] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.172977] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    4.178073] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    4.239686] mmc0: ungated MCI clock
[    4.243098] 111111 sunxi mmc request
[    4.246729] SDXC_IntErrBit:bbc2
[    4.249966] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[    4.257449] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    4.262595] in sunxi_mmc_irq msk_int=4
[    4.266404] sunxi-mci 1c0f000.mmc: irq: rq df8a7d60 mi 00000004 idi 00000000
[    4.273504] in sunxi_mmc_irq host->int_sum=0
[    4.277837] in sunxi_mmc_irq host->int_sum=4
[    4.282170] SDXC_IntDoneBit
[    4.285046] enter the sunxi_mmc_finalize_request!!!!
[    4.290064] sunxi-mci 1c0f000.mmc: req done, resp 00000120 00000000 00000000 00000000
[    4.297950] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[    4.304942] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.312180] mmc0: gated MCI clock
[    4.315550] mmc0: starting CMD41 arg 41200000 flags 000000e1
[    4.321304] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.328988] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    4.334113] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    4.395705] mmc0: ungated MCI clock
[    4.399107] 111111 sunxi mmc request
[    4.402766] SDXC_IntErrBit:bbc2
[    4.405964] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 41200000 ie 0x0000bbc6 len 0
[    4.414091] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    4.419237] in sunxi_mmc_irq msk_int=4
[    4.423046] sunxi-mci 1c0f000.mmc: irq: rq df8a7de0 mi 00000004 idi 00000000
[    4.430146] in sunxi_mmc_irq host->int_sum=0
[    4.434479] in sunxi_mmc_irq host->int_sum=4
[    4.438821] SDXC_IntDoneBit
[    4.441688] enter the sunxi_mmc_finalize_request!!!!
[    4.446706] sunxi-mci 1c0f000.mmc: req done, resp c0ff8000 00000000 00000000 00000000
[    4.454592] mmc0: req done (CMD41): 0: c0ff8000 00000000 00000000 00000000
[    4.461585] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.468801] mmc0: gated MCI clock
[    4.472210] mmc0: starting CMD2 arg 00000000 flags 00000067
[    4.477850] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.485564] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    4.490668] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    4.552241] mmc0: ungated MCI clock
[    4.555643] 111111 sunxi mmc request
[    4.559283] SDXC_IntErrBit:bbc2
[    4.562517] sunxi-mci 1c0f000.mmc: cmd 2(800001c2) arg 0 ie 0x0000bbc6 len 0
[    4.570153] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    4.575299] in sunxi_mmc_irq msk_int=4
[    4.579109] sunxi-mci 1c0f000.mmc: irq: rq df8a7e20 mi 00000004 idi 00000000
[    4.586208] in sunxi_mmc_irq host->int_sum=0
[    4.590542] in sunxi_mmc_irq host->int_sum=4
[    4.594874] SDXC_IntDoneBit
[    4.597752] enter the sunxi_mmc_finalize_request!!!!
[    4.602770] sunxi-mci 1c0f000.mmc: req done, resp 02544d53 41303847 111dec2a ce00d59b
[    4.610656] mmc0: req done (CMD2): 0: 02544d53 41303847 111dec2a ce00d59b
[    4.617558] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.624797] mmc0: gated MCI clock
[    4.628162] !!!!!!!!!!!!! get cid err=0
[    4.632099] mmc0: starting CMD3 arg 00000000 flags 00000075
[    4.637726] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.645428] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    4.650542] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    4.712116] mmc0: ungated MCI clock
[    4.715519] 111111 sunxi mmc request
[    4.719159] SDXC_IntErrBit:bbc2
[    4.722394] sunxi-mci 1c0f000.mmc: cmd 3(80000143) arg 0 ie 0x0000bbc6 len 0
[    4.729793] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    4.734939] in sunxi_mmc_irq msk_int=4
[    4.738748] sunxi-mci 1c0f000.mmc: irq: rq df8a7e20 mi 00000004 idi 00000000
[    4.745848] in sunxi_mmc_irq host->int_sum=0
[    4.750181] in sunxi_mmc_irq host->int_sum=4
[    4.754515] SDXC_IntDoneBit
[    4.757390] enter the sunxi_mmc_finalize_request!!!!
[    4.762408] sunxi-mci 1c0f000.mmc: req done, resp 12340500 00000000 00000000 00000000
[    4.770293] mmc0: req done (CMD3): 0: 12340500 00000000 00000000 00000000
[    4.777199] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.784437] mmc0: gated MCI clock
[    4.787803] !!!!!!!!!!!!! send relative addr, err=0
[    4.792761] mmc0: starting CMD9 arg 12340000 flags 00000007
[    4.798406] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.806106] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    4.811222] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    4.872795] mmc0: ungated MCI clock
[    4.876197] 111111 sunxi mmc request
[    4.879867] SDXC_IntErrBit:bbc2
[    4.883054] sunxi-mci 1c0f000.mmc: cmd 9(800001c9) arg 12340000 ie 0x0000bbc6 len 0
[    4.891316] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    4.896465] in sunxi_mmc_irq msk_int=4
[    4.900287] sunxi-mci 1c0f000.mmc: irq: rq df8a7e00 mi 00000004 idi 00000000
[    4.907371] in sunxi_mmc_irq host->int_sum=0
[    4.911704] in sunxi_mmc_irq host->int_sum=4
[    4.916036] SDXC_IntDoneBit
[    4.918912] enter the sunxi_mmc_finalize_request!!!!
[    4.923932] sunxi-mci 1c0f000.mmc: req done, resp 400e0032 5b590000 3a477f80 0a40000b
[    4.931828] mmc0: req done (CMD9): 0: 400e0032 5b590000 3a477f80 0a40000b
[    4.938721] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.945961] mmc0: gated MCI clock
[    4.949325] !!!!!!!!!!!!! sd get csd, err=0
[    4.953607] mmc0: starting CMD7 arg 12340000 flags 00000015
[    4.959227] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.966935] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    4.972050] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    5.033625] mmc0: ungated MCI clock
[    5.037028] 111111 sunxi mmc request
[    5.040686] SDXC_IntErrBit:bbc2
[    5.043884] sunxi-mci 1c0f000.mmc: cmd 7(80000147) arg 12340000 ie 0x0000bbc6 len 0
[    5.051935] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    5.057087] in sunxi_mmc_irq msk_int=4
[    5.060891] sunxi-mci 1c0f000.mmc: irq: rq df8a7e20 mi 00000004 idi 00000000
[    5.067991] in sunxi_mmc_irq host->int_sum=0
[    5.072324] in sunxi_mmc_irq host->int_sum=4
[    5.076656] SDXC_IntDoneBit
[    5.079534] enter the sunxi_mmc_finalize_request!!!!
[    5.084551] sunxi-mci 1c0f000.mmc: req done, resp 00000700 00000000 00000000 00000000
[    5.092436] mmc0: req done (CMD7): 0: 00000700 00000000 00000000 00000000
[    5.099350] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    5.106583] mmc0: gated MCI clock
[    5.109964] !!!!!!!!!!!!! select card, err=0
[    5.114278] mmc0: starting CMD55 arg 12340000 flags 00000095
[    5.120031] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    5.127710] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    5.132846] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    5.194421] mmc0: ungated MCI clock
[    5.197823] 111111 sunxi mmc request
[    5.201491] SDXC_IntErrBit:bbc2
[    5.204681] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 12340000 ie 0x0000bbc6 len 0
[    5.212809] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
[    5.217956] in sunxi_mmc_irq msk_int=4
[    5.221784] sunxi-mci 1c0f000.mmc: irq: rq df8a7d38 mi 00000004 idi 00000000
[    5.228866] in sunxi_mmc_irq host->int_sum=0
[    5.233199] in sunxi_mmc_irq host->int_sum=4
[    5.237532] SDXC_IntDoneBit
[    5.240408] enter the sunxi_mmc_finalize_request!!!!
[    5.245426] sunxi-mci 1c0f000.mmc: req done, resp 00000920 00000000 00000000 00000000
[    5.253322] mmc0: req done (CMD55): 0: 00000920 00000000 00000000 00000000
[    5.260303] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    5.267522] mmc0: gated MCI clock
[    5.270933] ###################   dma address 0

 [    5.275587] mmc0: starting CMD51 arg 00000000 flags 000000b5
 [    5.281584] mmc0:     blksz 8 blocks 1 flags 00000200 tsac 100 ms nsac 0
 [    5.288351] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
 [    5.296070] sunxi-mci 1c0f000.mmc: ios->clock: 400000
 [    5.301172] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
 [    5.362750] mmc0: ungated MCI clock
 [    5.366153] 111111 sunxi mmc request
 [    5.369813] SDXC_IntErrBit:bbc2
 [    5.373001] data is not null !!!!!!!!!!!!  0 
 [    5.377419] enter the sunxi_mmc_prepare_dma
 [    5.381702] Addresssssssssssssss of ptr1 is 5e880500
 [    5.386702] sunxi-mci 1c0f000.mmc: cmd 51(80002373) arg 0 ie 0x0000bbca len 8
 [    5.394799] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
 [    5.399952] in sunxi_mmc_irq msk_int=2056
 [    5.404024] sunxi-mci 1c0f000.mmc: irq: rq df8a7dcc mi 00000808 idi 0000a000
 [    5.411114] in sunxi_mmc_irq host->int_sum=0
 [    5.415447] in sunxi_mmc_irq host->int_sum=2056
 [    5.420040] SDXC_IntErrBit
 [    5.422831] enter the sunxi_mmc_finalize_request!!!!
 [    5.427841] here is error@@@@@@@@@@@@@@@,bbc2
 [    5.432270] sunxi-mci 1c0f000.mmc: smc 0 err, cmd 51, RD FE !!
 [    5.438153] mrq->data is not null
 [    5.441533] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 [    5.446473] before dma_umap_sg
 [    5.449609] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
 [    5.457481] mrq->data->error:-110
 [    5.460864] sunxi-mci 1c0f000.mmc: data error, sending stop command
 [    5.467976] sunxi-mci 1c0f000.mmc: send stop command failed
 [    5.473471] mmc0: req done (CMD51): -110: 00000000 00000000 00000000 00000000
 [    5.480652] mmc0:     0 bytes transferred: -110
 [    5.485302] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
 [    5.492547] mmc0: gated MCI clock
 [    5.495911] !!!!!!!!!!!!! setup card, err=-110
 [    5.500437] !!!!!!!!!!!!! Detect and init the card, err=-110
 [    5.506132] mmc0: error -110 whilst initialising SD card
 [    5.511553] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
 [    5.519222] sunxi-mci 1c0f000.mmc: ios->clock: 400000
 [    5.524358] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
 [    5.585953] mmc0: ungated MCI clock
 [    5.589370] mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
 [    5.597093] sunxi-mci 1c0f000.mmc: ios->clock: 400000
 [    5.602209] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
 [    5.663797] mmc0: starting CMD1 arg 00000000 flags 000000e1
 [    5.669300] 111111 sunxi mmc request
 [    5.672941] SDXC_IntErrBit:bbc2
 [    5.676135] sunxi-mci 1c0f000.mmc: cmd 1(80000041) arg 0 ie 0x0000bbc6 len 0
 [    5.684060] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
 [    5.689210] in sunxi_mmc_irq msk_int=260
 [    5.693200] sunxi-mci 1c0f000.mmc: irq: rq df8a7e58 mi 00000104 idi 00000000
 [    5.700289] in sunxi_mmc_irq host->int_sum=0
 [    5.704622] in sunxi_mmc_irq host->int_sum=260
 [    5.709127] SDXC_IntErrBit
 [    5.711935] enter the sunxi_mmc_finalize_request!!!!
 [    5.716929] here is error@@@@@@@@@@@@@@@,bbc2
 [    5.721357] sunxi-mci 1c0f000.mmc: smc 0 err, cmd 1, RTO !!
 [    5.726999] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
 [    5.734899] mmc0: req done (CMD1): -110: 00000000 00000000 00000000 00000000
 [    5.742045] mmc0: clock 0Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
 [    5.749258] mmc0: gated MCI clock
 [    5.752707] mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
 [    5.760375] sunxi-mci 1c0f000.mmc: ios->clock: 400000
 [    5.765472] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
 [    5.827086] mmc0: ungated MCI clock
 [    5.830513] mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
 [    5.837686] sunxi-mci 1c0f000.mmc: power off!
 [    5.843157] mmc0: frequency set to 0 in disable function, this means the clock is already disabled.
 [    6.839682] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
 [    6.846229] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 timing 0
 [    6.853512] Address of dma phy address is 5e838000 
 [    6.858436] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
 [    6.863725] in sunxi_mmc_irq msk_int=0
 [    6.867532] sunxi-mci 1c0f000.mmc: irq: rq   (null) mi 00000000 idi 00000000
 [    6.874662] sunxi-mci 1c0f000.mmc: power on!
 [    6.889677] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
 [    6.897245] sunxi-mci 1c0f000.mmc: ios->clock: 400000
 [    6.902383] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
 [    6.979635] mmc0: starting CMD52 arg 00000c00 flags 00000195
 [    6.985218] 111111 sunxi mmc request
 [    6.988844] SDXC_IntErrBit:bbc2
 [    6.992084] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg c00 ie 0x0000bbc6 len 0
 [   13.829677] clk: Not disabling unused clocks
 [   13.837673] Freeing unused kernel memory: 2668K (c0837000 - c0ad2000)
 cat: can't open '/proc/cmdline': No such file or directory
 /bin/ash: can't access tty; job control turned off
 / # 
 

[-- Attachment #1.2: Type: text/html, Size: 44516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-01 16:10 cubieboard2's sd/mmc driver on xen about DMA read data error 杜琪
@ 2014-04-02  7:20 ` Ian Campbell
  2014-04-02  9:44   ` Julien Grall
  2014-04-03 10:56   ` Stefano Stabellini
  2014-04-02  9:52 ` Ian Campbell
  1 sibling, 2 replies; 19+ messages in thread
From: Ian Campbell @ 2014-04-02  7:20 UTC (permalink / raw)
  To: 杜琪, Stefano Stabellini
  Cc: bjzhang@suse.com, xen-devel@lists.xen.org

On Wed, 2014-04-02 at 00:10 +0800, 杜琪 wrote:
> Hi all,

Hello,

>      I have got this kernel with mmc driver on cubieboard2 from :
> https://github.com/jwrdegoede/linux-sunxi.git  (test branch) . 
>      I  have made the Xen's Dom0 configuration according
> this :http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs.
> and the kernel can be booted by Xen4.4.
>      The question we met is that some CMD can be
> accepted(CMD7,CMD0 ....) and but some can't(CMD52,CMD5,CMD51). 
>      We have found that the CMD51 is attempted to read the data from
> SD card to memory through DMA , so we replaced all the dma_ops with
> xen_dma_ops , where it is in struct "dma_map_ops xen_swiotlb_dma_ops"
> in arch/arm/xen/mm.c.

Do I understand correctly that you have solved the issue by doing this?
If so then please could you send a patch. The process for submitting a
patch to Linux is described in Documentation/SubmittingPatches.

You should CC Stefano Stabellini since he is the maintainer of the Xen
bits in ARM Linux.

Many thanks,
Ian.

> Below is my kernel dump information, thanks everyone.
> 
> [    0.000000] Booting Linux on physical CPU 0x0
> [    0.000000] Initializing cgroup subsys cpuset
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Initializing cgroup subsys cpuacct
> [    0.000000] Linux version 3.13.0-rc4+ (root@Lenovo-G480) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-1ubuntu1) ) #36 SMP Tue Apr 4
> [    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
> [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
> [    0.000000] Machine model: Cubietech Cubieboard2
> [    0.000000] debug: ignoring loglevel setting.
> [    0.000000] Memory policy: Data cache writealloc
> [    0.000000] On node 0 totalpages: 131072
> [    0.000000] free_area_init_node: node 0, pgdat c0b40b00, node_mem_map c0c42000
> [    0.000000]   Normal zone: 1024 pages used for memmap
> [    0.000000]   Normal zone: 0 pages reserved
> [    0.000000]   Normal zone: 131072 pages, LIFO batch:31
> [    0.000000] psci: probing function IDs from device-tree
> [    0.000000] PERCPU: Embedded 9 pages/cpu @c104b000 s13632 r8192 d15040 u36864
> [    0.000000] pcpu-alloc: s13632 r8192 d15040 u36864 alloc=9*4096
> [    0.000000] pcpu-alloc: [0] 0 
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
> [    0.000000] Kernel command line: console=hvc0,115200n8 debug ignore_loglevel rw rootwait earlyprintk=xen clk_ignore_unused rof
> [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
> [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
> [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
> [    0.000000] allocated 1048576 bytes of page_cgroup
> [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
> [    0.000000] Memory: 407828K/524288K available (5994K kernel code, 508K rwdata, 2384K rodata, 2669K init, 953K bss, 116460K re)
> [    0.000000] Virtual kernel memory layout:
> [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
> [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
> [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
> [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
> [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
> [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
> [    0.000000]       .text : 0xc0008000 - 0xc0836bf8   (8379 kB)
> [    0.000000]       .init : 0xc0837000 - 0xc0ad2540   (2670 kB)
> [    0.000000]       .data : 0xc0ad4000 - 0xc0b53050   ( 509 kB)
> [    0.000000]        .bss : 0xc0b53050 - 0xc0c415e8   ( 954 kB)
> [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
> [    0.000000] NR_IRQS:16 nr_irqs:16 16
> [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
> [    0.000000] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps every 26843545593ns
> [    0.000000] Architected cp15 timer(s) running at 24.00MHz (virt).
> [    0.000000] Switching to timer-based delay loop
> [    0.000000] Console: colour dummy device 80x30
> [    0.000526] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
> [    0.000541] pid_max: default: 32768 minimum: 301
> [    0.000724] Security Framework initialized
> [    0.000776] SELinux:  Initializing.
> [    0.000859] SELinux:  Starting in permissive mode
> [    0.001081] Mount-cache hash table entries: 512
> [    0.004444] Initializing cgroup subsys memory
> [    0.004497] Initializing cgroup subsys devices
> [    0.004508] Initializing cgroup subsys freezer
> [    0.004518] Initializing cgroup subsys net_cls
> [    0.004527] Initializing cgroup subsys blkio
> [    0.004536] Initializing cgroup subsys perf_event
> [    0.004665] CPU: Testing write buffer coherency: ok
> [    0.004713] ftrace: allocating 24448 entries in 48 pages
> [    0.038458] /cpus/cpu@0 missing clock-frequency property
> [    0.038487] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
> [    0.038528] Setting up static identity map for 0x405a9318 - 0x405a9370
> [    0.045722] Brought up 1 CPUs
> [    0.045739] SMP: Total of 1 processors activated.
> [    0.045747] CPU: All CPU(s) started in SVC mode.
> [    0.046768] devtmpfs: initialized
> [    0.051741] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
> [    0.051918] Xen 4.4 support found, events_irq=31 gnttab_frame_pfn=b0000
> [    0.051998] xen:grant_table: Grant tables using version 1 layout
> [    0.052065] Grant table initialized
> [    0.058963] atomic64 test passed
> [    0.058980] pinctrl core: initialized pinctrl subsystem
> [    0.059502] regulator-dummy: no parameters
> [    0.059965] NET: Registered protocol family 16
> [    0.060581] Xen: initializing cpu0
> [    0.060913] DMA: preallocated 256 KiB pool for atomic coherent allocations
> [    0.062386] xen:swiotlb_xen: Warning: only able to allocate 4 MB for software IO TLB
> [    0.064611] software IO TLB [mem 0x5f000000-0x5f400000] (4MB) mapped at [df000000-df3fffff]
> [    0.067079] No ATAGs?
> [    0.067109] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
> [    0.067120] hw-breakpoint: maximum watchpoint size is 8 bytes.
> [    0.067350] Serial: AMBA PL011 UART driver
> [    0.074656] bio: create slab <bio-0> at 0
> [    0.075468] xen:balloon: Initialising balloon driver
> [    0.075862] reg-fixed-voltage ahci-5v.3: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, defere
> [    0.075888] platform ahci-5v.3: Driver reg-fixed-voltage requests probe deferral
> [    0.075914] reg-fixed-voltage usb1-vbus.4: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, dee
> [    0.075928] platform usb1-vbus.4: Driver reg-fixed-voltage requests probe deferral
> [    0.075950] reg-fixed-voltage usb2-vbus.5: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, dee
> [    0.075964] platform usb2-vbus.5: Driver reg-fixed-voltage requests probe deferral
> [    0.077184] SCSI subsystem initialized
> [    0.077514] libata version 3.00 loaded.
> [    0.077805] usbcore: registered new interface driver usbfs
> [    0.077862] usbcore: registered new interface driver hub
> [    0.078016] usbcore: registered new device driver usb
> [    0.078250] pps_core: LinuxPPS API ver. 1 registered
> [    0.078259] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
> [    0.078285] PTP clock support registered
> [    0.079081] NetLabel: Initializing
> [    0.079093] NetLabel:  domain hash size = 128
> [    0.079099] NetLabel:  protocols = UNLABELED CIPSOv4
> [    0.079177] NetLabel:  unlabeled traffic allowed by default
> [    0.079598] Switched to clocksource arch_sys_counter
> [    0.137655] NET: Registered protocol family 2
> [    0.138683] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
> [    0.138738] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
> [    0.138804] TCP: Hash tables configured (established 4096 bind 4096)
> [    0.138880] TCP: reno registered
> [    0.138901] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [    0.138935] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [    0.139299] NET: Registered protocol family 1
> [    0.139916] RPC: Registered named UNIX socket transport module.
> [    0.139933] RPC: Registered udp transport module.
> [    0.139940] RPC: Registered tcp transport module.
> [    0.139947] RPC: Registered tcp NFSv4.1 backchannel transport module.
> [    0.320150] Unpacking initramfs...
> [    0.320194] Initramfs unpacking failed: junk in compressed archive
> [    0.439015] Freeing initrd memory: 98304K (c8200000 - ce200000)
> [    0.441096] audit: initializing netlink socket (disabled)
> [    0.441168] type=2000 audit(0.430:1): initialized
> [    0.607368] zbud: loaded
> [    0.608062] VFS: Disk quotas dquot_6.5.2
> [    0.608340] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> [    0.610963] NFS: Registering the id_resolver key type
> [    0.611036] Key type id_resolver registered
> [    0.611045] Key type id_legacy registered
> [    0.611065] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
> [    0.611433] msgmni has been set to 988
> [    0.611884] SELinux:  Registering netfilter hooks
> [    0.615413] alg: No test for stdrng (krng)
> [    0.615449] NET: Registered protocol family 38
> [    0.615770] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
> [    0.615992] io scheduler noop registered
> [    0.616002] io scheduler deadline registered
> [    0.616260] io scheduler cfq registered (default)
> [    0.619227] sunxi-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
> [    0.620530] xen:xen_evtchn: Event-channel device installed
> [    1.419789] console [hvc0] enabled
> [    1.423167] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> [    1.430973] Serial: AMBA driver
> [    1.434822] [drm] Initialized drm 1.1.0 20060810
> [    1.441206] libphy: Fixed MDIO Bus: probed
> [    1.445778] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [    1.452327] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [    1.458724] usbcore: registered new interface driver usbserial
> [    1.464574] usbcore: registered new interface driver usbserial_generic
> [    1.471148] usbserial: USB Serial support registered for generic
> [    1.477426] mousedev: PS/2 mouse device common for all mice
> [    1.484234] #############+++sunxi_mmc_probe
> [    1.488799] sunxi-mci 1c0f000.mmc: base:0xe08be000 irq:64
> [    1.494197] probe success!!!!!!!!!
> [    1.497935] hidraw: raw HID events driver (C) Jiri Kosina
> [    1.503403] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
> [    1.510641] usbcore: registered new interface driver usbhid
> [    1.516141] usbhid: USB HID core driver
> [    1.520110] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 timing 0
> [    1.527329] Address of dma phy address is 5e838000 
> [    1.532297] sunxi-mci 1c0f000.mmc: power on!
> [    1.536795] drop_monitor: Initializing network drop monitor service
> [    1.543341] ip_tables: (C) 2000-2006 Netfilter Core Team
> [    1.548650] TCP: cubic registered
> [    1.552053] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    1.559700] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    1.564823] sunxi-mci 1c0f000.mmc: setting clk to 400000, rounded 400000
> [    1.571611] sunxi-mci 1c0f000.mmc: clk is now 400000
> [    1.576617] Initializing XFRM netlink socket
> [    1.581846] NET: Registered protocol family 10
> [    1.587180] mip6: Mobile IPv6
> [    1.590167] NET: Registered protocol family 17
> [    1.594730] Key type dns_resolver registered
> [    1.599201] ThumbEE CPU extension supported.
> [    1.603453] Registering SWP/SWPB emulation handler
> [    1.609056] registered taskstats version 1
> [    1.614021] ahci-5v: 5000 mV 
> [    1.617347] usb1-vbus: 5000 mV 
> [    1.620895] usb2-vbus: 5000 mV 
> [    1.624116] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
> [    1.649733] mmc0: starting CMD52 arg 00000c00 flags 00000195
> [    1.655319] 111111 sunxi mmc request
> [    1.658949] SDXC_IntErrBit:bbc2
> [    1.662210] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg c00 ie 0x0000bbc6 len 0
> [    1.670342] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    1.675500] in sunxi_mmc_irq msk_int=260
> [    1.679488] sunxi-mci 1c0f000.mmc: irq: rq df8a7e50 mi 00000104 idi 00000000
> [    1.686573] in sunxi_mmc_irq host->int_sum=0
> [    1.690906] in sunxi_mmc_irq host->int_sum=260
> [    1.695412] SDXC_IntErrBit
> [    1.698208] enter the sunxi_mmc_finalize_request!!!!
> [    1.703214] here is error@@@@@@@@@@@@@@@,bbc2
> [    1.707641] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
> [    1.715526] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
> [    1.722787] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    1.730026] mmc0: gated MCI clock
> [    1.733388] mmc0: starting CMD52 arg 80000c08 flags 00000195
> [    1.739124] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    1.746836] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    1.751957] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    1.813531] mmc0: ungated MCI clock
> [    1.816936] 111111 sunxi mmc request
> [    1.820596] SDXC_IntErrBit:bbc2
> [    1.823793] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg 80000c08 ie 0x0000bbc6 len 0
> [    1.832413] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    1.837559] in sunxi_mmc_irq msk_int=260
> [    1.841551] sunxi-mci 1c0f000.mmc: irq: rq df8a7e50 mi 00000104 idi 00000000
> [    1.848641] in sunxi_mmc_irq host->int_sum=0
> [    1.852987] in sunxi_mmc_irq host->int_sum=260
> [    1.857480] SDXC_IntErrBit
> [    1.860271] enter the sunxi_mmc_finalize_request!!!!
> [    1.865282] here is error@@@@@@@@@@@@@@@,bbc2
> [    1.869708] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
> [    1.877593] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
> [    1.884842] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    1.892085] mmc0: gated MCI clock
> [    1.895475] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    1.903182] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    1.908279] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    1.969892] mmc0: ungated MCI clock
> [    1.973300] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    1.981033] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    1.986129] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    2.047778] mmc0: clock 0Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    2.054931] mmc0: gated MCI clock
> [    2.059298] mmc0: starting CMD0 arg 00000000 flags 000000c0
> [    2.064827] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    2.072508] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    2.077605] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    2.139219] mmc0: ungated MCI clock
> [    2.142642] 111111 sunxi mmc request
> [    2.146262] SDXC_IntErrBit:bbc2
> [    2.149478] sunxi-mci 1c0f000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
> [    2.156977] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    2.162120] in sunxi_mmc_irq msk_int=4
> [    2.165933] sunxi-mci 1c0f000.mmc: irq: rq df8a7e78 mi 00000004 idi 00000000
> [    2.173033] in sunxi_mmc_irq host->int_sum=0
> [    2.177366] in sunxi_mmc_irq host->int_sum=4
> [    2.181698] SDXC_IntDoneBit
> [    2.184579] enter the sunxi_mmc_finalize_request!!!!
> [    2.189593] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
> [    2.197478] mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
> [    2.204383] mmc0: clock 0Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    2.211622] mmc0: gated MCI clock
> [    2.216013] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    2.223600] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    2.228697] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    2.290308] mmc0: ungated MCI clock
> [    2.293716] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    2.301450] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    2.306545] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    2.368192] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    2.375342] mmc0: gated MCI clock
> [    2.379711] mmc0: starting CMD8 arg 000001aa flags 000002f5
> [    2.385228] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    2.392931] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    2.398028] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    2.459640] mmc0: ungated MCI clock
> [    2.463042] 111111 sunxi mmc request
> [    2.466682] SDXC_IntErrBit:bbc2
> [    2.469918] sunxi-mci 1c0f000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
> [    2.477489] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    2.482631] in sunxi_mmc_irq msk_int=4
> [    2.486443] sunxi-mci 1c0f000.mmc: irq: rq df8a7e78 mi 00000004 idi 00000000
> [    2.493543] in sunxi_mmc_irq host->int_sum=0
> [    2.497876] in sunxi_mmc_irq host->int_sum=4
> [    2.502208] SDXC_IntDoneBit
> [    2.505089] enter the sunxi_mmc_finalize_request!!!!
> [    2.510103] sunxi-mci 1c0f000.mmc: req done, resp 000001aa 00000000 00000000 00000000
> [    2.517988] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
> [    2.524893] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    2.532132] mmc0: gated MCI clock
> [    2.535501] mmc0: starting CMD5 arg 00000000 flags 000002e1
> [    2.541180] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    2.548842] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    2.553986] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    2.615570] mmc0: ungated MCI clock
> [    2.618982] 111111 sunxi mmc request
> [    2.622631] SDXC_IntErrBit:bbc2
> [    2.625829] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
> [    2.633754] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    2.638900] in sunxi_mmc_irq msk_int=260
> [    2.642893] sunxi-mci 1c0f000.mmc: irq: rq df8a7e30 mi 00000104 idi 00000000
> [    2.649982] in sunxi_mmc_irq host->int_sum=0
> [    2.654316] in sunxi_mmc_irq host->int_sum=260
> [    2.658821] SDXC_IntErrBit
> [    2.661630] enter the sunxi_mmc_finalize_request!!!!
> [    2.666623] here is error@@@@@@@@@@@@@@@,bbc2
> [    2.671050] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
> [    2.678987] mmc0: req failed (CMD5): -110, retrying...
> [    2.684160] 111111 sunxi mmc request
> [    2.687770] SDXC_IntErrBit:bbc2
> [    2.691002] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
> [    2.698891] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    2.704044] in sunxi_mmc_irq msk_int=260
> [    2.708031] sunxi-mci 1c0f000.mmc: irq: rq df8a7e30 mi 00000104 idi 00000000
> [    2.715120] in sunxi_mmc_irq host->int_sum=0
> [    2.719453] in sunxi_mmc_irq host->int_sum=260
> [    2.723959] SDXC_IntErrBit
> [    2.726749] enter the sunxi_mmc_finalize_request!!!!
> [    2.731760] here is error@@@@@@@@@@@@@@@,bbc2
> [    2.736186] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
> [    2.744092] mmc0: req failed (CMD5): -110, retrying...
> [    2.749266] 111111 sunxi mmc request
> [    2.752926] SDXC_IntErrBit:bbc2
> [    2.756122] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
> [    2.764052] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    2.769197] in sunxi_mmc_irq msk_int=260
> [    2.773190] sunxi-mci 1c0f000.mmc: irq: rq df8a7e30 mi 00000104 idi 00000000
> [    2.780280] in sunxi_mmc_irq host->int_sum=0
> [    2.784613] in sunxi_mmc_irq host->int_sum=260
> [    2.789119] SDXC_IntErrBit
> [    2.791909] enter the sunxi_mmc_finalize_request!!!!
> [    2.796927] here is error@@@@@@@@@@@@@@@,bbc2
> [    2.801346] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
> [    2.809250] mmc0: req failed (CMD5): -110, retrying...
> [    2.814457] 111111 sunxi mmc request
> [    2.818067] SDXC_IntErrBit:bbc2
> [    2.821301] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
> [    2.829188] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    2.834333] in sunxi_mmc_irq msk_int=260
> [    2.838326] sunxi-mci 1c0f000.mmc: irq: rq df8a7e30 mi 00000104 idi 00000000
> [    2.845416] in sunxi_mmc_irq host->int_sum=0
> [    2.849749] in sunxi_mmc_irq host->int_sum=260
> [    2.854255] SDXC_IntErrBit
> [    2.857045] enter the sunxi_mmc_finalize_request!!!!
> [    2.862056] here is error@@@@@@@@@@@@@@@,bbc2
> [    2.866483] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
> [    2.874380] mmc0: req done (CMD5): -110: 00000000 00000000 00000000 00000000
> [    2.881528] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    2.888759] mmc0: gated MCI clock
> [    2.892164] mmc0: starting CMD55 arg 00000000 flags 000000f5
> [    2.897876] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    2.905588] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    2.910704] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    2.972289] mmc0: ungated MCI clock
> [    2.975691] 111111 sunxi mmc request
> [    2.979339] SDXC_IntErrBit:bbc2
> [    2.982567] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
> [    2.990071] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    2.995216] in sunxi_mmc_irq msk_int=4
> [    2.999025] sunxi-mci 1c0f000.mmc: irq: rq df8a7dc0 mi 00000004 idi 00000000
> [    3.006126] in sunxi_mmc_irq host->int_sum=0
> [    3.010459] in sunxi_mmc_irq host->int_sum=4
> [    3.014791] SDXC_IntDoneBit
> [    3.017668] enter the sunxi_mmc_finalize_request!!!!
> [    3.022686] sunxi-mci 1c0f000.mmc: req done, resp 00400120 00000000 00000000 00000000
> [    3.030571] mmc0: req done (CMD55): 0: 00400120 00000000 00000000 00000000
> [    3.037565] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.044802] mmc0: gated MCI clock
> [    3.048170] mmc0: starting CMD41 arg 00000000 flags 000000e1
> [    3.053926] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.061618] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    3.066714] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    3.128325] mmc0: ungated MCI clock
> [    3.131749] 111111 sunxi mmc request
> [    3.135377] SDXC_IntErrBit:bbc2
> [    3.138584] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 0 ie 0x0000bbc6 len 0
> [    3.146106] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    3.151255] in sunxi_mmc_irq msk_int=4
> [    3.155064] sunxi-mci 1c0f000.mmc: irq: rq df8a7e40 mi 00000004 idi 00000000
> [    3.162165] in sunxi_mmc_irq host->int_sum=0
> [    3.166498] in sunxi_mmc_irq host->int_sum=4
> [    3.170830] SDXC_IntDoneBit
> [    3.173706] enter the sunxi_mmc_finalize_request!!!!
> [    3.178725] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
> [    3.186609] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
> [    3.193601] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.200840] mmc0: gated MCI clock
> [    3.204233] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.211938] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    3.217034] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    3.278648] mmc0: ungated MCI clock
> [    3.282075] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    3.289787] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    3.294885] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    3.356532] mmc0: clock 0Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    3.363682] mmc0: gated MCI clock
> [    3.368050] mmc0: starting CMD0 arg 00000000 flags 000000c0
> [    3.373590] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    3.381268] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    3.386365] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    3.447976] mmc0: ungated MCI clock
> [    3.451396] 111111 sunxi mmc request
> [    3.455028] SDXC_IntErrBit:bbc2
> [    3.458233] sunxi-mci 1c0f000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
> [    3.465732] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    3.470878] in sunxi_mmc_irq msk_int=4
> [    3.474687] sunxi-mci 1c0f000.mmc: irq: rq df8a7e00 mi 00000004 idi 00000000
> [    3.481787] in sunxi_mmc_irq host->int_sum=0
> [    3.486120] in sunxi_mmc_irq host->int_sum=4
> [    3.490453] SDXC_IntDoneBit
> [    3.493328] enter the sunxi_mmc_finalize_request!!!!
> [    3.498348] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
> [    3.506232] mmc0: req done (CMD0): 0: 00ff8000 00000000 00000000 00000000
> [    3.513139] mmc0: clock 0Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    3.520376] mmc0: gated MCI clock
> [    3.524765] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
> [    3.532351] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    3.537448] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    3.599059] mmc0: ungated MCI clock
> [    3.602485] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.610198] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    3.615296] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    3.676950] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.684105] mmc0: gated MCI clock
> [    3.688479] mmc0: starting CMD8 arg 000001aa flags 000002f5
> [    3.694011] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.701697] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    3.706795] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    3.768418] mmc0: ungated MCI clock
> [    3.771840] 111111 sunxi mmc request
> [    3.775461] SDXC_IntErrBit:bbc2
> [    3.778677] sunxi-mci 1c0f000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
> [    3.786283] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    3.791430] in sunxi_mmc_irq msk_int=4
> [    3.795240] sunxi-mci 1c0f000.mmc: irq: rq df8a7e00 mi 00000004 idi 00000000
> [    3.802340] in sunxi_mmc_irq host->int_sum=0
> [    3.806673] in sunxi_mmc_irq host->int_sum=4
> [    3.811005] SDXC_IntDoneBit
> [    3.813882] enter the sunxi_mmc_finalize_request!!!!
> [    3.818901] sunxi-mci 1c0f000.mmc: req done, resp 000001aa 00000000 00000000 00000000
> [    3.826785] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
> [    3.833690] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.840929] mmc0: gated MCI clock
> [    3.844299] mmc0: starting CMD55 arg 00000000 flags 000000f5
> [    3.850053] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.857726] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    3.862871] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    3.924439] mmc0: ungated MCI clock
> [    3.927840] 111111 sunxi mmc request
> [    3.931508] SDXC_IntErrBit:bbc2
> [    3.934698] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
> [    3.942216] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    3.947362] in sunxi_mmc_irq msk_int=4
> [    3.951171] sunxi-mci 1c0f000.mmc: irq: rq df8a7d60 mi 00000004 idi 00000000
> [    3.958271] in sunxi_mmc_irq host->int_sum=0
> [    3.962604] in sunxi_mmc_irq host->int_sum=4
> [    3.966936] SDXC_IntDoneBit
> [    3.969813] enter the sunxi_mmc_finalize_request!!!!
> [    3.974831] sunxi-mci 1c0f000.mmc: req done, resp 00000120 00000000 00000000 00000000
> [    3.982716] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
> [    3.989711] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    3.996926] mmc0: gated MCI clock
> [    4.000334] mmc0: starting CMD41 arg 41200000 flags 000000e1
> [    4.006050] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.013764] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    4.018859] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    4.080470] mmc0: ungated MCI clock
> [    4.083874] 111111 sunxi mmc request
> [    4.087524] SDXC_IntErrBit:bbc2
> [    4.090758] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 41200000 ie 0x0000bbc6 len 0
> [    4.098841] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    4.103988] in sunxi_mmc_irq msk_int=4
> [    4.107813] sunxi-mci 1c0f000.mmc: irq: rq df8a7de0 mi 00000004 idi 00000000
> [    4.114898] in sunxi_mmc_irq host->int_sum=0
> [    4.119231] in sunxi_mmc_irq host->int_sum=4
> [    4.123563] SDXC_IntDoneBit
> [    4.126441] enter the sunxi_mmc_finalize_request!!!!
> [    4.131458] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
> [    4.139354] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
> [    4.146346] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.153574] mmc0: gated MCI clock
> [    4.159670] mmc0: starting CMD55 arg 00000000 flags 000000f5
> [    4.165247] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.172977] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    4.178073] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    4.239686] mmc0: ungated MCI clock
> [    4.243098] 111111 sunxi mmc request
> [    4.246729] SDXC_IntErrBit:bbc2
> [    4.249966] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
> [    4.257449] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    4.262595] in sunxi_mmc_irq msk_int=4
> [    4.266404] sunxi-mci 1c0f000.mmc: irq: rq df8a7d60 mi 00000004 idi 00000000
> [    4.273504] in sunxi_mmc_irq host->int_sum=0
> [    4.277837] in sunxi_mmc_irq host->int_sum=4
> [    4.282170] SDXC_IntDoneBit
> [    4.285046] enter the sunxi_mmc_finalize_request!!!!
> [    4.290064] sunxi-mci 1c0f000.mmc: req done, resp 00000120 00000000 00000000 00000000
> [    4.297950] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
> [    4.304942] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.312180] mmc0: gated MCI clock
> [    4.315550] mmc0: starting CMD41 arg 41200000 flags 000000e1
> [    4.321304] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.328988] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    4.334113] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    4.395705] mmc0: ungated MCI clock
> [    4.399107] 111111 sunxi mmc request
> [    4.402766] SDXC_IntErrBit:bbc2
> [    4.405964] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 41200000 ie 0x0000bbc6 len 0
> [    4.414091] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    4.419237] in sunxi_mmc_irq msk_int=4
> [    4.423046] sunxi-mci 1c0f000.mmc: irq: rq df8a7de0 mi 00000004 idi 00000000
> [    4.430146] in sunxi_mmc_irq host->int_sum=0
> [    4.434479] in sunxi_mmc_irq host->int_sum=4
> [    4.438821] SDXC_IntDoneBit
> [    4.441688] enter the sunxi_mmc_finalize_request!!!!
> [    4.446706] sunxi-mci 1c0f000.mmc: req done, resp c0ff8000 00000000 00000000 00000000
> [    4.454592] mmc0: req done (CMD41): 0: c0ff8000 00000000 00000000 00000000
> [    4.461585] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.468801] mmc0: gated MCI clock
> [    4.472210] mmc0: starting CMD2 arg 00000000 flags 00000067
> [    4.477850] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.485564] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    4.490668] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    4.552241] mmc0: ungated MCI clock
> [    4.555643] 111111 sunxi mmc request
> [    4.559283] SDXC_IntErrBit:bbc2
> [    4.562517] sunxi-mci 1c0f000.mmc: cmd 2(800001c2) arg 0 ie 0x0000bbc6 len 0
> [    4.570153] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    4.575299] in sunxi_mmc_irq msk_int=4
> [    4.579109] sunxi-mci 1c0f000.mmc: irq: rq df8a7e20 mi 00000004 idi 00000000
> [    4.586208] in sunxi_mmc_irq host->int_sum=0
> [    4.590542] in sunxi_mmc_irq host->int_sum=4
> [    4.594874] SDXC_IntDoneBit
> [    4.597752] enter the sunxi_mmc_finalize_request!!!!
> [    4.602770] sunxi-mci 1c0f000.mmc: req done, resp 02544d53 41303847 111dec2a ce00d59b
> [    4.610656] mmc0: req done (CMD2): 0: 02544d53 41303847 111dec2a ce00d59b
> [    4.617558] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.624797] mmc0: gated MCI clock
> [    4.628162] !!!!!!!!!!!!! get cid err=0
> [    4.632099] mmc0: starting CMD3 arg 00000000 flags 00000075
> [    4.637726] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.645428] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    4.650542] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    4.712116] mmc0: ungated MCI clock
> [    4.715519] 111111 sunxi mmc request
> [    4.719159] SDXC_IntErrBit:bbc2
> [    4.722394] sunxi-mci 1c0f000.mmc: cmd 3(80000143) arg 0 ie 0x0000bbc6 len 0
> [    4.729793] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    4.734939] in sunxi_mmc_irq msk_int=4
> [    4.738748] sunxi-mci 1c0f000.mmc: irq: rq df8a7e20 mi 00000004 idi 00000000
> [    4.745848] in sunxi_mmc_irq host->int_sum=0
> [    4.750181] in sunxi_mmc_irq host->int_sum=4
> [    4.754515] SDXC_IntDoneBit
> [    4.757390] enter the sunxi_mmc_finalize_request!!!!
> [    4.762408] sunxi-mci 1c0f000.mmc: req done, resp 12340500 00000000 00000000 00000000
> [    4.770293] mmc0: req done (CMD3): 0: 12340500 00000000 00000000 00000000
> [    4.777199] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.784437] mmc0: gated MCI clock
> [    4.787803] !!!!!!!!!!!!! send relative addr, err=0
> [    4.792761] mmc0: starting CMD9 arg 12340000 flags 00000007
> [    4.798406] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.806106] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    4.811222] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    4.872795] mmc0: ungated MCI clock
> [    4.876197] 111111 sunxi mmc request
> [    4.879867] SDXC_IntErrBit:bbc2
> [    4.883054] sunxi-mci 1c0f000.mmc: cmd 9(800001c9) arg 12340000 ie 0x0000bbc6 len 0
> [    4.891316] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    4.896465] in sunxi_mmc_irq msk_int=4
> [    4.900287] sunxi-mci 1c0f000.mmc: irq: rq df8a7e00 mi 00000004 idi 00000000
> [    4.907371] in sunxi_mmc_irq host->int_sum=0
> [    4.911704] in sunxi_mmc_irq host->int_sum=4
> [    4.916036] SDXC_IntDoneBit
> [    4.918912] enter the sunxi_mmc_finalize_request!!!!
> [    4.923932] sunxi-mci 1c0f000.mmc: req done, resp 400e0032 5b590000 3a477f80 0a40000b
> [    4.931828] mmc0: req done (CMD9): 0: 400e0032 5b590000 3a477f80 0a40000b
> [    4.938721] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.945961] mmc0: gated MCI clock
> [    4.949325] !!!!!!!!!!!!! sd get csd, err=0
> [    4.953607] mmc0: starting CMD7 arg 12340000 flags 00000015
> [    4.959227] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    4.966935] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    4.972050] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    5.033625] mmc0: ungated MCI clock
> [    5.037028] 111111 sunxi mmc request
> [    5.040686] SDXC_IntErrBit:bbc2
> [    5.043884] sunxi-mci 1c0f000.mmc: cmd 7(80000147) arg 12340000 ie 0x0000bbc6 len 0
> [    5.051935] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    5.057087] in sunxi_mmc_irq msk_int=4
> [    5.060891] sunxi-mci 1c0f000.mmc: irq: rq df8a7e20 mi 00000004 idi 00000000
> [    5.067991] in sunxi_mmc_irq host->int_sum=0
> [    5.072324] in sunxi_mmc_irq host->int_sum=4
> [    5.076656] SDXC_IntDoneBit
> [    5.079534] enter the sunxi_mmc_finalize_request!!!!
> [    5.084551] sunxi-mci 1c0f000.mmc: req done, resp 00000700 00000000 00000000 00000000
> [    5.092436] mmc0: req done (CMD7): 0: 00000700 00000000 00000000 00000000
> [    5.099350] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    5.106583] mmc0: gated MCI clock
> [    5.109964] !!!!!!!!!!!!! select card, err=0
> [    5.114278] mmc0: starting CMD55 arg 12340000 flags 00000095
> [    5.120031] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    5.127710] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    5.132846] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
> [    5.194421] mmc0: ungated MCI clock
> [    5.197823] 111111 sunxi mmc request
> [    5.201491] SDXC_IntErrBit:bbc2
> [    5.204681] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 12340000 ie 0x0000bbc6 len 0
> [    5.212809] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
> [    5.217956] in sunxi_mmc_irq msk_int=4
> [    5.221784] sunxi-mci 1c0f000.mmc: irq: rq df8a7d38 mi 00000004 idi 00000000
> [    5.228866] in sunxi_mmc_irq host->int_sum=0
> [    5.233199] in sunxi_mmc_irq host->int_sum=4
> [    5.237532] SDXC_IntDoneBit
> [    5.240408] enter the sunxi_mmc_finalize_request!!!!
> [    5.245426] sunxi-mci 1c0f000.mmc: req done, resp 00000920 00000000 00000000 00000000
> [    5.253322] mmc0: req done (CMD55): 0: 00000920 00000000 00000000 00000000
> [    5.260303] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
> [    5.267522] mmc0: gated MCI clock
> [    5.270933] ###################   dma address 0
>  
>  [    5.275587] mmc0: starting CMD51 arg 00000000 flags 000000b5
>  [    5.281584] mmc0:     blksz 8 blocks 1 flags 00000200 tsac 100 ms nsac 0
>  [    5.288351] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
>  [    5.296070] sunxi-mci 1c0f000.mmc: ios->clock: 400000
>  [    5.301172] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
>  [    5.362750] mmc0: ungated MCI clock
>  [    5.366153] 111111 sunxi mmc request
>  [    5.369813] SDXC_IntErrBit:bbc2
>  [    5.373001] data is not null !!!!!!!!!!!!  0 
>  [    5.377419] enter the sunxi_mmc_prepare_dma
>  [    5.381702] Addresssssssssssssss of ptr1 is 5e880500
>  [    5.386702] sunxi-mci 1c0f000.mmc: cmd 51(80002373) arg 0 ie 0x0000bbca len 8
>  [    5.394799] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
>  [    5.399952] in sunxi_mmc_irq msk_int=2056
>  [    5.404024] sunxi-mci 1c0f000.mmc: irq: rq df8a7dcc mi 00000808 idi 0000a000
>  [    5.411114] in sunxi_mmc_irq host->int_sum=0
>  [    5.415447] in sunxi_mmc_irq host->int_sum=2056
>  [    5.420040] SDXC_IntErrBit
>  [    5.422831] enter the sunxi_mmc_finalize_request!!!!
>  [    5.427841] here is error@@@@@@@@@@@@@@@,bbc2
>  [    5.432270] sunxi-mci 1c0f000.mmc: smc 0 err, cmd 51, RD FE !!
>  [    5.438153] mrq->data is not null
>  [    5.441533] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  [    5.446473] before dma_umap_sg
>  [    5.449609] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
>  [    5.457481] mrq->data->error:-110
>  [    5.460864] sunxi-mci 1c0f000.mmc: data error, sending stop command
>  [    5.467976] sunxi-mci 1c0f000.mmc: send stop command failed
>  [    5.473471] mmc0: req done (CMD51): -110: 00000000 00000000 00000000 00000000
>  [    5.480652] mmc0:     0 bytes transferred: -110
>  [    5.485302] mmc0: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
>  [    5.492547] mmc0: gated MCI clock
>  [    5.495911] !!!!!!!!!!!!! setup card, err=-110
>  [    5.500437] !!!!!!!!!!!!! Detect and init the card, err=-110
>  [    5.506132] mmc0: error -110 whilst initialising SD card
>  [    5.511553] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
>  [    5.519222] sunxi-mci 1c0f000.mmc: ios->clock: 400000
>  [    5.524358] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
>  [    5.585953] mmc0: ungated MCI clock
>  [    5.589370] mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
>  [    5.597093] sunxi-mci 1c0f000.mmc: ios->clock: 400000
>  [    5.602209] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
>  [    5.663797] mmc0: starting CMD1 arg 00000000 flags 000000e1
>  [    5.669300] 111111 sunxi mmc request
>  [    5.672941] SDXC_IntErrBit:bbc2
>  [    5.676135] sunxi-mci 1c0f000.mmc: cmd 1(80000041) arg 0 ie 0x0000bbc6 len 0
>  [    5.684060] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
>  [    5.689210] in sunxi_mmc_irq msk_int=260
>  [    5.693200] sunxi-mci 1c0f000.mmc: irq: rq df8a7e58 mi 00000104 idi 00000000
>  [    5.700289] in sunxi_mmc_irq host->int_sum=0
>  [    5.704622] in sunxi_mmc_irq host->int_sum=260
>  [    5.709127] SDXC_IntErrBit
>  [    5.711935] enter the sunxi_mmc_finalize_request!!!!
>  [    5.716929] here is error@@@@@@@@@@@@@@@,bbc2
>  [    5.721357] sunxi-mci 1c0f000.mmc: smc 0 err, cmd 1, RTO !!
>  [    5.726999] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
>  [    5.734899] mmc0: req done (CMD1): -110: 00000000 00000000 00000000 00000000
>  [    5.742045] mmc0: clock 0Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
>  [    5.749258] mmc0: gated MCI clock
>  [    5.752707] mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
>  [    5.760375] sunxi-mci 1c0f000.mmc: ios->clock: 400000
>  [    5.765472] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
>  [    5.827086] mmc0: ungated MCI clock
>  [    5.830513] mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
>  [    5.837686] sunxi-mci 1c0f000.mmc: power off!
>  [    5.843157] mmc0: frequency set to 0 in disable function, this means the clock is already disabled.
>  [    6.839682] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
>  [    6.846229] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 timing 0
>  [    6.853512] Address of dma phy address is 5e838000 
>  [    6.858436] enter the sunxi_mmc_irq,SDXC_IntErrBit:bbc2
>  [    6.863725] in sunxi_mmc_irq msk_int=0
>  [    6.867532] sunxi-mci 1c0f000.mmc: irq: rq   (null) mi 00000000 idi 00000000
>  [    6.874662] sunxi-mci 1c0f000.mmc: power on!
>  [    6.889677] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
>  [    6.897245] sunxi-mci 1c0f000.mmc: ios->clock: 400000
>  [    6.902383] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
>  [    6.979635] mmc0: starting CMD52 arg 00000c00 flags 00000195
>  [    6.985218] 111111 sunxi mmc request
>  [    6.988844] SDXC_IntErrBit:bbc2
>  [    6.992084] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg c00 ie 0x0000bbc6 len 0
>  [   13.829677] clk: Not disabling unused clocks
>  [   13.837673] Freeing unused kernel memory: 2668K (c0837000 - c0ad2000)
>  cat: can't open '/proc/cmdline': No such file or directory
>  /bin/ash: can't access tty; job control turned off
>  / # 
>  
> 
> 



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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-02  7:20 ` Ian Campbell
@ 2014-04-02  9:44   ` Julien Grall
       [not found]     ` <3bdbc8fa.25a26.14522d200a4.Coremail.duqi_2009@163.com>
                       ` (2 more replies)
  2014-04-03 10:56   ` Stefano Stabellini
  1 sibling, 3 replies; 19+ messages in thread
From: Julien Grall @ 2014-04-02  9:44 UTC (permalink / raw)
  To: Ian Campbell, 杜琪, Stefano Stabellini
  Cc: xen-devel@lists.xen.org, bjzhang@suse.com



On 02/04/14 08:20, Ian Campbell wrote:
> On Wed, 2014-04-02 at 00:10 +0800, 杜琪 wrote:
>> Hi all,

Hello,

>>       I have got this kernel with mmc driver on cubieboard2 from :
>> https://github.com/jwrdegoede/linux-sunxi.git  (test branch) .
>>       I  have made the Xen's Dom0 configuration according
>> this :http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs.
>> and the kernel can be booted by Xen4.4.
>>       The question we met is that some CMD can be
>> accepted(CMD7,CMD0 ....) and but some can't(CMD52,CMD5,CMD51).
>>       We have found that the CMD51 is attempted to read the data from
>> SD card to memory through DMA , so we replaced all the dma_ops with
>> xen_dma_ops , where it is in struct "dma_map_ops xen_swiotlb_dma_ops"
>> in arch/arm/xen/mm.c.

Can you give more input? (Xen log, ...) DOM0 has a 1:1 mapping layout, 
so the swiotlb should not change anything.

With the 1:1 mapping, the driver can safely use DMA, can you try to see 
which address is used by the DMA request?

> Do I understand correctly that you have solved the issue by doing this?
> If so then please could you send a patch. The process for submitting a
> patch to Linux is described in Documentation/SubmittingPatches.

Using swiotlb everywhere is just too slow. That's why Stefano took an 
hybrid approach (1:1 mapping + bouncing for foreign pages).

Regards,

-- 
Julien Grall

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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-01 16:10 cubieboard2's sd/mmc driver on xen about DMA read data error 杜琪
  2014-04-02  7:20 ` Ian Campbell
@ 2014-04-02  9:52 ` Ian Campbell
  2014-04-03  3:08   ` 杜琪
  2014-04-03  3:09   ` 杜琪
  1 sibling, 2 replies; 19+ messages in thread
From: Ian Campbell @ 2014-04-02  9:52 UTC (permalink / raw)
  To: 杜琪; +Cc: bjzhang@suse.com, xen-devel@lists.xen.org

On Wed, 2014-04-02 at 00:10 +0800, 杜琪 wrote:
> Hi all,
>      I have got this kernel with mmc driver on cubieboard2 from : https://github.com/jwrdegoede/linux-sunxi.git  (test branch) . 

Are you sure this branch is functional?

I strongly recommend that you stick to the well known trees referenced
from
http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Allwinner

If you want to use some other tree then the onus is on you to ensure
that it is functional on baremetal before running it under Xen.

>      I  have made the Xen's Dom0 configuration according this :http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs. and the kernel can be booted by Xen4.4.
>      The question we met is that some CMD can be accepted(CMD7,CMD0 ....) and but some can't(CMD52,CMD5,CMD51). 
>      We have found that the CMD51 is attempted to read the data from
> SD card to memory through DMA

Does the SD card work when the kernel is booted baremetal/natively
without Xen?

Ian.



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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
       [not found]     ` <3bdbc8fa.25a26.14522d200a4.Coremail.duqi_2009@163.com>
@ 2014-04-02 14:26       ` Julien Grall
  0 siblings, 0 replies; 19+ messages in thread
From: Julien Grall @ 2014-04-02 14:26 UTC (permalink / raw)
  To: 杜琪, xen-devel, Ian Campbell, Stefano Stabellini

Hello,

Please reply with the mailing list in CC and avoid HTML email.

On 04/02/2014 03:22 PM, 杜琪 wrote:
> Can you tell me how to enable the dom0 direct map with Xen ?

It's enabled by default on every board. You should see "1:1 mapping in
Xen log".

> Many thanks.

Regards

-- 
Julien Grall

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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-02  9:44   ` Julien Grall
       [not found]     ` <3bdbc8fa.25a26.14522d200a4.Coremail.duqi_2009@163.com>
@ 2014-04-02 14:59     ` 杜琪
  2014-04-03 10:17     ` Stefano Stabellini
  2 siblings, 0 replies; 19+ messages in thread
From: 杜琪 @ 2014-04-02 14:59 UTC (permalink / raw)
  To: Julien Grall
  Cc: xen-devel@lists.xen.org, Stefano Stabellini, Ian Campbell,
	bjzhang@suse.com


[-- Attachment #1.1: Type: text/plain, Size: 1612 bytes --]


Hi, Julien Grall,

Could you give me some instructions about how to enable xen dom0 1:1 mapping?

Thank you.




在 2014-04-02 17:44:23,"Julien Grall" <julien.grall@linaro.org> 写道:
>
>
>On 02/04/14 08:20, Ian Campbell wrote:
>> On Wed, 2014-04-02 at 00:10 +0800, 杜琪 wrote:
>>> Hi all,
>
>Hello,
>
>>>       I have got this kernel with mmc driver on cubieboard2 from :
>>> https://github.com/jwrdegoede/linux-sunxi.git  (test branch) .
>>>       I  have made the Xen's Dom0 configuration according
>>> this :http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs.
>>> and the kernel can be booted by Xen4.4.
>>>       The question we met is that some CMD can be
>>> accepted(CMD7,CMD0 ....) and but some can't(CMD52,CMD5,CMD51).
>>>       We have found that the CMD51 is attempted to read the data from
>>> SD card to memory through DMA , so we replaced all the dma_ops with
>>> xen_dma_ops , where it is in struct "dma_map_ops xen_swiotlb_dma_ops"
>>> in arch/arm/xen/mm.c.
>
>Can you give more input? (Xen log, ...) DOM0 has a 1:1 mapping layout, 
>so the swiotlb should not change anything.
>
>With the 1:1 mapping, the driver can safely use DMA, can you try to see 
>which address is used by the DMA request?
>
>> Do I understand correctly that you have solved the issue by doing this?
>> If so then please could you send a patch. The process for submitting a
>> patch to Linux is described in Documentation/SubmittingPatches.
>
>Using swiotlb everywhere is just too slow. That's why Stefano took an 
>hybrid approach (1:1 mapping + bouncing for foreign pages).
>
>Regards,
>
>-- 
>Julien Grall

[-- Attachment #1.2: Type: text/html, Size: 3215 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-02  9:52 ` Ian Campbell
@ 2014-04-03  3:08   ` 杜琪
  2014-04-03  3:09   ` 杜琪
  1 sibling, 0 replies; 19+ messages in thread
From: 杜琪 @ 2014-04-03  3:08 UTC (permalink / raw)
  To: Ian Campbell
  Cc: bjzhang@suse.com, 宫晓利, Julien Grall,
	xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 1711 bytes --]

Hi there, 




The kernel works without XEN (We have tested it yesterday.), but it failed when works with xen hypervisor.


We have done some research about the MMC driver. 
If the command has nothing to do with the data transmission, it will work, such as CMD7 and CMD0
But when there is read or write operation( such as CMD52), the DMA module of the MMC controller will be used for the data transmission, instead of the DMA module of the CPU.


Our question is, should the XEN DMA memory map operations supported by swiotlib  also work for the DMA module of MMC controller? 


Thank you very much.


Best regards.








在 2014-04-02 17:52:15,"Ian Campbell" <Ian.Campbell@citrix.com> 写道:
>On Wed, 2014-04-02 at 00:10 +0800, 杜琪 wrote:
>> Hi all,
>>      I have got this kernel with mmc driver on cubieboard2 from : https://github.com/jwrdegoede/linux-sunxi.git  (test branch) . 
>
>Are you sure this branch is functional?
>
>I strongly recommend that you stick to the well known trees referenced
>from
>http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Allwinner
>
>If you want to use some other tree then the onus is on you to ensure
>that it is functional on baremetal before running it under Xen.
>
>>      I  have made the Xen's Dom0 configuration according this :http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs. and the kernel can be booted by Xen4.4.
>>      The question we met is that some CMD can be accepted(CMD7,CMD0 ....) and but some can't(CMD52,CMD5,CMD51). 
>>      We have found that the CMD51 is attempted to read the data from
>> SD card to memory through DMA
>
>Does the SD card work when the kernel is booted baremetal/natively
>without Xen?
>
>Ian.
>
>

[-- Attachment #1.2: Type: text/html, Size: 3060 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-02  9:52 ` Ian Campbell
  2014-04-03  3:08   ` 杜琪
@ 2014-04-03  3:09   ` 杜琪
  2014-04-03  9:34     ` Ian Campbell
  1 sibling, 1 reply; 19+ messages in thread
From: 杜琪 @ 2014-04-03  3:09 UTC (permalink / raw)
  To: Ian Campbell
  Cc: hdegoede@redhat.com, bjzhang@suse.com, 宫晓利,
	Julien Grall, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 1714 bytes --]

Hi there, 




The kernel works without XEN (We have tested it yesterday.), but it failed when works with xen hypervisor.


We have done some research about the MMC driver. 
If the command has nothing to do with the data transmission, it will work, such as CMD7 and CMD0
But when there is read or write operation( such as CMD52), the DMA module of the MMC controller will be used for the data transmission, instead of the DMA module of the CPU.


Our question is, should the XEN DMA memory map operations supported by swiotlib  also work for the DMA module of MMC controller? 


Thank you very much.


Best regards.








在 2014-04-02 17:52:15,"Ian Campbell" <Ian.Campbell@citrix.com> 写道:
>On Wed, 2014-04-02 at 00:10 +0800, 杜琪 wrote:
>> Hi all,
>>      I have got this kernel with mmc driver on cubieboard2 from : https://github.com/jwrdegoede/linux-sunxi.git  (test branch) . 
>
>Are you sure this branch is functional?
>
>I strongly recommend that you stick to the well known trees referenced
>from
>http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Allwinner
>
>If you want to use some other tree then the onus is on you to ensure
>that it is functional on baremetal before running it under Xen.
>
>>      I  have made the Xen's Dom0 configuration according this :http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs. and the kernel can be booted by Xen4.4.
>>      The question we met is that some CMD can be accepted(CMD7,CMD0 ....) and but some can't(CMD52,CMD5,CMD51). 
>>      We have found that the CMD51 is attempted to read the data from
>> SD card to memory through DMA
>
>Does the SD card work when the kernel is booted baremetal/natively
>without Xen?
>
>Ian.
>
>




[-- Attachment #1.2: Type: text/html, Size: 3268 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-03  3:09   ` 杜琪
@ 2014-04-03  9:34     ` Ian Campbell
  2014-04-04  7:28       ` 杜琪
  2014-04-04  7:36       ` duqi
  0 siblings, 2 replies; 19+ messages in thread
From: Ian Campbell @ 2014-04-03  9:34 UTC (permalink / raw)
  To: 杜琪
  Cc: hdegoede@redhat.com, bjzhang@suse.com, 宫晓利,
	Julien Grall, xen-devel@lists.xen.org

On Thu, 2014-04-03 at 11:09 +0800, 杜琪 wrote:
> Hi there, 

Hi,

Once again: Please don't top post (answer below or interleaved with the
quote text) and please stop posting HTML mails.

http://wiki.xen.org/wiki/Asking_Xen_Devel_Questions#Observe_list_etiquette.

> The kernel works without XEN (We have tested it yesterday.), but it
> failed when works with xen hypervisor.
> 
> 
> We have done some research about the MMC driver. 
> If the command has nothing to do with the data transmission, it will
> work, such as CMD7 and CMD0
> But when there is read or write operation( such as CMD52), the DMA
> module of the MMC controller will be used for the data transmission,
> instead of the DMA module of the CPU.
> 
> 
> Our question is, should the XEN DMA memory map operations supported by
> swiotlib  also work for the DMA module of MMC controller? 

As Julien has explained the 1:1 mapping, which is enabled by default for
dom0 since Xen 4.4 should mean that the swiotlb is not necessary for
dom0 access to the MMC.

The swiotlb is there to handle the case where the address which dom0
sees is not the real hardware address, but the 1:1 mapping ensures that
they are the same.

Looking at your logs I don't see anything of the debug from
sunxi_mmc_irq, if you have enabled debug prints from this driver then I
would expect you should see something. This is certainly something worth
investigating.

There is probably a pretty strong correlation between commands which use
DMA and commands which need an IRQ to complete.

Ian.



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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-02  9:44   ` Julien Grall
       [not found]     ` <3bdbc8fa.25a26.14522d200a4.Coremail.duqi_2009@163.com>
  2014-04-02 14:59     ` 杜琪
@ 2014-04-03 10:17     ` Stefano Stabellini
  2 siblings, 0 replies; 19+ messages in thread
From: Stefano Stabellini @ 2014-04-03 10:17 UTC (permalink / raw)
  To: Julien Grall
  Cc: 杜琪, xen-devel@lists.xen.org, Stefano Stabellini,
	Ian Campbell, bjzhang@suse.com

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

On Wed, 2 Apr 2014, Julien Grall wrote:
> On 02/04/14 08:20, Ian Campbell wrote:
> > On Wed, 2014-04-02 at 00:10 +0800, 杜琪 wrote:
> > > Hi all,
> 
> Hello,
> 
> > >       I have got this kernel with mmc driver on cubieboard2 from :
> > > https://github.com/jwrdegoede/linux-sunxi.git  (test branch) .
> > >       I  have made the Xen's Dom0 configuration according
> > > this :http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs.
> > > and the kernel can be booted by Xen4.4.
> > >       The question we met is that some CMD can be
> > > accepted(CMD7,CMD0 ....) and but some can't(CMD52,CMD5,CMD51).
> > >       We have found that the CMD51 is attempted to read the data from
> > > SD card to memory through DMA , so we replaced all the dma_ops with
> > > xen_dma_ops , where it is in struct "dma_map_ops xen_swiotlb_dma_ops"
> > > in arch/arm/xen/mm.c.
> 
> Can you give more input? (Xen log, ...) DOM0 has a 1:1 mapping layout, so the
> swiotlb should not change anything.
> 
> With the 1:1 mapping, the driver can safely use DMA, can you try to see which
> address is used by the DMA request?
> 
> > Do I understand correctly that you have solved the issue by doing this?
> > If so then please could you send a patch. The process for submitting a
> > patch to Linux is described in Documentation/SubmittingPatches.
> 
> Using swiotlb everywhere is just too slow. That's why Stefano took an hybrid
> approach (1:1 mapping + bouncing for foreign pages).

That is correct: for normal dom0 DMA operations, we just rely on the
dom0 1:1 mapping (guest physical addresses == machine addresses).
We use the swiotlb-xen only to bounce DMA requests that involve foreign
pages: pages belonging to other guests but mapped in dom0 do not belong
to the 1:1 mapping, hence they need the swiotlb.

So if you are just doing DMA in Dom0 and you haven't even started a
second guest yet, you shouldn't need the swiotlb-xen.

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-02  7:20 ` Ian Campbell
  2014-04-02  9:44   ` Julien Grall
@ 2014-04-03 10:56   ` Stefano Stabellini
  2014-04-03 11:45     ` Ian Campbell
                       ` (2 more replies)
  1 sibling, 3 replies; 19+ messages in thread
From: Stefano Stabellini @ 2014-04-03 10:56 UTC (permalink / raw)
  To: Ian Campbell
  Cc: 杜琪, bjzhang@suse.com, Stefano Stabellini,
	xen-devel@lists.xen.org

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

On Wed, 2 Apr 2014, Ian Campbell wrote:
> On Wed, 2014-04-02 at 00:10 +0800, 杜琪 wrote:
> > Hi all,
> 
> Hello,
> 
> >      I have got this kernel with mmc driver on cubieboard2 from :
> > https://github.com/jwrdegoede/linux-sunxi.git  (test branch) . 
> >      I  have made the Xen's Dom0 configuration according
> > this :http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs.
> > and the kernel can be booted by Xen4.4.
> >      The question we met is that some CMD can be
> > accepted(CMD7,CMD0 ....) and but some can't(CMD52,CMD5,CMD51). 
> >      We have found that the CMD51 is attempted to read the data from
> > SD card to memory through DMA , so we replaced all the dma_ops with
> > xen_dma_ops , where it is in struct "dma_map_ops xen_swiotlb_dma_ops"
> > in arch/arm/xen/mm.c.
> 
> Do I understand correctly that you have solved the issue by doing this?

Where did you replace the dma_ops with xen_dma_ops? Could you please
send out a patch so that I can understand what you modified exactly?

Keep in mind that for Dom0, get_dma_ops should already return
xen_dma_ops (see arch/arm/include/asm/dma-mapping.h:get_dma_ops), so in
theory you should already be getting the xen_dma_ops without having to
do anything.

So maybe the MMC driver is calling the arm_dma_ops functions directly
without going through get_dma_ops? It seems unlikely to me.
Can you point me to the right MMC driver in Linux that you are using?

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-03 10:56   ` Stefano Stabellini
@ 2014-04-03 11:45     ` Ian Campbell
  2014-04-03 17:18       ` Stefano Stabellini
  2014-04-04  7:16     ` 杜琪
  2014-04-04  7:37     ` duqi
  2 siblings, 1 reply; 19+ messages in thread
From: Ian Campbell @ 2014-04-03 11:45 UTC (permalink / raw)
  To: Stefano Stabellini
  Cc: 杜琪, bjzhang@suse.com, Stefano Stabellini,
	xen-devel@lists.xen.org

On Thu, 2014-04-03 at 11:56 +0100, Stefano Stabellini wrote:
> Can you point me to the right MMC driver in Linux that you are using?

I don't know what tree duqi is using but the main sunxi tree is 
git://github.com/linux-sunxi/linux-sunxi.git
and the mmc stuff is in the sunxi-devel (the bleeding edge) branch.

The sunxi-next branch targets the next merge window and I don't think it
has mmc stuff in it yet.

The driver is in drivers/mmc/host/sunxi_mmc.c.

Ian.

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-03 11:45     ` Ian Campbell
@ 2014-04-03 17:18       ` Stefano Stabellini
  0 siblings, 0 replies; 19+ messages in thread
From: Stefano Stabellini @ 2014-04-03 17:18 UTC (permalink / raw)
  To: Ian Campbell
  Cc: 杜琪, bjzhang@suse.com, xen-devel@lists.xen.org,
	Stefano Stabellini, Stefano Stabellini

On Thu, 3 Apr 2014, Ian Campbell wrote:
> On Thu, 2014-04-03 at 11:56 +0100, Stefano Stabellini wrote:
> > Can you point me to the right MMC driver in Linux that you are using?
> 
> I don't know what tree duqi is using but the main sunxi tree is 
> git://github.com/linux-sunxi/linux-sunxi.git
> and the mmc stuff is in the sunxi-devel (the bleeding edge) branch.
> 
> The sunxi-next branch targets the next merge window and I don't think it
> has mmc stuff in it yet.
> 
> The driver is in drivers/mmc/host/sunxi_mmc.c.

It looks all right to me. Nothing strange going on there.

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-03 10:56   ` Stefano Stabellini
  2014-04-03 11:45     ` Ian Campbell
@ 2014-04-04  7:16     ` 杜琪
  2014-04-04  7:37     ` duqi
  2 siblings, 0 replies; 19+ messages in thread
From: 杜琪 @ 2014-04-04  7:16 UTC (permalink / raw)
  To: Stefano Stabellini
  Cc: Ian Campbell, 宫晓利, hdegoede,
	Stefano Stabellini, bjzhang@suse.com, xen-devel@lists.xen.org

在 2014-04-03 18:56:30,"Stefano Stabellini" <stefano.stabellini@eu.citrix.com> 写道:

>Can you point me to the right MMC driver in Linux that you are using?

Hi, I use the tree from: https://github.com/jwrdegoede/linux-sunxi.git and sunxi-test branch

The MMC driver is in driver/mmc/host/sunxi_mci.c


duqi .
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-03  9:34     ` Ian Campbell
@ 2014-04-04  7:28       ` 杜琪
  2014-04-04  8:20         ` Julien Grall
  2014-04-04  7:36       ` duqi
  1 sibling, 1 reply; 19+ messages in thread
From: 杜琪 @ 2014-04-04  7:28 UTC (permalink / raw)
  To: Ian Campbell
  Cc: hdegoede@redhat.com, bjzhang@suse.com, 宫晓利,
	Julien Grall, xen-devel@lists.xen.org

在 2014-04-03 17:34:56,"Ian Campbell" <Ian.Campbell@citrix.com> 写道:
>On Thu, 2014-04-03 at 11:09 +0800, 杜琪 wrote:
>> Hi there, 
>
>Hi,
>
>Once again: Please don't top post (answer below or interleaved with the
>quote text) and please stop posting HTML mails.
>
>http://wiki.xen.org/wiki/Asking_Xen_Devel_Questions#Observe_list_etiquette.
>
>> The kernel works without XEN (We have tested it yesterday.), but it
>> failed when works with xen hypervisor.
>> 
>> 
>> We have done some research about the MMC driver. 
>> If the command has nothing to do with the data transmission, it will
>> work, such as CMD7 and CMD0
>> But when there is read or write operation( such as CMD52), the DMA
>> module of the MMC controller will be used for the data transmission,
>> instead of the DMA module of the CPU.
>> 
>> 
>> Our question is, should the XEN DMA memory map operations supported by
>> swiotlib  also work for the DMA module of MMC controller? 
>
>As Julien has explained the 1:1 mapping, which is enabled by default for
>dom0 since Xen 4.4 should mean that the swiotlb is not necessary for
>dom0 access to the MMC.
>
>The swiotlb is there to handle the case where the address which dom0
>sees is not the real hardware address, but the 1:1 mapping ensures that
>they are the same.
>
>Looking at your logs I don't see anything of the debug from
>sunxi_mmc_irq, if you have enabled debug prints from this driver then I
>would expect you should see something. This is certainly something worth
>investigating.


I have added some debug information about the dma address and related register . 

Could you give me some advice?

Many thanks.


The below is my kerneldump:

## Booting kernel from Legacy Image at 45000000 ...
   Image Name:   
   Created:      2014-04-04   4:40:35 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    993102 Bytes = 969.8 KiB
   Load Address: 40200000
   Entry Point:  40200000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
WARNING: ignoring attempt to set core boot address 7ff88454 on core -1
WARNING: Not kicking secondary CPUs

Starting kernel ...

- UART enabled -
- CPU 00000000 booting -
- Xen starting in Hyp mode -
- Zero BSS -
- Setting up control registers -
- Turning on paging -
- Ready -
Checking for initrd in /chosen
RAM: 0000000040000000 - 000000007fffffff

MODULE[1]: 00000000402ef700 - 00000000402f274e 
MODULE[2]: 0000000050000000 - 0000000050f00000 
MODULE[3]: 0000000060000000 - 0000000066000000 
Placing Xen at 0x000000007fe00000-0x0000000080000000
Xen heap: 0000000076000000-000000007e000000 (32768 pages)
Dom heap: 229376 pages
Looking for UART console serial0
 __  __            _  _   _  _                      _        _     _      
 \ \/ /___ _ __   | || | | || |     _   _ _ __  ___| |_ __ _| |__ | | ___ 
  \  // _ \ '_ \  | || |_| || |_ __| | | | '_ \/ __| __/ _` | '_ \| |/ _ \
  /  \  __/ | | | |__   _|__   _|__| |_| | | | \__ \ || (_| | |_) | |  __/
 /_/\_\___|_| |_|    |_|(_) |_|     \__,_|_| |_|___/\__\__,_|_.__/|_|\___|
                                                                          
(XEN) Xen version 4.4-unstable (root@) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.7.2-1ubuntu1) 4.7.2) debug=y Fri Apr  4 12:40:24
(XEN) Latest ChangeSet: Mon Oct 14 23:19:37 2013 +0100 git:720f45a
(XEN) Console output is synchronous.
(XEN) Processor: 410fc074: "ARM Limited", variant: 0x0, part 0xc07, rev 0x4
(XEN) 32-bit Execution:
(XEN)   Processor Features: 00001131:00011011
(XEN)     Instruction Sets: AArch32 Thumb Thumb-2 ThumbEE Jazelle
(XEN)     Extensions: GenericTimer Security
(XEN)   Debug Features: 02010555
(XEN)   Auxiliary Features: 00000000
(XEN)   Memory Model Features: 10101105 40000000 01240000 02102211
(XEN)  ISA Features: 02101110 13112111 21232041 11112131 10011142 00000000
(XEN) WARNING: Unrecognized/unsupported device tree compatible list
(XEN) Available platform support:
(XEN)     - VERSATILE EXPRESS
(XEN)     - SAMSUNG EXYNOS5
(XEN)     - CALXEDA MIDWAY
(XEN)     - TI OMAP5
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27
(XEN) Using generic timer at 24000 KHz
(XEN) GIC initialization:
(XEN)         gic_dist_addr=0000000001c81000
(XEN)         gic_cpu_addr=0000000001c82000
(XEN)         gic_hyp_addr=0000000001c84000
(XEN)         gic_vcpu_addr=0000000001c86000
(XEN)         gic_maintenance_irq=25
(XEN) GIC: 160 lines, 2 cpus, secure (IID 0100143b).
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Allocated console ring of 16 KiB.
(XEN) VFP implementer 0x41 architecture 2 part 0x30 variant 0x7 rev 0x4
(XEN) Brought up 1 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Populate P2M 0x40000000->0x60000000
(XEN) Loading kernel from boot module 2
(XEN) Loading zImage from 0000000050000000 to 0000000047800000-0000000047f06b20
(XEN) Loading dom0 initrd from 0000000060000000 to 0x0000000048200000-0x000000004e200000
(XEN) Loading dom0 DTB to 0x0000000048000000-0x0000000048002eb6
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) **********************************************
(XEN) ******* WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) ******* This option is intended to aid debugging of Xen by ensuring
(XEN) ******* that all output is synchronously delivered on the serial line.
(XEN) ******* However it can introduce SIGNIFICANT latencies and affect
(XEN) ******* timekeeping. It is NOT recommended for production use!
(XEN) **********************************************
(XEN) 3... 2... 1... 
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 268kB init memory.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.13.0-rc4 (duqi@Lenovo-G480) (gcc version 4.8.2 20131014 (prerelease) (crosstool-NG linaro-1.13.1-4
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Cubietech Cubieboard2
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0cb0980, node_mem_map c0dba000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] psci: probing function IDs from device-tree
[    0.000000] PERCPU: Embedded 9 pages/cpu @c11c3000 s13696 r8192 d14976 u36864
[    0.000000] pcpu-alloc: s13696 r8192 d14976 u36864 alloc=9*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=hvc0,115200n8 debug ignore_loglevel rw rootwait earlyprintk=xen clk_ignore_unused rof
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 1048576 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 406324K/524288K available (6542K kernel code, 805K rwdata, 2832K rodata, 2857K init, 975K bss, 117964K re)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc092fc5c   (9376 kB)
[    0.000000]       .init : 0xc0930000 - 0xc0bfa580   (2858 kB)
[    0.000000]       .data : 0xc0bfc000 - 0xc0cc5420   ( 806 kB)
[    0.000000]        .bss : 0xc0cc5420 - 0xc0db9398   ( 976 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[    0.000000] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps every 26843545593ns
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] Switching to timer-based delay loop
[    0.000000] Console: colour dummy device 80x30
[    0.000607] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000623] pid_max: default: 32768 minimum: 301
[    0.000806] Security Framework initialized
[    0.000859] SELinux:  Initializing.
[    0.000904] SELinux:  Starting in permissive mode
[    0.001156] Mount-cache hash table entries: 512
[    0.004470] Initializing cgroup subsys memory
[    0.004522] Initializing cgroup subsys devices
[    0.004533] Initializing cgroup subsys freezer
[    0.004546] Initializing cgroup subsys net_cls
[    0.004555] Initializing cgroup subsys blkio
[    0.004564] Initializing cgroup subsys perf_event
[    0.004690] CPU: Testing write buffer coherency: ok
[    0.004735] ftrace: allocating 27284 entries in 54 pages
[    0.041705] /cpus/cpu@0 missing clock-frequency property
[    0.041737] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.041777] Setting up static identity map for 0x406303f0 - 0x40630488
[    0.049315] Brought up 1 CPUs
[    0.049332] SMP: Total of 1 processors activated.
[    0.049340] CPU: All CPU(s) started in SVC mode.
[    0.050430] devtmpfs: initialized
[    0.055604] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.055739] Xen 4.4 support found, events_irq=31 gnttab_frame_pfn=b0000
[    0.055818] xen:grant_table: Grant tables using version 1 layout
[    0.055886] Grant table initialized
[    0.062863] atomic64 test passed
[    0.062886] pinctrl core: initialized pinctrl subsystem
[    0.063364] regulator-dummy: no parameters
[    0.063923] NET: Registered protocol family 16
[    0.064504] Xen: initializing cpu0
[    0.064871] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.066807] xen:swiotlb_xen: Warning: only able to allocate 8 MB for software IO TLB
[    0.071143] software IO TLB [mem 0x5e000000-0x5e800000] (8MB) mapped at [de000000-de7fffff]
[    0.073958] No ATAGs?
[    0.073989] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.074000] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.074763] Serial: AMBA PL011 UART driver
[    0.082687] bio: create slab <bio-0> at 0
[    0.083827] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
[    0.083900] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
[    0.084067] xen:balloon: Initialising balloon driver
[    0.084182] reg-fixed-voltage ahci-5v.3: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, defere
[    0.084200] platform ahci-5v.3: Driver reg-fixed-voltage requests probe deferral
[    0.084224] reg-fixed-voltage usb1-vbus.4: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, dee
[    0.084238] platform usb1-vbus.4: Driver reg-fixed-voltage requests probe deferral
[    0.084259] reg-fixed-voltage usb2-vbus.5: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, dee
[    0.084273] platform usb2-vbus.5: Driver reg-fixed-voltage requests probe deferral
[    0.085486] SCSI subsystem initialized
[    0.085801] libata version 3.00 loaded.
[    0.086168] usbcore: registered new interface driver usbfs
[    0.086235] usbcore: registered new interface driver hub
[    0.086413] usbcore: registered new device driver usb
[    0.086686] pps_core: LinuxPPS API ver. 1 registered
[    0.086696] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.086723] PTP clock support registered
[    0.087966] NetLabel: Initializing
[    0.087979] NetLabel:  domain hash size = 128
[    0.087987] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.088061] NetLabel:  unlabeled traffic allowed by default
[    0.088519] Switched to clocksource arch_sys_counter
[    0.148018] NET: Registered protocol family 2
[    0.149156] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.149218] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.149284] TCP: Hash tables configured (established 4096 bind 4096)
[    0.149350] TCP: reno registered
[    0.149367] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.149402] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.149716] NET: Registered protocol family 1
[    0.150305] RPC: Registered named UNIX socket transport module.
[    0.150318] RPC: Registered udp transport module.
[    0.150325] RPC: Registered tcp transport module.
[    0.150331] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.334844] Unpacking initramfs...
[    0.334887] Initramfs unpacking failed: junk in compressed archive
[    0.453376] Freeing initrd memory: 98304K (c8200000 - ce200000)
[    0.455429] audit: initializing netlink socket (disabled)
[    0.455503] type=2000 audit(0.430:1): initialized
[    0.660933] zbud: loaded
[    0.661609] VFS: Disk quotas dquot_6.5.2
[    0.661946] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.664475] NFS: Registering the id_resolver key type
[    0.664559] Key type id_resolver registered
[    0.664568] Key type id_legacy registered
[    0.664587] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.665012] msgmni has been set to 985
[    0.665451] SELinux:  Registering netfilter hooks
[    0.669206] alg: No test for stdrng (krng)
[    0.669246] NET: Registered protocol family 38
[    0.669568] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.669802] io scheduler noop registered
[    0.669813] io scheduler deadline registered
[    0.670055] io scheduler cfq registered (default)
[    0.673141] sunxi-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.674539] xen:xen_evtchn: Event-channel device installed
[    1.492678] console [hvc0] enabled
[    1.496053] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.503983] Serial: AMBA driver
[    1.507117] Serial: IMX driver
[    1.511262] [drm] Initialized drm 1.1.0 20060810
[    1.517710] libphy: Fixed MDIO Bus: probed
[    1.522515] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.529077] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.535206] ohci-omap3: OHCI OMAP3 driver
[    1.539640] usbcore: registered new interface driver usbserial
[    1.545439] usbcore: registered new interface driver usbserial_generic
[    1.552080] usbserial: USB Serial support registered for generic
[    1.558352] mousedev: PS/2 mouse device common for all mice
[    1.565261] device-mapper: uevent: version 1.0.3
[    1.570430] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[    1.579815] #sunxi_mmc_probe# the host->sg_cpu=e083e000
[    1.585207] sunxi-mci 1c0f000.mmc: base:0xe08be000 irq:64
[    1.590932] hidraw: raw HID events driver (C) Jiri Kosina
[    1.596999] usbcore: registered new interface driver usbhid
[    1.602569] usbhid: USB HID core driver
[    1.606518] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
[    1.613128] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 timing 0
[    1.620397] sunxi-mci 1c0f000.mmc: power on!
[    1.625141] drop_monitor: Initializing network drop monitor service
[    1.631696] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.637013] TCP: cubic registered
[    1.640390] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    1.648033] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.653207] sunxi-mci 1c0f000.mmc: setting clk to 400000, rounded 400000
[    1.659960] sunxi-mci 1c0f000.mmc: clk is now 400000
[    1.664993] Initializing XFRM netlink socket
[    1.670082] NET: Registered protocol family 10
[    1.675465] mip6: Mobile IPv6
[    1.678365] NET: Registered protocol family 17
[    1.683070] Key type dns_resolver registered
[    1.687560] ThumbEE CPU extension supported.
[    1.691812] Registering SWP/SWPB emulation handler
[    1.697423] registered taskstats version 1
[    1.702404] ahci-5v: 5000 mV 
[    1.705748] usb1-vbus: 5000 mV 
[    1.709356] usb2-vbus: 5000 mV 
[    1.712763] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.719024] sr_init: No PMIC hook to init smartreflex
[    1.724215] sr_init: platform driver register failed for SR
[    1.738701] mmc0: starting CMD52 arg 00000c00 flags 00000195
[    1.744300] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg c00 ie 0x0000bbc6 len 0
[    1.752497] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    1.757479] sunxi-mci 1c0f000.mmc: irq: rq df0ade48 mi 00000104 idi 00000000
[    1.764568] #sunxi_mmc_irq# Don't wait for dma on error!!
[    1.770086] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    1.777922] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
[    1.785201] mmc0: starting CMD52 arg 80000c08 flags 00000195
[    1.790883] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg 80000c08 ie 0x0000bbc6 len 0
[    1.799465] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    1.804435] sunxi-mci 1c0f000.mmc: irq: rq df0ade48 mi 00000104 idi 00000000
[    1.811533] #sunxi_mmc_irq# Don't wait for dma on error!!
[    1.817015] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    1.824885] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
[    1.832109] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    1.839814] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.844933] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    1.907534] mmc0: starting CMD0 arg 00000000 flags 000000c0
[    1.913058] sunxi-mci 1c0f000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
[    1.920526] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    1.925322] sunxi-mci 1c0f000.mmc: irq: rq df0ade70 mi 00000004 idi 00000000
[    1.932421] #sunxi_mmc_irq# DMA done
[    1.936075] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    1.943953] mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
[    1.951836] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    1.959424] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.964520] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.027143] mmc0: starting CMD8 arg 000001aa flags 000002f5
[    2.032665] sunxi-mci 1c0f000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
[    2.040252] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.045048] sunxi-mci 1c0f000.mmc: irq: rq df0ade70 mi 00000004 idi 00000000
[    2.052147] #sunxi_mmc_irq# DMA done
[    2.055801] sunxi-mci 1c0f000.mmc: req done, resp 000001aa 00000000 00000000 00000000
[    2.063679] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
[    2.070559] mmc0: starting CMD5 arg 00000000 flags 000002e1
[    2.076174] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.084111] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    2.089082] sunxi-mci 1c0f000.mmc: irq: rq df0ade28 mi 00000104 idi 00000000
[    2.096181] #sunxi_mmc_irq# Don't wait for dma on error!!
[    2.101664] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.109556] mmc0: req failed (CMD5): -110, retrying...
[    2.114760] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.122668] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    2.127637] sunxi-mci 1c0f000.mmc: irq: rq df0ade28 mi 00000104 idi 00000000
[    2.134736] #sunxi_mmc_irq# Don't wait for dma on error!!
[    2.140219] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.148107] mmc0: req failed (CMD5): -110, retrying...
[    2.153327] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.161218] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    2.166187] sunxi-mci 1c0f000.mmc: irq: rq df0ade28 mi 00000104 idi 00000000
[    2.173286] #sunxi_mmc_irq# Don't wait for dma on error!!
[    2.178775] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.186656] mmc0: req failed (CMD5): -110, retrying...
[    2.191876] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.199767] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    2.204735] sunxi-mci 1c0f000.mmc: irq: rq df0ade28 mi 00000104 idi 00000000
[    2.211834] #sunxi_mmc_irq# Don't wait for dma on error!!
[    2.217317] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.225187] mmc0: req done (CMD5): -110: 00000000 00000000 00000000 00000000
[    2.232317] mmc0: starting CMD55 arg 00000000 flags 000000f5
[    2.238018] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[    2.245543] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.250339] sunxi-mci 1c0f000.mmc: irq: rq df0addc0 mi 00000004 idi 00000000
[    2.257438] #sunxi_mmc_irq# DMA done
[    2.261091] sunxi-mci 1c0f000.mmc: req done, resp 00400120 00000000 00000000 00000000
[    2.268971] mmc0: req done (CMD55): 0: 00400120 00000000 00000000 00000000
[    2.275936] mmc0: starting CMD41 arg 00000000 flags 000000e1
[    2.281647] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 0 ie 0x0000bbc6 len 0
[    2.289151] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.293948] sunxi-mci 1c0f000.mmc: irq: rq df0ade40 mi 00000004 idi 00000000
[    2.301046] #sunxi_mmc_irq# DMA done
[    2.304707] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
[    2.312578] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
[    2.319550] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    2.327225] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.332362] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.394970] mmc0: starting CMD0 arg 00000000 flags 000000c0
[    2.400497] sunxi-mci 1c0f000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
[    2.407944] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.412739] sunxi-mci 1c0f000.mmc: irq: rq df0addf8 mi 00000004 idi 00000000
[    2.419838] #sunxi_mmc_irq# DMA done
[    2.423492] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
[    2.431382] mmc0: req done (CMD0): 0: 00ff8000 00000000 00000000 00000000
[    2.439251] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    2.446818] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.451963] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.514534] mmc0: starting CMD8 arg 000001aa flags 000002f5
[    2.520056] sunxi-mci 1c0f000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
[    2.527618] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.532413] sunxi-mci 1c0f000.mmc: irq: rq df0addf8 mi 00000004 idi 00000000
[    2.539512] #sunxi_mmc_irq# DMA done
[    2.543166] sunxi-mci 1c0f000.mmc: req done, resp 000001aa 00000000 00000000 00000000
[    2.551044] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
[    2.557925] mmc0: starting CMD55 arg 00000000 flags 000000f5
[    2.563635] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[    2.571138] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.575933] sunxi-mci 1c0f000.mmc: irq: rq df0add60 mi 00000004 idi 00000000
[    2.583032] #sunxi_mmc_irq# DMA done
[    2.586686] sunxi-mci 1c0f000.mmc: req done, resp 00000120 00000000 00000000 00000000
[    2.594565] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[    2.601531] mmc0: starting CMD41 arg 41200000 flags 000000e1
[    2.607222] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 41200000 ie 0x0000bbc6 len 0
[    2.615354] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.620162] sunxi-mci 1c0f000.mmc: irq: rq df0adde0 mi 00000004 idi 00000000
[    2.627249] #sunxi_mmc_irq# DMA done
[    2.630913] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
[    2.638782] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
[    2.658587] mmc0: starting CMD55 arg 00000000 flags 000000f5
[    2.664166] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[    2.671687] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.676483] sunxi-mci 1c0f000.mmc: irq: rq df0add60 mi 00000004 idi 00000000
[    2.683581] #sunxi_mmc_irq# DMA done
[    2.687235] sunxi-mci 1c0f000.mmc: req done, resp 00000120 00000000 00000000 00000000
[    2.695114] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[    2.702085] mmc0: starting CMD41 arg 41200000 flags 000000e1
[    2.707773] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 41200000 ie 0x0000bbc6 len 0
[    2.715912] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.720708] sunxi-mci 1c0f000.mmc: irq: rq df0adde0 mi 00000004 idi 00000000
[    2.727807] #sunxi_mmc_irq# DMA done
[    2.731460] sunxi-mci 1c0f000.mmc: req done, resp c0ff8000 00000000 00000000 00000000
[    2.739358] mmc0: req done (CMD41): 0: c0ff8000 00000000 00000000 00000000
[    2.746329] mmc0: starting CMD2 arg 00000000 flags 00000067
[    2.751940] sunxi-mci 1c0f000.mmc: cmd 2(800001c2) arg 0 ie 0x0000bbc6 len 0
[    2.759568] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.764364] sunxi-mci 1c0f000.mmc: irq: rq df0ade18 mi 00000004 idi 00000000
[    2.771463] #sunxi_mmc_irq# DMA done
[    2.775120] sunxi-mci 1c0f000.mmc: req done, resp 02544d53 41303847 111dec2a ce00d59b
[    2.782996] mmc0: req done (CMD2): 0: 02544d53 41303847 111dec2a ce00d59b
[    2.789884] mmc0: starting CMD3 arg 00000000 flags 00000075
[    2.795492] sunxi-mci 1c0f000.mmc: cmd 3(80000143) arg 0 ie 0x0000bbc6 len 0
[    2.802917] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.807713] sunxi-mci 1c0f000.mmc: irq: rq df0ade18 mi 00000004 idi 00000000
[    2.814812] #sunxi_mmc_irq# DMA done
[    2.818466] sunxi-mci 1c0f000.mmc: req done, resp 12340500 00000000 00000000 00000000
[    2.826344] mmc0: req done (CMD3): 0: 12340500 00000000 00000000 00000000
[    2.833225] mmc0: starting CMD9 arg 12340000 flags 00000007
[    2.838860] sunxi-mci 1c0f000.mmc: cmd 9(800001c9) arg 12340000 ie 0x0000bbc6 len 0
[    2.847075] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.851872] sunxi-mci 1c0f000.mmc: irq: rq df0ade00 mi 00000004 idi 00000000
[    2.858969] #sunxi_mmc_irq# DMA done
[    2.862624] sunxi-mci 1c0f000.mmc: req done, resp 400e0032 5b590000 3a477f80 0a40000b
[    2.870503] mmc0: req done (CMD9): 0: 400e0032 5b590000 3a477f80 0a40000b
[    2.877390] mmc0: starting CMD7 arg 12340000 flags 00000015
[    2.883015] sunxi-mci 1c0f000.mmc: cmd 7(80000147) arg 12340000 ie 0x0000bbc6 len 0
[    2.891029] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.895825] sunxi-mci 1c0f000.mmc: irq: rq df0ade18 mi 00000004 idi 00000000
[    2.902923] #sunxi_mmc_irq# DMA done
[    2.906576] sunxi-mci 1c0f000.mmc: req done, resp 00000700 00000000 00000000 00000000
[    2.914456] mmc0: req done (CMD7): 0: 00000700 00000000 00000000 00000000
[    2.921337] mmc0: starting CMD55 arg 12340000 flags 00000095
[    2.927028] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 12340000 ie 0x0000bbc6 len 0
[    2.935157] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.939953] sunxi-mci 1c0f000.mmc: irq: rq df0add30 mi 00000004 idi 00000000
[    2.947052] #sunxi_mmc_irq# DMA done
[    2.950706] sunxi-mci 1c0f000.mmc: req done, resp 00000920 00000000 00000000 00000000
[    2.958585] mmc0: req done (CMD55): 0: 00000920 00000000 00000000 00000000
[    2.965553] mmc0: starting CMD51 arg 00000000 flags 000000b5
[    2.971257] mmc0:     blksz 8 blocks 1 flags 00000200 tsac 100 ms nsac 0
[    2.978005] #sunxi_mmc_request# data is not null!
[    2.982786] #sunxi_mmc_init_idma_des:#  dma_address=5d8aa600
[    2.988507] sunxi-mci 1c0f000.mmc: cmd 51(80002373) arg 0 ie 0x0000bbca len 8
[    2.996583] #sunxi_mmc_irq#  REG_IDST=a000,REG_MISTA=808
[    3.001821] sunxi-mci 1c0f000.mmc: irq: rq df0addc4 mi 00000808 idi 0000a000
[    3.008910] #sunxi_mmc_irq# Don't wait for dma on error!!
[    3.014395] sunxi-mci 1c0f000.mmc: smc 0 err, cmd 51, RD FE !!
[    3.020277] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    3.028155] sunxi-mci 1c0f000.mmc: data error, sending stop command
[    3.035267] sunxi-mci 1c0f000.mmc: send stop command failed
[    3.040762] mmc0: req done (CMD51): -110: 00000000 00000000 00000000 00000000
[    3.047954] mmc0:     0 bytes transferred: -110
[    3.052568] mmc0: error -110 whilst initialising SD card
[    3.057927] mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.065660] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.070763] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.132345] mmc0: starting CMD1 arg 00000000 flags 000000e1
[    3.137850] sunxi-mci 1c0f000.mmc: cmd 1(80000041) arg 0 ie 0x0000bbc6 len 0
[    3.145768] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    3.150749] sunxi-mci 1c0f000.mmc: irq: rq df0ade50 mi 00000104 idi 00000000
[    3.157836] #sunxi_mmc_irq# Don't wait for dma on error!!
[    3.163325] sunxi-mci 1c0f000.mmc: smc 0 err, cmd 1, RTO !!
[    3.168947] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    3.176822] mmc0: req done (CMD1): -110: 00000000 00000000 00000000 00000000
[    3.183952] mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
[    3.191141] sunxi-mci 1c0f000.mmc: power off!
[    4.188617] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
[    4.195160] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 timing 0
[    4.202461] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=0
[    4.207370] sunxi-mci 1c0f000.mmc: irq: rq   (null) mi 00000000 idi 00000000
[    4.214500] sunxi-mci 1c0f000.mmc: power on!
[    4.238591] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.246168] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    4.251296] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    4.328556] mmc0: starting CMD52 arg 00000c00 flags 00000195
[    4.334137] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg c00 ie 0x0000bbc6 len 0
[   13.848599] clk: Not disabling unused clocks
[   13.856737] Freeing unused kernel memory: 2856K (c0930000 - c0bfa000)
/bin/ash: can't access tty; job control turned off
/ # 



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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-03  9:34     ` Ian Campbell
  2014-04-04  7:28       ` 杜琪
@ 2014-04-04  7:36       ` duqi
  1 sibling, 0 replies; 19+ messages in thread
From: duqi @ 2014-04-04  7:36 UTC (permalink / raw)
  To: Ian Campbell
  Cc: hdegoede@redhat.com, bjzhang@suse.com, 宫晓利,
	Julien Grall, xen-devel@lists.xen.org

在 2014-04-03 17:34:56,"Ian Campbell" <Ian.Campbell@citrix.com> 写道:
>On Thu, 2014-04-03 at 11:09 +0800, 杜琪 wrote:
>> Hi there, 
>
>Hi,
>
>Once again: Please don't top post (answer below or interleaved with the
>quote text) and please stop posting HTML mails.
>
>http://wiki.xen.org/wiki/Asking_Xen_Devel_Questions#Observe_list_etiquette.
>
>> The kernel works without XEN (We have tested it yesterday.), but it
>> failed when works with xen hypervisor.
>> 
>> 
>> We have done some research about the MMC driver. 
>> If the command has nothing to do with the data transmission, it will
>> work, such as CMD7 and CMD0
>> But when there is read or write operation( such as CMD52), the DMA
>> module of the MMC controller will be used for the data transmission,
>> instead of the DMA module of the CPU.
>> 
>> 
>> Our question is, should the XEN DMA memory map operations supported by
>> swiotlib  also work for the DMA module of MMC controller? 
>
>As Julien has explained the 1:1 mapping, which is enabled by default for
>dom0 since Xen 4.4 should mean that the swiotlb is not necessary for
>dom0 access to the MMC.
>
>The swiotlb is there to handle the case where the address which dom0
>sees is not the real hardware address, but the 1:1 mapping ensures that
>they are the same.
>
>Looking at your logs I don't see anything of the debug from
>sunxi_mmc_irq, if you have enabled debug prints from this driver then I
>would expect you should see something. This is certainly something worth
>investigating.


I have added some debug information about the dma address and related register . 

Could you give me some advice?

Many thanks.


The below is my kerneldump:

## Booting kernel from Legacy Image at 45000000 ...
   Image Name:   
   Created:      2014-04-04   4:40:35 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    993102 Bytes = 969.8 KiB
   Load Address: 40200000
   Entry Point:  40200000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
WARNING: ignoring attempt to set core boot address 7ff88454 on core -1
WARNING: Not kicking secondary CPUs

Starting kernel ...

- UART enabled -
- CPU 00000000 booting -
- Xen starting in Hyp mode -
- Zero BSS -
- Setting up control registers -
- Turning on paging -
- Ready -
Checking for initrd in /chosen
RAM: 0000000040000000 - 000000007fffffff

MODULE[1]: 00000000402ef700 - 00000000402f274e 
MODULE[2]: 0000000050000000 - 0000000050f00000 
MODULE[3]: 0000000060000000 - 0000000066000000 
Placing Xen at 0x000000007fe00000-0x0000000080000000
Xen heap: 0000000076000000-000000007e000000 (32768 pages)
Dom heap: 229376 pages
Looking for UART console serial0
 __  __            _  _   _  _                      _        _     _      
 \ \/ /___ _ __   | || | | || |     _   _ _ __  ___| |_ __ _| |__ | | ___ 
  \  // _ \ '_ \  | || |_| || |_ __| | | | '_ \/ __| __/ _` | '_ \| |/ _ \
  /  \  __/ | | | |__   _|__   _|__| |_| | | | \__ \ || (_| | |_) | |  __/
 /_/\_\___|_| |_|    |_|(_) |_|     \__,_|_| |_|___/\__\__,_|_.__/|_|\___|
                                                                          
(XEN) Xen version 4.4-unstable (root@) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.7.2-1ubuntu1) 4.7.2) debug=y Fri Apr  4 12:40:24
(XEN) Latest ChangeSet: Mon Oct 14 23:19:37 2013 +0100 git:720f45a
(XEN) Console output is synchronous.
(XEN) Processor: 410fc074: "ARM Limited", variant: 0x0, part 0xc07, rev 0x4
(XEN) 32-bit Execution:
(XEN)   Processor Features: 00001131:00011011
(XEN)     Instruction Sets: AArch32 Thumb Thumb-2 ThumbEE Jazelle
(XEN)     Extensions: GenericTimer Security
(XEN)   Debug Features: 02010555
(XEN)   Auxiliary Features: 00000000
(XEN)   Memory Model Features: 10101105 40000000 01240000 02102211
(XEN)  ISA Features: 02101110 13112111 21232041 11112131 10011142 00000000
(XEN) WARNING: Unrecognized/unsupported device tree compatible list
(XEN) Available platform support:
(XEN)     - VERSATILE EXPRESS
(XEN)     - SAMSUNG EXYNOS5
(XEN)     - CALXEDA MIDWAY
(XEN)     - TI OMAP5
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27
(XEN) Using generic timer at 24000 KHz
(XEN) GIC initialization:
(XEN)         gic_dist_addr=0000000001c81000
(XEN)         gic_cpu_addr=0000000001c82000
(XEN)         gic_hyp_addr=0000000001c84000
(XEN)         gic_vcpu_addr=0000000001c86000
(XEN)         gic_maintenance_irq=25
(XEN) GIC: 160 lines, 2 cpus, secure (IID 0100143b).
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Allocated console ring of 16 KiB.
(XEN) VFP implementer 0x41 architecture 2 part 0x30 variant 0x7 rev 0x4
(XEN) Brought up 1 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Populate P2M 0x40000000->0x60000000
(XEN) Loading kernel from boot module 2
(XEN) Loading zImage from 0000000050000000 to 0000000047800000-0000000047f06b20
(XEN) Loading dom0 initrd from 0000000060000000 to 0x0000000048200000-0x000000004e200000
(XEN) Loading dom0 DTB to 0x0000000048000000-0x0000000048002eb6
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) **********************************************
(XEN) ******* WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) ******* This option is intended to aid debugging of Xen by ensuring
(XEN) ******* that all output is synchronously delivered on the serial line.
(XEN) ******* However it can introduce SIGNIFICANT latencies and affect
(XEN) ******* timekeeping. It is NOT recommended for production use!
(XEN) **********************************************
(XEN) 3... 2... 1... 
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 268kB init memory.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.13.0-rc4 (duqi@Lenovo-G480) (gcc version 4.8.2 20131014 (prerelease) (crosstool-NG linaro-1.13.1-4
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Cubietech Cubieboard2
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0cb0980, node_mem_map c0dba000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] psci: probing function IDs from device-tree
[    0.000000] PERCPU: Embedded 9 pages/cpu @c11c3000 s13696 r8192 d14976 u36864
[    0.000000] pcpu-alloc: s13696 r8192 d14976 u36864 alloc=9*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=hvc0,115200n8 debug ignore_loglevel rw rootwait earlyprintk=xen clk_ignore_unused rof
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 1048576 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 406324K/524288K available (6542K kernel code, 805K rwdata, 2832K rodata, 2857K init, 975K bss, 117964K re)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc092fc5c   (9376 kB)
[    0.000000]       .init : 0xc0930000 - 0xc0bfa580   (2858 kB)
[    0.000000]       .data : 0xc0bfc000 - 0xc0cc5420   ( 806 kB)
[    0.000000]        .bss : 0xc0cc5420 - 0xc0db9398   ( 976 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[    0.000000] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps every 26843545593ns
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] Switching to timer-based delay loop
[    0.000000] Console: colour dummy device 80x30
[    0.000607] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000623] pid_max: default: 32768 minimum: 301
[    0.000806] Security Framework initialized
[    0.000859] SELinux:  Initializing.
[    0.000904] SELinux:  Starting in permissive mode
[    0.001156] Mount-cache hash table entries: 512
[    0.004470] Initializing cgroup subsys memory
[    0.004522] Initializing cgroup subsys devices
[    0.004533] Initializing cgroup subsys freezer
[    0.004546] Initializing cgroup subsys net_cls
[    0.004555] Initializing cgroup subsys blkio
[    0.004564] Initializing cgroup subsys perf_event
[    0.004690] CPU: Testing write buffer coherency: ok
[    0.004735] ftrace: allocating 27284 entries in 54 pages
[    0.041705] /cpus/cpu@0 missing clock-frequency property
[    0.041737] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.041777] Setting up static identity map for 0x406303f0 - 0x40630488
[    0.049315] Brought up 1 CPUs
[    0.049332] SMP: Total of 1 processors activated.
[    0.049340] CPU: All CPU(s) started in SVC mode.
[    0.050430] devtmpfs: initialized
[    0.055604] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.055739] Xen 4.4 support found, events_irq=31 gnttab_frame_pfn=b0000
[    0.055818] xen:grant_table: Grant tables using version 1 layout
[    0.055886] Grant table initialized
[    0.062863] atomic64 test passed
[    0.062886] pinctrl core: initialized pinctrl subsystem
[    0.063364] regulator-dummy: no parameters
[    0.063923] NET: Registered protocol family 16
[    0.064504] Xen: initializing cpu0
[    0.064871] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.066807] xen:swiotlb_xen: Warning: only able to allocate 8 MB for software IO TLB
[    0.071143] software IO TLB [mem 0x5e000000-0x5e800000] (8MB) mapped at [de000000-de7fffff]
[    0.073958] No ATAGs?
[    0.073989] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.074000] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.074763] Serial: AMBA PL011 UART driver
[    0.082687] bio: create slab <bio-0> at 0
[    0.083827] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
[    0.083900] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
[    0.084067] xen:balloon: Initialising balloon driver
[    0.084182] reg-fixed-voltage ahci-5v.3: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, defere
[    0.084200] platform ahci-5v.3: Driver reg-fixed-voltage requests probe deferral
[    0.084224] reg-fixed-voltage usb1-vbus.4: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, dee
[    0.084238] platform usb1-vbus.4: Driver reg-fixed-voltage requests probe deferral
[    0.084259] reg-fixed-voltage usb2-vbus.5: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, dee
[    0.084273] platform usb2-vbus.5: Driver reg-fixed-voltage requests probe deferral
[    0.085486] SCSI subsystem initialized
[    0.085801] libata version 3.00 loaded.
[    0.086168] usbcore: registered new interface driver usbfs
[    0.086235] usbcore: registered new interface driver hub
[    0.086413] usbcore: registered new device driver usb
[    0.086686] pps_core: LinuxPPS API ver. 1 registered
[    0.086696] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.086723] PTP clock support registered
[    0.087966] NetLabel: Initializing
[    0.087979] NetLabel:  domain hash size = 128
[    0.087987] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.088061] NetLabel:  unlabeled traffic allowed by default
[    0.088519] Switched to clocksource arch_sys_counter
[    0.148018] NET: Registered protocol family 2
[    0.149156] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.149218] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.149284] TCP: Hash tables configured (established 4096 bind 4096)
[    0.149350] TCP: reno registered
[    0.149367] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.149402] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.149716] NET: Registered protocol family 1
[    0.150305] RPC: Registered named UNIX socket transport module.
[    0.150318] RPC: Registered udp transport module.
[    0.150325] RPC: Registered tcp transport module.
[    0.150331] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.334844] Unpacking initramfs...
[    0.334887] Initramfs unpacking failed: junk in compressed archive
[    0.453376] Freeing initrd memory: 98304K (c8200000 - ce200000)
[    0.455429] audit: initializing netlink socket (disabled)
[    0.455503] type=2000 audit(0.430:1): initialized
[    0.660933] zbud: loaded
[    0.661609] VFS: Disk quotas dquot_6.5.2
[    0.661946] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.664475] NFS: Registering the id_resolver key type
[    0.664559] Key type id_resolver registered
[    0.664568] Key type id_legacy registered
[    0.664587] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.665012] msgmni has been set to 985
[    0.665451] SELinux:  Registering netfilter hooks
[    0.669206] alg: No test for stdrng (krng)
[    0.669246] NET: Registered protocol family 38
[    0.669568] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.669802] io scheduler noop registered
[    0.669813] io scheduler deadline registered
[    0.670055] io scheduler cfq registered (default)
[    0.673141] sunxi-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.674539] xen:xen_evtchn: Event-channel device installed
[    1.492678] console [hvc0] enabled
[    1.496053] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.503983] Serial: AMBA driver
[    1.507117] Serial: IMX driver
[    1.511262] [drm] Initialized drm 1.1.0 20060810
[    1.517710] libphy: Fixed MDIO Bus: probed
[    1.522515] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.529077] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.535206] ohci-omap3: OHCI OMAP3 driver
[    1.539640] usbcore: registered new interface driver usbserial
[    1.545439] usbcore: registered new interface driver usbserial_generic
[    1.552080] usbserial: USB Serial support registered for generic
[    1.558352] mousedev: PS/2 mouse device common for all mice
[    1.565261] device-mapper: uevent: version 1.0.3
[    1.570430] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[    1.579815] #sunxi_mmc_probe# the host->sg_cpu=e083e000
[    1.585207] sunxi-mci 1c0f000.mmc: base:0xe08be000 irq:64
[    1.590932] hidraw: raw HID events driver (C) Jiri Kosina
[    1.596999] usbcore: registered new interface driver usbhid
[    1.602569] usbhid: USB HID core driver
[    1.606518] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
[    1.613128] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 timing 0
[    1.620397] sunxi-mci 1c0f000.mmc: power on!
[    1.625141] drop_monitor: Initializing network drop monitor service
[    1.631696] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.637013] TCP: cubic registered
[    1.640390] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    1.648033] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.653207] sunxi-mci 1c0f000.mmc: setting clk to 400000, rounded 400000
[    1.659960] sunxi-mci 1c0f000.mmc: clk is now 400000
[    1.664993] Initializing XFRM netlink socket
[    1.670082] NET: Registered protocol family 10
[    1.675465] mip6: Mobile IPv6
[    1.678365] NET: Registered protocol family 17
[    1.683070] Key type dns_resolver registered
[    1.687560] ThumbEE CPU extension supported.
[    1.691812] Registering SWP/SWPB emulation handler
[    1.697423] registered taskstats version 1
[    1.702404] ahci-5v: 5000 mV 
[    1.705748] usb1-vbus: 5000 mV 
[    1.709356] usb2-vbus: 5000 mV 
[    1.712763] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.719024] sr_init: No PMIC hook to init smartreflex
[    1.724215] sr_init: platform driver register failed for SR
[    1.738701] mmc0: starting CMD52 arg 00000c00 flags 00000195
[    1.744300] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg c00 ie 0x0000bbc6 len 0
[    1.752497] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    1.757479] sunxi-mci 1c0f000.mmc: irq: rq df0ade48 mi 00000104 idi 00000000
[    1.764568] #sunxi_mmc_irq# Don't wait for dma on error!!
[    1.770086] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    1.777922] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
[    1.785201] mmc0: starting CMD52 arg 80000c08 flags 00000195
[    1.790883] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg 80000c08 ie 0x0000bbc6 len 0
[    1.799465] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    1.804435] sunxi-mci 1c0f000.mmc: irq: rq df0ade48 mi 00000104 idi 00000000
[    1.811533] #sunxi_mmc_irq# Don't wait for dma on error!!
[    1.817015] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    1.824885] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
[    1.832109] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    1.839814] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.844933] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    1.907534] mmc0: starting CMD0 arg 00000000 flags 000000c0
[    1.913058] sunxi-mci 1c0f000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
[    1.920526] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    1.925322] sunxi-mci 1c0f000.mmc: irq: rq df0ade70 mi 00000004 idi 00000000
[    1.932421] #sunxi_mmc_irq# DMA done
[    1.936075] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    1.943953] mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
[    1.951836] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    1.959424] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    1.964520] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.027143] mmc0: starting CMD8 arg 000001aa flags 000002f5
[    2.032665] sunxi-mci 1c0f000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
[    2.040252] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.045048] sunxi-mci 1c0f000.mmc: irq: rq df0ade70 mi 00000004 idi 00000000
[    2.052147] #sunxi_mmc_irq# DMA done
[    2.055801] sunxi-mci 1c0f000.mmc: req done, resp 000001aa 00000000 00000000 00000000
[    2.063679] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
[    2.070559] mmc0: starting CMD5 arg 00000000 flags 000002e1
[    2.076174] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.084111] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    2.089082] sunxi-mci 1c0f000.mmc: irq: rq df0ade28 mi 00000104 idi 00000000
[    2.096181] #sunxi_mmc_irq# Don't wait for dma on error!!
[    2.101664] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.109556] mmc0: req failed (CMD5): -110, retrying...
[    2.114760] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.122668] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    2.127637] sunxi-mci 1c0f000.mmc: irq: rq df0ade28 mi 00000104 idi 00000000
[    2.134736] #sunxi_mmc_irq# Don't wait for dma on error!!
[    2.140219] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.148107] mmc0: req failed (CMD5): -110, retrying...
[    2.153327] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.161218] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    2.166187] sunxi-mci 1c0f000.mmc: irq: rq df0ade28 mi 00000104 idi 00000000
[    2.173286] #sunxi_mmc_irq# Don't wait for dma on error!!
[    2.178775] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.186656] mmc0: req failed (CMD5): -110, retrying...
[    2.191876] sunxi-mci 1c0f000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[    2.199767] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    2.204735] sunxi-mci 1c0f000.mmc: irq: rq df0ade28 mi 00000104 idi 00000000
[    2.211834] #sunxi_mmc_irq# Don't wait for dma on error!!
[    2.217317] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    2.225187] mmc0: req done (CMD5): -110: 00000000 00000000 00000000 00000000
[    2.232317] mmc0: starting CMD55 arg 00000000 flags 000000f5
[    2.238018] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[    2.245543] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.250339] sunxi-mci 1c0f000.mmc: irq: rq df0addc0 mi 00000004 idi 00000000
[    2.257438] #sunxi_mmc_irq# DMA done
[    2.261091] sunxi-mci 1c0f000.mmc: req done, resp 00400120 00000000 00000000 00000000
[    2.268971] mmc0: req done (CMD55): 0: 00400120 00000000 00000000 00000000
[    2.275936] mmc0: starting CMD41 arg 00000000 flags 000000e1
[    2.281647] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 0 ie 0x0000bbc6 len 0
[    2.289151] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.293948] sunxi-mci 1c0f000.mmc: irq: rq df0ade40 mi 00000004 idi 00000000
[    2.301046] #sunxi_mmc_irq# DMA done
[    2.304707] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
[    2.312578] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
[    2.319550] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
[    2.327225] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.332362] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.394970] mmc0: starting CMD0 arg 00000000 flags 000000c0
[    2.400497] sunxi-mci 1c0f000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
[    2.407944] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.412739] sunxi-mci 1c0f000.mmc: irq: rq df0addf8 mi 00000004 idi 00000000
[    2.419838] #sunxi_mmc_irq# DMA done
[    2.423492] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
[    2.431382] mmc0: req done (CMD0): 0: 00ff8000 00000000 00000000 00000000
[    2.439251] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    2.446818] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    2.451963] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    2.514534] mmc0: starting CMD8 arg 000001aa flags 000002f5
[    2.520056] sunxi-mci 1c0f000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
[    2.527618] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.532413] sunxi-mci 1c0f000.mmc: irq: rq df0addf8 mi 00000004 idi 00000000
[    2.539512] #sunxi_mmc_irq# DMA done
[    2.543166] sunxi-mci 1c0f000.mmc: req done, resp 000001aa 00000000 00000000 00000000
[    2.551044] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
[    2.557925] mmc0: starting CMD55 arg 00000000 flags 000000f5
[    2.563635] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[    2.571138] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.575933] sunxi-mci 1c0f000.mmc: irq: rq df0add60 mi 00000004 idi 00000000
[    2.583032] #sunxi_mmc_irq# DMA done
[    2.586686] sunxi-mci 1c0f000.mmc: req done, resp 00000120 00000000 00000000 00000000
[    2.594565] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[    2.601531] mmc0: starting CMD41 arg 41200000 flags 000000e1
[    2.607222] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 41200000 ie 0x0000bbc6 len 0
[    2.615354] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.620162] sunxi-mci 1c0f000.mmc: irq: rq df0adde0 mi 00000004 idi 00000000
[    2.627249] #sunxi_mmc_irq# DMA done
[    2.630913] sunxi-mci 1c0f000.mmc: req done, resp 00ff8000 00000000 00000000 00000000
[    2.638782] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
[    2.658587] mmc0: starting CMD55 arg 00000000 flags 000000f5
[    2.664166] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[    2.671687] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.676483] sunxi-mci 1c0f000.mmc: irq: rq df0add60 mi 00000004 idi 00000000
[    2.683581] #sunxi_mmc_irq# DMA done
[    2.687235] sunxi-mci 1c0f000.mmc: req done, resp 00000120 00000000 00000000 00000000
[    2.695114] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[    2.702085] mmc0: starting CMD41 arg 41200000 flags 000000e1
[    2.707773] sunxi-mci 1c0f000.mmc: cmd 41(80000069) arg 41200000 ie 0x0000bbc6 len 0
[    2.715912] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.720708] sunxi-mci 1c0f000.mmc: irq: rq df0adde0 mi 00000004 idi 00000000
[    2.727807] #sunxi_mmc_irq# DMA done
[    2.731460] sunxi-mci 1c0f000.mmc: req done, resp c0ff8000 00000000 00000000 00000000
[    2.739358] mmc0: req done (CMD41): 0: c0ff8000 00000000 00000000 00000000
[    2.746329] mmc0: starting CMD2 arg 00000000 flags 00000067
[    2.751940] sunxi-mci 1c0f000.mmc: cmd 2(800001c2) arg 0 ie 0x0000bbc6 len 0
[    2.759568] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.764364] sunxi-mci 1c0f000.mmc: irq: rq df0ade18 mi 00000004 idi 00000000
[    2.771463] #sunxi_mmc_irq# DMA done
[    2.775120] sunxi-mci 1c0f000.mmc: req done, resp 02544d53 41303847 111dec2a ce00d59b
[    2.782996] mmc0: req done (CMD2): 0: 02544d53 41303847 111dec2a ce00d59b
[    2.789884] mmc0: starting CMD3 arg 00000000 flags 00000075
[    2.795492] sunxi-mci 1c0f000.mmc: cmd 3(80000143) arg 0 ie 0x0000bbc6 len 0
[    2.802917] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.807713] sunxi-mci 1c0f000.mmc: irq: rq df0ade18 mi 00000004 idi 00000000
[    2.814812] #sunxi_mmc_irq# DMA done
[    2.818466] sunxi-mci 1c0f000.mmc: req done, resp 12340500 00000000 00000000 00000000
[    2.826344] mmc0: req done (CMD3): 0: 12340500 00000000 00000000 00000000
[    2.833225] mmc0: starting CMD9 arg 12340000 flags 00000007
[    2.838860] sunxi-mci 1c0f000.mmc: cmd 9(800001c9) arg 12340000 ie 0x0000bbc6 len 0
[    2.847075] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.851872] sunxi-mci 1c0f000.mmc: irq: rq df0ade00 mi 00000004 idi 00000000
[    2.858969] #sunxi_mmc_irq# DMA done
[    2.862624] sunxi-mci 1c0f000.mmc: req done, resp 400e0032 5b590000 3a477f80 0a40000b
[    2.870503] mmc0: req done (CMD9): 0: 400e0032 5b590000 3a477f80 0a40000b
[    2.877390] mmc0: starting CMD7 arg 12340000 flags 00000015
[    2.883015] sunxi-mci 1c0f000.mmc: cmd 7(80000147) arg 12340000 ie 0x0000bbc6 len 0
[    2.891029] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.895825] sunxi-mci 1c0f000.mmc: irq: rq df0ade18 mi 00000004 idi 00000000
[    2.902923] #sunxi_mmc_irq# DMA done
[    2.906576] sunxi-mci 1c0f000.mmc: req done, resp 00000700 00000000 00000000 00000000
[    2.914456] mmc0: req done (CMD7): 0: 00000700 00000000 00000000 00000000
[    2.921337] mmc0: starting CMD55 arg 12340000 flags 00000095
[    2.927028] sunxi-mci 1c0f000.mmc: cmd 55(80000177) arg 12340000 ie 0x0000bbc6 len 0
[    2.935157] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=4
[    2.939953] sunxi-mci 1c0f000.mmc: irq: rq df0add30 mi 00000004 idi 00000000
[    2.947052] #sunxi_mmc_irq# DMA done
[    2.950706] sunxi-mci 1c0f000.mmc: req done, resp 00000920 00000000 00000000 00000000
[    2.958585] mmc0: req done (CMD55): 0: 00000920 00000000 00000000 00000000
[    2.965553] mmc0: starting CMD51 arg 00000000 flags 000000b5
[    2.971257] mmc0:     blksz 8 blocks 1 flags 00000200 tsac 100 ms nsac 0
[    2.978005] #sunxi_mmc_request# data is not null!
[    2.982786] #sunxi_mmc_init_idma_des:#  dma_address=5d8aa600
[    2.988507] sunxi-mci 1c0f000.mmc: cmd 51(80002373) arg 0 ie 0x0000bbca len 8
[    2.996583] #sunxi_mmc_irq#  REG_IDST=a000,REG_MISTA=808
[    3.001821] sunxi-mci 1c0f000.mmc: irq: rq df0addc4 mi 00000808 idi 0000a000
[    3.008910] #sunxi_mmc_irq# Don't wait for dma on error!!
[    3.014395] sunxi-mci 1c0f000.mmc: smc 0 err, cmd 51, RD FE !!
[    3.020277] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    3.028155] sunxi-mci 1c0f000.mmc: data error, sending stop command
[    3.035267] sunxi-mci 1c0f000.mmc: send stop command failed
[    3.040762] mmc0: req done (CMD51): -110: 00000000 00000000 00000000 00000000
[    3.047954] mmc0:     0 bytes transferred: -110
[    3.052568] mmc0: error -110 whilst initialising SD card
[    3.057927] mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    3.065660] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    3.070763] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    3.132345] mmc0: starting CMD1 arg 00000000 flags 000000e1
[    3.137850] sunxi-mci 1c0f000.mmc: cmd 1(80000041) arg 0 ie 0x0000bbc6 len 0
[    3.145768] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=104
[    3.150749] sunxi-mci 1c0f000.mmc: irq: rq df0ade50 mi 00000104 idi 00000000
[    3.157836] #sunxi_mmc_irq# Don't wait for dma on error!!
[    3.163325] sunxi-mci 1c0f000.mmc: smc 0 err, cmd 1, RTO !!
[    3.168947] sunxi-mci 1c0f000.mmc: req done, resp 00000000 00000000 00000000 00000000
[    3.176822] mmc0: req done (CMD1): -110: 00000000 00000000 00000000 00000000
[    3.183952] mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
[    3.191141] sunxi-mci 1c0f000.mmc: power off!
[    4.188617] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
[    4.195160] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 timing 0
[    4.202461] #sunxi_mmc_irq#  REG_IDST=0,REG_MISTA=0
[    4.207370] sunxi-mci 1c0f000.mmc: irq: rq   (null) mi 00000000 idi 00000000
[    4.214500] sunxi-mci 1c0f000.mmc: power on!
[    4.238591] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[    4.246168] sunxi-mci 1c0f000.mmc: ios->clock: 400000
[    4.251296] sunxi-mci 1c0f000.mmc: clk already 400000, rounded 400000
[    4.328556] mmc0: starting CMD52 arg 00000c00 flags 00000195
[    4.334137] sunxi-mci 1c0f000.mmc: cmd 52(80000174) arg c00 ie 0x0000bbc6 len 0
[   13.848599] clk: Not disabling unused clocks
[   13.856737] Freeing unused kernel memory: 2856K (c0930000 - c0bfa000)
/bin/ash: can't access tty; job control turned off
/ # 



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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-03 10:56   ` Stefano Stabellini
  2014-04-03 11:45     ` Ian Campbell
  2014-04-04  7:16     ` 杜琪
@ 2014-04-04  7:37     ` duqi
  2014-04-04 11:19       ` Stefano Stabellini
  2 siblings, 1 reply; 19+ messages in thread
From: duqi @ 2014-04-04  7:37 UTC (permalink / raw)
  To: Stefano Stabellini
  Cc: Ian Campbell, 宫晓利, hdegoede,
	Stefano Stabellini, bjzhang@suse.com, xen-devel@lists.xen.org

在 2014-04-03 18:56:30,"Stefano Stabellini" <stefano.stabellini@eu.citrix.com> 写道:

>Can you point me to the right MMC driver in Linux that you are using?

Hi, I use the tree from: https://github.com/jwrdegoede/linux-sunxi.git and sunxi-test branch

The MMC driver is in driver/mmc/host/sunxi_mci.c

Thank you very much.


duqi .
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-04  7:28       ` 杜琪
@ 2014-04-04  8:20         ` Julien Grall
  0 siblings, 0 replies; 19+ messages in thread
From: Julien Grall @ 2014-04-04  8:20 UTC (permalink / raw)
  To: 杜琪
  Cc: hdegoede@redhat.com, 宫晓利, bjzhang@suse.com,
	Ian Campbell, xen-devel@lists.xen.org

On 04/04/2014 08:28 AM, 杜琪 wrote:
>  \ \/ /___ _ __   | || | | || |     _   _ _ __  ___| |_ __ _| |__ | | ___ 
>   \  // _ \ '_ \  | || |_| || |_ __| | | | '_ \/ __| __/ _` | '_ \| |/ _ \
>   /  \  __/ | | | |__   _|__   _|__| |_| | | | \__ \ || (_| | |_) | |  __/
>  /_/\_\___|_| |_|    |_|(_) |_|     \__,_|_| |_|___/\__\__,_|_.__/|_|\___|
>                                                                           
> (XEN) Xen version 4.4-unstable (root@) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.7.2-1ubuntu1) 4.7.2) debug=y Fri Apr  4 12:40:24
> (XEN) Latest ChangeSet: Mon Oct 14 23:19:37 2013 +0100 git:720f45a

[..]

> (XEN) *** LOADING DOMAIN 0 ***
> (XEN) Populate P2M 0x40000000->0x60000000

Can you explain me why you are using an old development branch of Xen
4.4 rather than the release version?

Your build doesn't support correctly sunxi, please update at least to
Xen 4.4.

Next time you send an email on Xen devel, can you directly precise the
version of Xen you are using? It will avoid 5 mail round-trip for nothing.

Regards,

-- 
Julien Grall

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

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

* Re: cubieboard2's sd/mmc driver on xen about DMA read data error
  2014-04-04  7:37     ` duqi
@ 2014-04-04 11:19       ` Stefano Stabellini
  0 siblings, 0 replies; 19+ messages in thread
From: Stefano Stabellini @ 2014-04-04 11:19 UTC (permalink / raw)
  To: duqi
  Cc: Ian Campbell, Stefano Stabellini, 宫晓利,
	hdegoede, Stefano Stabellini, bjzhang@suse.com,
	xen-devel@lists.xen.org

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

On Fri, 4 Apr 2014, duqi wrote:
> 在 2014-04-03 18:56:30,"Stefano Stabellini" <stefano.stabellini@eu.citrix.com> 写道:
> 
> >Can you point me to the right MMC driver in Linux that you are using?
> 
> Hi, I use the tree from: https://github.com/jwrdegoede/linux-sunxi.git and sunxi-test branch
> 
> The MMC driver is in driver/mmc/host/sunxi_mci.c

I cannot spot anything obviously wrong there either.

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

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

end of thread, other threads:[~2014-04-04 11:19 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 16:10 cubieboard2's sd/mmc driver on xen about DMA read data error 杜琪
2014-04-02  7:20 ` Ian Campbell
2014-04-02  9:44   ` Julien Grall
     [not found]     ` <3bdbc8fa.25a26.14522d200a4.Coremail.duqi_2009@163.com>
2014-04-02 14:26       ` Julien Grall
2014-04-02 14:59     ` 杜琪
2014-04-03 10:17     ` Stefano Stabellini
2014-04-03 10:56   ` Stefano Stabellini
2014-04-03 11:45     ` Ian Campbell
2014-04-03 17:18       ` Stefano Stabellini
2014-04-04  7:16     ` 杜琪
2014-04-04  7:37     ` duqi
2014-04-04 11:19       ` Stefano Stabellini
2014-04-02  9:52 ` Ian Campbell
2014-04-03  3:08   ` 杜琪
2014-04-03  3:09   ` 杜琪
2014-04-03  9:34     ` Ian Campbell
2014-04-04  7:28       ` 杜琪
2014-04-04  8:20         ` Julien Grall
2014-04-04  7:36       ` duqi

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).