[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#714959: linux-image-3.2.0-4-kirkwood mdraid array fails to assemble b/c drives are not yet ready (sata_mv)



Package: src:linux
Version: 3.2.46-1
Severity: normal
Tags: upstream patch

Dear Maintainer,

On my QNAP TS-412, after a clean install of Wheezy, the kernel fails to bring up all sata ports (using Marvell 88SX7042 via sata_mv driver) before md/raid tries to assemble the array.
The same disks/array work in a different model (TS-410) and the drives/array from said TS-410 also fail in my TS-412.
At the same time, using the original QNAP firmware, everything works as expected.
The only discernable differences between the devices that I could find (they share the exact same SoC and SATA Model ID and revision), apart from the core clock speed, is that the TS-412 shows some sort of spin-up delay / staggering behaviour while the TS-410 does not.
Now, having had a look at the most recent GPL code package from QNAP that I could find here:
http://sourceforge.net/projects/qosgpl/
I found that they have a version 3.4.6 kernel tree.
The file drivers/ata/sata_mv.c contains some changes regarding the delay while initializing the hardware.
Using this as a blueprint, I patched the linux-image-3.2.0-4 source file accordingly.
The resulting kernel works for me: The delay ensures that all drives are up and the raid array comes up.

I discussed this with others on debian-arm@lists.debian.org and while we agree that this kind of patch is a mere band-aid, we wanted to point out that there may be some issue concerning timing/delays with this kernel module.

Maybe there is a more elegant / targeted approach to solving this?

-- Package-specific info:
** Kernel log: boot messages should be attached

** Model information
Processor	: Feroceon 88FR131 rev 1 (v5l)
Hardware	: QNAP TS-41x
Revision	: 0000

** PCI devices:
00:00.0 Host bridge [0600]: Marvell Technology Group Ltd. 88F6281 [Kirkwood] ARM SoC [11ab:6281] (rev 03)
	Subsystem: Marvell Technology Group Ltd. Device [11ab:11ab]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 9
	Region 0: Memory at <ignored> (64-bit, prefetchable)
	Capabilities: <access denied>

00:01.0 SCSI storage controller [0100]: Marvell Technology Group Ltd. 88SX7042 PCI-e 4-port SATA-II [11ab:7042] (rev 02)
	Subsystem: Marvell Technology Group Ltd. Device [11ab:11ab]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 9
	Region 0: Memory at e0000000 (64-bit, non-prefetchable) [size=1M]
	Region 2: I/O ports at 1000 [size=256]
	Capabilities: <access denied>
	Kernel driver in use: sata_mv


** USB devices:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB


-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 3.2.46
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-3.2.0-4-kirkwood depends on:
ii  debconf [debconf-2.0]                   1.5.49
ii  initramfs-tools [linux-initramfs-tool]  0.109.1
ii  kmod                                    9-3
ii  linux-base                              3.5

Versions of packages linux-image-3.2.0-4-kirkwood recommends:
pn  firmware-linux-free  <none>
pn  uboot-mkimage        <none>

Versions of packages linux-image-3.2.0-4-kirkwood suggests:
pn  debian-kernel-handbook  <none>
pn  fdutils                 <none>
pn  linux-doc-3.2           <none>

Versions of packages linux-image-3.2.0-4-kirkwood is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
pn  firmware-intelwimax     <none>
pn  firmware-ipw2x00        <none>
pn  firmware-ivtv           <none>
pn  firmware-iwlwifi        <none>
pn  firmware-libertas       <none>
pn  firmware-linux          <none>
pn  firmware-linux-nonfree  <none>
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
pn  firmware-ralink         <none>
pn  firmware-realtek        <none>
pn  xen-hypervisor          <none>

-- debconf information:
  linux-image-3.2.0-4-kirkwood/postinst/missing-firmware-3.2.0-4-kirkwood:
  linux-image-3.2.0-4-kirkwood/prerm/removing-running-kernel-3.2.0-4-kirkwood: true
  linux-image-3.2.0-4-kirkwood/postinst/ignoring-ramdisk:
  linux-image-3.2.0-4-kirkwood/postinst/depmod-error-initrd-3.2.0-4-kirkwood: false
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.0-4-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.46-1
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: QNAP TS-41x
[    0.000000] Ignoring unrecognised tag 0x41000403
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c0441aa4, node_mem_map c04a8000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65024 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/ram initrd=0xa00000,0x900000 ramdisk=34816
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 245876k/245876k available, 16268k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xfe800000   ( 736 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03e54f8   (3958 kB)
[    0.000000]       .init : 0xc03e6000 - 0xc040a000   ( 144 kB)
[    0.000000]       .data : 0xc040a000 - 0xc0444800   ( 234 kB)
[    0.000000]        .bss : 0xc0444824 - 0xc04a7e6c   ( 398 kB)
[    0.000000] NR_IRQS:114
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty0] enabled
[    7.755104] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[    7.844742] pid_max: default: 32768 minimum: 301
[    7.844878] Security Framework initialized
[    7.844975] Mount-cache hash table entries: 512
[    7.845318] Initializing cgroup subsys cpuacct
[    7.845361] Initializing cgroup subsys memory
[    7.845399] Initializing cgroup subsys devices
[    7.845421] Initializing cgroup subsys freezer
[    7.845440] Initializing cgroup subsys net_cls
[    7.845457] Initializing cgroup subsys blkio
[    7.845487] Initializing cgroup subsys perf_event
[    7.845595] CPU: Testing write buffer coherency: ok
[    7.846840] devtmpfs: initialized
[    7.848607] print_constraints: dummy: 
[    7.848877] NET: Registered protocol family 16
[    7.849650] Kirkwood: MV88F6281-A1, TCLK=200000000.
[    7.849687] Feroceon L2: Enabling L2
[    7.849732] Feroceon L2: Cache support initialised.
[    7.850320] initial MPP regs: 11112222 43303311 33330004 33003333 00000033 00000000 00000000
[    7.850347]   final MPP regs: 11112222 43303311 33330004 33003333 00000033 00000000 00000000
[    7.891193] Kirkwood PCIe port 0: 
[    7.891205] link up
[    7.891241] PCI: bus0 uses PCIe port 0
[    7.891398] pci 0000:00:00.0: [11ab:6281] type 0 class 0x000580
[    7.891421] pci 0000:00:00.0: reg 10: [mem 0xf1000000-0xf10fffff 64bit pref]
[    7.891435] pci 0000:00:00.0: reg 18: [mem 0x00000000-0x0fffffff]
[    7.891468] pci 0000:00:00.0: supports D1 D2
[    7.891509] pci 0000:00:01.0: [11ab:7042] type 0 class 0x000100
[    7.891537] pci 0000:00:01.0: reg 10: [mem 0x14000000-0x140fffff 64bit]
[    7.891554] pci 0000:00:01.0: reg 18: [io  0x0000-0x00ff]
[    7.891656] PCI: bus0: Fast back to back transfers disabled
[    7.891925] pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
[    7.891964] pci 0000:00:01.0: BAR 2: assigned [io  0x1000-0x10ff]
[    7.893620] bio: create slab <bio-0> at 0
[    7.894026] vgaarb: loaded
[    7.894598] Switching to clocksource orion_clocksource
[    7.908844] NET: Registered protocol family 2
[    7.909086] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    7.909710] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    7.909909] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    7.910015] TCP: Hash tables configured (established 8192 bind 8192)
[    7.910034] TCP reno registered
[    7.910050] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    7.910082] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    7.910305] NET: Registered protocol family 1
[    7.910366] PCI: CLS 32 bytes, default 32
[    7.910521] Unpacking initramfs...
[    8.328757] Freeing initrd memory: 9216K
[    8.328808] NetWinder Floating Point Emulator V0.97 (double precision)
[    8.329417] audit: initializing netlink socket (disabled)
[    8.329482] type=2000 audit(0.560:1): initialized
[    8.330694] VFS: Disk quotas dquot_6.5.2
[    8.330796] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.330916] JFFS2 version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9\xffffffa9 2001-2006 Red Hat, Inc.
[    8.331271] msgmni has been set to 498
[    8.332768] alg: No test for stdrng (krng)
[    8.332897] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    8.332929] io scheduler noop registered
[    8.332945] io scheduler deadline registered
[    8.333007] io scheduler cfq registered (default)
[    8.333119] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    8.333165] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    8.364675] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    8.404674] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    8.444674] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    8.484670] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    8.485034] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.505588] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    8.525878] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
[    8.527390] m25p80 spi0.0: m25p128 (16384 Kbytes)
[    8.527423] Creating 6 MTD partitions on "spi_flash":
[    8.527446] 0x000000000000-0x000000080000 : "U-Boot"
[    8.528346] 0x000000200000-0x000000400000 : "Kernel"
[    8.529193] 0x000000400000-0x000000d00000 : "RootFS1"
[    8.530053] 0x000000d00000-0x000001000000 : "RootFS2"
[    8.530927] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[    8.531820] 0x0000000c0000-0x000000200000 : "NAS Config"
[    8.532956] mousedev: PS/2 mouse device common for all mice
[    9.534663] rtc-mv rtc-mv: internal RTC not ticking
[    9.534788] i2c /dev entries driver
[    9.538672] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as rtc0
[    9.538800] cpuidle: using governor ladder
[    9.538888] cpuidle: using governor menu
[    9.539680] TCP cubic registered
[    9.539704] NET: Registered protocol family 17
[    9.539735] Registering the dns_resolver key type
[    9.539783] Gating clock of unused units
[    9.539791] before: 0x00cfc1dd
[    9.539797]  after: 0x00cfc1cd
[    9.540227] registered taskstats version 1
[    9.541322] rtc-s35390a 0-0030: setting system clock to 2013-07-04 06:14:42 UTC (1372918482)
[    9.541404] Initializing network drop monitor service
[    9.541942] Freeing init memory: 144K
[    9.605208] udevd[51]: starting version 175
[    9.764781] SCSI subsystem initialized
[    9.858461] libata version 3.00 loaded.
[    9.860182] sata_mv 0000:00:01.0: version 1.28
[    9.860276] PCI: enabling device 0000:00:01.0 (0140 -> 0143)
[    9.860465] sata_mv 0000:00:01.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
[    9.880706] scsi0 : sata_mv
[    9.889205] scsi1 : sata_mv
[    9.893444] scsi2 : sata_mv
[    9.896842] scsi3 : sata_mv
[    9.897103] ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000 irq 9
[    9.897137] ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000 irq 9
[    9.897165] ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000 irq 9
[    9.897191] ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000 irq 9
[    9.897902] sata_mv sata_mv.0: version 1.28
[    9.898028] sata_mv sata_mv.0: slots 32 ports 2
[    9.902528] scsi4 : sata_mv
[    9.906355] scsi5 : sata_mv
[    9.906626] ata5: SATA max UDMA/133 irq 21
[    9.906649] ata6: SATA max UDMA/133 irq 21
[   10.264668] ata5: SATA link down (SStatus 0 SControl F300)
[   10.404684] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   10.444708] ata1.00: ATA-8: Hitachi HDS721010DLE630, MS2OA600, max UDMA/133
[   10.444737] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   10.504708] ata1.00: configured for UDMA/133
[   10.505075] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDS72101 MS2O PQ: 0 ANSI: 5
[   11.014683] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   11.054709] ata2.00: ATA-8: Hitachi HDS721010DLE630, MS2OA600, max UDMA/133
[   11.054738] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   11.114709] ata2.00: configured for UDMA/133
[   11.115044] scsi 1:0:0:0: Direct-Access     ATA      Hitachi HDS72101 MS2O PQ: 0 ANSI: 5
[   11.624681] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   11.664706] ata3.00: ATA-8: Hitachi HDS721010DLE630, MS2OA600, max UDMA/133
[   11.664735] ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   11.724706] ata3.00: configured for UDMA/133
[   11.725031] scsi 2:0:0:0: Direct-Access     ATA      Hitachi HDS72101 MS2O PQ: 0 ANSI: 5
[   12.074678] ata4: SATA link down (SStatus 0 SControl 300)
[   12.424655] ata6: SATA link down (SStatus 0 SControl F300)
[   12.479344] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   12.479384] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   12.479631] sd 0:0:0:0: [sda] Write Protect is off
[   12.479656] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   12.479760] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.484871] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   12.484911] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[   12.485157] sd 1:0:0:0: [sdb] Write Protect is off
[   12.485182] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[   12.485286] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.487781] sd 2:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   12.487818] sd 2:0:0:0: [sdc] 4096-byte physical blocks
[   12.488058] sd 2:0:0:0: [sdc] Write Protect is off
[   12.488083] sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   12.488187] sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.495958]  sdb: sdb1
[   12.497427] sd 1:0:0:0: [sdb] Attached SCSI disk
[   12.498854]  sdc: sdc1
[   12.500229] sd 2:0:0:0: [sdc] Attached SCSI disk
[   12.519757]  sda: sda1
[   12.522913] sd 0:0:0:0: [sda] Attached SCSI disk
[   12.942809] md: md0 stopped.
[   12.956998] md: bind<sdb1>
[   12.957437] md: bind<sdc1>
[   12.957825] md: bind<sda1>
[   13.154752] raid6: int32x1     79 MB/s
[   13.324822] raid6: int32x2    123 MB/s
[   13.495098] raid6: int32x4    125 MB/s
[   13.664815] raid6: int32x8    156 MB/s
[   13.664835] raid6: using algorithm int32x8 (156 MB/s)
[   13.666762] async_tx: api initialized (async)
[   13.668333] xor: measuring software checksum speed
[   13.714636]    arm4regs  :  1090.800 MB/sec
[   13.764640]    8regs     :   654.800 MB/sec
[   13.814637]    32regs    :   906.400 MB/sec
[   13.814657] xor: using function: arm4regs (1090.800 MB/sec)
[   13.814714] ata4: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xe frozen
[   13.814742] ata4: edma_err_cause=00000010 pp_flags=00000000, dev connect
[   13.814766] ata4: SError: { PHYRdyChg DevExch }
[   13.814802] ata4: hard resetting link
[   13.824504] md: raid6 personality registered for level 6
[   13.824537] md: raid5 personality registered for level 5
[   13.824554] md: raid4 personality registered for level 4
[   13.825520] bio: create slab <bio-1> at 1
[   13.825580] md/raid:md0: device sda1 operational as raid disk 0
[   13.825603] md/raid:md0: device sdc1 operational as raid disk 2
[   13.825623] md/raid:md0: device sdb1 operational as raid disk 1
[   13.826720] md/raid:md0: allocated 4218kB
[   13.826842] md/raid:md0: raid level 5 active with 3 out of 4 devices, algorithm 2
[   13.826870] RAID conf printout:
[   13.826878]  --- level:5 rd:4 wd:3
[   13.826886]  disk 0, o:1, dev:sda1
[   13.826894]  disk 1, o:1, dev:sdb1
[   13.826901]  disk 2, o:1, dev:sdc1
[   13.827171] created bitmap (8 pages) for device md0
[   13.828314] md0: bitmap initialized from disk: read 1/1 pages, set 0 of 14903 bits
[   13.904719] md0: detected capacity change from 0 to 3000205049856
[   13.918046]  md0: unknown partition table
[   14.122752] device-mapper: uevent: version 1.0.3
[   14.124444] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[   14.857161] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
[   16.870316] udevd[319]: starting version 175
[   17.243389] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   17.252350] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   17.252484] mv643xx_eth smi: probed
[   17.280691] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address 00:08:9b:c2:ab:8f
[   17.355676] mv643xx_eth_port mv643xx_eth_port.1: eth1: port 0 with MAC address 00:08:9b:c2:ab:90
[   17.556563] usbcore: registered new interface driver usbfs
[   17.556685] usbcore: registered new interface driver hub
[   17.563163] usbcore: registered new device driver usb
[   17.688058] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   17.750057] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   17.750154] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   17.774826] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   17.794695] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   17.794801] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   17.794826] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   17.794850] usb usb1: Product: Marvell Orion EHCI
[   17.794867] usb usb1: Manufacturer: Linux 3.2.0-4-kirkwood ehci_hcd
[   17.794886] usb usb1: SerialNumber: orion-ehci.0
[   17.795417] hub 1-0:1.0: USB hub found
[   17.795454] hub 1-0:1.0: 1 port detected
[   18.114739] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   18.266227] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[   18.266265] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   18.266287] usb 1-1: Product: USB2.0 Hub
[   18.267801] hub 1-1:1.0: USB hub found
[   18.268220] hub 1-1:1.0: 4 ports detected
[   18.741075] EXT4-fs (dm-0): re-mounted. Opts: (null)
[   19.284722] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   19.286005] EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro
[   19.324771] ata4.00: ATA-8: Hitachi HDS721010DLE630, MS2OA600, max UDMA/133
[   19.324813] ata4.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   19.384775] ata4.00: configured for UDMA/133
[   19.384823] ata4: EH complete
[   19.385162] scsi 3:0:0:0: Direct-Access     ATA      Hitachi HDS72101 MS2O PQ: 0 ANSI: 5
[   19.387217] sd 3:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   19.387256] sd 3:0:0:0: [sdd] 4096-byte physical blocks
[   19.387503] sd 3:0:0:0: [sdd] Write Protect is off
[   19.387529] sd 3:0:0:0: [sdd] Mode Sense: 00 3a 00 00
[   19.387633] sd 3:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.414288]  sdd: sdd1
[   19.415802] sd 3:0:0:0: [sdd] Attached SCSI disk
[   19.489933] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   19.490148] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   19.492154] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   19.492757] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   19.889314] loop: module loaded
[   23.309204] Adding 974844k swap on /dev/mapper/qnap-swap.  Priority:-1 extents:1 across:974844k 
[   25.609352] NET: Registered protocol family 10
[   25.882167] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   26.481054] RPC: Registered named UNIX socket transport module.
[   26.481095] RPC: Registered udp transport module.
[   26.481112] RPC: Registered tcp transport module.
[   26.481128] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   26.641611] FS-Cache: Loaded
[   26.913860] FS-Cache: Netfs 'nfs' registered for caching
[   26.946236] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   29.535147] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   29.535317] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   40.354674] eth0: no IPv6 routers present
[  249.876014] md: bind<sdd1>
[  249.995967] RAID conf printout:
[  249.995980]  --- level:5 rd:4 wd:3
[  249.995989]  disk 0, o:1, dev:sda1
[  249.995996]  disk 1, o:1, dev:sdb1
[  249.996004]  disk 2, o:1, dev:sdc1
[  249.996012]  disk 3, o:1, dev:sdd1
[  250.000617] md: recovery of RAID array md0
[  250.000640] md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
[  250.000658] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for recovery.
[  250.000682] md: using 128k window, over a total of 976629248k.
[  309.988791] md: md0: recovery done.
[  310.044829] RAID conf printout:
[  310.044840]  --- level:5 rd:4 wd:4
[  310.044848]  disk 0, o:1, dev:sda1
[  310.044856]  disk 1, o:1, dev:sdb1
[  310.044863]  disk 2, o:1, dev:sdc1
[  310.044871]  disk 3, o:1, dev:sdd1
[  363.165316] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
[  392.525245] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.46 (root@debian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #2 Mon Jul 1 12:51:39 CEST 2013
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: QNAP TS-41x
[    0.000000] Ignoring unrecognised tag 0x41000403
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c043daa4, node_mem_map c04a4000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65024 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/ram initrd=0xa00000,0x900000 ramdisk=34816
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 245892k/245892k available, 16252k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xfe800000   ( 736 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03e14f8   (3942 kB)
[    0.000000]       .init : 0xc03e2000 - 0xc0406000   ( 144 kB)
[    0.000000]       .data : 0xc0406000 - 0xc0440800   ( 234 kB)
[    0.000000]        .bss : 0xc0440824 - 0xc04a3e6c   ( 398 kB)
[    0.000000] NR_IRQS:114
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty0] enabled
[    7.757057] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[    7.846697] pid_max: default: 32768 minimum: 301
[    7.846832] Security Framework initialized
[    7.846929] Mount-cache hash table entries: 512
[    7.847271] Initializing cgroup subsys cpuacct
[    7.847315] Initializing cgroup subsys memory
[    7.847353] Initializing cgroup subsys devices
[    7.847376] Initializing cgroup subsys freezer
[    7.847395] Initializing cgroup subsys net_cls
[    7.847412] Initializing cgroup subsys blkio
[    7.847441] Initializing cgroup subsys perf_event
[    7.847549] CPU: Testing write buffer coherency: ok
[    7.848791] devtmpfs: initialized
[    7.850548] print_constraints: dummy: 
[    7.850815] NET: Registered protocol family 16
[    7.851588] Kirkwood: MV88F6281-A1, TCLK=200000000.
[    7.851623] Feroceon L2: Enabling L2
[    7.851668] Feroceon L2: Cache support initialised.
[    7.852257] initial MPP regs: 11112222 43303311 33330004 33003333 00000033 00000000 00000000
[    7.852284]   final MPP regs: 11112222 43303311 33330004 33003333 00000033 00000000 00000000
[    7.893130] Kirkwood PCIe port 0: 
[    7.893143] link up
[    7.893179] PCI: bus0 uses PCIe port 0
[    7.893336] pci 0000:00:00.0: [11ab:6281] type 0 class 0x000580
[    7.893359] pci 0000:00:00.0: reg 10: [mem 0xf1000000-0xf10fffff 64bit pref]
[    7.893374] pci 0000:00:00.0: reg 18: [mem 0x00000000-0x0fffffff]
[    7.893407] pci 0000:00:00.0: supports D1 D2
[    7.893449] pci 0000:00:01.0: [11ab:7042] type 0 class 0x000100
[    7.893476] pci 0000:00:01.0: reg 10: [mem 0x14000000-0x140fffff 64bit]
[    7.893494] pci 0000:00:01.0: reg 18: [io  0x0000-0x00ff]
[    7.893596] PCI: bus0: Fast back to back transfers disabled
[    7.893866] pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
[    7.893904] pci 0000:00:01.0: BAR 2: assigned [io  0x1000-0x10ff]
[    7.895567] bio: create slab <bio-0> at 0
[    7.895974] vgaarb: loaded
[    7.896543] Switching to clocksource orion_clocksource
[    7.910817] NET: Registered protocol family 2
[    7.911055] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    7.911680] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    7.911880] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    7.911985] TCP: Hash tables configured (established 8192 bind 8192)
[    7.912004] TCP reno registered
[    7.912021] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    7.912053] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    7.912276] NET: Registered protocol family 1
[    7.912335] PCI: CLS 32 bytes, default 32
[    7.912494] Unpacking initramfs...
[    8.331423] Freeing initrd memory: 9216K
[    8.331473] NetWinder Floating Point Emulator V0.97 (double precision)
[    8.332081] audit: initializing netlink socket (disabled)
[    8.332147] type=2000 audit(0.560:1): initialized
[    8.333367] VFS: Disk quotas dquot_6.5.2
[    8.333472] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.333593] JFFS2 version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9\xffffffa9 2001-2006 Red Hat, Inc.
[    8.333949] msgmni has been set to 498
[    8.335435] alg: No test for stdrng (krng)
[    8.335566] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    8.335598] io scheduler noop registered
[    8.335614] io scheduler deadline registered
[    8.335677] io scheduler cfq registered (default)
[    8.335788] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    8.335833] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    8.366622] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    8.406619] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    8.446620] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    8.486617] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    8.486982] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.507539] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    8.527831] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
[    8.529346] m25p80 spi0.0: m25p128 (16384 Kbytes)
[    8.529379] Creating 6 MTD partitions on "spi_flash":
[    8.529402] 0x000000000000-0x000000080000 : "U-Boot"
[    8.530311] 0x000000200000-0x000000400000 : "Kernel"
[    8.531163] 0x000000400000-0x000000d00000 : "RootFS1"
[    8.532020] 0x000000d00000-0x000001000000 : "RootFS2"
[    8.532905] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[    8.533807] 0x0000000c0000-0x000000200000 : "NAS Config"
[    8.534941] mousedev: PS/2 mouse device common for all mice
[    9.536610] rtc-mv rtc-mv: internal RTC not ticking
[    9.536735] i2c /dev entries driver
[    9.540616] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as rtc0
[    9.540744] cpuidle: using governor ladder
[    9.540832] cpuidle: using governor menu
[    9.541620] TCP cubic registered
[    9.541643] NET: Registered protocol family 17
[    9.541674] Registering the dns_resolver key type
[    9.541749] Gating clock of unused units
[    9.541757] before: 0x00cfc1dd
[    9.541764]  after: 0x00cfc1cd
[    9.542185] registered taskstats version 1
[    9.543287] rtc-s35390a 0-0030: setting system clock to 2013-07-04 06:37:41 UTC (1372919861)
[    9.543372] Initializing network drop monitor service
[    9.543911] Freeing init memory: 144K
[    9.607148] udevd[51]: starting version 175
[    9.765800] SCSI subsystem initialized
[    9.859446] libata version 3.00 loaded.
[    9.861157] sata_mv 0000:00:01.0: version 1.28
[    9.861257] PCI: enabling device 0000:00:01.0 (0140 -> 0143)
[    9.861380] Wait 5 seconds to initialize scsi 2.
[   14.851929] Wait 5 seconds to initialize scsi 3.
[   19.842414] sata_mv 0000:00:01.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
[   19.842463] sched: RT throttling activated
[   19.938250] scsi0 : sata_mv
[   19.938996] scsi1 : sata_mv
[   19.939543] scsi2 : sata_mv
[   19.940074] scsi3 : sata_mv
[   19.940318] ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000 irq 9
[   19.940351] ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000 irq 9
[   19.940378] ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000 irq 9
[   19.940405] ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000 irq 9
[   19.940544] sata_mv sata_mv.0: version 1.28
[   19.940670] sata_mv sata_mv.0: slots 32 ports 2
[   19.949479] scsi4 : sata_mv
[   19.951440] scsi5 : sata_mv
[   19.951711] ata5: SATA max UDMA/133 irq 21
[   19.951735] ata6: SATA max UDMA/133 irq 21
[   20.296602] ata5: SATA link down (SStatus 0 SControl F300)
[   20.446629] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   20.486653] ata1.00: ATA-8: Hitachi HDS721010DLE630, MS2OA600, max UDMA/133
[   20.486682] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   20.546653] ata1.00: configured for UDMA/133
[   20.547011] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDS72101 MS2O PQ: 0 ANSI: 5
[   21.056628] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   21.096652] ata2.00: ATA-8: Hitachi HDS721010DLE630, MS2OA600, max UDMA/133
[   21.096681] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   21.156652] ata2.00: configured for UDMA/133
[   21.156985] scsi 1:0:0:0: Direct-Access     ATA      Hitachi HDS72101 MS2O PQ: 0 ANSI: 5
[   21.666624] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   21.706651] ata3.00: ATA-8: Hitachi HDS721010DLE630, MS2OA600, max UDMA/133
[   21.706679] ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   21.766654] ata3.00: configured for UDMA/133
[   21.766963] scsi 2:0:0:0: Direct-Access     ATA      Hitachi HDS72101 MS2O PQ: 0 ANSI: 5
[   22.276626] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   22.316652] ata4.00: ATA-8: Hitachi HDS721010DLE630, MS2OA600, max UDMA/133
[   22.316681] ata4.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   22.376651] ata4.00: configured for UDMA/133
[   22.376965] scsi 3:0:0:0: Direct-Access     ATA      Hitachi HDS72101 MS2O PQ: 0 ANSI: 5
[   22.726606] ata6: SATA link down (SStatus 0 SControl F300)
[   22.803782] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   22.803823] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   22.804071] sd 0:0:0:0: [sda] Write Protect is off
[   22.804097] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   22.804202] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   22.806633] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   22.806670] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[   22.806916] sd 1:0:0:0: [sdb] Write Protect is off
[   22.806941] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[   22.807044] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   22.810094] sd 2:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   22.810132] sd 2:0:0:0: [sdc] 4096-byte physical blocks
[   22.810376] sd 2:0:0:0: [sdc] Write Protect is off
[   22.810401] sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   22.810506] sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   22.812671] sd 3:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   22.812707] sd 3:0:0:0: [sdd] 4096-byte physical blocks
[   22.812950] sd 3:0:0:0: [sdd] Write Protect is off
[   22.812975] sd 3:0:0:0: [sdd] Mode Sense: 00 3a 00 00
[   22.813080] sd 3:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   22.815960]  sdb: sdb1
[   22.816988] sd 1:0:0:0: [sdb] Attached SCSI disk
[   22.825440]  sdc: sdc1
[   22.826495] sd 2:0:0:0: [sdc] Attached SCSI disk
[   22.837756]  sdd: sdd1
[   22.840880] sd 3:0:0:0: [sdd] Attached SCSI disk
[   22.845740]  sda: sda1
[   22.851471] sd 0:0:0:0: [sda] Attached SCSI disk
[   23.273571] md: md0 stopped.
[   23.291083] md: bind<sdb1>
[   23.291504] md: bind<sdc1>
[   23.291898] md: bind<sdd1>
[   23.295943] md: bind<sda1>
[   23.496731] raid6: int32x1     80 MB/s
[   23.666769] raid6: int32x2    123 MB/s
[   23.837061] raid6: int32x4    125 MB/s
[   24.006755] raid6: int32x8    156 MB/s
[   24.006775] raid6: using algorithm int32x8 (156 MB/s)
[   24.008864] async_tx: api initialized (async)
[   24.010444] xor: measuring software checksum speed
[   24.056588]    arm4regs  :  1091.600 MB/sec
[   24.106582]    8regs     :   654.800 MB/sec
[   24.156583]    32regs    :   906.400 MB/sec
[   24.156602] xor: using function: arm4regs (1091.600 MB/sec)
[   24.165874] md: raid6 personality registered for level 6
[   24.165907] md: raid5 personality registered for level 5
[   24.165924] md: raid4 personality registered for level 4
[   24.166922] bio: create slab <bio-1> at 1
[   24.166983] md/raid:md0: device sda1 operational as raid disk 0
[   24.167006] md/raid:md0: device sdd1 operational as raid disk 3
[   24.167027] md/raid:md0: device sdc1 operational as raid disk 2
[   24.167046] md/raid:md0: device sdb1 operational as raid disk 1
[   24.168140] md/raid:md0: allocated 4218kB
[   24.168269] md/raid:md0: raid level 5 active with 4 out of 4 devices, algorithm 2
[   24.168298] RAID conf printout:
[   24.168305]  --- level:5 rd:4 wd:4
[   24.168313]  disk 0, o:1, dev:sda1
[   24.168321]  disk 1, o:1, dev:sdb1
[   24.168328]  disk 2, o:1, dev:sdc1
[   24.168335]  disk 3, o:1, dev:sdd1
[   24.168600] created bitmap (8 pages) for device md0
[   24.169746] md0: bitmap initialized from disk: read 1/1 pages, set 0 of 14903 bits
[   24.226849] md0: detected capacity change from 0 to 3000205049856
[   24.235711]  md0: unknown partition table
[   24.444933] device-mapper: uevent: version 1.0.3
[   24.446661] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[   25.005817] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
[   26.264233] udevd[328]: starting version 175
[   26.595617] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   26.607688] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   26.607822] mv643xx_eth smi: probed
[   26.675522] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address 00:08:9b:c2:ab:8f
[   26.732667] mv643xx_eth_port mv643xx_eth_port.1: eth1: port 0 with MAC address 00:08:9b:c2:ab:90
[   26.980870] usbcore: registered new interface driver usbfs
[   26.980990] usbcore: registered new interface driver hub
[   26.996450] usbcore: registered new device driver usb
[   27.015133] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   27.085357] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   27.085458] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   27.106654] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   27.126943] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   27.127050] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   27.127075] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   27.127100] usb usb1: Product: Marvell Orion EHCI
[   27.127116] usb usb1: Manufacturer: Linux 3.2.46 ehci_hcd
[   27.127134] usb usb1: SerialNumber: orion-ehci.0
[   27.127672] hub 1-0:1.0: USB hub found
[   27.127707] hub 1-0:1.0: 1 port detected
[   27.446682] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   27.598010] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[   27.598049] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   27.598072] usb 1-1: Product: USB2.0 Hub
[   27.599612] hub 1-1:1.0: USB hub found
[   27.600015] hub 1-1:1.0: 4 ports detected
[   28.263107] EXT4-fs (dm-0): re-mounted. Opts: (null)
[   28.628420] EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro
[   29.037362] loop: module loaded
[   31.941871] Adding 974844k swap on /dev/mapper/qnap-swap.  Priority:-1 extents:1 across:974844k 
[   33.814234] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
[   35.188676] NET: Registered protocol family 10
[   35.191088] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   35.276736] ADDRCONF(NETDEV_UP): eth1: link is not ready
[   38.745225] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   38.745395] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   39.080067] mv643xx_eth_port mv643xx_eth_port.1: eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[   39.080213] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   45.289257] RPC: Registered named UNIX socket transport module.
[   45.289297] RPC: Registered udp transport module.
[   45.289313] RPC: Registered tcp transport module.
[   45.289329] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   45.409206] FS-Cache: Loaded
[   45.481844] FS-Cache: Netfs 'nfs' registered for caching
[   45.531734] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   49.346608] eth0: no IPv6 routers present
[   49.376597] eth1: no IPv6 routers present
--- linux-source-3.2-orig/drivers/ata/sata_mv.c	2013-05-30 15:35:16.000000000 +0200
+++ linux-source-3.2/drivers/ata/sata_mv.c	2013-07-01 11:30:43.094185000 +0200
@@ -73,6 +73,10 @@
 #define DRV_NAME	"sata_mv"
 #define DRV_VERSION	"1.28"
 
+//Patch by QNAP: delay SATA disk initialization
+#define	QMV_SATA_INIT_DELAY_PHASE	5000 //milliseconds
+////////////////////////////////////////////////////////////////
+
 /*
  * module options
  */
@@ -4329,7 +4333,11 @@
 		struct ata_port *ap = host->ports[port];
 		void __iomem *port_mmio = mv_port_base(hpriv->base, port);
 		unsigned int offset = port_mmio - hpriv->base;
-
+		// marvell 7042 port 2 port 3 will power on by order every  5 sec
+		if( (port==2) || (port == 3) ){
+			printk("Wait %d seconds to initialize scsi %d.\n",QMV_SATA_INIT_DELAY_PHASE/1000,port);
+			mdelay(QMV_SATA_INIT_DELAY_PHASE);
+		}
 		ata_port_pbar_desc(ap, MV_PRIMARY_BAR, -1, "mmio");
 		ata_port_pbar_desc(ap, MV_PRIMARY_BAR, offset, "port");
 	}

Reply to: