All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
       [not found] ` <20110628095723.GC3386@htj.dyndns.org>
@ 2011-06-30 17:53   ` Derry Bryson
  2011-07-12 15:01     ` tj
  0 siblings, 1 reply; 48+ messages in thread
From: Derry Bryson @ 2011-06-30 17:53 UTC (permalink / raw)
  To: tj; +Cc: linux-ide

Thanks for the quick response.

> -----Original Message-----
> From: Tejun Heo [mailto:htejun@gmail.com] On Behalf Of tj@kernel.org
> Sent: Tuesday, June 28, 2011 2:57 AM
> To: Derry Bryson
> Subject: Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
> 
> Hello,
> 
> Can you please cc linux-ide@vger.kernel.org when replying?
> 
> On Mon, Jun 27, 2011 at 06:02:23PM +0000, Derry Bryson wrote:
> > I found this thread from around 2.5 years ago describing the same
> > problem I am having in only in kernel 2.6.38 (ubuntu 11.04):
> >
> > http://marc.info/?l=linux-ide&m=122373892631645&w=2
> >
> > The thread seemed to stop with you sending another patch to be
> > tested and nothing more after that.  Was this ever fixed?
> 
> Hmm... it seems like the last test patch didn't get replied and I
> forgot about it.  Can you please provide the following information?
> 
> * Detailed sequence of actions to trigger the problem.
> 

Hardware:  Silicon Image 3124 PCI card in computer connected eSATA to an
external drive enclosure with a Silicon Image 3726 port multiplier chip with
5 removable drive trays (http://high-rely.com/HR3/includes/HighRely/5BayMT/5BayMT.php)
containing 5 various hard drives.

To create the problem I simply turn off a drive bay and wait for it to be removed
from the system.  Then turn the drive bay back on and usually the drive will not
reconnect without several cycles of turning it off and on.

Note the drives always seem to come up fine on boot with the external drive bays
already powered on and if I power cycle the drive bays with the computer on and booted.

I have included info from kern.log below showing turning the bay on and off before and
after I patched the kernel.  I first applied the patch from your previous email
and changed the second timing value to 1000 and that makes it work.  It also works
if you leave the timing values alone and up the retries (i.e ATA_EH_PMP_LINK_TRIES) from 
3 to 5.  It seems to me the drives are taking a long (relatively) time to spin up and
either way all we are doing is giving it more time to spin up.  Is there some way to
know it is spinning up and wait for that rather than just trying to reset the controller
over and over?  Also I notice from the kernel log that the 'hotplugged' flag is only
set the first time it does the hard reset and is then cleared.  If this didn't get 
cleared it may work that way as well.  All of this only fixes the problem until an
slower drive comes out.

>From the SMART info on the drives for the WD 3TB that fails the spin up value was 188 vs.
a Seagate 160GB that was 87.  I believe these values are in milliseconds so we can see
that the drive that fails takes much longer to spin up.

> * dmesg output after hotplug failure w/ CONFIG_PRINTK_TIME set
>   including boot messages.
> 

Here is dmesg from boot (kernel 2.6.32):

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32-21-generic (buildd@yellow) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 (Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2)
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=4091bfa7-5a4a-45c4-8b6f-a364fdce5a47 ro quiet nomodeset text
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Centaur CentaurHauls
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000008f000 (usable)
[    0.000000]  BIOS-e820: 000000000008f000 - 0000000000090000 (reserved)
[    0.000000]  BIOS-e820: 0000000000090000 - 000000000009c800 (usable)
[    0.000000]  BIOS-e820: 000000000009c800 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 000000003ee98000 (usable)
[    0.000000]  BIOS-e820: 000000003ee98000 - 000000003eebf000 (reserved)
[    0.000000]  BIOS-e820: 000000003eebf000 - 000000003ef47000 (usable)
[    0.000000]  BIOS-e820: 000000003ef47000 - 000000003efbf000 (ACPI NVS)
[    0.000000]  BIOS-e820: 000000003efbf000 - 000000003eff1000 (usable)
[    0.000000]  BIOS-e820: 000000003eff1000 - 000000003efff000 (ACPI data)
[    0.000000]  BIOS-e820: 000000003efff000 - 000000003f000000 (usable)
[    0.000000]  BIOS-e820: 000000003f000000 - 0000000040000000 (reserved)
[    0.000000]  BIOS-e820: 00000000f8000000 - 00000000fc000000 (reserved)
[    0.000000]  BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
[    0.000000] DMI 2.5 present.
[    0.000000] last_pfn = 0x3f000 max_arch_pfn = 0x400000000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-BFFFF uncachable
[    0.000000]   C0000-DFFFF write-protect
[    0.000000]   E0000-FFFFF uncachable
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 000000000 mask FC0000000 write-back
[    0.000000]   1 base 03F000000 mask FFF000000 uncachable
[    0.000000]   2 base 0FFFF0000 mask FFFFF0000 write-protect
[    0.000000]   3 base 0FFF10000 mask FFFFF0000 write-protect
[    0.000000]   4 base 0FFF20000 mask FFFFF0000 write-protect
[    0.000000]   5 disabled
[    0.000000]   6 disabled
[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[    0.000000] e820 update range: 0000000000001000 - 0000000000006000 (usable) ==> (reserved)
[    0.000000] Scanning 1 areas for low memory corruption
[    0.000000] modified physical RAM map:
[    0.000000]  modified: 0000000000000000 - 0000000000001000 (usable)
[    0.000000]  modified: 0000000000001000 - 0000000000006000 (reserved)
[    0.000000]  modified: 0000000000006000 - 000000000008f000 (usable)
[    0.000000]  modified: 000000000008f000 - 0000000000090000 (reserved)
[    0.000000]  modified: 0000000000090000 - 000000000009c800 (usable)
[    0.000000]  modified: 000000000009c800 - 00000000000a0000 (reserved)
[    0.000000]  modified: 00000000000e0000 - 0000000000100000 (reserved)
[    0.000000]  modified: 0000000000100000 - 000000003ee98000 (usable)
[    0.000000]  modified: 000000003ee98000 - 000000003eebf000 (reserved)
[    0.000000]  modified: 000000003eebf000 - 000000003ef47000 (usable)
[    0.000000]  modified: 000000003ef47000 - 000000003efbf000 (ACPI NVS)
[    0.000000]  modified: 000000003efbf000 - 000000003eff1000 (usable)
[    0.000000]  modified: 000000003eff1000 - 000000003efff000 (ACPI data)
[    0.000000]  modified: 000000003efff000 - 000000003f000000 (usable)
[    0.000000]  modified: 000000003f000000 - 0000000040000000 (reserved)
[    0.000000]  modified: 00000000f8000000 - 00000000fc000000 (reserved)
[    0.000000]  modified: 00000000fff00000 - 0000000100000000 (reserved)
[    0.000000] initial memory mapped : 0 - 20000000
[    0.000000] init_memory_mapping: 0000000000000000-000000003f000000
[    0.000000] NX (Execute Disable) protection: active
[    0.000000]  0000000000 - 003f000000 page 2M
[    0.000000] kernel direct mapping tables up to 3f000000 @ 8000-a000
[    0.000000] RAMDISK: 2eb40000 - 2f331b3e
[    0.000000] ACPI: RSDP 00000000000f2060 00024 (v02 INTEL )
[    0.000000] ACPI: XSDT 000000003effe120 0004C (v01 INTEL  D525MW   0000004E      01000013)
[    0.000000] ACPI: FACP 000000003effd000 000F4 (v03 INTEL  D525MW   0000004E MSFT 0100000D)
[    0.000000] ACPI: DSDT 000000003eff9000 03796 (v01 INTEL  D525MW   0000004E MSFT 0100000D)
[    0.000000] ACPI: FACS 000000003ef87000 00040
[    0.000000] ACPI: APIC 000000003eff8000 00084 (v02 INTEL  D525MW   0000004E MSFT 0100000D)
[    0.000000] ACPI: MCFG 000000003eff7000 0003C (v01 INTEL  D525MW   0000004E MSFT 0100000D)
[    0.000000] ACPI: HPET 000000003eff6000 00038 (v01 INTEL  D525MW   0000004E MSFT 0100000D)
[    0.000000] ACPI: SSDT 000000003eff2000 0377C (v01 INTEL  D525MW   0000004E MSFT 0100000D)
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at 0000000000000000-000000003f000000
[    0.000000] Bootmem setup node 0 0000000000000000-000000003f000000
[    0.000000]   NODE_DATA [0000000000008000 - 000000000000cfff]
[    0.000000]   bootmap [000000000000d000 -  0000000000014dff] pages 8
[    0.000000] (6 early reservations) ==> bootmem [0000000000 - 003f000000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
[    0.000000]   #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
[    0.000000]   #2 [0001000000 - 0001a29e64]    TEXT DATA BSS ==> [0001000000 - 0001a29e64]
[    0.000000]   #3 [002eb40000 - 002f331b3e]          RAMDISK ==> [002eb40000 - 002f331b3e]
[    0.000000]   #4 [000009c800 - 0000100000]    BIOS reserved ==> [000009c800 - 0000100000]
[    0.000000]   #5 [0001a2a000 - 0001a2a19e]              BRK ==> [0001a2a000 - 0001a2a19e]
[    0.000000] found SMP MP-table at [ffff8800000fbe70] fbe70
[    0.000000]  [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002000000-ffff880002dfffff] on node 0
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00001000
[    0.000000]   DMA32    0x00001000 -> 0x00100000
[    0.000000]   Normal   0x00100000 -> 0x00100000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[7] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00000001
[    0.000000]     0: 0x00000006 -> 0x0000008f
[    0.000000]     0: 0x00000090 -> 0x0000009c
[    0.000000]     0: 0x00000100 -> 0x0003ee98
[    0.000000]     0: 0x0003eebf -> 0x0003ef47
[    0.000000]     0: 0x0003efbf -> 0x0003eff1
[    0.000000]     0: 0x0003efff -> 0x0003f000
[    0.000000] On node 0 totalpages: 257769
[    0.000000]   DMA zone: 56 pages used for memmap
[    0.000000]   DMA zone: 102 pages reserved
[    0.000000]   DMA zone: 3832 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 3472 pages used for memmap
[    0.000000]   DMA32 zone: 250307 pages, LIFO batch:31
[    0.000000] ACPI: PM-Timer IO Port: 0x408
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x02] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] enabled)
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high level lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x02] high level lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x03] high level lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x04] high level lint[0x1])
[    0.000000] ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[    0.000000] SMP: Allowing 4 CPUs, 0 hotplug CPUs
[    0.000000] nr_irqs_gsi: 24
[    0.000000] PM: Registered nosave memory: 0000000000001000 - 0000000000006000
[    0.000000] PM: Registered nosave memory: 000000000008f000 - 0000000000090000
[    0.000000] PM: Registered nosave memory: 000000000009c000 - 000000000009d000
[    0.000000] PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000e0000
[    0.000000] PM: Registered nosave memory: 00000000000e0000 - 0000000000100000
[    0.000000] PM: Registered nosave memory: 000000003ee98000 - 000000003eebf000
[    0.000000] PM: Registered nosave memory: 000000003ef47000 - 000000003efbf000
[    0.000000] PM: Registered nosave memory: 000000003eff1000 - 000000003efff000
[    0.000000] Allocating PCI resources starting at 40000000 (gap: 40000000:b8000000)
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:4 nr_node_ids:1
[    0.000000] PERCPU: Embedded 30 pages/cpu @ffff880001c00000 s91544 r8192 d23144 u524288
[    0.000000] pcpu-alloc: s91544 r8192 d23144 u524288 alloc=1*2097152
[    0.000000] pcpu-alloc: [0] 0 1 2 3 
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 254139
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=4091bfa7-5a4a-45c4-8b6f-a364fdce5a47 ro quiet nomodeset text
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Initializing CPU#0
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] Calgary: detecting Calgary via BIOS EBDA area
[    0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing!
[    0.000000] Memory: 997568k/1032192k available (5409k kernel code, 1116k absent, 33508k reserved, 2976k data, 876k init)
[    0.000000] SLUB: Genslabs=14, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:4352 nr_irqs:440
[    0.000000] Extended CMOS year: 2000
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [tty0] enabled
[    0.000000] allocated 10485760 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] hpet clockevent registered
[    0.000000] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
[    0.000000] Fast TSC calibration using PIT
[    0.000000] Detected 1799.930 MHz processor.
[    0.010012] Calibrating delay loop (skipped), value calculated using timer frequency.. 3599.86 BogoMIPS (lpj=17999300)
[    0.010075] Security Framework initialized
[    0.010116] AppArmor: AppArmor initialized
[    0.010389] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.011295] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.011705] Mount-cache hash table entries: 256
[    0.012011] Initializing cgroup subsys ns
[    0.012022] Initializing cgroup subsys cpuacct
[    0.012032] Initializing cgroup subsys memory
[    0.012048] Initializing cgroup subsys devices
[    0.012054] Initializing cgroup subsys freezer
[    0.012060] Initializing cgroup subsys net_cls
[    0.012102] CPU: L1 I cache: 32K, L1 D cache: 24K
[    0.012109] CPU: L2 cache: 512K
[    0.012116] CPU 0/0x0 -> Node 0
[    0.012120] CPU: Physical Processor ID: 0
[    0.012125] CPU: Processor Core ID: 0
[    0.012131] mce: CPU supports 5 MCE banks
[    0.012145] CPU0: Thermal monitoring enabled (TM1)
[    0.012154] using mwait in idle threads.
[    0.012159] Performance Events: Atom events, Intel PMU driver.
[    0.012172] ... version:                3
[    0.012176] ... bit width:              40
[    0.012180] ... generic registers:      2
[    0.012185] ... value mask:             000000ffffffffff
[    0.012190] ... max period:             000000007fffffff
[    0.012194] ... fixed-purpose events:   3
[    0.012199] ... event mask:             0000000700000003
[    0.020473] ACPI: Core revision 20090903
[    0.045502] ftrace: converting mcount calls to 0f 1f 44 00 00
[    0.045513] ftrace: allocating 22518 entries in 89 pages
[    0.050117] Setting APIC routing to flat
[    0.050511] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.159362] CPU0: Intel(R) Atom(TM) CPU D525   @ 1.80GHz stepping 0a
[    0.160000] Booting processor 1 APIC 0x1 ip 0x6000
[    0.020000] Initializing CPU#1
[    0.020000] CPU: L1 I cache: 32K, L1 D cache: 24K
[    0.020000] CPU: L2 cache: 512K
[    0.020000] CPU 1/0x1 -> Node 0
[    0.020000] CPU: Physical Processor ID: 0
[    0.020000] CPU: Processor Core ID: 0
[    0.020000] CPU1: Thermal monitoring enabled (TM1)
[    0.310094] CPU1: Intel(R) Atom(TM) CPU D525   @ 1.80GHz stepping 0a
[    0.310110] checking TSC synchronization [CPU#0 -> CPU#1]: passed.
[    0.320239] Booting processor 2 APIC 0x2 ip 0x6000
[    0.020000] Initializing CPU#2
[    0.020000] CPU: L1 I cache: 32K, L1 D cache: 24K
[    0.020000] CPU: L2 cache: 512K
[    0.020000] CPU 2/0x2 -> Node 0
[    0.020000] CPU: Physical Processor ID: 0
[    0.020000] CPU: Processor Core ID: 1
[    0.020000] CPU2: Thermal monitoring enabled (TM1)
[    0.480106] CPU2: Intel(R) Atom(TM) CPU D525   @ 1.80GHz stepping 0a
[    0.480119] checking TSC synchronization [CPU#0 -> CPU#2]: passed.
[    0.490180] Booting processor 3 APIC 0x3 ip 0x6000
[    0.020000] Initializing CPU#3
[    0.020000] CPU: L1 I cache: 32K, L1 D cache: 24K
[    0.020000] CPU: L2 cache: 512K
[    0.020000] CPU 3/0x3 -> Node 0
[    0.020000] CPU: Physical Processor ID: 0
[    0.020000] CPU: Processor Core ID: 1
[    0.020000] CPU3: Thermal monitoring enabled (TM1)
[    0.650071] CPU3: Intel(R) Atom(TM) CPU D525   @ 1.80GHz stepping 0a
[    0.650086] checking TSC synchronization [CPU#0 -> CPU#3]: passed.
[    0.660026] Brought up 4 CPUs
[    0.660032] Total of 4 processors activated (14400.32 BogoMIPS).
[    0.661297] CPU0 attaching sched-domain:
[    0.661306]  domain 0: span 0-1 level SIBLING
[    0.661311]   groups: 0 (cpu_power = 589) 1 (cpu_power = 589)
[    0.661323]   domain 1: span 0-1 level MC
[    0.661328]    groups: 0-1 (cpu_power = 1178)
[    0.661337]    domain 2: span 0-3 level CPU
[    0.661342]     groups: 0-1 (cpu_power = 1178) 2-3 (cpu_power = 1178)
[    0.661358] CPU1 attaching sched-domain:
[    0.661362]  domain 0: span 0-1 level SIBLING
[    0.661367]   groups: 1 (cpu_power = 589) 0 (cpu_power = 589)
[    0.661378]   domain 1: span 0-1 level MC
[    0.661383]    groups: 0-1 (cpu_power = 1178)
[    0.661391]    domain 2: span 0-3 level CPU
[    0.661396]     groups: 0-1 (cpu_power = 1178) 2-3 (cpu_power = 1178)
[    0.661409] CPU2 attaching sched-domain:
[    0.661413]  domain 0: span 2-3 level SIBLING
[    0.661418]   groups: 2 (cpu_power = 589) 3 (cpu_power = 589)
[    0.661429]   domain 1: span 2-3 level MC
[    0.661434]    groups: 2-3 (cpu_power = 1178)
[    0.661442]    domain 2: span 0-3 level CPU
[    0.661447]     groups: 2-3 (cpu_power = 1178) 0-1 (cpu_power = 1178)
[    0.661459] CPU3 attaching sched-domain:
[    0.661463]  domain 0: span 2-3 level SIBLING
[    0.661468]   groups: 3 (cpu_power = 589) 2 (cpu_power = 589)
[    0.661479]   domain 1: span 2-3 level MC
[    0.661484]    groups: 2-3 (cpu_power = 1178)
[    0.661492]    domain 2: span 0-3 level CPU
[    0.661497]     groups: 2-3 (cpu_power = 1178) 0-1 (cpu_power = 1178)
[    0.661887] devtmpfs: initialized
[    0.661887] regulator: core version 0.5
[    0.661887] Time: 16:26:02  Date: 06/30/11
[    0.661887] NET: Registered protocol family 16
[    0.661887] Trying to unpack rootfs image as initramfs...
[    0.661887] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[    0.661887] ACPI: bus type pci registered
[    0.661887] PCI: MCFG configuration 0: base f8000000 segment 0 buses 0 - 63
[    0.661887] PCI: MCFG area at f8000000 reserved in E820
[    0.665227] PCI: Using MMCONFIG at f8000000 - fbffffff
[    0.665231] PCI: Using configuration type 1 for base access
[    0.670113] bio: create slab <bio-0> at 0
[    0.671192] ACPI: EC: Look up EC in DSDT
[    0.683502] ACPI: BIOS _OSI(Linux) query ignored
[    0.684727] ACPI: Interpreter enabled
[    0.684737] ACPI: (supports S0 S1 S3 S4 S5)
[    0.684793] ACPI: Using IOAPIC for interrupt routing
[    0.693989] ACPI: No dock devices found.
[    0.694388] ACPI: PCI Root Bridge [PCI0] (0000:00)
[    0.694532] pci 0000:00:02.0: reg 10 32bit mmio: [0xf0300000-0xf037ffff]
[    0.694542] pci 0000:00:02.0: reg 14 io port: [0x30c0-0x30c7]
[    0.694550] pci 0000:00:02.0: reg 18 32bit mmio pref: [0xe0000000-0xefffffff]
[    0.694558] pci 0000:00:02.0: reg 1c 32bit mmio: [0xf0200000-0xf02fffff]
[    0.694687] pci 0000:00:1b.0: reg 10 64bit mmio: [0xf0380000-0xf0383fff]
[    0.694755] pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
[    0.694764] pci 0000:00:1b.0: PME# disabled
[    0.694872] pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
[    0.694880] pci 0000:00:1c.0: PME# disabled
[    0.694980] pci 0000:00:1c.1: PME# supported from D0 D3hot D3cold
[    0.694987] pci 0000:00:1c.1: PME# disabled
[    0.695090] pci 0000:00:1c.2: PME# supported from D0 D3hot D3cold
[    0.695097] pci 0000:00:1c.2: PME# disabled
[    0.695195] pci 0000:00:1c.3: PME# supported from D0 D3hot D3cold
[    0.695203] pci 0000:00:1c.3: PME# disabled
[    0.695291] pci 0000:00:1d.0: reg 20 io port: [0x3080-0x309f]
[    0.695372] pci 0000:00:1d.1: reg 20 io port: [0x3060-0x307f]
[    0.695448] pci 0000:00:1d.2: reg 20 io port: [0x3040-0x305f]
[    0.695547] pci 0000:00:1d.3: reg 20 io port: [0x3020-0x303f]
[    0.695641] pci 0000:00:1d.7: reg 10 32bit mmio: [0xf0384400-0xf03847ff]
[    0.695715] pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
[    0.695723] pci 0000:00:1d.7: PME# disabled
[    0.695973] pci 0000:00:1f.2: reg 10 io port: [0x30b8-0x30bf]
[    0.695984] pci 0000:00:1f.2: reg 14 io port: [0x30cc-0x30cf]
[    0.695995] pci 0000:00:1f.2: reg 18 io port: [0x30b0-0x30b7]
[    0.696005] pci 0000:00:1f.2: reg 1c io port: [0x30c8-0x30cb]
[    0.696016] pci 0000:00:1f.2: reg 20 io port: [0x30a0-0x30af]
[    0.696027] pci 0000:00:1f.2: reg 24 32bit mmio: [0xf0384000-0xf03843ff]
[    0.696067] pci 0000:00:1f.2: PME# supported from D3hot
[    0.696073] pci 0000:00:1f.2: PME# disabled
[    0.696142] pci 0000:00:1f.3: reg 20 io port: [0x3000-0x301f]
[    0.696252] pci 0000:01:00.0: reg 10 io port: [0x2000-0x20ff]
[    0.696283] pci 0000:01:00.0: reg 18 64bit mmio pref: [0xf0004000-0xf0004fff]
[    0.696305] pci 0000:01:00.0: reg 20 64bit mmio pref: [0xf0000000-0xf0003fff]
[    0.696370] pci 0000:01:00.0: supports D1 D2
[    0.696375] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.696384] pci 0000:01:00.0: PME# disabled
[    0.696489] pci 0000:00:1c.0: bridge io port: [0x2000-0x2fff]
[    0.696503] pci 0000:00:1c.0: bridge 64bit mmio pref: [0xf0000000-0xf00fffff]
[    0.696817] pci 0000:05:00.0: reg 10 64bit mmio: [0xf0108000-0xf010807f]
[    0.696836] pci 0000:05:00.0: reg 18 64bit mmio: [0xf0100000-0xf0107fff]
[    0.696848] pci 0000:05:00.0: reg 20 io port: [0x1000-0x100f]
[    0.696867] pci 0000:05:00.0: reg 30 32bit mmio pref: [0xfff80000-0xffffffff]
[    0.696905] pci 0000:05:00.0: supports D1 D2
[    0.696982] pci 0000:00:1e.0: transparent bridge
[    0.696990] pci 0000:00:1e.0: bridge io port: [0x1000-0x1fff]
[    0.696998] pci 0000:00:1e.0: bridge 32bit mmio: [0xf0100000-0xf01fffff]
[    0.697043] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.697404] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P32_._PRT]
[    0.697631] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT]
[    0.697781] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX1._PRT]
[    0.697931] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX2._PRT]
[    0.698081] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX3._PRT]
[    0.707426] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 9 10 *11 12)
[    0.707661] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 9 10 11 12) *0, disabled.
[    0.707893] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 7 *9 10 11 12)
[    0.708125] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 7 9 10 *11 12)
[    0.708353] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 9 *10 11 12)
[    0.708584] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 7 9 10 11 12) *0, disabled.
[    0.708813] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 7 *9 10 11 12)
[    0.709042] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 7 9 *10 11 12)
[    0.709286] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[    0.709311] vgaarb: loaded
[    0.709566] SCSI subsystem initialized
[    0.709664] libata version 3.00 loaded.
[    0.710080] usbcore: registered new interface driver usbfs
[    0.710115] usbcore: registered new interface driver hub
[    0.710163] usbcore: registered new device driver usb
[    0.710181] ACPI: WMI: Mapper loaded
[    0.710181] PCI: Using ACPI for IRQ routing
[    0.710424] NetLabel: Initializing
[    0.710429] NetLabel:  domain hash size = 128
[    0.710433] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.710459] NetLabel:  unlabeled traffic allowed by default
[    0.710557] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.710568] hpet0: 3 comparators, 64-bit 14.318180 MHz counter
[    0.740051] Switching to clocksource tsc
[    0.745755] AppArmor: AppArmor Filesystem Enabled
[    0.745810] pnp: PnP ACPI init
[    0.745855] ACPI: bus type pnp registered
[    0.751957] pnp: PnP ACPI: found 13 devices
[    0.751965] ACPI: ACPI bus type pnp unregistered
[    0.751999] system 00:01: iomem range 0xf8000000-0xfbffffff has been reserved
[    0.752009] system 00:01: iomem range 0xfed14000-0xfed17fff has been reserved
[    0.752019] system 00:01: iomem range 0xfed18000-0xfed18fff has been reserved
[    0.752028] system 00:01: iomem range 0xfed19000-0xfed19fff has been reserved
[    0.752038] system 00:01: iomem range 0xfed1c000-0xfed1ffff has been reserved
[    0.752047] system 00:01: iomem range 0xc0000-0xdffff has been reserved
[    0.752056] system 00:01: iomem range 0xe0000-0xfffff could not be reserved
[    0.752066] system 00:01: iomem range 0xfff00000-0xffffffff has been reserved
[    0.752089] system 00:06: ioport range 0x500-0x53f has been reserved
[    0.752098] system 00:06: ioport range 0x400-0x47f has been reserved
[    0.752107] system 00:06: ioport range 0x680-0x6ff has been reserved
[    0.752116] system 00:06: ioport range 0x295-0x296 has been reserved
[    0.757264] pci 0000:05:00.0: BAR 6: address space collision on of device [0xfff80000-0xffffffff]
[    0.757372] pci 0000:00:1c.0: PCI bridge, secondary bus 0000:01
[    0.757381] pci 0000:00:1c.0:   IO window: 0x2000-0x2fff
[    0.757393] pci 0000:00:1c.0:   MEM window: 0x40000000-0x403fffff
[    0.757404] pci 0000:00:1c.0:   PREFETCH window: 0x000000f0000000-0x000000f00fffff
[    0.757418] pci 0000:00:1c.1: PCI bridge, secondary bus 0000:02
[    0.757426] pci 0000:00:1c.1:   IO window: 0x4000-0x4fff
[    0.757438] pci 0000:00:1c.1:   MEM window: 0x40400000-0x405fffff
[    0.757449] pci 0000:00:1c.1:   PREFETCH window: 0x00000040600000-0x000000407fffff
[    0.757462] pci 0000:00:1c.2: PCI bridge, secondary bus 0000:03
[    0.757471] pci 0000:00:1c.2:   IO window: 0x5000-0x5fff
[    0.757482] pci 0000:00:1c.2:   MEM window: 0x40800000-0x409fffff
[    0.757493] pci 0000:00:1c.2:   PREFETCH window: 0x00000040a00000-0x00000040bfffff
[    0.757507] pci 0000:00:1c.3: PCI bridge, secondary bus 0000:04
[    0.757515] pci 0000:00:1c.3:   IO window: 0x6000-0x6fff
[    0.757526] pci 0000:00:1c.3:   MEM window: 0x40c00000-0x40dfffff
[    0.757537] pci 0000:00:1c.3:   PREFETCH window: 0x00000040e00000-0x00000040ffffff
[    0.757554] pci 0000:00:1e.0: PCI bridge, secondary bus 0000:05
[    0.757563] pci 0000:00:1e.0:   IO window: 0x1000-0x1fff
[    0.757575] pci 0000:00:1e.0:   MEM window: 0xf0100000-0xf01fffff
[    0.757587] pci 0000:00:1e.0:   PREFETCH window: 0x41000000-0x410fffff
[    0.757624]   alloc irq_desc for 17 on node -1
[    0.757631]   alloc kstat_irqs on node -1
[    0.757649] pci 0000:00:1c.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    0.757663] pci 0000:00:1c.0: setting latency timer to 64
[    0.757683] pci 0000:00:1c.1: enabling device (0000 -> 0003)
[    0.757694]   alloc irq_desc for 16 on node -1
[    0.757700]   alloc kstat_irqs on node -1
[    0.757713] pci 0000:00:1c.1: PCI INT B -> GSI 16 (level, low) -> IRQ 16
[    0.757727] pci 0000:00:1c.1: setting latency timer to 64
[    0.757747] pci 0000:00:1c.2: enabling device (0000 -> 0003)
[    0.757757]   alloc irq_desc for 18 on node -1
[    0.757763]   alloc kstat_irqs on node -1
[    0.757775] pci 0000:00:1c.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[    0.757787] pci 0000:00:1c.2: setting latency timer to 64
[    0.757804] pci 0000:00:1c.3: enabling device (0000 -> 0003)
[    0.757814]   alloc irq_desc for 19 on node -1
[    0.757820]   alloc kstat_irqs on node -1
[    0.757830] pci 0000:00:1c.3: PCI INT D -> GSI 19 (level, low) -> IRQ 19
[    0.757843] pci 0000:00:1c.3: setting latency timer to 64
[    0.757858] pci 0000:00:1e.0: setting latency timer to 64
[    0.757869] pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
[    0.757877] pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
[    0.757886] pci_bus 0000:01: resource 0 io:  [0x2000-0x2fff]
[    0.757893] pci_bus 0000:01: resource 1 mem: [0x40000000-0x403fffff]
[    0.757901] pci_bus 0000:01: resource 2 pref mem [0xf0000000-0xf00fffff]
[    0.757910] pci_bus 0000:02: resource 0 io:  [0x4000-0x4fff]
[    0.757917] pci_bus 0000:02: resource 1 mem: [0x40400000-0x405fffff]
[    0.757925] pci_bus 0000:02: resource 2 pref mem [0x40600000-0x407fffff]
[    0.757933] pci_bus 0000:03: resource 0 io:  [0x5000-0x5fff]
[    0.757941] pci_bus 0000:03: resource 1 mem: [0x40800000-0x409fffff]
[    0.757949] pci_bus 0000:03: resource 2 pref mem [0x40a00000-0x40bfffff]
[    0.757957] pci_bus 0000:04: resource 0 io:  [0x6000-0x6fff]
[    0.757964] pci_bus 0000:04: resource 1 mem: [0x40c00000-0x40dfffff]
[    0.757972] pci_bus 0000:04: resource 2 pref mem [0x40e00000-0x40ffffff]
[    0.757980] pci_bus 0000:05: resource 0 io:  [0x1000-0x1fff]
[    0.757988] pci_bus 0000:05: resource 1 mem: [0xf0100000-0xf01fffff]
[    0.757996] pci_bus 0000:05: resource 2 pref mem [0x41000000-0x410fffff]
[    0.758003] pci_bus 0000:05: resource 3 io:  [0x00-0xffff]
[    0.758011] pci_bus 0000:05: resource 4 mem: [0x000000-0xffffffffffffffff]
[    0.758106] NET: Registered protocol family 2
[    0.758441] IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.759916] TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
[    0.761787] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.762486] TCP: Hash tables configured (established 131072 bind 65536)
[    0.762496] TCP reno registered
[    0.762817] NET: Registered protocol family 1
[    0.762873] pci 0000:00:02.0: Boot video device
[    0.780390] Scanning for low memory corruption every 60 seconds
[    0.780787] audit: initializing netlink socket (disabled)
[    0.780813] type=2000 audit(1309451161.779:1): initialized
[    0.799307] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.804122] VFS: Disk quotas dquot_6.5.2
[    0.804317] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.806404] fuse init (API version 7.13)
[    0.806706] msgmni has been set to 1948
[    0.807474] alg: No test for stdrng (krng)
[    0.807670] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.807681] io scheduler noop registered
[    0.807687] io scheduler anticipatory registered
[    0.807692] io scheduler deadline registered
[    0.807808] io scheduler cfq registered (default)
[    0.808155]   alloc irq_desc for 24 on node -1
[    0.808162]   alloc kstat_irqs on node -1
[    0.808184] pcieport 0000:00:1c.0: irq 24 for MSI/MSI-X
[    0.808204] pcieport 0000:00:1c.0: setting latency timer to 64
[    0.808472]   alloc irq_desc for 25 on node -1
[    0.808478]   alloc kstat_irqs on node -1
[    0.808497] pcieport 0000:00:1c.1: irq 25 for MSI/MSI-X
[    0.808514] pcieport 0000:00:1c.1: setting latency timer to 64
[    0.808767]   alloc irq_desc for 26 on node -1
[    0.808774]   alloc kstat_irqs on node -1
[    0.808791] pcieport 0000:00:1c.2: irq 26 for MSI/MSI-X
[    0.808808] pcieport 0000:00:1c.2: setting latency timer to 64
[    0.809095]   alloc irq_desc for 27 on node -1
[    0.809102]   alloc kstat_irqs on node -1
[    0.809121] pcieport 0000:00:1c.3: irq 27 for MSI/MSI-X
[    0.809139] pcieport 0000:00:1c.3: setting latency timer to 64
[    0.809391] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.809707] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.809958] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0
[    0.809977] ACPI: Sleep Button [SLPB]
[    0.810132] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[    0.810141] ACPI: Power Button [PWRF]
[    0.812256] Monitor-Mwait will be used to enter C-1 state
[    0.812342] processor LNXCPU:00: registered as cooling_device0
[    0.813666] processor LNXCPU:01: registered as cooling_device1
[    0.815089] processor LNXCPU:02: registered as cooling_device2
[    0.817193] processor LNXCPU:03: registered as cooling_device3
[    0.823337] Linux agpgart interface v0.103
[    0.823416] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.823573] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.823736] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    0.824241] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.824462] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    0.826893] brd: module loaded
[    0.828050] loop: module loaded
[    0.828286] input: Macintosh mouse button emulation as /devices/virtual/input/input2
[    0.829238] Fixed MDIO Bus: probed
[    0.829479] PPP generic driver version 2.4.2
[    0.829589] tun: Universal TUN/TAP device driver, 1.6
[    0.829594] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.829786] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.829835]   alloc irq_desc for 23 on node -1
[    0.829840]   alloc kstat_irqs on node -1
[    0.829853] ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[    0.829884] ehci_hcd 0000:00:1d.7: setting latency timer to 64
[    0.829891] ehci_hcd 0000:00:1d.7: EHCI Host Controller
[    0.829982] ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
[    0.830016] ehci_hcd 0000:00:1d.7: using broken periodic workaround
[    0.830033] ehci_hcd 0000:00:1d.7: debug port 1
[    0.833912] ehci_hcd 0000:00:1d.7: cache line size of 32 is not supported
[    0.833943] ehci_hcd 0000:00:1d.7: irq 23, io mem 0xf0384400
[    0.849299] ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[    0.849494] usb usb1: configuration #1 chosen from 1 choice
[    0.849558] hub 1-0:1.0: USB hub found
[    0.849575] hub 1-0:1.0: 8 ports detected
[    0.849710] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.849743] uhci_hcd: USB Universal Host Controller Interface driver
[    0.849807] uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[    0.849821] uhci_hcd 0000:00:1d.0: setting latency timer to 64
[    0.849828] uhci_hcd 0000:00:1d.0: UHCI Host Controller
[    0.849915] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
[    0.849954] uhci_hcd 0000:00:1d.0: irq 23, io base 0x00003080
[    0.850156] usb usb2: configuration #1 chosen from 1 choice
[    0.850219] hub 2-0:1.0: USB hub found
[    0.850235] hub 2-0:1.0: 2 ports detected
[    0.850333] uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[    0.850347] uhci_hcd 0000:00:1d.1: setting latency timer to 64
[    0.850353] uhci_hcd 0000:00:1d.1: UHCI Host Controller
[    0.850434] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
[    0.850492] uhci_hcd 0000:00:1d.1: irq 19, io base 0x00003060
[    0.850695] usb usb3: configuration #1 chosen from 1 choice
[    0.850756] hub 3-0:1.0: USB hub found
[    0.850772] hub 3-0:1.0: 2 ports detected
[    0.850870] uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[    0.850882] uhci_hcd 0000:00:1d.2: setting latency timer to 64
[    0.850889] uhci_hcd 0000:00:1d.2: UHCI Host Controller
[    0.850972] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
[    0.851019] uhci_hcd 0000:00:1d.2: irq 18, io base 0x00003040
[    0.851240] usb usb4: configuration #1 chosen from 1 choice
[    0.851302] hub 4-0:1.0: USB hub found
[    0.851318] hub 4-0:1.0: 2 ports detected
[    0.851416] uhci_hcd 0000:00:1d.3: PCI INT D -> GSI 16 (level, low) -> IRQ 16
[    0.851428] uhci_hcd 0000:00:1d.3: setting latency timer to 64
[    0.851435] uhci_hcd 0000:00:1d.3: UHCI Host Controller
[    0.851522] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
[    0.851578] uhci_hcd 0000:00:1d.3: irq 16, io base 0x00003020
[    0.851784] usb usb5: configuration #1 chosen from 1 choice
[    0.851846] hub 5-0:1.0: USB hub found
[    0.851861] hub 5-0:1.0: 2 ports detected
[    0.852066] PNP: No PS/2 controller found. Probing ports directly.
[    0.855200] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.855217] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.855436] mice: PS/2 mouse device common for all mice
[    0.855672] rtc_cmos 00:03: RTC can wake from S4
[    0.855765] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
[    0.855807] rtc0: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    0.856107] device-mapper: uevent: version 1.0.3
[    0.856390] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[    0.856717] device-mapper: multipath: version 1.1.0 loaded
[    0.856724] device-mapper: multipath round-robin: version 1.0.0 loaded
[    0.857373] cpuidle: using governor ladder
[    0.857378] cpuidle: using governor menu
[    0.858141] TCP cubic registered
[    0.858464] NET: Registered protocol family 10
[    0.859531] lo: Disabled Privacy Extensions
[    0.860143] NET: Registered protocol family 17
[    0.860923] ACPI Exception: AE_NOT_FOUND, Evaluating _PSS (20090903/processor_perflib-264)
[    0.860998] ACPI Exception: AE_NOT_FOUND, Evaluating _PSS (20090903/processor_perflib-264)
[    0.861068] ACPI Exception: AE_NOT_FOUND, Evaluating _PSS (20090903/processor_perflib-264)
[    0.861138] ACPI Exception: AE_NOT_FOUND, Evaluating _PSS (20090903/processor_perflib-264)
[    0.861356] PM: Resume from disk failed.
[    0.861381] registered taskstats version 1
[    0.861941]   Magic number: 15:326:440
[    0.862016] pcieport 0000:00:1c.1: hash matches
[    0.862082] rtc_cmos 00:03: setting system clock to 2011-06-30 16:26:02 UTC (1309451162)
[    0.862089] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    0.862093] EDD information not available.
[    1.032580] Freeing initrd memory: 8134k freed
[    1.038080] Freeing unused kernel memory: 876k freed
[    1.038484] Write protecting the kernel read-only data: 7680k
[    1.075712] udev: starting version 151
[    1.148143] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.148194] r8169 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    1.148272] r8169 0000:01:00.0: setting latency timer to 64
[    1.148286] r8169 0000:01:00.0: unknown MAC, using family default
[    1.148365]   alloc irq_desc for 28 on node -1
[    1.148372]   alloc kstat_irqs on node -1
[    1.148403] r8169 0000:01:00.0: irq 28 for MSI/MSI-X
[    1.150141] eth0: RTL8168b/8111b at 0xffffc900001f6000, 70:71:bc:cc:e8:37, XID 0c200000 IRQ 28
[    1.203136] sata_sil24 0000:05:00.0: version 1.1
[    1.203177]   alloc irq_desc for 20 on node -1
[    1.203186]   alloc kstat_irqs on node -1
[    1.203205] sata_sil24 0000:05:00.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
[    1.220752] scsi0 : sata_sil24
[    1.221356] ahci 0000:00:1f.2: version 3.0
[    1.221395] ahci 0000:00:1f.2: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    1.221484]   alloc irq_desc for 29 on node -1
[    1.221492]   alloc kstat_irqs on node -1
[    1.221518] ahci 0000:00:1f.2: irq 29 for MSI/MSI-X
[    1.221598] ahci: SSS flag set, parallel bus scan disabled
[    1.221655] ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0x3 impl SATA mode
[    1.221667] ahci 0000:00:1f.2: flags: 64bit ncq stag pm led clo pio slum part 
[    1.221681] ahci 0000:00:1f.2: setting latency timer to 64
[    1.221903] scsi1 : sata_sil24
[    1.222240] scsi2 : ahci
[    1.222410] scsi3 : sata_sil24
[    1.222576] scsi4 : ahci
[    1.222945] scsi5 : ahci
[    1.222957] scsi6 : sata_sil24
[    1.223160] ata1: SATA max UDMA/100 host m128@0xf0108000 port 0xf0100000 irq 20
[    1.223173] ata2: SATA max UDMA/100 host m128@0xf0108000 port 0xf0102000 irq 20
[    1.223184] ata3: SATA max UDMA/100 host m128@0xf0108000 port 0xf0104000 irq 20
[    1.223195] ata4: SATA max UDMA/100 host m128@0xf0108000 port 0xf0106000 irq 20
[    1.223457] scsi7 : ahci
[    1.224040] ata5: SATA max UDMA/133 abar m1024@0xf0384000 port 0xf0384100 irq 29
[    1.224052] ata6: SATA max UDMA/133 abar m1024@0xf0384000 port 0xf0384180 irq 29
[    1.224060] ata7: DUMMY
[    1.224064] ata8: DUMMY
[    1.400033] usb 5-1: new low speed USB device using uhci_hcd and address 2
[    1.570039] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.573889] usb 5-1: configuration #1 chosen from 1 choice
[    1.575809] ata5.00: ATA-8: SAMSUNG HD103SJ, 1AJ100E5, max UDMA/133
[    1.575820] ata5.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    1.581679] ata5.00: configured for UDMA/133
[    1.613318] usbcore: registered new interface driver hiddev
[    1.627277] input: USB CAT5 as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input3
[    1.627620] generic-usb 0003:0D3D:0040.0001: input,hidraw0: USB HID v1.00 Keyboard [USB CAT5] on usb-0000:00:1d.3-1/input0
[    1.643201] input: USB CAT5 as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/input/input4
[    1.643656] generic-usb 0003:0D3D:0040.0002: input,hidraw1: USB HID v1.00 Mouse [USB CAT5] on usb-0000:00:1d.3-1/input1
[    1.643718] usbcore: registered new interface driver usbhid
[    1.643812] usbhid: v2.6:USB HID core driver
[    3.440046] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[    3.440365] ata1.15: Port Multiplier 1.1, 0x1095:0x3726 r23, 6 ports, feat 0x1/0x9
[    3.440691] ata1.00: hard resetting link
[    3.790423] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[    3.790468] ata1.01: hard resetting link
[    4.140414] ata1.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    4.140458] ata1.02: hard resetting link
[    4.490411] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    4.490455] ata1.03: hard resetting link
[    4.840412] ata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    4.840456] ata1.04: hard resetting link
[    5.190412] ata1.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    5.190456] ata1.05: hard resetting link
[    5.540423] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[    5.546901] ata1.00: ATA-7: SAMSUNG HD154UI, 1AG01118, max UDMA7
[    5.546909] ata1.00: 2930277168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    5.553492] ata1.00: configured for UDMA/100
[    5.557739] ata1.01: ATA-8: WDC WD30EZRS-00J99B0, 80.00A80, max UDMA/133
[    5.557746] ata1.01: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.562773] ata1.01: configured for UDMA/100
[    5.606008] ata1.02: ATA-7: ST3160815AS, 4.AAB, max UDMA/133
[    5.606014] ata1.02: 312581808 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.664350] ata1.02: configured for UDMA/100
[    5.668688] ata1.03: ATA-8: WDC WD30EZRX-00MMMB0, 80.00A80, max UDMA/133
[    5.668695] ata1.03: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.673712] ata1.03: configured for UDMA/100
[    5.674959] ata1.04: ATA-8: ST320005XXXX, CC34, max UDMA/133
[    5.674966] ata1.04: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.676421] ata1.04: configured for UDMA/100
[    5.676506] ata1: EH complete
[    5.676720] scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HD154UI  1AG0 PQ: 0 ANSI: 5
[    5.677246] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.677299] sd 0:0:0:0: [sda] 2930277168 512-byte logical blocks: (1.50 TB/1.36 TiB)
[    5.677437] sd 0:0:0:0: [sda] Write Protect is off
[    5.677444] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.677519] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.677739] scsi 0:1:0:0: Direct-Access     ATA      WDC WD30EZRS-00J 80.0 PQ: 0 ANSI: 5
[    5.677904]  sda:
[    5.678115] sd 0:1:0:0: Attached scsi generic sg1 type 0
[    5.678169] sd 0:1:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[    5.678176] sd 0:1:0:0: [sdb] 4096-byte physical blocks
[    5.678316] sd 0:1:0:0: [sdb] Write Protect is off
[    5.678324] sd 0:1:0:0: [sdb] Mode Sense: 00 3a 00 00
[    5.678393] sd 0:1:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.678640] scsi 0:2:0:0: Direct-Access     ATA      ST3160815AS      4.AA PQ: 0 ANSI: 5
[    5.678766]  sdb:
[    5.679070] sd 0:2:0:0: Attached scsi generic sg2 type 0
[    5.679094] sd 0:2:0:0: [sdc] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[    5.679229] sd 0:2:0:0: [sdc] Write Protect is off
[    5.679236] sd 0:2:0:0: [sdc] Mode Sense: 00 3a 00 00
[    5.679309] sd 0:2:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.679596] scsi 0:3:0:0: Direct-Access     ATA      WDC WD30EZRX-00M 80.0 PQ: 0 ANSI: 5
[    5.679689]  sdc:
[    5.680191] sd 0:3:0:0: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[    5.680198] sd 0:3:0:0: [sdd] 4096-byte physical blocks
[    5.680322] sd 0:3:0:0: Attached scsi generic sg3 type 0
[    5.680333] sd 0:3:0:0: [sdd] Write Protect is off
[    5.680340] sd 0:3:0:0: [sdd] Mode Sense: 00 3a 00 00
[    5.680411] sd 0:3:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.680692] scsi 0:4:0:0: Direct-Access     ATA      ST320005XXXX     CC34 PQ: 0 ANSI: 5
[    5.680800]  sdd:
[    5.681284] sd 0:4:0:0: [sde] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    5.681412] sd 0:4:0:0: Attached scsi generic sg4 type 0
[    5.681421] sd 0:4:0:0: [sde] Write Protect is off
[    5.681433] sd 0:4:0:0: [sde] Mode Sense: 00 3a 00 00
[    5.681510] sd 0:4:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.682021]  sde: sda1
[    5.688373] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.705952]  sde1
[    5.706920] sd 0:4:0:0: [sde] Attached SCSI disk
[    5.712379]  sdc1
[    5.713104] sd 0:2:0:0: [sdc] Attached SCSI disk
[    6.153657]  sdd1 sdd2
[    6.154817] sd 0:3:0:0: [sdd] Attached SCSI disk
[    6.271972]  sdb1
[    6.272961] sd 0:1:0:0: [sdb] Attached SCSI disk
[    7.770043] ata2: SATA link down (SStatus 0 SControl 0)
[    9.860042] ata3: SATA link down (SStatus 0 SControl 0)
[   11.950049] ata4: SATA link down (SStatus 0 SControl 0)
[   11.950306] scsi 2:0:0:0: Direct-Access     ATA      SAMSUNG HD103SJ  1AJ1 PQ: 0 ANSI: 5
[   11.950703] sd 2:0:0:0: [sdf] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   11.950744] sd 2:0:0:0: Attached scsi generic sg5 type 0
[   11.950874] sd 2:0:0:0: [sdf] Write Protect is off
[   11.950883] sd 2:0:0:0: [sdf] Mode Sense: 00 3a 00 00
[   11.950966] sd 2:0:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   11.951373]  sdf: sdf1 sdf2
[   11.962694] sd 2:0:0:0: [sdf] Attached SCSI disk
[   12.300035] ata6: SATA link down (SStatus 0 SControl 300)
[   12.462166] EXT4-fs (sdf1): INFO: recovery required on readonly filesystem
[   12.462176] EXT4-fs (sdf1): write access will be enabled during recovery
[   12.507173] EXT4-fs (sdf1): recovery complete
[   12.507429] EXT4-fs (sdf1): mounted filesystem with ordered data mode
[   16.095233] udev: starting version 151
[   16.157763] agpgart-intel 0000:00:00.0: Intel IGD Chipset
[   16.158170] agpgart-intel 0000:00:00.0: detected 8188K stolen memory
[   16.174205] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xe0000000
[   16.175406] lp: driver loaded but no devices found
[   16.325386] [drm] Initialized drm 1.1.0 20060810
[   16.365337] parport_pc 00:08: reported by Plug and Play ACPI
[   16.365408] parport0: PC-style at 0x378, irq 7 [PCSPP]
[   16.442672] type=1505 audit(1309451178.080:2):  operation="profile_load" pid=504 name="/sbin/dhclient3"
[   16.443546] type=1505 audit(1309451178.080:3):  operation="profile_load" pid=504 name="/usr/lib/NetworkManager/nm-dhcp-client.action"
[   16.444103] type=1505 audit(1309451178.080:4):  operation="profile_load" pid=504 name="/usr/lib/connman/scripts/dhclient-script"
[   16.444341] lp0: using parport0 (interrupt-driven).
[   16.477145] type=1505 audit(1309451178.110:5):  operation="profile_load" pid=579 name="/usr/sbin/ntpd"
[   16.638979] pci 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   16.638992] pci 0000:00:02.0: setting latency timer to 64
[   16.681503] ppdev: user-space parallel port driver
[   16.688167]   alloc irq_desc for 30 on node -1
[   16.688175]   alloc kstat_irqs on node -1
[   16.688197] pci 0000:00:02.0: irq 30 for MSI/MSI-X
[   16.689350] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[   16.698628] vga16fb: initializing
[   16.698642] vga16fb: mapped to 0xffff8800000a0000
[   16.699123] fb0: VGA16 VGA frame buffer device
[   16.787391] r8169: eth0: link up
[   16.787404] r8169: eth0: link up
[   16.880165] Console: switching to colour frame buffer device 80x30
[   17.133529]   alloc irq_desc for 22 on node -1
[   17.133539]   alloc kstat_irqs on node -1
[   17.133559] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[   17.133644] HDA Intel 0000:00:1b.0: setting latency timer to 64
[   17.227825] type=1505 audit(1309451178.860:6):  operation="profile_load" pid=899 name="/usr/share/gdm/guest-session/Xsession"
[   17.231057] type=1505 audit(1309451178.860:7):  operation="profile_replace" pid=900 name="/sbin/dhclient3"
[   17.231678] type=1505 audit(1309451178.860:8):  operation="profile_replace" pid=900 name="/usr/lib/NetworkManager/nm-dhcp-client.action"
[   17.231970] type=1505 audit(1309451178.860:9):  operation="profile_replace" pid=900 name="/usr/lib/connman/scripts/dhclient-script"
[   17.237602] type=1505 audit(1309451178.870:10):  operation="profile_load" pid=901 name="/usr/bin/evince"
[   17.244718] type=1505 audit(1309451178.880:11):  operation="profile_load" pid=901 name="/usr/bin/evince-previewer"
[   17.293714] hda_codec: ALC662 rev1: BIOS auto-probing.
[   17.295479] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input5
[   17.509763] RPC: Registered udp transport module.
[   17.509772] RPC: Registered tcp transport module.
[   17.509778] RPC: Registered tcp NFSv4.1 backchannel transport module.

>From kern.log after turning off bay before patch:

Jun 30 09:27:05 HR-NETSWAP kernel: [   63.691846] ata1.03: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xf
Jun 30 09:27:05 HR-NETSWAP kernel: [   63.703423] ata1.03: SError: { PHYRdyChg DevExch }
Jun 30 09:27:05 HR-NETSWAP kernel: [   63.709248] ata1.03: hard resetting link
Jun 30 09:27:06 HR-NETSWAP kernel: [   64.450399] ata1.03: SATA link down (SStatus 0 SControl 320)
Jun 30 09:27:11 HR-NETSWAP kernel: [   69.450022] ata1.03: hard resetting link
Jun 30 09:27:11 HR-NETSWAP kernel: [   69.800421] ata1.03: SATA link down (SStatus 0 SControl 320)
Jun 30 09:27:11 HR-NETSWAP kernel: [   69.800563] ata1.03: limiting SATA link speed to 1.5 Gbps
Jun 30 09:27:16 HR-NETSWAP kernel: [   74.800066] ata1.03: hard resetting link
Jun 30 09:27:16 HR-NETSWAP kernel: [   75.150392] ata1.03: SATA link down (SStatus 0 SControl 310)
Jun 30 09:27:16 HR-NETSWAP kernel: [   75.150504] ata1.03: disabled
Jun 30 09:27:16 HR-NETSWAP kernel: [   75.150622] ata1: EH complete
Jun 30 09:27:16 HR-NETSWAP kernel: [   75.150632] ata1.03: detaching (SCSI 0:3:0:0)
Jun 30 09:27:16 HR-NETSWAP kernel: [   75.181719] sd 0:3:0:0: [sdd] Synchronizing SCSI cache
Jun 30 09:27:16 HR-NETSWAP kernel: [   75.182940] sd 0:3:0:0: [sdd] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Jun 30 09:27:16 HR-NETSWAP kernel: [   75.182952] sd 0:3:0:0: [sdd] Stopping disk
Jun 30 09:27:16 HR-NETSWAP kernel: [   75.182990] sd 0:3:0:0: [sdd] START_STOP FAILED
Jun 30 09:27:16 HR-NETSWAP kernel: [   75.182997] sd 0:3:0:0: [sdd] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK

>From kern.log after turning bay on before patch:

Jun 30 09:28:20 HR-NETSWAP kernel: [  139.105594] ata1.03: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
Jun 30 09:28:20 HR-NETSWAP kernel: [  139.111769] ata1.03: SError: { PHYRdyChg CommWake DevExch }
Jun 30 09:28:20 HR-NETSWAP kernel: [  139.118130] ata1.03: hard resetting link
Jun 30 09:28:21 HR-NETSWAP kernel: [  139.951641] ata1.03: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
Jun 30 09:28:21 HR-NETSWAP kernel: [  139.951747] ata1.03: failed to IDENTIFY (I/O error, err_mask=0x11)
Jun 30 09:28:21 HR-NETSWAP kernel: [  139.951756] ata1.15: hard resetting link
Jun 30 09:28:23 HR-NETSWAP kernel: [  142.170048] ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
Jun 30 09:28:23 HR-NETSWAP kernel: [  142.170324] ata1.00: hard resetting link
Jun 30 09:28:24 HR-NETSWAP kernel: [  142.521646] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
Jun 30 09:28:24 HR-NETSWAP kernel: [  142.521692] ata1.01: hard resetting link
Jun 30 09:28:24 HR-NETSWAP kernel: [  142.871638] ata1.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:24 HR-NETSWAP kernel: [  142.871682] ata1.02: hard resetting link
Jun 30 09:28:24 HR-NETSWAP kernel: [  143.220413] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:26 HR-NETSWAP kernel: [  144.950035] ata1.03: hard resetting link
Jun 30 09:28:26 HR-NETSWAP kernel: [  145.300399] ata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:26 HR-NETSWAP kernel: [  145.300444] ata1.04: hard resetting link
Jun 30 09:28:27 HR-NETSWAP kernel: [  145.650410] ata1.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:27 HR-NETSWAP kernel: [  145.650455] ata1.05: hard resetting link
Jun 30 09:28:27 HR-NETSWAP kernel: [  146.000393] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
Jun 30 09:28:27 HR-NETSWAP kernel: [  146.013474] ata1.00: configured for UDMA/100
Jun 30 09:28:27 HR-NETSWAP kernel: [  146.022600] ata1.01: configured for UDMA/100
Jun 30 09:28:27 HR-NETSWAP kernel: [  146.129262] ata1.02: configured for UDMA/100
Jun 30 09:28:27 HR-NETSWAP kernel: [  146.129331] ata1.03: failed to IDENTIFY (I/O error, err_mask=0x11)
Jun 30 09:28:27 HR-NETSWAP kernel: [  146.129341] ata1.15: hard resetting link
Jun 30 09:28:29 HR-NETSWAP kernel: [  148.340049] ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
Jun 30 09:28:29 HR-NETSWAP kernel: [  148.340321] ata1.00: hard resetting link
Jun 30 09:28:30 HR-NETSWAP kernel: [  148.710385] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
Jun 30 09:28:30 HR-NETSWAP kernel: [  148.710431] ata1.01: hard resetting link
Jun 30 09:28:30 HR-NETSWAP kernel: [  149.071617] ata1.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:30 HR-NETSWAP kernel: [  149.071661] ata1.02: hard resetting link
Jun 30 09:28:31 HR-NETSWAP kernel: [  149.441636] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:31 HR-NETSWAP kernel: [  150.300034] ata1.03: hard resetting link
Jun 30 09:28:32 HR-NETSWAP kernel: [  150.654706] ata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:32 HR-NETSWAP kernel: [  150.654750] ata1.04: hard resetting link
Jun 30 09:28:32 HR-NETSWAP kernel: [  151.000367] ata1.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:32 HR-NETSWAP kernel: [  151.000409] ata1.05: hard resetting link
Jun 30 09:28:32 HR-NETSWAP kernel: [  151.350388] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
Jun 30 09:28:33 HR-NETSWAP kernel: [  151.363470] ata1.00: configured for UDMA/100
Jun 30 09:28:33 HR-NETSWAP kernel: [  151.373200] ata1.01: configured for UDMA/100
Jun 30 09:28:33 HR-NETSWAP kernel: [  151.460635] ata1.02: configured for UDMA/100
Jun 30 09:28:33 HR-NETSWAP kernel: [  151.460701] ata1.03: failed to IDENTIFY (I/O error, err_mask=0x11)
Jun 30 09:28:33 HR-NETSWAP kernel: [  151.460709] ata1.03: failed to recover link after 3 tries, disabling
Jun 30 09:28:33 HR-NETSWAP kernel: [  151.460717] ata1.15: hard resetting link
Jun 30 09:28:35 HR-NETSWAP kernel: [  153.684422] ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
Jun 30 09:28:35 HR-NETSWAP kernel: [  154.034292] ata1.00: hard resetting link
Jun 30 09:28:36 HR-NETSWAP kernel: [  154.380389] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
Jun 30 09:28:36 HR-NETSWAP kernel: [  154.380433] ata1.01: hard resetting link
Jun 30 09:28:36 HR-NETSWAP kernel: [  154.734289] ata1.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:36 HR-NETSWAP kernel: [  154.734333] ata1.02: hard resetting link
Jun 30 09:28:36 HR-NETSWAP kernel: [  155.070389] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:37 HR-NETSWAP kernel: [  156.000035] ata1.04: hard resetting link
Jun 30 09:28:37 HR-NETSWAP kernel: [  156.354373] ata1.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 09:28:37 HR-NETSWAP kernel: [  156.354419] ata1.05: hard resetting link
Jun 30 09:28:38 HR-NETSWAP kernel: [  156.700389] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
Jun 30 09:28:38 HR-NETSWAP kernel: [  156.713473] ata1.00: configured for UDMA/100
Jun 30 09:28:38 HR-NETSWAP kernel: [  156.722797] ata1.01: configured for UDMA/100
Jun 30 09:28:38 HR-NETSWAP kernel: [  156.817016] ata1.02: configured for UDMA/100
Jun 30 09:28:38 HR-NETSWAP kernel: [  156.819785] ata1.04: configured for UDMA/100
Jun 30 09:28:38 HR-NETSWAP kernel: [  156.819871] ata1: EH complete

>From kern.log after turning bay off after patch (changed ATA_EH_PMP_LINK_TRIES from 3 to 5):

Jun 30 10:01:56 HR-NETSWAP kernel: [   69.805574] ata1.03: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xf
Jun 30 10:01:56 HR-NETSWAP kernel: [   69.814603] ata1.03: SError: { PHYRdyChg DevExch }
Jun 30 10:01:56 HR-NETSWAP kernel: [   69.823948] ata1.03: hard resetting link
Jun 30 10:01:56 HR-NETSWAP kernel: [   69.823969] ata1.03: XXXX hardreset hotplugged = true
Jun 30 10:01:56 HR-NETSWAP kernel: [   69.823976] ata1.03: XXX0 hardreset debounce 25 500 2000
Jun 30 10:01:56 HR-NETSWAP kernel: [   69.823981] ata1.03: XXX1 hardreset debounce 25 500 2000
Jun 30 10:01:57 HR-NETSWAP kernel: [   70.570402] ata1.03: SATA link down (SStatus 0 SControl 320)
Jun 30 10:02:02 HR-NETSWAP kernel: [   75.570028] ata1.03: hard resetting link
Jun 30 10:02:02 HR-NETSWAP kernel: [   75.570051] ata1.03: XXXX hardreset hotplugged = false
Jun 30 10:02:02 HR-NETSWAP kernel: [   75.570057] ata1.03: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:02 HR-NETSWAP kernel: [   75.570062] ata1.03: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:02 HR-NETSWAP kernel: [   75.921656] ata1.03: SATA link down (SStatus 0 SControl 320)
Jun 30 10:02:02 HR-NETSWAP kernel: [   75.921799] ata1.03: limiting SATA link speed to 1.5 Gbps
Jun 30 10:02:07 HR-NETSWAP kernel: [   80.920028] ata1.03: hard resetting link
Jun 30 10:02:07 HR-NETSWAP kernel: [   80.920050] ata1.03: XXXX hardreset hotplugged = false
Jun 30 10:02:07 HR-NETSWAP kernel: [   80.920056] ata1.03: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:07 HR-NETSWAP kernel: [   80.920062] ata1.03: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:07 HR-NETSWAP kernel: [   81.270394] ata1.03: SATA link down (SStatus 0 SControl 310)
Jun 30 10:02:07 HR-NETSWAP kernel: [   81.270507] ata1.03: disabled
Jun 30 10:02:07 HR-NETSWAP kernel: [   81.270627] ata1: EH complete
Jun 30 10:02:07 HR-NETSWAP kernel: [   81.270638] ata1.03: detaching (SCSI 0:3:0:0)
Jun 30 10:02:07 HR-NETSWAP kernel: [   81.300423] sd 0:3:0:0: [sdd] Synchronizing SCSI cache
Jun 30 10:02:07 HR-NETSWAP kernel: [   81.300587] sd 0:3:0:0: [sdd] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Jun 30 10:02:07 HR-NETSWAP kernel: [   81.300601] sd 0:3:0:0: [sdd] Stopping disk
Jun 30 10:02:07 HR-NETSWAP kernel: [   81.300642] sd 0:3:0:0: [sdd] START_STOP FAILED
Jun 30 10:02:07 HR-NETSWAP kernel: [   81.300649] sd 0:3:0:0: [sdd] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK

>From kern.log after turning bay on after patch  (changed ATA_EH_PMP_LINK_TRIES from 3 to 5):

Jun 30 10:02:16 HR-NETSWAP kernel: [   90.353682] ata1.03: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
Jun 30 10:02:16 HR-NETSWAP kernel: [   90.365393] ata1.03: SError: { PHYRdyChg CommWake DevExch }
Jun 30 10:02:16 HR-NETSWAP kernel: [   90.377061] ata1.03: hard resetting link
Jun 30 10:02:16 HR-NETSWAP kernel: [   90.377083] ata1.03: XXXX hardreset hotplugged = true
Jun 30 10:02:16 HR-NETSWAP kernel: [   90.377089] ata1.03: XXX0 hardreset debounce 25 500 2000
Jun 30 10:02:16 HR-NETSWAP kernel: [   90.377094] ata1.03: XXX1 hardreset debounce 25 500 2000
Jun 30 10:02:17 HR-NETSWAP kernel: [   91.120398] ata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
Jun 30 10:02:17 HR-NETSWAP kernel: [   91.120506] ata1.03: failed to IDENTIFY (I/O error, err_mask=0x11)
Jun 30 10:02:17 HR-NETSWAP kernel: [   91.120516] ata1.15: hard resetting link
Jun 30 10:02:19 HR-NETSWAP kernel: [   93.340047] ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
Jun 30 10:02:19 HR-NETSWAP kernel: [   93.340329] ata1.00: hard resetting link
Jun 30 10:02:19 HR-NETSWAP kernel: [   93.340349] ata1.00: XXXX hardreset hotplugged = false
Jun 30 10:02:19 HR-NETSWAP kernel: [   93.340355] ata1.00: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:19 HR-NETSWAP kernel: [   93.340360] ata1.00: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:20 HR-NETSWAP kernel: [   93.690395] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
Jun 30 10:02:20 HR-NETSWAP kernel: [   93.690440] ata1.01: hard resetting link
Jun 30 10:02:20 HR-NETSWAP kernel: [   93.690460] ata1.01: XXXX hardreset hotplugged = false
Jun 30 10:02:20 HR-NETSWAP kernel: [   93.690465] ata1.01: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:20 HR-NETSWAP kernel: [   93.690471] ata1.01: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:20 HR-NETSWAP kernel: [   94.040391] ata1.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:20 HR-NETSWAP kernel: [   94.040436] ata1.02: hard resetting link
Jun 30 10:02:20 HR-NETSWAP kernel: [   94.040456] ata1.02: XXXX hardreset hotplugged = false
Jun 30 10:02:20 HR-NETSWAP kernel: [   94.040461] ata1.02: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:20 HR-NETSWAP kernel: [   94.040467] ata1.02: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:21 HR-NETSWAP kernel: [   94.390453] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:22 HR-NETSWAP kernel: [   96.120024] ata1.03: hard resetting link
Jun 30 10:02:22 HR-NETSWAP kernel: [   96.120046] ata1.03: XXXX hardreset hotplugged = false
Jun 30 10:02:22 HR-NETSWAP kernel: [   96.120052] ata1.03: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:22 HR-NETSWAP kernel: [   96.120058] ata1.03: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.470398] ata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.470446] ata1.04: hard resetting link
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.470467] ata1.04: XXXX hardreset hotplugged = false
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.470472] ata1.04: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.470478] ata1.04: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.821674] ata1.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.821720] ata1.05: hard resetting link
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.821744] ata1.05: XXXX hardreset hotplugged = false
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.821750] ata1.05: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:23 HR-NETSWAP kernel: [   96.821756] ata1.05: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:23 HR-NETSWAP kernel: [   97.170399] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
Jun 30 10:02:23 HR-NETSWAP kernel: [   97.183479] ata1.00: configured for UDMA/100
Jun 30 10:02:23 HR-NETSWAP kernel: [   97.192728] ata1.01: configured for UDMA/100
Jun 30 10:02:23 HR-NETSWAP kernel: [   97.298289] ata1.02: configured for UDMA/100
Jun 30 10:02:23 HR-NETSWAP kernel: [   97.298356] ata1.03: failed to IDENTIFY (I/O error, err_mask=0x11)
Jun 30 10:02:23 HR-NETSWAP kernel: [   97.298366] ata1.15: hard resetting link
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510055] ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510330] ata1.00: hard resetting link
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510350] ata1.00: XXXX hardreset hotplugged = false
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510356] ata1.00: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510361] ata1.00: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.860387] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.860430] ata1.01: hard resetting link
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.860450] ata1.01: XXXX hardreset hotplugged = false
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.860455] ata1.01: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:26 HR-NETSWAP kernel: [   99.860461] ata1.01: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:26 HR-NETSWAP kernel: [  100.211693] ata1.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:26 HR-NETSWAP kernel: [  100.211741] ata1.02: hard resetting link
Jun 30 10:02:26 HR-NETSWAP kernel: [  100.211771] ata1.02: XXXX hardreset hotplugged = false
Jun 30 10:02:26 HR-NETSWAP kernel: [  100.211777] ata1.02: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:26 HR-NETSWAP kernel: [  100.211783] ata1.02: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:27 HR-NETSWAP kernel: [  100.560373] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:28 HR-NETSWAP kernel: [  101.470023] ata1.03: hard resetting link
Jun 30 10:02:28 HR-NETSWAP kernel: [  101.470044] ata1.03: XXXX hardreset hotplugged = false
Jun 30 10:02:28 HR-NETSWAP kernel: [  101.470050] ata1.03: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:28 HR-NETSWAP kernel: [  101.470056] ata1.03: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:28 HR-NETSWAP kernel: [  101.820366] ata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:28 HR-NETSWAP kernel: [  101.820409] ata1.04: hard resetting link
Jun 30 10:02:28 HR-NETSWAP kernel: [  101.820428] ata1.04: XXXX hardreset hotplugged = false
Jun 30 10:02:28 HR-NETSWAP kernel: [  101.820434] ata1.04: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:28 HR-NETSWAP kernel: [  101.820439] ata1.04: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:28 HR-NETSWAP kernel: [  102.170367] ata1.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:28 HR-NETSWAP kernel: [  102.170409] ata1.05: hard resetting link
Jun 30 10:02:28 HR-NETSWAP kernel: [  102.170429] ata1.05: XXXX hardreset hotplugged = false
Jun 30 10:02:28 HR-NETSWAP kernel: [  102.170434] ata1.05: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:28 HR-NETSWAP kernel: [  102.170440] ata1.05: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:29 HR-NETSWAP kernel: [  102.521676] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
Jun 30 10:02:29 HR-NETSWAP kernel: [  102.534788] ata1.00: configured for UDMA/100
Jun 30 10:02:29 HR-NETSWAP kernel: [  102.544981] ata1.01: configured for UDMA/100
Jun 30 10:02:29 HR-NETSWAP kernel: [  102.637647] ata1.02: configured for UDMA/100
Jun 30 10:02:29 HR-NETSWAP kernel: [  102.637732] ata1.03: failed to IDENTIFY (I/O error, err_mask=0x11)
Jun 30 10:02:29 HR-NETSWAP kernel: [  102.637744] ata1.15: hard resetting link
Jun 30 10:02:31 HR-NETSWAP kernel: [  104.851295] ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
Jun 30 10:02:31 HR-NETSWAP kernel: [  104.851565] ata1.00: hard resetting link
Jun 30 10:02:31 HR-NETSWAP kernel: [  104.851585] ata1.00: XXXX hardreset hotplugged = false
Jun 30 10:02:31 HR-NETSWAP kernel: [  104.851591] ata1.00: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:31 HR-NETSWAP kernel: [  104.851597] ata1.00: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:31 HR-NETSWAP kernel: [  105.200371] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
Jun 30 10:02:31 HR-NETSWAP kernel: [  105.200414] ata1.01: hard resetting link
Jun 30 10:02:31 HR-NETSWAP kernel: [  105.200434] ata1.01: XXXX hardreset hotplugged = false
Jun 30 10:02:31 HR-NETSWAP kernel: [  105.200440] ata1.01: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:31 HR-NETSWAP kernel: [  105.200446] ata1.01: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:32 HR-NETSWAP kernel: [  105.550374] ata1.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:32 HR-NETSWAP kernel: [  105.550417] ata1.02: hard resetting link
Jun 30 10:02:32 HR-NETSWAP kernel: [  105.550437] ata1.02: XXXX hardreset hotplugged = false
Jun 30 10:02:32 HR-NETSWAP kernel: [  105.550442] ata1.02: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:32 HR-NETSWAP kernel: [  105.550448] ata1.02: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:32 HR-NETSWAP kernel: [  105.901675] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:33 HR-NETSWAP kernel: [  106.821277] ata1.03: hard resetting link
Jun 30 10:02:33 HR-NETSWAP kernel: [  106.821299] ata1.03: XXXX hardreset hotplugged = false
Jun 30 10:02:33 HR-NETSWAP kernel: [  106.821305] ata1.03: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:33 HR-NETSWAP kernel: [  106.821310] ata1.03: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:33 HR-NETSWAP kernel: [  107.170377] ata1.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:33 HR-NETSWAP kernel: [  107.170421] ata1.04: hard resetting link
Jun 30 10:02:33 HR-NETSWAP kernel: [  107.170441] ata1.04: XXXX hardreset hotplugged = false
Jun 30 10:02:33 HR-NETSWAP kernel: [  107.170447] ata1.04: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:33 HR-NETSWAP kernel: [  107.170453] ata1.04: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:34 HR-NETSWAP kernel: [  107.520377] ata1.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 30 10:02:34 HR-NETSWAP kernel: [  107.520420] ata1.05: hard resetting link
Jun 30 10:02:34 HR-NETSWAP kernel: [  107.520440] ata1.05: XXXX hardreset hotplugged = false
Jun 30 10:02:34 HR-NETSWAP kernel: [  107.520446] ata1.05: XXX0 hardreset debounce 5 100 2000
Jun 30 10:02:34 HR-NETSWAP kernel: [  107.520451] ata1.05: XXX1 hardreset debounce 5 100 2000
Jun 30 10:02:34 HR-NETSWAP kernel: [  107.870381] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
Jun 30 10:02:34 HR-NETSWAP kernel: [  107.883447] ata1.00: configured for UDMA/100
Jun 30 10:02:34 HR-NETSWAP kernel: [  107.893209] ata1.01: configured for UDMA/100
Jun 30 10:02:34 HR-NETSWAP kernel: [  107.985315] ata1.02: configured for UDMA/100
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.009122] ata1.03: ATA-8: WDC WD30EZRX-00MMMB0, 80.00A80, max UDMA/133
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.009129] ata1.03: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.014862] ata1.03: configured for UDMA/100
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.017593] ata1.04: configured for UDMA/100
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.017672] ata1: EH complete
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.020238] scsi 0:3:0:0: Direct-Access     ATA      WDC WD30EZRX-00M 80.0 PQ: 0 ANSI: 5
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.020715] sd 0:3:0:0: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.020723] sd 0:3:0:0: [sdd] 4096-byte physical blocks
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.020875] sd 0:3:0:0: [sdd] Write Protect is off
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.020882] sd 0:3:0:0: [sdd] Mode Sense: 00 3a 00 00
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.020953] sd 0:3:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.020999] sd 0:3:0:0: Attached scsi generic sg3 type 0
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.021384]  sdd: sdd1 sdd2
Jun 30 10:02:34 HR-NETSWAP kernel: [  108.072613] sd 0:3:0:0: [sdd] Attached SCSI disk

>From the above we can see it finally connecting on the 4th try.

> * hdparm -I output of the drive.
>

Info for two of the drives that fail regularly:

Drive 1 Western Digital 3TB:

  /dev/sdb:

  ATA device, with non-removable media
  	Model Number:       WDC WD30EZRS-00J99B0                    
  	Serial Number:      WD-WCAWZ0038962
  	Firmware Revision:  80.00A80
	Transport:          Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev     2.6
  Standards:
	Supported: 8 7 6 5 
	Likely used: 8
  Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors: 5860533168
	Logical  Sector size:                   512 bytes
	Physical Sector size:                  4096 bytes
	Logical Sector-0 offset:                  0 bytes
	device size with M = 1024*1024:     2861588 MBytes
	device size with M = 1000*1000:     3000592 MBytes (3000 GB)
	cache/buffer size  = unknown
  Capabilities:
	LBA, IORDY(can be disabled)
	Queue depth: 32
	Standby timer values: spec'd by Standard, with device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 0
	Recommended acoustic management value: 128, current value: 254
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
  Commands/features:
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	Host Protected Area feature set
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	NOP cmd
	   *	DOWNLOAD_MICROCODE
	    	Power-Up In Standby feature set
	   *	SET_FEATURES required to spinup after power up
	    	SET_MAX security extension
	    	Automatic Acoustic Management feature set
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	FLUSH_CACHE_EXT
	   *	SMART error logging
	   *	SMART self-test
	   *	General Purpose Logging feature set
	   *	64-bit World wide name
	   *	{READ,WRITE}_DMA_EXT_GPL commands
	   *	Segmented DOWNLOAD_MICROCODE
	   *	Gen1 signaling speed (1.5Gb/s)
	   *	Gen2 signaling speed (3.0Gb/s)
	   *	Native Command Queueing (NCQ)
	   *	Host-initiated interface power management
	   *	Phy event counters
	   *	NCQ priority information
	    	DMA Setup Auto-Activate optimization
	   *	Software settings preservation
	   *	SMART Command Transport (SCT) feature set
	   *	SCT LBA Segment Access (AC2)
	   *	SCT Features Control (AC4)
	   *	SCT Data Tables (AC5)
	    	unknown 206[12] (vendor specific)
	    	unknown 206[13] (vendor specific)
  Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
		supported: enhanced erase
	508min for SECURITY ERASE UNIT. 508min for ENHANCED SECURITY ERASE UNIT.
  Logical Unit WWN Device Identifier: 50014ee2afe03ed4
	NAA		: 5
	IEEE OUI	: 0014ee
	Unique ID	: 2afe03ed4
  Checksum: correct

Drive 2 Samsung 1.5 TB:
/dev/sda:

  ATA device, with non-removable media
	Model Number:       SAMSUNG HD154UI                         
	Serial Number:      S1XWJ9BB102098      
	Firmware Revision:  1AG01118
  Standards:
	Used: ATA-8-ACS revision 3b 
	Supported: 7 6 5 4 
  Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors: 2930277168
	Logical/Physical Sector size:           512 bytes
	device size with M = 1024*1024:     1430799 MBytes
	device size with M = 1000*1000:     1500301 MBytes (1500 GB)
	cache/buffer size  = unknown
  Capabilities:
	LBA, IORDY(can be disabled)
	Queue depth: 32
	Standby timer values: spec'd by Standard, no device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 0
	Advanced power management level: 254
	Recommended acoustic management value: 254, current value: 0
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6 udma7 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
  Commands/features:
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	Host Protected Area feature set
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	NOP cmd
	   *	DOWNLOAD_MICROCODE
	   *	Advanced Power Management feature set
	    	Power-Up In Standby feature set
	   *	SET_FEATURES required to spinup after power up
	    	SET_MAX security extension
	    	Automatic Acoustic Management feature set
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	FLUSH_CACHE_EXT
	   *	SMART error logging
	   *	SMART self-test
	    	Media Card Pass-Through
	   *	General Purpose Logging feature set
	   *	64-bit World wide name
	   *	WRITE_UNCORRECTABLE_EXT command
	   *	{READ,WRITE}_DMA_EXT_GPL commands
	   *	Segmented DOWNLOAD_MICROCODE
	   *	Gen1 signaling speed (1.5Gb/s)
	   *	Gen2 signaling speed (3.0Gb/s)
	   *	Native Command Queueing (NCQ)
	   *	Host-initiated interface power management
	   *	Phy event counters
	   *	NCQ priority information
	    	DMA Setup Auto-Activate optimization
	    	Device-initiated interface power management
	   *	Software settings preservation
	   *	SMART Command Transport (SCT) feature set
	   *	SCT Long Sector Access (AC1)
	   *	SCT LBA Segment Access (AC2)
	   *	SCT Error Recovery Control (AC3)
	   *	SCT Features Control (AC4)
	   *	SCT Data Tables (AC5)
  Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
		supported: enhanced erase
	324min for SECURITY ERASE UNIT. 324min for ENHANCED SECURITY ERASE UNIT.
  Logical Unit WWN Device Identifier: 50024e92046e42ff
	NAA		: 5
	IEEE OUI	: 0024e9
	Unique ID	: 2046e42ff
  Checksum: correct
 
> Thanks.
> 

If need more info or want me to do more tests please let me know.

Thanks.

Derry Bryson
Sr. Software Engineer 

Highly Reliable Systems
www.High-Rely.com
"Making Backup Invisible"

Phone: 775.329.5139 X129
Fax:     775.370.1001

Sales & Support: 877.384.6838

This e-mail and any files transmitted with it are the property of Highly Reliable Systems, Inc. This (email) information is confidential, and is intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, disclosure, retention, dissemination, forwarding, printing, distribution or copying of this e-mail is strictly prohibited.




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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-06-30 17:53   ` Problem w/ hotplug on sata_sil24 w/ PMP (sil3726) Derry Bryson
@ 2011-07-12 15:01     ` tj
  2011-07-12 19:21       ` Derry Bryson
  0 siblings, 1 reply; 48+ messages in thread
From: tj @ 2011-07-12 15:01 UTC (permalink / raw)
  To: Derry Bryson; +Cc: linux-ide

Sorry about the long delay.

On Thu, Jun 30, 2011 at 05:53:32PM +0000, Derry Bryson wrote:
> I have included info from kern.log below showing turning the bay on and off before and
> after I patched the kernel.

kern.log tends to be too cluttered with extra timestamps.  Can you
please use 'dmesg -c' after each phase of testing?  printk timestamps
included there should be enough.

> I first applied the patch from your previous email and changed the
> second timing value to 1000 and that makes it work.  It also works
> if you leave the timing values alone and up the retries (i.e
> ATA_EH_PMP_LINK_TRIES) from 3 to 5.  It seems to me the drives are
> taking a long (relatively) time to spin up and either way all we are
> doing is giving it more time to spin up.

That's debouncing timing.  It doesn't have much to do with spinning
up.  Spinning up can take over ten seconds.  PHY is usually ready well
under a sec once power is applied.  The reason why libata stops
waiting during reset is because PHY flickers - it comes up and then
goes out again.  libata EH already debounces to work around these
glitches but it seems this 'flickering' is larger scale than libata
parameters expect.

One suspicion I have is that the PSU in the enclosure isn't stable
enough to maintain PHY state while multiples drives are powering up.
If this is the case, PHYs may keep flickering well over a second which
libata doesn't expect them to.  Beefing up the PSU (or using a second
PSU to power some of the harddrives) and see whether anything changes
would be a good way to test it.

> Is there some way to know it is spinning up and wait for that rather
> than just trying to reset the controller over and over?  Also I
> notice from the kernel log that the 'hotplugged' flag is only set
> the first time it does the hard reset and is then cleared.  If this
> didn't get cleared it may work that way as well.  All of this only
> fixes the problem until an slower drive comes out.

The hotplugged timing is supposed to kick in only once after a hotplug
event as some PHYs tend to take longer time to lock on after hotplug
event.

> From the SMART info on the drives for the WD 3TB that fails the spin
> up value was 188 vs.  a Seagate 160GB that was 87.  I believe these
> values are in milliseconds so we can see that the drive that fails
> takes much longer to spin up.

That's more likely centisecs instead of millisecs.  8.7sec would be
about normal for regular drives.  18.8 isn't too far off for large
ones with more platters.  The more important thing probably is that
the WD 3TB drive is likely to draw much more power than the smaller
one taxing the PSU in the enclosure which could have been designed to
have just enough power for more regular drives.

> Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510350] ata1.00: XXXX hardreset hotplugged = false
> Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510356] ata1.00: XXX0 hardreset debounce 5 100 2000
> Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510361] ata1.00: XXX1 hardreset debounce 5 100 2000

So if you bump the second timing value to 1000, it works without
retrying?  Can you please post kernel log w/ that change?

Thanks.

-- 
tejun

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

* RE: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-12 15:01     ` tj
@ 2011-07-12 19:21       ` Derry Bryson
  2011-07-13 13:34         ` tj
  0 siblings, 1 reply; 48+ messages in thread
From: Derry Bryson @ 2011-07-12 19:21 UTC (permalink / raw)
  To: tj; +Cc: linux-ide



> -----Original Message-----
> From: Tejun Heo [mailto:htejun@gmail.com] On Behalf Of tj@kernel.org
> Sent: Tuesday, July 12, 2011 8:01 AM
> To: Derry Bryson
> Cc: linux-ide@vger.kernel.org
> Subject: Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
> 
> Sorry about the long delay.
> 
> On Thu, Jun 30, 2011 at 05:53:32PM +0000, Derry Bryson wrote:
> > I have included info from kern.log below showing turning the bay on
> and off before and
> > after I patched the kernel.
> 
> kern.log tends to be too cluttered with extra timestamps.  Can you
> please use 'dmesg -c' after each phase of testing?  printk timestamps
> included there should be enough.
>

Will do in the future.
 
> > I first applied the patch from your previous email and changed the
> > second timing value to 1000 and that makes it work.  It also works
> > if you leave the timing values alone and up the retries (i.e
> > ATA_EH_PMP_LINK_TRIES) from 3 to 5.  It seems to me the drives are
> > taking a long (relatively) time to spin up and either way all we are
> > doing is giving it more time to spin up.
> 
> That's debouncing timing.  It doesn't have much to do with spinning
> up.  Spinning up can take over ten seconds.  PHY is usually ready well
> under a sec once power is applied.  The reason why libata stops
> waiting during reset is because PHY flickers - it comes up and then
> goes out again.  libata EH already debounces to work around these
> glitches but it seems this 'flickering' is larger scale than libata
> parameters expect.
> 
> One suspicion I have is that the PSU in the enclosure isn't stable
> enough to maintain PHY state while multiples drives are powering up.
> If this is the case, PHYs may keep flickering well over a second which
> libata doesn't expect them to.  Beefing up the PSU (or using a second
> PSU to power some of the harddrives) and see whether anything changes
> would be a good way to test it.
> 

I doubt it is a PSU issue for a couple of reasons:  1) all drives (5) are
detected properly if I power the unit (external hard drive box, not computer) 
off and on, and 2) it fails the same way with only 1 drive in the unit.

I will, however, try to test with a larger power supply tomorrow.
 
> > Is there some way to know it is spinning up and wait for that rather
> > than just trying to reset the controller over and over?  Also I
> > notice from the kernel log that the 'hotplugged' flag is only set
> > the first time it does the hard reset and is then cleared.  If this
> > didn't get cleared it may work that way as well.  All of this only
> > fixes the problem until an slower drive comes out.
> 
> The hotplugged timing is supposed to kick in only once after a hotplug
> event as some PHYs tend to take longer time to lock on after hotplug
> event.
> 
> > From the SMART info on the drives for the WD 3TB that fails the spin
> > up value was 188 vs.  a Seagate 160GB that was 87.  I believe these
> > values are in milliseconds so we can see that the drive that fails
> > takes much longer to spin up.
> 
> That's more likely centisecs instead of millisecs.  8.7sec would be
> about normal for regular drives.  18.8 isn't too far off for large
> ones with more platters.  The more important thing probably is that
> the WD 3TB drive is likely to draw much more power than the smaller
> one taxing the PSU in the enclosure which could have been designed to
> have just enough power for more regular drives.
> 
> > Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510350] ata1.00: XXXX
> hardreset hotplugged = false
> > Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510356] ata1.00: XXX0
> hardreset debounce 5 100 2000
> > Jun 30 10:02:26 HR-NETSWAP kernel: [   99.510361] ata1.00: XXX1
> hardreset debounce 5 100 2000
> 
> So if you bump the second timing value to 1000, it works without
> retrying?  Can you please post kernel log w/ that change?
>

No, bumping the second timing value to 1000 does not cause it to
work without retrying.  Even bumping it up to 10000 does not work
without retries (only bumping to 10000 on the first hotplug reset).  
Upping the number of retries to 5 without changing
any timing works (on the 4th try) and changing the second timing 
value to 1000 without changing the number of retries works.  It 
works if we try long enough (i.e. enough times or longer each time).

Below are logs from hotplugging a Samsung 160GB and a WD 3TB drives
with a kernel with stock timing values but retries changed from 3
to 5 with only the one drive installed.

160GB Samsung:

[  363.846588] ata5.00: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[  363.856174] ata5.00: SError: { PHYRdyChg CommWake DevExch }
[  363.865884] ata5.00: hard resetting link
[  364.610400] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  364.610506] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
[  364.610515] ata5.15: hard resetting link
[  366.830050] ata5.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  369.610115] ata5.00: hard resetting link
[  369.960400] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  369.960446] ata5.01: hard resetting link
[  370.310393] ata5.01: SATA link down (SStatus 0 SControl 320)
[  370.310468] ata5.02: hard resetting link
[  370.660390] ata5.02: SATA link down (SStatus 0 SControl 320)
[  370.660467] ata5.03: hard resetting link
[  371.010405] ata5.03: SATA link down (SStatus 0 SControl 320)
[  371.010482] ata5.04: hard resetting link
[  371.360395] ata5.04: SATA link down (SStatus 0 SControl 320)
[  371.360471] ata5.05: hard resetting link
[  371.710398] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  371.754495] ata5.00: ATA-7: ST3160815AS, 4.AAB, max UDMA/133
[  371.754503] ata5.00: 312581808 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  371.812838] ata5.00: configured for UDMA/100
[  371.812925] ata5: EH complete
[  371.813118] scsi 2:0:0:0: Direct-Access     ATA      ST3160815AS      4.AA PQ: 0 ANSI: 5
[  371.813561] sd 2:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[  371.813583] sd 2:0:0:0: Attached scsi generic sg1 type 0
[  371.813732] sd 2:0:0:0: [sdb] Write Protect is off
[  371.813739] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  371.813810] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  371.814219]  sdb: sdb1
[  371.861659] sd 2:0:0:0: [sdb] Attached SCSI disk
 
3TB WD:

[ 1359.196664] ata5.00: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[ 1359.206398] ata5.00: SError: { PHYRdyChg CommWake DevExch }
[ 1359.216282] ata5.00: hard resetting link
[ 1359.960533] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[ 1359.960664] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
[ 1359.960673] ata5.15: hard resetting link
[ 1362.180058] ata5.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[ 1364.960050] ata5.00: hard resetting link
[ 1365.320463] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[ 1365.320513] ata5.01: hard resetting link
[ 1365.670458] ata5.01: SATA link down (SStatus 0 SControl 320)
[ 1365.670536] ata5.02: hard resetting link
[ 1366.020447] ata5.02: SATA link down (SStatus 0 SControl 320)
[ 1366.020531] ata5.03: hard resetting link
[ 1366.370447] ata5.03: SATA link down (SStatus 0 SControl 320)
[ 1366.370529] ata5.04: hard resetting link
[ 1366.720449] ata5.04: SATA link down (SStatus 0 SControl 320)
[ 1366.720532] ata5.05: hard resetting link
[ 1367.071698] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[ 1367.071811] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
[ 1367.071821] ata5.15: hard resetting link
[ 1369.290060] ata5.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[ 1370.320045] ata5.00: hard resetting link
[ 1370.670447] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[ 1372.070031] ata5.05: hard resetting link
[ 1372.420462] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[ 1372.420576] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
[ 1372.420585] ata5.15: hard resetting link
[ 1374.640051] ata5.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[ 1375.670038] ata5.00: hard resetting link
[ 1376.020452] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[ 1376.020500] ata5.01: hard resetting link
[ 1376.370454] ata5.01: SATA link down (SStatus 0 SControl 320)
[ 1376.370535] ata5.02: hard resetting link
[ 1376.730451] ata5.02: SATA link down (SStatus 0 SControl 320)
[ 1376.730530] ata5.03: hard resetting link
[ 1377.080467] ata5.03: SATA link down (SStatus 0 SControl 320)
[ 1377.080545] ata5.04: hard resetting link
[ 1377.430455] ata5.04: SATA link down (SStatus 0 SControl 320)
[ 1377.430538] ata5.05: hard resetting link
[ 1377.780454] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[ 1377.804656] ata5.00: ATA-8: WDC WD30EZRX-00MMMB0, 80.00A80, max UDMA/133
[ 1377.804664] ata5.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 1377.812240] ata5.00: configured for UDMA/100
[ 1377.812332] ata5: EH complete
[ 1377.812529] scsi 4:0:0:0: Direct-Access     ATA      WDC WD30EZRX-00M 80.0 PQ: 0 ANSI: 5
[ 1377.813010] sd 4:0:0:0: Attached scsi generic sg1 type 0
[ 1377.813029] sd 4:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[ 1377.813047] sd 4:0:0:0: [sdb] 4096-byte physical blocks
[ 1377.813191] sd 4:0:0:0: [sdb] Write Protect is off
[ 1377.813199] sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 1377.813271] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1377.813854]  sdb: sdb1 sdb2
[ 1377.856633] sd 4:0:0:0: [sdb] Attached SCSI disk

Here is a full power up with 5 drives installed showing all drives coming up, just for fun:

[  681.406102] ata5: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xe frozen
[  681.414150] ata5: irq_stat 0x00a00080, device exchanged
[  681.422507] ata5: hard resetting link
[  683.640045] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  683.640317] ata5.15: Port Multiplier 1.1, 0x1095:0x3726 r23, 6 ports, feat 0x1/0x9
[  683.640571] ata5.00: hard resetting link
[  683.990395] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  683.990440] ata5.01: hard resetting link
[  684.340399] ata5.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  684.340444] ata5.02: hard resetting link
[  684.690366] ata5.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  684.690408] ata5.03: hard resetting link
[  685.040398] ata5.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  685.040440] ata5.04: hard resetting link
[  685.390396] ata5.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  685.390440] ata5.05: hard resetting link
[  685.740398] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  685.740504] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
[  685.740514] ata5.15: hard resetting link
[  687.960045] ata5.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  688.990039] ata5.00: hard resetting link
[  689.340400] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  689.340447] ata5.01: hard resetting link
[  689.690371] ata5.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  689.690413] ata5.02: hard resetting link
[  690.040396] ata5.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  690.040441] ata5.03: hard resetting link
[  690.390394] ata5.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  690.390438] ata5.04: hard resetting link
[  690.740392] ata5.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  690.740436] ata5.05: hard resetting link
[  691.090370] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  691.129944] ata5.00: ATA-7: ST3160815AS, 4.AAB, max UDMA/133
[  691.129951] ata5.00: 312581808 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  691.188279] ata5.00: configured for UDMA/100
[  691.188349] ata5.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[  691.188359] ata5.15: hard resetting link
[  693.400046] ata5.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  693.400334] ata5.00: hard resetting link
[  693.750395] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  694.690041] ata5.01: hard resetting link
[  695.040389] ata5.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  695.040432] ata5.02: hard resetting link
[  695.390390] ata5.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  695.390434] ata5.03: hard resetting link
[  695.740410] ata5.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  695.740454] ata5.04: hard resetting link
[  696.090370] ata5.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  696.090412] ata5.05: hard resetting link
[  696.440402] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  696.528113] ata5.00: configured for UDMA/100
[  696.528182] ata5.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[  696.528191] ata5.15: hard resetting link
[  698.740047] ata5.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  698.740324] ata5.00: hard resetting link
[  699.090372] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  700.040037] ata5.01: hard resetting link
[  700.390398] ata5.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  700.390444] ata5.02: hard resetting link
[  700.740390] ata5.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  700.740434] ata5.03: hard resetting link
[  701.090372] ata5.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  701.090413] ata5.04: hard resetting link
[  701.440397] ata5.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  701.440442] ata5.05: hard resetting link
[  701.800393] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  701.892633] ata5.00: configured for UDMA/100
[  701.893390] ata5.01: ATA-8: ST33000651AS, CC44, max UDMA/133
[  701.893397] ata5.01: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  701.894287] ata5.01: configured for UDMA/100
[  701.989689] ata5.02: ATA-8: WDC WD30EZRX-00MMMB0, 80.00A80, max UDMA/133
[  701.989697] ata5.02: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  701.997716] ata5.02: configured for UDMA/100
[  702.003298] ata5.03: ATA-8: SAMSUNG HD502HJ, 1AJ10001, max UDMA/133
[  702.003305] ata5.03: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  702.009010] ata5.03: configured for UDMA/100
[  702.010263] ata5.04: ATA-8: ST320005XXXX, CC34, max UDMA/133
[  702.010270] ata5.04: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  702.011718] ata5.04: configured for UDMA/100
[  702.011801] ata5: EH complete
[  702.011991] scsi 2:0:0:0: Direct-Access     ATA      ST3160815AS      4.AA PQ: 0 ANSI: 5
[  702.012429] sd 2:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[  702.012445] sd 2:0:0:0: Attached scsi generic sg1 type 0
[  702.012576] sd 2:0:0:0: [sdb] Write Protect is off
[  702.012583] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  702.012666] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  702.013093] scsi 2:1:0:0: Direct-Access     ATA      ST33000651AS     CC44 PQ: 0 ANSI: 5
[  702.013112]  sdb:
[  702.013617] sd 2:1:0:0: Attached scsi generic sg2 type 0
[  702.013657] sd 2:1:0:0: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[  702.013909] sd 2:1:0:0: [sdc] Write Protect is off
[  702.013920] sd 2:1:0:0: [sdc] Mode Sense: 00 3a 00 00
[  702.014006] sd 2:1:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  702.014593]  sdc:
[  702.015383] scsi 2:2:0:0: Direct-Access     ATA      WDC WD30EZRX-00M 80.0 PQ: 0 ANSI: 5
[  702.015994] sd 2:2:0:0: Attached scsi generic sg3 type 0
[  702.016399] scsi 2:3:0:0: Direct-Access     ATA      SAMSUNG HD502HJ  1AJ1 PQ: 0 ANSI: 5
[  702.016899] sd 2:3:0:0: Attached scsi generic sg4 type 0
[  702.017521] scsi 2:4:0:0: Direct-Access     ATA      ST320005XXXX     CC34 PQ: 0 ANSI: 5
[  702.018030] sd 2:4:0:0: Attached scsi generic sg5 type 0
[  702.019837] sd 2:2:0:0: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[  702.019847] sd 2:2:0:0: [sdd] 4096-byte physical blocks
[  702.020042] sd 2:2:0:0: [sdd] Write Protect is off
[  702.020062] sd 2:2:0:0: [sdd] Mode Sense: 00 3a 00 00
[  702.020173] sd 2:2:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  702.022614]  sdd:
[  702.024184] sd 2:3:0:0: [sde] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[  702.024378] sd 2:3:0:0: [sde] Write Protect is off
[  702.024388] sd 2:3:0:0: [sde] Mode Sense: 00 3a 00 00
[  702.024482] sd 2:3:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  702.025055]  sde:
[  702.028267] sd 2:4:0:0: [sdf] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[  702.030132] sd 2:4:0:0: [sdf] Write Protect is off
[  702.030146] sd 2:4:0:0: [sdf] Mode Sense: 00 3a 00 00
[  702.030299] sd 2:4:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  702.030853]  sdf: sdb1
[  702.033306]  sde1
[  702.033525] sd 2:0:0:0: [sdb] Attached SCSI disk
[  702.034960] sd 2:3:0:0: [sde] Attached SCSI disk
[  702.044906]  sdf1
[  702.080787] sd 2:4:0:0: [sdf] Attached SCSI disk
[  702.081308]  sdd1 sdd2
[  702.082147]  sdc1 sdc2
[  702.083703] sd 2:1:0:0: [sdc] Attached SCSI disk
[  702.083726] sd 2:2:0:0: [sdd] Attached SCSI disk

I don't know what to try next.

Thanks,

Derry Bryson
Sr. Software Engineer 

Highly Reliable Systems
www.High-Rely.com
"Making Backup Invisible"

Phone: 775.329.5139 X129
Fax:     775.370.1001

Sales & Support: 877.384.6838

This e-mail and any files transmitted with it are the property of Highly Reliable Systems, Inc. This (email) information is confidential, and is intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, disclosure, retention, dissemination, forwarding, printing, distribution or copying of this e-mail is strictly prohibited.





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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-12 19:21       ` Derry Bryson
@ 2011-07-13 13:34         ` tj
  2011-07-13 14:39           ` tj
  0 siblings, 1 reply; 48+ messages in thread
From: tj @ 2011-07-13 13:34 UTC (permalink / raw)
  To: Derry Bryson; +Cc: linux-ide

Hello,

On Tue, Jul 12, 2011 at 07:21:17PM +0000, Derry Bryson wrote:
> > One suspicion I have is that the PSU in the enclosure isn't stable
> > enough to maintain PHY state while multiples drives are powering up.
> > If this is the case, PHYs may keep flickering well over a second which
> > libata doesn't expect them to.  Beefing up the PSU (or using a second
> > PSU to power some of the harddrives) and see whether anything changes
> > would be a good way to test it.
> 
> I doubt it is a PSU issue for a couple of reasons:  1) all drives (5) are
> detected properly if I power the unit (external hard drive box, not computer) 
> off and on, and 2) it fails the same way with only 1 drive in the unit.
> 
> I will, however, try to test with a larger power supply tomorrow.

I see.  Yeah, it doesn't seem to be PHY flickering.  It looks like
IDENTIFY is failing before disk finishes spinning up, which isn't the
correct behavior.  SRST is supposed to wait for disk spin up
completion.  I don't know why sil24 softreset is failing without
waiting for spinup.  I'll see whether I can reproduce the problem
here.

Thank you.

-- 
tejun

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-13 13:34         ` tj
@ 2011-07-13 14:39           ` tj
  2011-07-13 16:23             ` Derry Bryson
  0 siblings, 1 reply; 48+ messages in thread
From: tj @ 2011-07-13 14:39 UTC (permalink / raw)
  To: Derry Bryson; +Cc: linux-ide

Hello, again.

On Wed, Jul 13, 2011 at 03:34:25PM +0200, tj@kernel.org wrote:
> I see.  Yeah, it doesn't seem to be PHY flickering.  It looks like
> IDENTIFY is failing before disk finishes spinning up, which isn't the
> correct behavior.  SRST is supposed to wait for disk spin up
> completion.  I don't know why sil24 softreset is failing without
> waiting for spinup.  I'll see whether I can reproduce the problem
> here.

I played with it a bit but couldn't reproduce the problem; however,
PMP EH does lack per-device retry back-off.  On host ports, when
reset/identification fails for whatever reason, retry is backed off
such that even if controller/device interaction is faulty during spin
up, EH always retries after sufficient time is given to the device.
With PMP EH, this logic is missing partly because PMP EH sometimes
already takes too long and partly because tracking the timestamps
seemed a bit complex during the initial implementation.

So, this definitely contributes to why PMP EH fails to work around the
misinteraction between the drive and port and should probably be
improved, but let's also find out why the controller isn't waiting for
the drive after issuing IDENTIFY.  Can you please apply the following
patch, reproduce the problem and report the kernel log?

Thank you.

diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c
index 06c564e..cbd3475 100644
--- a/drivers/ata/sata_sil24.c
+++ b/drivers/ata/sata_sil24.c
@@ -896,6 +896,9 @@ static unsigned int sil24_qc_issue(struct ata_queued_cmd *qc)
 	dma_addr_t paddr;
 	void __iomem *activate;
 
+	if (qc->tf.command == ATA_CMD_ID_ATA)
+		ata_dev_printk(qc->dev, KERN_INFO, "issuing IDENTIFY\n");
+
 	paddr = pp->cmd_block_dma + tag * sizeof(*pp->cmd_block);
 	activate = port + PORT_CMD_ACTIVATE + tag * 8;
 
@@ -1081,9 +1084,12 @@ static void sil24_error_intr(struct ata_port *ap)
 		}
 
 		/* record error info */
-		if (qc)
+		if (qc) {
+			if (qc->tf.command == ATA_CMD_ID_ATA)
+				ata_dev_printk(qc->dev, KERN_INFO, "IDENTIFY failed, irq_stat=%#0x cerr=%u\n",
+					       irq_stat, cerr);
 			qc->err_mask |= err_mask;
-		else
+		} else
 			ehi->err_mask |= err_mask;
 
 		ehi->action |= action;

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

* RE: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-13 14:39           ` tj
@ 2011-07-13 16:23             ` Derry Bryson
  2011-07-14  7:14               ` tj
  0 siblings, 1 reply; 48+ messages in thread
From: Derry Bryson @ 2011-07-13 16:23 UTC (permalink / raw)
  To: tj; +Cc: linux-ide

Hi:

Here is the result after the patch of hotplugging WD 3TB drive (only drive):

[   92.201163] ata1.02: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[   92.210719] ata1.02: SError: { PHYRdyChg CommWake DevExch }
[   92.220365] ata1.02: hard resetting link
[   92.980398] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   92.980449] ata1.02: issuing IDENTIFY
[   92.980476] ata1.02: IDENTIFY failed, irq_stat=0x60002 cerr=4
[   92.980517] ata1.02: failed to IDENTIFY (I/O error, err_mask=0x11)
[   92.980526] ata1.15: hard resetting link
[   95.200045] ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   95.200327] ata1.00: hard resetting link
[   95.640059] ata1.00: link resume succeeded after 1 retries
[   95.760404] ata1.00: SATA link down (SStatus 0 SControl 310)
[   95.760481] ata1.01: hard resetting link
[   96.110392] ata1.01: SATA link down (SStatus 0 SControl 320)
[   97.980042] ata1.02: hard resetting link
[   98.330391] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   98.330437] ata1.03: hard resetting link
[   98.680386] ata1.03: SATA link down (SStatus 0 SControl 320)
[   98.680461] ata1.04: hard resetting link
[   99.030393] ata1.04: SATA link down (SStatus 0 SControl 320)
[   99.030468] ata1.05: hard resetting link
[   99.390388] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[   99.390438] ata1.02: issuing IDENTIFY
[   99.390464] ata1.02: IDENTIFY failed, irq_stat=0x60002 cerr=4
[   99.390506] ata1.02: failed to IDENTIFY (I/O error, err_mask=0x11)
[   99.390515] ata1.15: hard resetting link
[  101.610048] ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  101.610325] ata1.00: hard resetting link
[  102.050070] ata1.00: link resume succeeded after 1 retries
[  102.170389] ata1.00: SATA link down (SStatus 0 SControl 310)
[  102.170466] ata1.01: hard resetting link
[  102.520390] ata1.01: SATA link down (SStatus 0 SControl 320)
[  103.330025] ata1.02: hard resetting link
[  103.680391] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  104.390026] ata1.05: hard resetting link
[  104.740391] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  104.740442] ata1.02: issuing IDENTIFY
[  104.740468] ata1.02: IDENTIFY failed, irq_stat=0x60002 cerr=4
[  104.740510] ata1.02: failed to IDENTIFY (I/O error, err_mask=0x11)
[  104.740518] ata1.15: hard resetting link
[  106.960046] ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  106.960329] ata1.00: hard resetting link
[  107.400059] ata1.00: link resume succeeded after 1 retries
[  107.520397] ata1.00: SATA link down (SStatus 0 SControl 310)
[  107.520472] ata1.01: hard resetting link
[  107.870392] ata1.01: SATA link down (SStatus 0 SControl 320)
[  108.680021] ata1.02: hard resetting link
[  109.030393] ata1.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  109.030439] ata1.03: hard resetting link
[  109.380397] ata1.03: SATA link down (SStatus 0 SControl 320)
[  109.380473] ata1.04: hard resetting link
[  109.730395] ata1.04: SATA link down (SStatus 0 SControl 320)
[  109.741269] ata1.05: hard resetting link
[  110.090393] ata1.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  110.090443] ata1.02: issuing IDENTIFY
[  110.118499] ata1.02: ATA-8: WDC WD30EZRX-00MMMB0, 80.00A80, max UDMA/133
[  110.118506] ata1.02: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  110.118642] ata1.02: issuing IDENTIFY
[  110.123817] ata1.02: configured for UDMA/100
[  110.123904] ata1: EH complete
[  110.124108] scsi 0:2:0:0: Direct-Access     ATA      WDC WD30EZRX-00M 80.0 PQ: 0 ANSI: 5
[  110.124554] sd 0:2:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[  110.124578] sd 0:2:0:0: Attached scsi generic sg0 type 0
[  110.124596] sd 0:2:0:0: [sda] 4096-byte physical blocks
[  110.124735] sd 0:2:0:0: [sda] Write Protect is off
[  110.124742] sd 0:2:0:0: [sda] Mode Sense: 00 3a 00 00
[  110.124813] sd 0:2:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  110.125220]  sda: sda1 sda2
[  110.170313] sd 0:2:0:0: [sda] Attached SCSI disk
[  110.172439] ata1.02: issuing IDENTIFY
[  110.250997] ata1.02: issuing IDENTIFY
[  110.274885] ata1.02: issuing IDENTIFY

> -----Original Message-----
> From: Tejun Heo [mailto:htejun@gmail.com] On Behalf Of tj@kernel.org
> Sent: Wednesday, July 13, 2011 7:40 AM
> To: Derry Bryson
> Cc: linux-ide@vger.kernel.org
> Subject: Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
> 
> Hello, again.
> 
> On Wed, Jul 13, 2011 at 03:34:25PM +0200, tj@kernel.org wrote:
> > I see.  Yeah, it doesn't seem to be PHY flickering.  It looks like
> > IDENTIFY is failing before disk finishes spinning up, which isn't the
> > correct behavior.  SRST is supposed to wait for disk spin up
> > completion.  I don't know why sil24 softreset is failing without
> > waiting for spinup.  I'll see whether I can reproduce the problem
> > here.
> 
> I played with it a bit but couldn't reproduce the problem; however,
> PMP EH does lack per-device retry back-off.  On host ports, when
> reset/identification fails for whatever reason, retry is backed off
> such that even if controller/device interaction is faulty during spin
> up, EH always retries after sufficient time is given to the device.
> With PMP EH, this logic is missing partly because PMP EH sometimes
> already takes too long and partly because tracking the timestamps
> seemed a bit complex during the initial implementation.
> 
> So, this definitely contributes to why PMP EH fails to work around the
> misinteraction between the drive and port and should probably be
> improved, but let's also find out why the controller isn't waiting for
> the drive after issuing IDENTIFY.  Can you please apply the following
> patch, reproduce the problem and report the kernel log?
> 
> Thank you.
> 
> diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c
> index 06c564e..cbd3475 100644
> --- a/drivers/ata/sata_sil24.c
> +++ b/drivers/ata/sata_sil24.c
> @@ -896,6 +896,9 @@ static unsigned int sil24_qc_issue(struct
> ata_queued_cmd *qc)
>  	dma_addr_t paddr;
>  	void __iomem *activate;
> 
> +	if (qc->tf.command == ATA_CMD_ID_ATA)
> +		ata_dev_printk(qc->dev, KERN_INFO, "issuing IDENTIFY\n");
> +
>  	paddr = pp->cmd_block_dma + tag * sizeof(*pp->cmd_block);
>  	activate = port + PORT_CMD_ACTIVATE + tag * 8;
> 
> @@ -1081,9 +1084,12 @@ static void sil24_error_intr(struct ata_port
> *ap)
>  		}
> 
>  		/* record error info */
> -		if (qc)
> +		if (qc) {
> +			if (qc->tf.command == ATA_CMD_ID_ATA)
> +				ata_dev_printk(qc->dev, KERN_INFO, "IDENTIFY
> failed, irq_stat=%#0x cerr=%u\n",
> +					       irq_stat, cerr);
>  			qc->err_mask |= err_mask;
> -		else
> +		} else
>  			ehi->err_mask |= err_mask;
> 
>  		ehi->action |= action;
> 
> 
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1390 / Virus Database: 1516/3761 - Release Date: 07/12/11


Derry Bryson
Sr. Software Engineer 

Highly Reliable Systems
www.High-Rely.com
"Making Backup Invisible"

Phone: 775.329.5139 X129
Fax:     775.370.1001

Sales & Support: 877.384.6838

This e-mail and any files transmitted with it are the property of Highly Reliable Systems, Inc. This (email) information is confidential, and is intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, disclosure, retention, dissemination, forwarding, printing, distribution or copying of this e-mail is strictly prohibited.





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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-13 16:23             ` Derry Bryson
@ 2011-07-14  7:14               ` tj
  2011-07-14 17:37                 ` Derry Bryson
  0 siblings, 1 reply; 48+ messages in thread
From: tj @ 2011-07-14  7:14 UTC (permalink / raw)
  To: Derry Bryson; +Cc: linux-ide

Hello,

On Wed, Jul 13, 2011 at 04:23:27PM +0000, Derry Bryson wrote:
> [   92.980476] ata1.02: IDENTIFY failed, irq_stat=0x60002 cerr=4

The controller is saying that it failed to transmit command FIS
because PHYRDY state changed, so that is PHY flickering.  Can you
please bump the second debounce timing to 1000 (not only the first one
but always) and see whether the failure pattern changes?

Thanks.

-- 
tejun

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

* RE: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-14  7:14               ` tj
@ 2011-07-14 17:37                 ` Derry Bryson
  2011-07-21  9:00                   ` tj
  0 siblings, 1 reply; 48+ messages in thread
From: Derry Bryson @ 2011-07-14 17:37 UTC (permalink / raw)
  To: tj; +Cc: linux-ide

Hi:

Dmesg with second timing value set to 1000 always, hotplugging WD 3TB drive:

[  139.145917] ata5.00: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[  139.156180] ata5.00: SError: { PHYRdyChg CommWake DevExch }
[  139.166619] ata5.00: hard resetting link
[  139.166639] ata5.00: XXXX hardreset hotplugged = true
[  139.166646] ata5.00: XXX0 hardreset debounce 25 500 2000
[  139.166651] ata5.00: XXX1 hardreset debounce 25 1000 2000
[  140.430401] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  140.430453] ata5.00: issuing IDENTIFY
[  140.430480] ata5.00: IDENTIFY failed, irq_stat=0x60002 cerr=4
[  140.430521] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
[  140.430532] ata5.15: hard resetting link
[  142.650047] ata5.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  145.431276] ata5.00: hard resetting link
[  145.431298] ata5.00: XXXX hardreset hotplugged = false
[  145.431304] ata5.00: XXX0 hardreset debounce 5 100 2000
[  145.431310] ata5.00: XXX1 hardreset debounce 5 1000 2000
[  146.690413] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  146.690461] ata5.01: hard resetting link
[  146.690481] ata5.01: XXXX hardreset hotplugged = false
[  146.690487] ata5.01: XXX0 hardreset debounce 5 100 2000
[  146.690492] ata5.01: XXX1 hardreset debounce 5 1000 2000
[  147.940402] ata5.01: SATA link down (SStatus 0 SControl 320)
[  147.940481] ata5.02: hard resetting link
[  147.940501] ata5.02: XXXX hardreset hotplugged = false
[  147.940507] ata5.02: XXX0 hardreset debounce 5 100 2000
[  147.940513] ata5.02: XXX1 hardreset debounce 5 1000 2000
[  149.190398] ata5.02: SATA link down (SStatus 0 SControl 320)
[  149.190476] ata5.03: hard resetting link
[  149.190497] ata5.03: XXXX hardreset hotplugged = false
[  149.190503] ata5.03: XXX0 hardreset debounce 5 100 2000
[  149.190508] ata5.03: XXX1 hardreset debounce 5 1000 2000
[  150.440399] ata5.03: SATA link down (SStatus 0 SControl 320)
[  150.440478] ata5.04: hard resetting link
[  150.440499] ata5.04: XXXX hardreset hotplugged = false
[  150.440505] ata5.04: XXX0 hardreset debounce 5 100 2000
[  150.440510] ata5.04: XXX1 hardreset debounce 5 1000 2000
[  151.690410] ata5.04: SATA link down (SStatus 0 SControl 320)
[  151.690488] ata5.05: hard resetting link
[  151.690509] ata5.05: XXXX hardreset hotplugged = false
[  151.690515] ata5.05: XXX0 hardreset debounce 5 100 2000
[  151.690520] ata5.05: XXX1 hardreset debounce 5 1000 2000
[  152.940399] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  152.940451] ata5.00: issuing IDENTIFY
[  152.940477] ata5.00: IDENTIFY failed, irq_stat=0x60002 cerr=4
[  152.940518] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
[  152.940529] ata5.15: hard resetting link
[  155.160047] ata5.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  155.160327] ata5.00: hard resetting link
[  155.160347] ata5.00: XXXX hardreset hotplugged = false
[  155.160353] ata5.00: XXX0 hardreset debounce 5 100 2000
[  155.160358] ata5.00: XXX1 hardreset debounce 5 1000 2000
[  156.410398] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  157.940026] ata5.05: hard resetting link
[  157.940048] ata5.05: XXXX hardreset hotplugged = false
[  157.940054] ata5.05: XXX0 hardreset debounce 5 100 2000
[  157.940059] ata5.05: XXX1 hardreset debounce 5 1000 2000
[  159.190398] ata5.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  159.190450] ata5.00: issuing IDENTIFY
[  159.199553] ata5.00: ATA-8: WDC WD30EZRX-00MMMB0, 80.00A80, max UDMA/133
[  159.199560] ata5.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  159.199702] ata5.00: issuing IDENTIFY
[  159.205571] ata5.00: configured for UDMA/100
[  159.205661] ata5: EH complete
[  159.205857] scsi 4:0:0:0: Direct-Access     ATA      WDC WD30EZRX-00M 80.0 PQ: 0 ANSI: 5
[  159.206297] sd 4:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[  159.206305] sd 4:0:0:0: [sdb] 4096-byte physical blocks
[  159.206319] sd 4:0:0:0: Attached scsi generic sg1 type 0
[  159.206440] sd 4:0:0:0: [sdb] Write Protect is off
[  159.206447] sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  159.206519] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  159.206938]  sdb: sdb1 sdb2
[  159.251508] sd 4:0:0:0: [sdb] Attached SCSI disk
[  159.254218] ata5.00: issuing IDENTIFY
[  159.330233] ata5.00: issuing IDENTIFY
[  159.350570] ata5.00: issuing IDENTIFY

> -----Original Message-----
> From: Tejun Heo [mailto:htejun@gmail.com] On Behalf Of tj@kernel.org
> Sent: Thursday, July 14, 2011 12:15 AM
> To: Derry Bryson
> Cc: linux-ide@vger.kernel.org
> Subject: Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
> 
> Hello,
> 
> On Wed, Jul 13, 2011 at 04:23:27PM +0000, Derry Bryson wrote:
> > [   92.980476] ata1.02: IDENTIFY failed, irq_stat=0x60002 cerr=4
> 
> The controller is saying that it failed to transmit command FIS
> because PHYRDY state changed, so that is PHY flickering.  Can you
> please bump the second debounce timing to 1000 (not only the first one
> but always) and see whether the failure pattern changes?
> 
> Thanks.
> 
> --
> tejun
> 

Derry Bryson
Sr. Software Engineer 

Highly Reliable Systems
www.High-Rely.com
"Making Backup Invisible"

Phone: 775.329.5139 X129
Fax:     775.370.1001

Sales & Support: 877.384.6838

This e-mail and any files transmitted with it are the property of Highly Reliable Systems, Inc. This (email) information is confidential, and is intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, disclosure, retention, dissemination, forwarding, printing, distribution or copying of this e-mail is strictly prohibited.





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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-14 17:37                 ` Derry Bryson
@ 2011-07-21  9:00                   ` tj
  2011-07-21 16:22                     ` Derry Bryson
  0 siblings, 1 reply; 48+ messages in thread
From: tj @ 2011-07-21  9:00 UTC (permalink / raw)
  To: Derry Bryson; +Cc: linux-ide

On Thu, Jul 14, 2011 at 05:37:37PM +0000, Derry Bryson wrote:
> Hi:
> 
> Dmesg with second timing value set to 1000 always, hotplugging WD 3TB drive:
> 
> [  139.145917] ata5.00: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
> [  139.156180] ata5.00: SError: { PHYRdyChg CommWake DevExch }
> [  139.166619] ata5.00: hard resetting link
> [  140.430401] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
> [  140.430453] ata5.00: issuing IDENTIFY
> [  140.430480] ata5.00: IDENTIFY failed, irq_stat=0x60002 cerr=4
> [  140.430521] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
...
> [  145.431276] ata5.00: hard resetting link
> [  145.431298] ata5.00: XXXX hardreset hotplugged = false
> [  145.431304] ata5.00: XXX0 hardreset debounce 5 100 2000
> [  145.431310] ata5.00: XXX1 hardreset debounce 5 1000 2000
> [  146.690413] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
...
> [  152.940451] ata5.00: issuing IDENTIFY
> [  152.940477] ata5.00: IDENTIFY failed, irq_stat=0x60002 cerr=4
> [  152.940518] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)

So, no change.  Weird.  I think we need to implement retry backoff
properly anyways but am still wondering why probing failure behaves
differently for you.  I'll try with similar drive but maybe it's
difference in PMP firmware?

Thanks.

-- 
tejun

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

* RE: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-21  9:00                   ` tj
@ 2011-07-21 16:22                     ` Derry Bryson
  2011-07-22  9:50                       ` tj
  0 siblings, 1 reply; 48+ messages in thread
From: Derry Bryson @ 2011-07-21 16:22 UTC (permalink / raw)
  To: tj; +Cc: linux-ide

Tejun: 

Here are the specs on the port multiplier board:

Lycom ST-126RM (http://www.lycom.com.tw/)
Sil3726 chip revision 17
EEPROM FW Version: 1.0114

Also there is another problem:  ports that are not connected at power on
are ignored until a port that was connected at power on is hotplugged.  So,
for instance, if I turn the unit on with only a drive on the first port, the
other four ports will not work and I don't even see kernel messages when
hotplugging until I hotplug the first port.  I haven't looked into this yet,
but it would seem the driver must be disabling the ports and they are not
looked at again until the hard reset is performed.

Let me know if I can help in any way.

Thanks,

Derry Bryson
Sr. Software Engineer 

Highly Reliable Systems
www.High-Rely.com
"Making Backup Invisible"

Phone: 775.329.5139 X129
Fax:     775.370.1001

Sales & Support: 877.384.6838

This e-mail and any files transmitted with it are the property of Highly Reliable Systems, Inc. This (email) information is confidential, and is intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, disclosure, retention, dissemination, forwarding, printing, distribution or copying of this e-mail is strictly prohibited.

> -----Original Message-----
> From: Tejun Heo [mailto:htejun@gmail.com] On Behalf Of tj@kernel.org
> Sent: Thursday, July 21, 2011 2:00 AM
> To: Derry Bryson
> Cc: linux-ide@vger.kernel.org
> Subject: Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
> 
> On Thu, Jul 14, 2011 at 05:37:37PM +0000, Derry Bryson wrote:
> > Hi:
> >
> > Dmesg with second timing value set to 1000 always, hotplugging WD 3TB
> drive:
> >
> > [  139.145917] ata5.00: exception Emask 0x10 SAct 0x0 SErr 0x4050000
> action 0xf
> > [  139.156180] ata5.00: SError: { PHYRdyChg CommWake DevExch }
> > [  139.166619] ata5.00: hard resetting link
> > [  140.430401] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl
> 320)
> > [  140.430453] ata5.00: issuing IDENTIFY
> > [  140.430480] ata5.00: IDENTIFY failed, irq_stat=0x60002 cerr=4
> > [  140.430521] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
> ...
> > [  145.431276] ata5.00: hard resetting link
> > [  145.431298] ata5.00: XXXX hardreset hotplugged = false
> > [  145.431304] ata5.00: XXX0 hardreset debounce 5 100 2000
> > [  145.431310] ata5.00: XXX1 hardreset debounce 5 1000 2000
> > [  146.690413] ata5.00: SATA link up 3.0 Gbps (SStatus 123 SControl
> 320)
> ...
> > [  152.940451] ata5.00: issuing IDENTIFY
> > [  152.940477] ata5.00: IDENTIFY failed, irq_stat=0x60002 cerr=4
> > [  152.940518] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x11)
> 
> So, no change.  Weird.  I think we need to implement retry backoff
> properly anyways but am still wondering why probing failure behaves
> differently for you.  I'll try with similar drive but maybe it's
> difference in PMP firmware?
> 
> Thanks.
> 
> --
> tejun
> 
> 
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1390 / Virus Database: 1518/3777 - Release Date: 07/20/11


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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-21 16:22                     ` Derry Bryson
@ 2011-07-22  9:50                       ` tj
  2011-07-22 17:29                         ` Derry Bryson
  2011-07-22 19:34                         ` Derry Bryson
  0 siblings, 2 replies; 48+ messages in thread
From: tj @ 2011-07-22  9:50 UTC (permalink / raw)
  To: Derry Bryson; +Cc: linux-ide

Hello,

On Thu, Jul 21, 2011 at 04:22:07PM +0000, Derry Bryson wrote:
> Here are the specs on the port multiplier board:
> 
> Lycom ST-126RM (http://www.lycom.com.tw/)
> Sil3726 chip revision 17
> EEPROM FW Version: 1.0114
> 
> Also there is another problem:  ports that are not connected at power on
> are ignored until a port that was connected at power on is hotplugged.  So,
> for instance, if I turn the unit on with only a drive on the first port, the
> other four ports will not work and I don't even see kernel messages when
> hotplugging until I hotplug the first port.  I haven't looked into this yet,
> but it would seem the driver must be disabling the ports and they are not
> looked at again until the hard reset is performed.

That's most likely the sil pmp itself.  It has been known to show
erratic behavior if the first port is not occupied during power up.  I
don't know whether later firmware updates fixed that tho.  Can you get
hold of a marvell PMP and see how it behaves?

Thanks.

-- 
tejun

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

* RE: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-22  9:50                       ` tj
@ 2011-07-22 17:29                         ` Derry Bryson
  2011-07-22 19:34                         ` Derry Bryson
  1 sibling, 0 replies; 48+ messages in thread
From: Derry Bryson @ 2011-07-22 17:29 UTC (permalink / raw)
  To: tj; +Cc: linux-ide

> -----Original Message-----
> From: Tejun Heo [mailto:htejun@gmail.com] On Behalf Of tj@kernel.org
> Sent: Friday, July 22, 2011 2:51 AM
> To: Derry Bryson
> Cc: linux-ide@vger.kernel.org
> Subject: Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
> 
> Hello,
> 
> On Thu, Jul 21, 2011 at 04:22:07PM +0000, Derry Bryson wrote:
> > Here are the specs on the port multiplier board:
> >
> > Lycom ST-126RM (http://www.lycom.com.tw/)
> > Sil3726 chip revision 17
> > EEPROM FW Version: 1.0114
> >
> > Also there is another problem:  ports that are not connected at power
> on
> > are ignored until a port that was connected at power on is
> hotplugged.  So,
> > for instance, if I turn the unit on with only a drive on the first
> port, the
> > other four ports will not work and I don't even see kernel messages
> when
> > hotplugging until I hotplug the first port.  I haven't looked into
> this yet,
> > but it would seem the driver must be disabling the ports and they are
> not
> > looked at again until the hard reset is performed.
> 
> That's most likely the sil pmp itself.  It has been known to show
> erratic behavior if the first port is not occupied during power up.  I
> don't know whether later firmware updates fixed that tho.  Can you get
> hold of a marvell PMP and see how it behaves?
> 

That may well be a problem, but is not the problem in this case since it
is not limited to port 0.  Seems like the sil driver or pmp code in the kernel
is disabling the ports that are not connected at pmp power on and not looking
at them again until we hotplug one of the ports that was connected and cause
a hard reset or something like that.  

For instance, I turn off the pmp unit and connect drives to
ports 0, 1, and 2 then power on the unit.  Linux sees the pmp unit and finds the
three drives.  Then I connect a drive to port 3 and Linux reports nothing.  No
interrupts, no nothing.  Same with port 4.  However if I connect a drive to
port 3 or 4 (or both) and hotplug the a drive on any of ports 0, 1, or 2 now
the drives are detected after the hard reset.

This hardware works fine under Windows, hotplugging drives and powering the 
unit off and on, etc. using the same Sil3124 eSATA PCI controller.  No problems, 
so I think the hardware is okay.

I don't know of nor have a Marvell PMP, but I do have another Sil3726
PMP board with newer firmware and a board with a JMicron PMP that I am
going to test with. 

Thanks for your help.

Derry Bryson
Sr. Software Engineer 

Highly Reliable Systems
www.High-Rely.com
"Making Backup Invisible"

Phone: 775.329.5139 X129
Fax:     775.370.1001

Sales & Support: 877.384.6838

This e-mail and any files transmitted with it are the property of Highly Reliable Systems, Inc. This (email) information is confidential, and is intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, disclosure, retention, dissemination, forwarding, printing, distribution or copying of this e-mail is strictly prohibited.


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

* RE: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-22  9:50                       ` tj
  2011-07-22 17:29                         ` Derry Bryson
@ 2011-07-22 19:34                         ` Derry Bryson
  2011-07-30 12:54                           ` tj
  1 sibling, 1 reply; 48+ messages in thread
From: Derry Bryson @ 2011-07-22 19:34 UTC (permalink / raw)
  To: tj; +Cc: linux-ide

I did some testing with a PMP board containing a Sil3726 with firmware
Version 1.0124 and a PMP/Raid board with a JMicron 393 configured as
PMP only.  I am connecting to a Sil3124 esata pci controller.  

The Sil3726 board acted the same as the previous Sil3726 board with the 1.0114
firmware.

The JMicron board worked much better.  It works properly with a stock 
kernel and does not fail the IDENTIFY after hotplugging and does
not require retries.  It seems to wait for the drive to spin up before
doing anything so it works properly the first time without retries or
hard resets.  The only problem I saw was that it seemed to not work at
all a couple of times if not powered up/connected before booting Linux.  
Couldn't see it at all, even after several power cycles and unplugging/pluggin
esata cable.  I need  to test this more as it is inconsistent and may 
have to do with the Sil3124 controller rather than the JMicron PMP.

Derry Bryson
Sr. Software Engineer 

Highly Reliable Systems
www.High-Rely.com
"Making Backup Invisible"

Phone: 775.329.5139 X129
Fax:     775.370.1001

Sales & Support: 877.384.6838

This e-mail and any files transmitted with it are the property of Highly Reliable Systems, Inc. This (email) information is confidential, and is intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, disclosure, retention, dissemination, forwarding, printing, distribution or copying of this e-mail is strictly prohibited.



> -----Original Message-----
> From: Tejun Heo [mailto:htejun@gmail.com] On Behalf Of tj@kernel.org
> Sent: Friday, July 22, 2011 2:51 AM
> To: Derry Bryson
> Cc: linux-ide@vger.kernel.org
> Subject: Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
> 
> Hello,
> 
> On Thu, Jul 21, 2011 at 04:22:07PM +0000, Derry Bryson wrote:
> > Here are the specs on the port multiplier board:
> >
> > Lycom ST-126RM (http://www.lycom.com.tw/)
> > Sil3726 chip revision 17
> > EEPROM FW Version: 1.0114
> >
> > Also there is another problem:  ports that are not connected at power
> on
> > are ignored until a port that was connected at power on is
> hotplugged.  So,
> > for instance, if I turn the unit on with only a drive on the first
> port, the
> > other four ports will not work and I don't even see kernel messages
> when
> > hotplugging until I hotplug the first port.  I haven't looked into
> this yet,
> > but it would seem the driver must be disabling the ports and they are
> not
> > looked at again until the hard reset is performed.
> 
> That's most likely the sil pmp itself.  It has been known to show
> erratic behavior if the first port is not occupied during power up.  I
> don't know whether later firmware updates fixed that tho.  Can you get
> hold of a marvell PMP and see how it behaves?
> 
> Thanks.
> 
> --
> tejun
> 
> 
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1390 / Virus Database: 1518/3779 - Release Date: 07/21/11


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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-22 19:34                         ` Derry Bryson
@ 2011-07-30 12:54                           ` tj
  2011-09-30 21:54                             ` Mike I
  0 siblings, 1 reply; 48+ messages in thread
From: tj @ 2011-07-30 12:54 UTC (permalink / raw)
  To: Derry Bryson; +Cc: linux-ide

Hello,

On Fri, Jul 22, 2011 at 07:34:37PM +0000, Derry Bryson wrote:
> I did some testing with a PMP board containing a Sil3726 with firmware
> Version 1.0124 and a PMP/Raid board with a JMicron 393 configured as
> PMP only.  I am connecting to a Sil3124 esata pci controller.  
> 
> The Sil3726 board acted the same as the previous Sil3726 board with the 1.0114
> firmware.
> 
> The JMicron board worked much better.  It works properly with a stock 
> kernel and does not fail the IDENTIFY after hotplugging and does
> not require retries.  It seems to wait for the drive to spin up before
> doing anything so it works properly the first time without retries or
> hard resets.

Interesting, that's the behavior I see w/ my 3726 but all my PMPs are
very old, so I guess it has changed since then.  A bit too lazy to
hook it up to windows machine to check firmware version ATM. :)

> The only problem I saw was that it seemed to not work at all a
> couple of times if not powered up/connected before booting Linux.
> Couldn't see it at all, even after several power cycles and
> unplugging/pluggin esata cable.  I need to test this more as it is
> inconsistent and may have to do with the Sil3124 controller rather
> than the JMicron PMP.

How did that go?

Thanks.

-- 
tejun

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-07-30 12:54                           ` tj
@ 2011-09-30 21:54                             ` Mike I
  2011-10-06  5:48                               ` Gwendal Grignou
  0 siblings, 1 reply; 48+ messages in thread
From: Mike I @ 2011-09-30 21:54 UTC (permalink / raw)
  To: linux-ide

tj <at> kernel.org <tj <at> kernel.org> writes:

> 
> Hello,
> 
> How did that go?
> 
> Thanks.
> 

Like Derry who started this thread, I too had seen an old thread from
October/November 2008 with what appeared to be no resolution to this problem. 
Now, finding this thread, again, with no apparent resolution to this problem.

I'm currently running Ubuntu 10.04 (lucid), kernel 2.6.32-33-generic.  I've no
experience with applying these git patches, and my searching to figure out how
it works have not helped.

I'm using an Addonics eSATA PCI-X controller with the SiI3124 chipset, and I
have an Addonics PM in an external enclosure, with a 5 bay/tray DAS.  Some of
my drives give me this problem: (this occurs for me with pretty much ALL 
Samsung hard drives)
[12888.470308] ata9.01: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[12888.470313] ata9.01: SError: { PHYRdyChg CommWake DevExch }
[12888.470385] ata9.01: hard resetting link
[12889.211597] ata9.01: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[12889.211686] ata9.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[12889.211692] ata9.15: hard resetting link
[12891.430086] ata9.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[12891.430397] ata9.00: hard resetting link
[12891.780786] ata9.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[12894.211103] ata9.01: hard resetting link
[12894.560424] ata9.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[12894.560466] ata9.02: hard resetting link
[12894.914176] ata9.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[12894.914222] ata9.03: hard resetting link
[12895.264141] ata9.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[12895.264169] ata9.04: hard resetting link
[12895.612930] ata9.04: SATA link down (SStatus 0 SControl 320)
[12895.613007] ata9.05: hard resetting link
[12895.964143] ata9.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[12896.065908] ata9.00: configured for UDMA/100
[12896.065970] ata9.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[12896.065977] ata9.15: hard resetting link
[12898.283804] ata9.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[12898.284128] ata9.00: hard resetting link
[12898.634174] ata9.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[12899.562524] ata9.01: hard resetting link
[12899.914147] ata9.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[12899.914180] ata9.02: hard resetting link
[12900.261682] ata9.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[12900.261724] ata9.03: hard resetting link
[12900.610413] ata9.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[12900.961283] ata9.05: hard resetting link
[12901.310385] ata9.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[12901.397241] ata9.00: configured for UDMA/100
[12901.397300] ata9.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[12901.397305] ata9.01: failed to recover link after 3 tries, disabling
[12901.397311] ata9.15: hard resetting link
[12903.613694] ata9.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[12903.960564] ata9.00: hard resetting link
[12904.311125] ata9.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[12905.260154] ata9.02: hard resetting link
[12905.602929] ata9.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[12905.611319] ata9.03: hard resetting link
[12905.962555] ata9.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[12905.962592] ata9.04: hard resetting link
[12906.312931] ata9.04: SATA link down (SStatus 0 SControl 320)
[12906.313004] ata9.05: hard resetting link
[12906.660409] ata9.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[12906.753619] ata9.00: configured for UDMA/100
[12906.766586] ata9.02: configured for UDMA/100
[12906.771917] ata9.03: configured for UDMA/100
[12907.121462] ata9: EH complete

If I hot plug the same drive using a port directly off my mobo(no PM in the
mix), I get this result(drive connects/mounts/works):
[27997.097104] ata5: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 
0xe frozen
[27997.097108] ata5: irq_stat 0x00400040, connection status changed
[27997.097111] ata5: SError: { PHYRdyChg CommWake DevExch }
[27997.097116] ata5: hard resetting link
[28007.147622] ata5: softreset failed (device not ready)
[28007.147627] ata5: hard resetting link
[28010.630028] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[28010.748595] ata5.00: ATA-7: SAMSUNG HD154UI, 1AG01118, max UDMA7
[28010.748599] ata5.00: 2930277168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[28010.755227] ata5.00: configured for UDMA/133
[28010.755237] ata5: EH complete
[28010.756338] scsi 4:0:0:0: Direct-Access     ATA      SAMSUNG HD154UI  1AG0
PQ: 0 ANSI: 5
[28010.756475] sd 4:0:0:0: Attached scsi generic sg10 type 0
[28010.756572] sd 4:0:0:0: [sdj] 2930277168 512-byte logical blocks: (1.50
TB/1.36 TiB)
[28010.756613] sd 4:0:0:0: [sdj] Write Protect is off
[28010.756616] sd 4:0:0:0: [sdj] Mode Sense: 00 3a 00 00
[28010.756636] sd 4:0:0:0: [sdj] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
[28010.756760]  sdj: sdj1
[28010.816161] sd 4:0:0:0: [sdj] Attached SCSI disk

I've been using Ubuntu for a few years now, and have been living with the
problem...working around it with USB docking stations and such.  But, I'd
really hope to see/find this problem worked out.

Thoughts/tips/suggestions?  Since I'm pretty much a novice when it comes to
patching, a link to a guide for git patching would be appreciated too.

Thank You,
Mike


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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-09-30 21:54                             ` Mike I
@ 2011-10-06  5:48                               ` Gwendal Grignou
  2011-10-06  6:03                                 ` [PATCH] libata: Allow SOFT_RESET for Sil3726 Gwendal Grignou
                                                   ` (2 more replies)
  0 siblings, 3 replies; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-06  5:48 UTC (permalink / raw)
  To: Mike I; +Cc: linux-ide

I think I know what is going on. One of your disks at least is slow to
spinup. Due to a bug/feature in silicon image disk controller and pmp,
at bring up we can not issue a SOFT_RESET and wait for the disk to
spinup and then continue.
That why we set ATA_LFLAG_NO_SRST in sata_pmp_quirks().
So what happen is we go into a function that issue identify, but we
fail, the disk is not ready [it is spinning up], so we retry.
3 times.

From the first hard reset: 12888.470385, to the time you got the final
error: 12901.397305 ~ 12.9s
In the second case, your controller can send SOFT_RESET and wait for
the device to respond.
Time for the disk to spinup:
28010.630028 - 27997.097116 ~ 13.5s
As you can see, you are borderline with the PMP, but the controller
did not "wait" enough in the first case.
Given the spinup time varies with drive, age, time since last
spin-up..., it may work one day and fail the next.
To work around the problem, I have a patch that consist of allowing
the silicon image control to send a reset, but if it fails, we spin
for a fixed amount of time and retry. This is not very nice, it is a
better design to wait for event that waiting a fixed amount of time.
You may have to alter ATA_LFLAG_WAIT_SRST to use the first bit available.

Can you try with the following patch?

Thanks,
Gwendal.

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 228740f..b98b02d 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2798,7 +2798,14 @@ int ata_eh_reset(struct ata_link *link, int classify,
     sata_scr_read(link, SCR_STATUS, &sstatus))
  rc = -ERESTART;

- if (rc == -ERESTART || try >= max_tries)
+ if (try >= max_tries)
+ goto out;
+
+ /* Some PMP will not serve SRST until the disk is spunup,
+ * if the controller can not wait for the PMP to acknowledge the frame,
+ * wait here */
+ if (rc == -ERESTART &&
+    !((lflags & ATA_LFLAG_WAIT_SRST) && (reset == softreset)))
  goto out;

  now = jiffies;
@@ -2813,6 +2820,8 @@ int ata_eh_reset(struct ata_link *link, int classify,
  delta = schedule_timeout_uninterruptible(delta);
  }

+ if (rc == -ERESTART)
+ goto out;
  if (try == max_tries - 1) {
  sata_down_spd_limit(link, 0);
  if (slave)
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
index 00305f4..d21ad7d 100644
--- a/drivers/ata/libata-pmp.c
+++ b/drivers/ata/libata-pmp.c
@@ -325,13 +351,11 @@ static void sata_pmp_quirks(struct ata_port *ap)
  if (vendor == 0x1095 && devid == 0x3726) {
  /* sil3726 quirks */
  ata_for_each_link(link, ap, EDGE) {
- /* Class code report is unreliable and SRST
- * times out under certain configurations.
- */
+ /* Class code report is unreliable */
+ /* PMP does not forward SRST until the drive spins up */
  if (link->pmp < 5)
- link->flags |= ATA_LFLAG_NO_SRST |
-       ATA_LFLAG_ASSUME_ATA;
-
+ link->flags |= ATA_LFLAG_ASSUME_ATA |
+       ATA_LFLAG_WAIT_SRST;
  /* port 5 is for SEMB device and it doesn't like SRST */
  if (link->pmp == 5)
  link->flags |= ATA_LFLAG_NO_SRST |
diff --git a/include/linux/libata.h b/include/linux/libata.h
index b2f2003..3a18caa 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -172,6 +172,7 @@ enum {
  ATA_LFLAG_NO_RETRY = (1 << 5), /* don't retry this link */
  ATA_LFLAG_DISABLED = (1 << 6), /* link is disabled */
  ATA_LFLAG_SW_ACTIVITY = (1 << 7), /* keep activity stats */
+ ATA_LFLAG_WAIT_SRST = (1 << 8), /* add delay when SRST fails */

  /* struct ata_port flags */
  ATA_FLAG_SLAVE_POSS = (1 << 0), /* host supports slave dev */


On Fri, Sep 30, 2011 at 2:54 PM, Mike I <mihrcke@gmail.com> wrote:
>
> tj <at> kernel.org <tj <at> kernel.org> writes:
>
> >
> > Hello,
> >
> > How did that go?
> >
> > Thanks.
> >
>
> Like Derry who started this thread, I too had seen an old thread from
> October/November 2008 with what appeared to be no resolution to this problem.
> Now, finding this thread, again, with no apparent resolution to this problem.
>
> I'm currently running Ubuntu 10.04 (lucid), kernel 2.6.32-33-generic.  I've no
> experience with applying these git patches, and my searching to figure out how
> it works have not helped.
>
> I'm using an Addonics eSATA PCI-X controller with the SiI3124 chipset, and I
> have an Addonics PM in an external enclosure, with a 5 bay/tray DAS.  Some of
> my drives give me this problem: (this occurs for me with pretty much ALL
> Samsung hard drives)
> [12888.470308] ata9.01: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
> [12888.470313] ata9.01: SError: { PHYRdyChg CommWake DevExch }
> [12888.470385] ata9.01: hard resetting link
> [12889.211597] ata9.01: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
> [12889.211686] ata9.01: failed to IDENTIFY (I/O error, err_mask=0x11)
> [12889.211692] ata9.15: hard resetting link
> [12891.430086] ata9.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
> [12891.430397] ata9.00: hard resetting link
> [12891.780786] ata9.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
> [12894.211103] ata9.01: hard resetting link
> [12894.560424] ata9.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [12894.560466] ata9.02: hard resetting link
> [12894.914176] ata9.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [12894.914222] ata9.03: hard resetting link
> [12895.264141] ata9.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [12895.264169] ata9.04: hard resetting link
> [12895.612930] ata9.04: SATA link down (SStatus 0 SControl 320)
> [12895.613007] ata9.05: hard resetting link
> [12895.964143] ata9.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
> [12896.065908] ata9.00: configured for UDMA/100
> [12896.065970] ata9.01: failed to IDENTIFY (I/O error, err_mask=0x11)
> [12896.065977] ata9.15: hard resetting link
> [12898.283804] ata9.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
> [12898.284128] ata9.00: hard resetting link
> [12898.634174] ata9.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
> [12899.562524] ata9.01: hard resetting link
> [12899.914147] ata9.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [12899.914180] ata9.02: hard resetting link
> [12900.261682] ata9.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [12900.261724] ata9.03: hard resetting link
> [12900.610413] ata9.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [12900.961283] ata9.05: hard resetting link
> [12901.310385] ata9.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
> [12901.397241] ata9.00: configured for UDMA/100
> [12901.397300] ata9.01: failed to IDENTIFY (I/O error, err_mask=0x11)
> [12901.397305] ata9.01: failed to recover link after 3 tries, disabling
> [12901.397311] ata9.15: hard resetting link
> [12903.613694] ata9.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
> [12903.960564] ata9.00: hard resetting link
> [12904.311125] ata9.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
> [12905.260154] ata9.02: hard resetting link
> [12905.602929] ata9.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [12905.611319] ata9.03: hard resetting link
> [12905.962555] ata9.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [12905.962592] ata9.04: hard resetting link
> [12906.312931] ata9.04: SATA link down (SStatus 0 SControl 320)
> [12906.313004] ata9.05: hard resetting link
> [12906.660409] ata9.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
> [12906.753619] ata9.00: configured for UDMA/100
> [12906.766586] ata9.02: configured for UDMA/100
> [12906.771917] ata9.03: configured for UDMA/100
> [12907.121462] ata9: EH complete
>
> If I hot plug the same drive using a port directly off my mobo(no PM in the
> mix), I get this result(drive connects/mounts/works):
> [27997.097104] ata5: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action
> 0xe frozen
> [27997.097108] ata5: irq_stat 0x00400040, connection status changed
> [27997.097111] ata5: SError: { PHYRdyChg CommWake DevExch }
> [27997.097116] ata5: hard resetting link
> [28007.147622] ata5: softreset failed (device not ready)
> [28007.147627] ata5: hard resetting link
> [28010.630028] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [28010.748595] ata5.00: ATA-7: SAMSUNG HD154UI, 1AG01118, max UDMA7
> [28010.748599] ata5.00: 2930277168 sectors, multi 0: LBA48 NCQ (depth 31/32)
> [28010.755227] ata5.00: configured for UDMA/133
> [28010.755237] ata5: EH complete
> [28010.756338] scsi 4:0:0:0: Direct-Access     ATA      SAMSUNG HD154UI  1AG0
> PQ: 0 ANSI: 5
> [28010.756475] sd 4:0:0:0: Attached scsi generic sg10 type 0
> [28010.756572] sd 4:0:0:0: [sdj] 2930277168 512-byte logical blocks: (1.50
> TB/1.36 TiB)
> [28010.756613] sd 4:0:0:0: [sdj] Write Protect is off
> [28010.756616] sd 4:0:0:0: [sdj] Mode Sense: 00 3a 00 00
> [28010.756636] sd 4:0:0:0: [sdj] Write cache: enabled, read cache: enabled,
> doesn't support DPO or FUA
> [28010.756760]  sdj: sdj1
> [28010.816161] sd 4:0:0:0: [sdj] Attached SCSI disk
>
> I've been using Ubuntu for a few years now, and have been living with the
> problem...working around it with USB docking stations and such.  But, I'd
> really hope to see/find this problem worked out.
>
> Thoughts/tips/suggestions?  Since I'm pretty much a novice when it comes to
> patching, a link to a guide for git patching would be appreciated too.
>
> Thank You,
> Mike
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ide" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH] libata: Allow SOFT_RESET for Sil3726
  2011-10-06  5:48                               ` Gwendal Grignou
@ 2011-10-06  6:03                                 ` Gwendal Grignou
  2011-10-06  8:03                                   ` Tejun Heo
  2011-10-06 10:42                                   ` [PATCH] libata: Allow SOFT_RESET for Sil3726 Sergei Shtylyov
       [not found]                                 ` <CAMHSBOV8rSW3jumpx8URZrgo8w1He9zruP7yAOw7uhQOaAj3Xg@mail.gmail.com>
  2011-10-08 18:25                                 ` Michael Ihrcke
  2 siblings, 2 replies; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-06  6:03 UTC (permalink / raw)
  To: mihrcke; +Cc: linux-ide, Gwendal Grignou

Allow controllers to send SOFT_RESET to Sil3726 PMP.
This PMP does not accept frames until the drive connected to
its port spins up.
Some controller [Sil3132 family] can not wait for the drive to spinup
and fails the reset, leading to unnecessary speed downgrade.

Not allowing to send SOFT_RESET can lead some drive slow to spinup
to be ignored and produces weird error messages.

This fix allows the error handler to wait if the controller is unable
to send a SOFT_RESET.

Change-Id: I7eeea152facb4b76e5c69cfde5ef8188874fbaba

Signed-off-by: Gwendal Grignou <gwendal@google.com>
---
 drivers/ata/libata-eh.c  |   11 ++++++++++-
 drivers/ata/libata-pmp.c |   10 ++++------
 include/linux/libata.h   |    1 +
 3 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 49af350..60223c3 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2805,7 +2805,14 @@ int ata_eh_reset(struct ata_link *link, int classify,
 	    sata_scr_read(link, SCR_STATUS, &sstatus))
 		rc = -ERESTART;
 
-	if (rc == -ERESTART || try >= max_tries)
+	if (try >= max_tries)
+		goto out;
+
+	/* Some PMP will not serve SRST until the disk is spunup,
+	 * if the controller can not wait for the PMP to acknowledge the frame,
+	 * wait here */
+	if (rc == -ERESTART &&
+	    !((lflags & ATA_LFLAG_WAIT_SRST) && (reset == softreset)))
 		goto out;
 
 	now = jiffies;
@@ -2820,6 +2827,8 @@ int ata_eh_reset(struct ata_link *link, int classify,
 			delta = schedule_timeout_uninterruptible(delta);
 	}
 
+	if (rc == -ERESTART)
+		goto out;
 	if (try == max_tries - 1) {
 		sata_down_spd_limit(link, 0);
 		if (slave)
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
index ad0e71d..5fbbe2f 100644
--- a/drivers/ata/libata-pmp.c
+++ b/drivers/ata/libata-pmp.c
@@ -365,13 +365,11 @@ static void sata_pmp_quirks(struct ata_port *ap)
 	if (vendor == 0x1095 && devid == 0x3726) {
 		/* sil3726 quirks */
 		ata_for_each_link(link, ap, EDGE) {
-			/* Class code report is unreliable and SRST
-			 * times out under certain configurations.
-			 */
+			/* Class code report is unreliable */
+			/* PMP does not forward SRST until the drive spins up */
 			if (link->pmp < 5)
-				link->flags |= ATA_LFLAG_NO_SRST |
-					       ATA_LFLAG_ASSUME_ATA;
-
+				link->flags |= ATA_LFLAG_ASSUME_ATA |
+					       ATA_LFLAG_WAIT_SRST;
 			/* port 5 is for SEMB device and it doesn't like SRST */
 			if (link->pmp == 5)
 				link->flags |= ATA_LFLAG_NO_SRST |
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 14b9f50..4577ed2 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -173,6 +173,7 @@ enum {
 	ATA_LFLAG_DISABLED	= (1 << 6), /* link is disabled */
 	ATA_LFLAG_SW_ACTIVITY	= (1 << 7), /* keep activity stats */
 	ATA_LFLAG_PHYOFF        = (1 << 8), /* phy is powered off */
+	ATA_LFLAG_WAIT_SRST	= (1 << 9), /* add delay when SRST fails */
 
 	/* struct ata_port flags */
 	ATA_FLAG_SLAVE_POSS	= (1 << 0), /* host supports slave dev */
-- 
1.7.3.1


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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
       [not found]                                 ` <CAMHSBOV8rSW3jumpx8URZrgo8w1He9zruP7yAOw7uhQOaAj3Xg@mail.gmail.com>
@ 2011-10-06  6:07                                   ` Gwendal Grignou
  0 siblings, 0 replies; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-06  6:07 UTC (permalink / raw)
  To: Mike I; +Cc: linux-ide

Forgot to remove make it plain text, sorry for the spam.

Gwendal.

On Wed, Oct 5, 2011 at 11:05 PM, Gwendal Grignou <gwendal@google.com> wrote:
>
> Forgot gmail is not great to send patches, used git send-email instead.
> Gwendal.
>
> On Wed, Oct 5, 2011 at 10:48 PM, Gwendal Grignou <gwendal@google.com> wrote:
>>
>> I think I know what is going on. One of your disks at least is slow to
>> spinup. Due to a bug/feature in silicon image disk controller and pmp,
>> at bring up we can not issue a SOFT_RESET and wait for the disk to
>> spinup and then continue.
>> That why we set ATA_LFLAG_NO_SRST in sata_pmp_quirks().
>> So what happen is we go into a function that issue identify, but we
>> fail, the disk is not ready [it is spinning up], so we retry.
>> 3 times.
>>
>> From the first hard reset: 12888.470385, to the time you got the final
>> error: 12901.397305 ~ 12.9s
>> In the second case, your controller can send SOFT_RESET and wait for
>> the device to respond.
>> Time for the disk to spinup:
>> 28010.630028 - 27997.097116 ~ 13.5s
>> As you can see, you are borderline with the PMP, but the controller
>> did not "wait" enough in the first case.
>> Given the spinup time varies with drive, age, time since last
>> spin-up..., it may work one day and fail the next.
>> To work around the problem, I have a patch that consist of allowing
>> the silicon image control to send a reset, but if it fails, we spin
>> for a fixed amount of time and retry. This is not very nice, it is a
>> better design to wait for event that waiting a fixed amount of time.
>> You may have to alter ATA_LFLAG_WAIT_SRST to use the first bit available.
>>
>> Can you try with the following patch?
>>
>> Thanks,
>> Gwendal.
>>
>> diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
>> index 228740f..b98b02d 100644
>> --- a/drivers/ata/libata-eh.c
>> +++ b/drivers/ata/libata-eh.c
>> @@ -2798,7 +2798,14 @@ int ata_eh_reset(struct ata_link *link, int classify,
>>      sata_scr_read(link, SCR_STATUS, &sstatus))
>>   rc = -ERESTART;
>>
>> - if (rc == -ERESTART || try >= max_tries)
>> + if (try >= max_tries)
>> + goto out;
>> +
>> + /* Some PMP will not serve SRST until the disk is spunup,
>> + * if the controller can not wait for the PMP to acknowledge the frame,
>> + * wait here */
>> + if (rc == -ERESTART &&
>> +    !((lflags & ATA_LFLAG_WAIT_SRST) && (reset == softreset)))
>>   goto out;
>>
>>   now = jiffies;
>> @@ -2813,6 +2820,8 @@ int ata_eh_reset(struct ata_link *link, int classify,
>>   delta = schedule_timeout_uninterruptible(delta);
>>   }
>>
>> + if (rc == -ERESTART)
>> + goto out;
>>   if (try == max_tries - 1) {
>>   sata_down_spd_limit(link, 0);
>>   if (slave)
>> diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
>> index 00305f4..d21ad7d 100644
>> --- a/drivers/ata/libata-pmp.c
>> +++ b/drivers/ata/libata-pmp.c
>> @@ -325,13 +351,11 @@ static void sata_pmp_quirks(struct ata_port *ap)
>>   if (vendor == 0x1095 && devid == 0x3726) {
>>   /* sil3726 quirks */
>>   ata_for_each_link(link, ap, EDGE) {
>> - /* Class code report is unreliable and SRST
>> - * times out under certain configurations.
>> - */
>> + /* Class code report is unreliable */
>> + /* PMP does not forward SRST until the drive spins up */
>>   if (link->pmp < 5)
>> - link->flags |= ATA_LFLAG_NO_SRST |
>> -       ATA_LFLAG_ASSUME_ATA;
>> -
>> + link->flags |= ATA_LFLAG_ASSUME_ATA |
>> +       ATA_LFLAG_WAIT_SRST;
>>   /* port 5 is for SEMB device and it doesn't like SRST */
>>   if (link->pmp == 5)
>>   link->flags |= ATA_LFLAG_NO_SRST |
>> diff --git a/include/linux/libata.h b/include/linux/libata.h
>> index b2f2003..3a18caa 100644
>> --- a/include/linux/libata.h
>> +++ b/include/linux/libata.h
>> @@ -172,6 +172,7 @@ enum {
>>   ATA_LFLAG_NO_RETRY = (1 << 5), /* don't retry this link */
>>   ATA_LFLAG_DISABLED = (1 << 6), /* link is disabled */
>>   ATA_LFLAG_SW_ACTIVITY = (1 << 7), /* keep activity stats */
>> + ATA_LFLAG_WAIT_SRST = (1 << 8), /* add delay when SRST fails */
>>
>>   /* struct ata_port flags */
>>   ATA_FLAG_SLAVE_POSS = (1 << 0), /* host supports slave dev */
>>
>>
>> On Fri, Sep 30, 2011 at 2:54 PM, Mike I <mihrcke@gmail.com> wrote:
>> >
>> > tj <at> kernel.org <tj <at> kernel.org> writes:
>> >
>> > >
>> > > Hello,
>> > >
>> > > How did that go?
>> > >
>> > > Thanks.
>> > >
>> >
>> > Like Derry who started this thread, I too had seen an old thread from
>> > October/November 2008 with what appeared to be no resolution to this problem.
>> > Now, finding this thread, again, with no apparent resolution to this problem.
>> >
>> > I'm currently running Ubuntu 10.04 (lucid), kernel 2.6.32-33-generic.  I've no
>> > experience with applying these git patches, and my searching to figure out how
>> > it works have not helped.
>> >
>> > I'm using an Addonics eSATA PCI-X controller with the SiI3124 chipset, and I
>> > have an Addonics PM in an external enclosure, with a 5 bay/tray DAS.  Some of
>> > my drives give me this problem: (this occurs for me with pretty much ALL
>> > Samsung hard drives)
>> > [12888.470308] ata9.01: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
>> > [12888.470313] ata9.01: SError: { PHYRdyChg CommWake DevExch }
>> > [12888.470385] ata9.01: hard resetting link
>> > [12889.211597] ata9.01: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
>> > [12889.211686] ata9.01: failed to IDENTIFY (I/O error, err_mask=0x11)
>> > [12889.211692] ata9.15: hard resetting link
>> > [12891.430086] ata9.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
>> > [12891.430397] ata9.00: hard resetting link
>> > [12891.780786] ata9.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
>> > [12894.211103] ata9.01: hard resetting link
>> > [12894.560424] ata9.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> > [12894.560466] ata9.02: hard resetting link
>> > [12894.914176] ata9.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> > [12894.914222] ata9.03: hard resetting link
>> > [12895.264141] ata9.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> > [12895.264169] ata9.04: hard resetting link
>> > [12895.612930] ata9.04: SATA link down (SStatus 0 SControl 320)
>> > [12895.613007] ata9.05: hard resetting link
>> > [12895.964143] ata9.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
>> > [12896.065908] ata9.00: configured for UDMA/100
>> > [12896.065970] ata9.01: failed to IDENTIFY (I/O error, err_mask=0x11)
>> > [12896.065977] ata9.15: hard resetting link
>> > [12898.283804] ata9.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
>> > [12898.284128] ata9.00: hard resetting link
>> > [12898.634174] ata9.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
>> > [12899.562524] ata9.01: hard resetting link
>> > [12899.914147] ata9.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> > [12899.914180] ata9.02: hard resetting link
>> > [12900.261682] ata9.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> > [12900.261724] ata9.03: hard resetting link
>> > [12900.610413] ata9.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> > [12900.961283] ata9.05: hard resetting link
>> > [12901.310385] ata9.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
>> > [12901.397241] ata9.00: configured for UDMA/100
>> > [12901.397300] ata9.01: failed to IDENTIFY (I/O error, err_mask=0x11)
>> > [12901.397305] ata9.01: failed to recover link after 3 tries, disabling
>> > [12901.397311] ata9.15: hard resetting link
>> > [12903.613694] ata9.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
>> > [12903.960564] ata9.00: hard resetting link
>> > [12904.311125] ata9.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
>> > [12905.260154] ata9.02: hard resetting link
>> > [12905.602929] ata9.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> > [12905.611319] ata9.03: hard resetting link
>> > [12905.962555] ata9.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> > [12905.962592] ata9.04: hard resetting link
>> > [12906.312931] ata9.04: SATA link down (SStatus 0 SControl 320)
>> > [12906.313004] ata9.05: hard resetting link
>> > [12906.660409] ata9.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
>> > [12906.753619] ata9.00: configured for UDMA/100
>> > [12906.766586] ata9.02: configured for UDMA/100
>> > [12906.771917] ata9.03: configured for UDMA/100
>> > [12907.121462] ata9: EH complete
>> >
>> > If I hot plug the same drive using a port directly off my mobo(no PM in the
>> > mix), I get this result(drive connects/mounts/works):
>> > [27997.097104] ata5: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action
>> > 0xe frozen
>> > [27997.097108] ata5: irq_stat 0x00400040, connection status changed
>> > [27997.097111] ata5: SError: { PHYRdyChg CommWake DevExch }
>> > [27997.097116] ata5: hard resetting link
>> > [28007.147622] ata5: softreset failed (device not ready)
>> > [28007.147627] ata5: hard resetting link
>> > [28010.630028] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> > [28010.748595] ata5.00: ATA-7: SAMSUNG HD154UI, 1AG01118, max UDMA7
>> > [28010.748599] ata5.00: 2930277168 sectors, multi 0: LBA48 NCQ (depth 31/32)
>> > [28010.755227] ata5.00: configured for UDMA/133
>> > [28010.755237] ata5: EH complete
>> > [28010.756338] scsi 4:0:0:0: Direct-Access     ATA      SAMSUNG HD154UI  1AG0
>> > PQ: 0 ANSI: 5
>> > [28010.756475] sd 4:0:0:0: Attached scsi generic sg10 type 0
>> > [28010.756572] sd 4:0:0:0: [sdj] 2930277168 512-byte logical blocks: (1.50
>> > TB/1.36 TiB)
>> > [28010.756613] sd 4:0:0:0: [sdj] Write Protect is off
>> > [28010.756616] sd 4:0:0:0: [sdj] Mode Sense: 00 3a 00 00
>> > [28010.756636] sd 4:0:0:0: [sdj] Write cache: enabled, read cache: enabled,
>> > doesn't support DPO or FUA
>> > [28010.756760]  sdj: sdj1
>> > [28010.816161] sd 4:0:0:0: [sdj] Attached SCSI disk
>> >
>> > I've been using Ubuntu for a few years now, and have been living with the
>> > problem...working around it with USB docking stations and such.  But, I'd
>> > really hope to see/find this problem worked out.
>> >
>> > Thoughts/tips/suggestions?  Since I'm pretty much a novice when it comes to
>> > patching, a link to a guide for git patching would be appreciated too.
>> >
>> > Thank You,
>> > Mike
>> >
>> > --
>> > To unsubscribe from this list: send the line "unsubscribe linux-ide" in
>> > the body of a message to majordomo@vger.kernel.org
>> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: [PATCH] libata: Allow SOFT_RESET for Sil3726
  2011-10-06  6:03                                 ` [PATCH] libata: Allow SOFT_RESET for Sil3726 Gwendal Grignou
@ 2011-10-06  8:03                                   ` Tejun Heo
  2011-10-06 20:44                                     ` Gwendal Grignou
  2011-10-06 10:42                                   ` [PATCH] libata: Allow SOFT_RESET for Sil3726 Sergei Shtylyov
  1 sibling, 1 reply; 48+ messages in thread
From: Tejun Heo @ 2011-10-06  8:03 UTC (permalink / raw)
  To: Gwendal Grignou; +Cc: mihrcke, linux-ide

Hello, Gwendal.

Which tree is this patch against?

On Wed, Oct 05, 2011 at 11:03:57PM -0700, Gwendal Grignou wrote:
> Allow controllers to send SOFT_RESET to Sil3726 PMP.
> This PMP does not accept frames until the drive connected to
> its port spins up.

Do you mean until the device sets RDY by sending D2H Reg FIS?

> Some controller [Sil3132 family] can not wait for the drive to spinup
> and fails the reset, leading to unnecessary speed downgrade.
> Not allowing to send SOFT_RESET can lead some drive slow to spinup
> to be ignored and produces weird error messages.

Yeap, I agree this is nasty.

> @@ -2805,7 +2805,14 @@ int ata_eh_reset(struct ata_link *link, int classify,
>  	    sata_scr_read(link, SCR_STATUS, &sstatus))
>  		rc = -ERESTART;
>  
> -	if (rc == -ERESTART || try >= max_tries)
> +	if (try >= max_tries)
> +		goto out;
> +
> +	/* Some PMP will not serve SRST until the disk is spunup,
> +	 * if the controller can not wait for the PMP to acknowledge the frame,
> +	 * wait here */
> +	if (rc == -ERESTART &&
> +	    !((lflags & ATA_LFLAG_WAIT_SRST) && (reset == softreset)))
>  		goto out;
>  
>  	now = jiffies;
> @@ -2820,6 +2827,8 @@ int ata_eh_reset(struct ata_link *link, int classify,
>  			delta = schedule_timeout_uninterruptible(delta);
>  	}
>  
> +	if (rc == -ERESTART)
> +		goto out;

So, now libata waits for full reset period before proceeding to reset
PMP.  Hmmm... yeah, it makes sense.  Unfortunately, the only way to
achieve spinup wait in this case is waiting blindly and libata's reset
timeouts are configured to accomodate drive spinup times.  PMP SCR
failure kinda destroys those blind wait periods.

I'm not too sure about ATA_LFLAG_WAIT_SRST.  I don't think making the
new behavior default would hurt.

Can you please post before & after logs?

Thank you.

-- 
tejun

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

* Re: [PATCH] libata: Allow SOFT_RESET for Sil3726
  2011-10-06  6:03                                 ` [PATCH] libata: Allow SOFT_RESET for Sil3726 Gwendal Grignou
  2011-10-06  8:03                                   ` Tejun Heo
@ 2011-10-06 10:42                                   ` Sergei Shtylyov
  1 sibling, 0 replies; 48+ messages in thread
From: Sergei Shtylyov @ 2011-10-06 10:42 UTC (permalink / raw)
  To: Gwendal Grignou; +Cc: mihrcke, linux-ide

Hello.

On 06-10-2011 10:03, Gwendal Grignou wrote:

> Allow controllers to send SOFT_RESET to Sil3726 PMP.
> This PMP does not accept frames until the drive connected to
> its port spins up.
> Some controller [Sil3132 family] can not wait for the drive to spinup
> and fails the reset, leading to unnecessary speed downgrade.

> Not allowing to send SOFT_RESET can lead some drive slow to spinup
> to be ignored and produces weird error messages.

> This fix allows the error handler to wait if the controller is unable
> to send a SOFT_RESET.

> Change-Id: I7eeea152facb4b76e5c69cfde5ef8188874fbaba

    Please get rid of this line, it has no place in the upstream commit.

> Signed-off-by: Gwendal Grignou<gwendal@google.com>
> ---
>   drivers/ata/libata-eh.c  |   11 ++++++++++-
>   drivers/ata/libata-pmp.c |   10 ++++------
>   include/linux/libata.h   |    1 +
>   3 files changed, 15 insertions(+), 7 deletions(-)

> diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
> index 49af350..60223c3 100644
> --- a/drivers/ata/libata-eh.c
> +++ b/drivers/ata/libata-eh.c
> @@ -2805,7 +2805,14 @@ int ata_eh_reset(struct ata_link *link, int classify,
>   	    sata_scr_read(link, SCR_STATUS,&sstatus))
>   		rc = -ERESTART;
>
> -	if (rc == -ERESTART || try>= max_tries)
> +	if (try>= max_tries)
> +		goto out;
> +
> +	/* Some PMP will not serve SRST until the disk is spunup,
> +	 * if the controller can not wait for the PMP to acknowledge the frame,
> +	 * wait here */

    The preferred multi-line comment style:

/*
  * bla
  * bla
  */

> +	if (rc == -ERESTART&&
> +	    !((lflags&  ATA_LFLAG_WAIT_SRST)&&  (reset == softreset)))
>   		goto out;
>
>   	now = jiffies;
[...]
> diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
> index ad0e71d..5fbbe2f 100644
> --- a/drivers/ata/libata-pmp.c
> +++ b/drivers/ata/libata-pmp.c
> @@ -365,13 +365,11 @@ static void sata_pmp_quirks(struct ata_port *ap)
>   	if (vendor == 0x1095&&  devid == 0x3726) {
>   		/* sil3726 quirks */
>   		ata_for_each_link(link, ap, EDGE) {
> -			/* Class code report is unreliable and SRST
> -			 * times out under certain configurations.
> -			 */
> +			/* Class code report is unreliable */
> +			/* PMP does not forward SRST until the drive spins up */
>   			if (link->pmp < 5)
> -				link->flags |= ATA_LFLAG_NO_SRST |
> -					       ATA_LFLAG_ASSUME_ATA;
> -

    Why remove the empty line?

> +				link->flags |= ATA_LFLAG_ASSUME_ATA |
> +					       ATA_LFLAG_WAIT_SRST;
>   			/* port 5 is for SEMB device and it doesn't like SRST */
>   			if (link->pmp == 5)
>   				link->flags |= ATA_LFLAG_NO_SRST |

WBR, Sergei

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

* Re: [PATCH] libata: Allow SOFT_RESET for Sil3726
  2011-10-06  8:03                                   ` Tejun Heo
@ 2011-10-06 20:44                                     ` Gwendal Grignou
  2011-10-06 22:10                                       ` Tejun Heo
  0 siblings, 1 reply; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-06 20:44 UTC (permalink / raw)
  To: Tejun Heo; +Cc: mihrcke, linux-ide, derry

On Thu, Oct 6, 2011 at 1:03 AM, Tejun Heo <htejun@gmail.com> wrote:
> Hello, Gwendal.
>
> Which tree is this patch against?
I am using 2.6.34. I try to have this mail follow the thread "RE:
Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)", Derry started. It
did not work, sorry.
I will rebase the ata-dev branch soon - and clean up the patch
following Sergei comments.
>
> On Wed, Oct 05, 2011 at 11:03:57PM -0700, Gwendal Grignou wrote:
>> Allow controllers to send SOFT_RESET to Sil3726 PMP.
>> This PMP does not accept frames until the drive connected to
>> its port spins up.
>
> Do you mean until the device sets RDY by sending D2H Reg FIS?
Yes. Until the device sends the async D2H Reg FIS indicating the drive
spun up, the MPM does not accept the SoftRest FIS from the controller.
On most controller, that fine, the controller state machine keeps
retrying, but on Sil3132 it stops after a second or so and send an
error back to the driver.
>
>> Some controller [Sil3132 family] can not wait for the drive to spinup
>> and fails the reset, leading to unnecessary speed downgrade.
>> Not allowing to send SOFT_RESET can lead some drive slow to spinup
>> to be ignored and produces weird error messages.
>
> Yeap, I agree this is nasty.
>
>> @@ -2805,7 +2805,14 @@ int ata_eh_reset(struct ata_link *link, int classify,
>>           sata_scr_read(link, SCR_STATUS, &sstatus))
>>               rc = -ERESTART;
>>
>> -     if (rc == -ERESTART || try >= max_tries)
>> +     if (try >= max_tries)
>> +             goto out;
>> +
>> +     /* Some PMP will not serve SRST until the disk is spunup,
>> +      * if the controller can not wait for the PMP to acknowledge the frame,
>> +      * wait here */
>> +     if (rc == -ERESTART &&
>> +         !((lflags & ATA_LFLAG_WAIT_SRST) && (reset == softreset)))
>>               goto out;
>>
>>       now = jiffies;
>> @@ -2820,6 +2827,8 @@ int ata_eh_reset(struct ata_link *link, int classify,
>>                       delta = schedule_timeout_uninterruptible(delta);
>>       }
>>
>> +     if (rc == -ERESTART)
>> +             goto out;
>
> So, now libata waits for full reset period before proceeding to reset
> PMP.  Hmmm... yeah, it makes sense.  Unfortunately, the only way to
> achieve spinup wait in this case is waiting blindly and libata's reset
> timeouts are configured to accomodate drive spinup times.  PMP SCR
> failure kinda destroys those blind wait periods.
Yes, I totally agree this blind wait is not clean. Normally we would
wait until an event occurs [async FIS] and have the timeout just for
the error case.
Here we wait [10s] because we think the device is spinning up.
>
> I'm not too sure about ATA_LFLAG_WAIT_SRST.  I don't think making the
> new behavior default would hurt.
I see your point. But if there is no PMP, Sil3132 is behaving, there
is no need of this logic.
>
> Can you please post before & after logs?
There are 2 problem with the current solution:
- by not waiting for device spin up, we basically disabled staggered
spinup: we send hard reset to all port very fast.
That may put burden on enclosure with weak power supplies.
- as Derry found out, disk which are slow to spin up can be ignored by
the kernel.

From my experience:

Before:
Apr 11 13:29:23 cigg22 kernel: ata5.15: Port Multiplier 1.1,
0x1095:0x3726 r23, 6 ports, feat 0x1/0x9
Apr 11 13:29:23 cigg22 kernel: ata5.00: hard resetting link
Apr 11 13:29:23 cigg22 kernel: ata5.00: SATA link up 3.0 Gbps (SStatus
123 SControl 320)
Apr 11 13:29:23 cigg22 kernel: ata5.01: hard resetting link
...
Apr 11 13:29:23 cigg22 kernel: ata5.04: SATA link up 3.0 Gbps (SStatus
123 SControl 300)
Apr 11 13:29:23 cigg22 kernel: ata5.05: hard resetting link
Apr 11 13:29:23 cigg22 kernel: ata5.05: SATA link up 1.5 Gbps (SStatus
113 SControl 320)
Apr 11 13:29:23 cigg22 kernel: ata5.00: failed to IDENTIFY (I/O error,
err_mask=0x11)
Apr 11 13:29:23 cigg22 kernel: ata5.15: hard resetting link
Apr 11 13:29:23 cigg22 kernel: ata5: controller in dubious state,
performing PORT_RST
Apr 11 13:29:23 cigg22 kernel: ata5.15: SATA link up 3.0 Gbps (SStatus
123 SControl 0)
Apr 11 13:29:23 cigg22 kernel: ata5.00: hard resetting link
Apr 11 13:29:23 cigg22 kernel: ata5.00: SATA link up 3.0 Gbps (SStatus
123 SControl 320)
...

We are hoping that by the time it takes to hard reset 5 ports, the
disks would have spun up.

After:
Sep 12 12:40:38 pnkv6 kern.info kernel: ata7: SATA link up 3.0 Gbps
(SStatus 123 SControl 0)
Sep 12 12:40:38 pnkv6 kern.info kernel: ata7.15: Port Multiplier 1.1,
0x1095:0x3726 r23, 6 ports, feat 0x1/0x9
Sep 12 12:40:38 pnkv6 kern.info kernel: ata7.00: hard resetting link
Sep 12 12:40:38 pnkv6 kern.err kernel: ata7.00: softreset failed (SRST
command error)
Sep 12 12:40:38 pnkv6 kern.warn kernel: ata7.00: failed to read SCR 0
(Emask=0x40)
Sep 12 12:40:38 pnkv6 kern.warn kernel: ata7.00: reset failed
(errno=-85), retrying in 10 secs

<<< this allows the disk to spin up >>>

Sep 12 12:40:48 pnkv6 kern.err kernel: ata7.00: reset failed, giving up
Sep 12 12:40:48 pnkv6 kern.info kernel: ata7.15: hard resetting link
Sep 12 12:40:48 pnkv6 kern.warn kernel: ata7: controller in dubious
state, performing PORT_RST
Sep 12 12:40:50 pnkv6 kern.info kernel: ata7.15: SATA link up 3.0 Gbps
(SStatus 123 SControl 0)
Sep 12 12:40:50 pnkv6 kern.info kernel: ata7.00: hard resetting link
Sep 12 12:40:50 pnkv6 kern.info kernel: ata7.00: SATA link up 3.0 Gbps
(SStatus 123 SControl 320)
Sep 12 12:40:50 pnkv6 kern.info kernel: ata7.01: hard resetting link

>
> Thank you.
>
> --
> tejun
>

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

* Re: [PATCH] libata: Allow SOFT_RESET for Sil3726
  2011-10-06 20:44                                     ` Gwendal Grignou
@ 2011-10-06 22:10                                       ` Tejun Heo
  2011-10-12 14:03                                         ` Mark Lord
  0 siblings, 1 reply; 48+ messages in thread
From: Tejun Heo @ 2011-10-06 22:10 UTC (permalink / raw)
  To: Gwendal Grignou; +Cc: mihrcke, linux-ide, derry

Hello,

On Thu, Oct 06, 2011 at 01:44:27PM -0700, Gwendal Grignou wrote:
> Yes. Until the device sends the async D2H Reg FIS indicating the drive
> spun up, the MPM does not accept the SoftRest FIS from the controller.
> On most controller, that fine, the controller state machine keeps
> retrying, but on Sil3132 it stops after a second or so and send an
> error back to the driver.

I see.

> > So, now libata waits for full reset period before proceeding to reset
> > PMP.  Hmmm... yeah, it makes sense.  Unfortunately, the only way to
> > achieve spinup wait in this case is waiting blindly and libata's reset
> > timeouts are configured to accomodate drive spinup times.  PMP SCR
> > failure kinda destroys those blind wait periods.
>
> Yes, I totally agree this blind wait is not clean. Normally we would
> wait until an event occurs [async FIS] and have the timeout just for
> the error case.
> Here we wait [10s] because we think the device is spinning up.

Yes but that's exactly how the reset timeouts are set up.  They're
supposed to provide reasonable spinup timeouts when the proper wait
mechanisms can't do so and here it becomes a problem because the blind
timeouts are circumvented by SCR read failure handling.

> > I'm not too sure about ATA_LFLAG_WAIT_SRST.  I don't think making the
> > new behavior default would hurt.
>
> I see your point. But if there is no PMP, Sil3132 is behaving, there
> is no need of this logic.

Yes, sure, the behavior is necessary iff PMP is attached as that's
only time SCR read failure can occur anyway and I think it would
generally be a good idea to always enforce the blind timeouts if PMP
is attached, so no need for ATA_LFLAG_WAIT_SRST.

> > Can you please post before & after logs?
> There are 2 problem with the current solution:
> - by not waiting for device spin up, we basically disabled staggered
> spinup: we send hard reset to all port very fast.
> That may put burden on enclosure with weak power supplies.
> - as Derry found out, disk which are slow to spin up can be ignored by
> the kernel.

Looks pretty good to me.  Nice spotting.  Thanks a lot for tracking it
down and coming up with good solution. :)

--
tejun

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-10-06  5:48                               ` Gwendal Grignou
  2011-10-06  6:03                                 ` [PATCH] libata: Allow SOFT_RESET for Sil3726 Gwendal Grignou
       [not found]                                 ` <CAMHSBOV8rSW3jumpx8URZrgo8w1He9zruP7yAOw7uhQOaAj3Xg@mail.gmail.com>
@ 2011-10-08 18:25                                 ` Michael Ihrcke
  2011-10-12  2:06                                   ` Michael Ihrcke
  2 siblings, 1 reply; 48+ messages in thread
From: Michael Ihrcke @ 2011-10-08 18:25 UTC (permalink / raw)
  To: Gwendal Grignou; +Cc: linux-ide

Thank you...

Will this require a complete kernel recompile?
Or is there an easier way to include this patch?

I have little to no experience with working with patches at this level.
I've been doing research on how to use this patch, and I'm close, but, I'm not
sure if I need to attack compiling a kernel, or if I can somehow just patch
libata or something like that?

Thank you,
Mike

On Thu, Oct 6, 2011 at 12:48 AM, Gwendal Grignou <gwendal@google.com> wrote:
>
> I think I know what is going on. One of your disks at least is slow to
> spinup. Due to a bug/feature in silicon image disk controller and pmp,
> at bring up we can not issue a SOFT_RESET and wait for the disk to
> spinup and then continue.
> That why we set ATA_LFLAG_NO_SRST in sata_pmp_quirks().
> So what happen is we go into a function that issue identify, but we
> fail, the disk is not ready [it is spinning up], so we retry.
> 3 times.
>
> From the first hard reset: 12888.470385, to the time you got the final
> error: 12901.397305 ~ 12.9s
> In the second case, your controller can send SOFT_RESET and wait for
> the device to respond.
> Time for the disk to spinup:
> 28010.630028 - 27997.097116 ~ 13.5s
> As you can see, you are borderline with the PMP, but the controller
> did not "wait" enough in the first case.
> Given the spinup time varies with drive, age, time since last
> spin-up..., it may work one day and fail the next.
> To work around the problem, I have a patch that consist of allowing
> the silicon image control to send a reset, but if it fails, we spin
> for a fixed amount of time and retry. This is not very nice, it is a
> better design to wait for event that waiting a fixed amount of time.
> You may have to alter ATA_LFLAG_WAIT_SRST to use the first bit available.
>
> Can you try with the following patch?
>
> Thanks,
> Gwendal.
>
> diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
> index 228740f..b98b02d 100644
> --- a/drivers/ata/libata-eh.c
> +++ b/drivers/ata/libata-eh.c
> @@ -2798,7 +2798,14 @@ int ata_eh_reset(struct ata_link *link, int classify,
>      sata_scr_read(link, SCR_STATUS, &sstatus))
>   rc = -ERESTART;
>
> - if (rc == -ERESTART || try >= max_tries)
> + if (try >= max_tries)
> + goto out;
> +
> + /* Some PMP will not serve SRST until the disk is spunup,
> + * if the controller can not wait for the PMP to acknowledge the frame,
> + * wait here */
> + if (rc == -ERESTART &&
> +    !((lflags & ATA_LFLAG_WAIT_SRST) && (reset == softreset)))
>   goto out;
>
>   now = jiffies;
> @@ -2813,6 +2820,8 @@ int ata_eh_reset(struct ata_link *link, int classify,
>   delta = schedule_timeout_uninterruptible(delta);
>   }
>
> + if (rc == -ERESTART)
> + goto out;
>   if (try == max_tries - 1) {
>   sata_down_spd_limit(link, 0);
>   if (slave)
> diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
> index 00305f4..d21ad7d 100644
> --- a/drivers/ata/libata-pmp.c
> +++ b/drivers/ata/libata-pmp.c
> @@ -325,13 +351,11 @@ static void sata_pmp_quirks(struct ata_port *ap)
>   if (vendor == 0x1095 && devid == 0x3726) {
>   /* sil3726 quirks */
>   ata_for_each_link(link, ap, EDGE) {
> - /* Class code report is unreliable and SRST
> - * times out under certain configurations.
> - */
> + /* Class code report is unreliable */
> + /* PMP does not forward SRST until the drive spins up */
>   if (link->pmp < 5)
> - link->flags |= ATA_LFLAG_NO_SRST |
> -       ATA_LFLAG_ASSUME_ATA;
> -
> + link->flags |= ATA_LFLAG_ASSUME_ATA |
> +       ATA_LFLAG_WAIT_SRST;
>   /* port 5 is for SEMB device and it doesn't like SRST */
>   if (link->pmp == 5)
>   link->flags |= ATA_LFLAG_NO_SRST |
> diff --git a/include/linux/libata.h b/include/linux/libata.h
> index b2f2003..3a18caa 100644
> --- a/include/linux/libata.h
> +++ b/include/linux/libata.h
> @@ -172,6 +172,7 @@ enum {
>   ATA_LFLAG_NO_RETRY = (1 << 5), /* don't retry this link */
>   ATA_LFLAG_DISABLED = (1 << 6), /* link is disabled */
>   ATA_LFLAG_SW_ACTIVITY = (1 << 7), /* keep activity stats */
> + ATA_LFLAG_WAIT_SRST = (1 << 8), /* add delay when SRST fails */
>
>   /* struct ata_port flags */
>   ATA_FLAG_SLAVE_POSS = (1 << 0), /* host supports slave dev */
>
>

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-10-08 18:25                                 ` Michael Ihrcke
@ 2011-10-12  2:06                                   ` Michael Ihrcke
  2011-10-13  2:09                                     ` Mike I
  0 siblings, 1 reply; 48+ messages in thread
From: Michael Ihrcke @ 2011-10-12  2:06 UTC (permalink / raw)
  To: Gwendal Grignou; +Cc: linux-ide

Thanks again for the help, but, I could use a little more instruction...

I've figured out how to apply the patch to the source, and compiled
the libata-pmp, and libata-eh modules(/drivers/ata), but, I cannot
figure out what to do from here.

The libata-pmp driver/module does not seem to be loaded on my system
to begin with...maybe this was part of my problem.

On Sat, Oct 8, 2011 at 1:25 PM, Michael Ihrcke <mihrcke@gmail.com> wrote:
> Thank you...
>
> Will this require a complete kernel recompile?
> Or is there an easier way to include this patch?
>
> I have little to no experience with working with patches at this level.
> I've been doing research on how to use this patch, and I'm close, but, I'm not
> sure if I need to attack compiling a kernel, or if I can somehow just patch
> libata or something like that?
>
> Thank you,
> Mike
>
> On Thu, Oct 6, 2011 at 12:48 AM, Gwendal Grignou <gwendal@google.com> wrote:
>>
>> I think I know what is going on. One of your disks at least is slow to
>> spinup. Due to a bug/feature in silicon image disk controller and pmp,
>> at bring up we can not issue a SOFT_RESET and wait for the disk to
>> spinup and then continue.
>> That why we set ATA_LFLAG_NO_SRST in sata_pmp_quirks().
>> So what happen is we go into a function that issue identify, but we
>> fail, the disk is not ready [it is spinning up], so we retry.
>> 3 times.
>>
>> From the first hard reset: 12888.470385, to the time you got the final
>> error: 12901.397305 ~ 12.9s
>> In the second case, your controller can send SOFT_RESET and wait for
>> the device to respond.
>> Time for the disk to spinup:
>> 28010.630028 - 27997.097116 ~ 13.5s
>> As you can see, you are borderline with the PMP, but the controller
>> did not "wait" enough in the first case.
>> Given the spinup time varies with drive, age, time since last
>> spin-up..., it may work one day and fail the next.
>> To work around the problem, I have a patch that consist of allowing
>> the silicon image control to send a reset, but if it fails, we spin
>> for a fixed amount of time and retry. This is not very nice, it is a
>> better design to wait for event that waiting a fixed amount of time.
>> You may have to alter ATA_LFLAG_WAIT_SRST to use the first bit available.
>>
>> Can you try with the following patch?
>>
>> Thanks,
>> Gwendal.
>>
>> diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
>> index 228740f..b98b02d 100644
>> --- a/drivers/ata/libata-eh.c
>> +++ b/drivers/ata/libata-eh.c
>> @@ -2798,7 +2798,14 @@ int ata_eh_reset(struct ata_link *link, int classify,
>>      sata_scr_read(link, SCR_STATUS, &sstatus))
>>   rc = -ERESTART;
>>
>> - if (rc == -ERESTART || try >= max_tries)
>> + if (try >= max_tries)
>> + goto out;
>> +
>> + /* Some PMP will not serve SRST until the disk is spunup,
>> + * if the controller can not wait for the PMP to acknowledge the frame,
>> + * wait here */
>> + if (rc == -ERESTART &&
>> +    !((lflags & ATA_LFLAG_WAIT_SRST) && (reset == softreset)))
>>   goto out;
>>
>>   now = jiffies;
>> @@ -2813,6 +2820,8 @@ int ata_eh_reset(struct ata_link *link, int classify,
>>   delta = schedule_timeout_uninterruptible(delta);
>>   }
>>
>> + if (rc == -ERESTART)
>> + goto out;
>>   if (try == max_tries - 1) {
>>   sata_down_spd_limit(link, 0);
>>   if (slave)
>> diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
>> index 00305f4..d21ad7d 100644
>> --- a/drivers/ata/libata-pmp.c
>> +++ b/drivers/ata/libata-pmp.c
>> @@ -325,13 +351,11 @@ static void sata_pmp_quirks(struct ata_port *ap)
>>   if (vendor == 0x1095 && devid == 0x3726) {
>>   /* sil3726 quirks */
>>   ata_for_each_link(link, ap, EDGE) {
>> - /* Class code report is unreliable and SRST
>> - * times out under certain configurations.
>> - */
>> + /* Class code report is unreliable */
>> + /* PMP does not forward SRST until the drive spins up */
>>   if (link->pmp < 5)
>> - link->flags |= ATA_LFLAG_NO_SRST |
>> -       ATA_LFLAG_ASSUME_ATA;
>> -
>> + link->flags |= ATA_LFLAG_ASSUME_ATA |
>> +       ATA_LFLAG_WAIT_SRST;
>>   /* port 5 is for SEMB device and it doesn't like SRST */
>>   if (link->pmp == 5)
>>   link->flags |= ATA_LFLAG_NO_SRST |
>> diff --git a/include/linux/libata.h b/include/linux/libata.h
>> index b2f2003..3a18caa 100644
>> --- a/include/linux/libata.h
>> +++ b/include/linux/libata.h
>> @@ -172,6 +172,7 @@ enum {
>>   ATA_LFLAG_NO_RETRY = (1 << 5), /* don't retry this link */
>>   ATA_LFLAG_DISABLED = (1 << 6), /* link is disabled */
>>   ATA_LFLAG_SW_ACTIVITY = (1 << 7), /* keep activity stats */
>> + ATA_LFLAG_WAIT_SRST = (1 << 8), /* add delay when SRST fails */
>>
>>   /* struct ata_port flags */
>>   ATA_FLAG_SLAVE_POSS = (1 << 0), /* host supports slave dev */
>>
>>
>

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

* Re: [PATCH] libata: Allow SOFT_RESET for Sil3726
  2011-10-06 22:10                                       ` Tejun Heo
@ 2011-10-12 14:03                                         ` Mark Lord
  2011-10-20  0:02                                           ` [PATCH] [libata]Issue SRST to Sil3726 PMP Gwendal Grignou
                                                             ` (5 more replies)
  0 siblings, 6 replies; 48+ messages in thread
From: Mark Lord @ 2011-10-12 14:03 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Gwendal Grignou, mihrcke, linux-ide, derry

On 11-10-06 06:10 PM, Tejun Heo wrote:
> Hello,
> 
> On Thu, Oct 06, 2011 at 01:44:27PM -0700, Gwendal Grignou wrote:
>> Yes. Until the device sends the async D2H Reg FIS indicating the drive
>> spun up, the MPM does not accept the SoftRest FIS from the controller.
>> On most controller, that fine, the controller state machine keeps
>> retrying, but on Sil3132 it stops after a second or so and send an
>> error back to the driver.
> 
> I see.
> 
>>> So, now libata waits for full reset period before proceeding to reset
>>> PMP.  Hmmm... yeah, it makes sense.  Unfortunately, the only way to
>>> achieve spinup wait in this case is waiting blindly and libata's reset
>>> timeouts are configured to accomodate drive spinup times.  PMP SCR
>>> failure kinda destroys those blind wait periods.
>>
>> Yes, I totally agree this blind wait is not clean. Normally we would
>> wait until an event occurs [async FIS] and have the timeout just for
>> the error case.
>> Here we wait [10s] because we think the device is spinning up.
> 
> Yes but that's exactly how the reset timeouts are set up.  They're
> supposed to provide reasonable spinup timeouts when the proper wait
> mechanisms can't do so and here it becomes a problem because the blind
> timeouts are circumvented by SCR read failure handling.
> 
>>> I'm not too sure about ATA_LFLAG_WAIT_SRST.  I don't think making the
>>> new behavior default would hurt.
>>
>> I see your point. But if there is no PMP, Sil3132 is behaving, there
>> is no need of this logic.
> 
> Yes, sure, the behavior is necessary iff PMP is attached as that's
> only time SCR read failure can occur anyway and I think it would
> generally be a good idea to always enforce the blind timeouts if PMP
> is attached, so no need for ATA_LFLAG_WAIT_SRST.

I wonder if this same logic is more generally applicable for PMP
rather than sil3132 specific?  What I've read thus far in this thread
sounds very much like the issues I see here with PMPs not working
on JMB and Marvell controllers (where they USED to work fine).

Gwendal, have you got a version of that patch which applies the same
change globally rather than only for sil3132?  I'd like to try it out here.

Thanks

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2011-10-12  2:06                                   ` Michael Ihrcke
@ 2011-10-13  2:09                                     ` Mike I
  0 siblings, 0 replies; 48+ messages in thread
From: Mike I @ 2011-10-13  2:09 UTC (permalink / raw)
  To: linux-ide

Working much better now...this is what I get when I hot plug a drive that was
giving me problems before:

[  211.873069] ata3.01: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[  211.873075] ata3.01: SError: { PHYRdyChg CommWake DevExch }
[  211.873181] ata3.01: limiting SATA link speed to 1.5 Gbps
[  211.873188] ata3.01: hard resetting link
[  212.750032] ata3.01: softreset failed (SRST command error)
[  212.850022] ata3.01: failed to read SCR 0 (Emask=0x1)
[  212.850026] ata3.01: reset failed (errno=-85), retrying in 10 secs
[  221.870023] ata3.01: reset failed, giving up
[  221.870029] ata3.15: hard resetting link
[  221.870032] ata3: controller in dubious state, performing PORT_RST
[  224.140057] ata3.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  224.140364] ata3.02: limiting SATA link speed to 1.5 Gbps
[  224.140402] ata3.03: limiting SATA link speed to 1.5 Gbps
[  224.140440] ata3.04: limiting SATA link speed to 1.5 Gbps
[  224.140477] ata3.05: limiting SATA link speed to 1.5 Gbps
[  224.140481] ata3.00: hard resetting link
[  224.550272] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  224.550311] ata3.01: hard resetting link
[  225.020043] ata3.01: softreset failed (SRST command error)
[  225.020069] ata3.01: failed to read SCR 0 (Emask=0x40)
[  225.020073] ata3.01: reset failed (errno=-85), retrying in 10 secs
[  234.550024] ata3.01: reset failed, giving up
[  234.550032] ata3.15: hard resetting link
[  234.550036] ata3: controller in dubious state, performing PORT_RST
[  236.810049] ata3.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  236.810336] ata3.00: hard resetting link
[  237.230271] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  237.230310] ata3.01: hard resetting link
[  237.920270] ata3.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  237.920309] ata3.02: hard resetting link
[  238.270420] ata3.02: SATA link down (SStatus 0 SControl 310)
[  238.270492] ata3.03: hard resetting link
[  238.610434] ata3.03: SATA link down (SStatus 0 SControl 310)
[  238.610504] ata3.04: hard resetting link
[  238.960436] ata3.04: SATA link down (SStatus 0 SControl 310)
[  238.960508] ata3.05: hard resetting link
[  239.310401] ata3.05: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  239.413575] ata3.00: configured for UDMA/100
[  239.420008] ata3.01: ATA-7: SAMSUNG HD154UI, 1AG01118, max UDMA7
[  239.420012] ata3.01: 2930277168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  239.426691] ata3.01: configured for UDMA/100
[  239.426763] ata3: EH complete
[  239.426967] scsi 2:1:0:0: Direct-Access     ATA      SAMSUNG HD154UI  1AG0
PQ: 0 ANSI: 5
[  239.427123] sd 2:1:0:0: Attached scsi generic sg6 type 0
[  239.427138] sd 2:1:0:0: [sde] 2930277168 512-byte logical blocks: (1.50
TB/1.36 TiB)
[  239.427182] sd 2:1:0:0: [sde] Write Protect is off
[  239.427185] sd 2:1:0:0: [sde] Mode Sense: 00 3a 00 00
[  239.427206] sd 2:1:0:0: [sde] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
[  239.427348]  sde: sde1
[  239.581901] sd 2:1:0:0: [sde] Attached SCSI disk

Thank you,
Mike



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

* [PATCH] [libata]Issue SRST to Sil3726 PMP
  2011-10-12 14:03                                         ` Mark Lord
@ 2011-10-20  0:02                                           ` Gwendal Grignou
  2011-10-20  0:02                                           ` Gwendal Grignou
                                                             ` (4 subsequent siblings)
  5 siblings, 0 replies; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-20  0:02 UTC (permalink / raw)
  To: htejun, kernel, mihrcke, derry; +Cc: linux-ide, Gwendal Grignou

By issuing SRST,
. We re enable staggered spin up
. We allow slow disks to spin up while we are still in initial error handler

However, some controller fails sending SRST while the disk is spinning up
behind the port multiplier.
To avoid slow disk to be ignored, or link to be downgraded unnecessarily, wait 10s if
SRST fails before resetting the ATA port.

With a Sil3132.
Before the patch:
[  236.184036] ata4.15: hard resetting link
[  236.184038] ata4: controller in dubious state, performing PORT_RST
[  238.338048] ata4.15: SATA link up 1.5 Gbps (SStatus 113 SControl 10)
[  239.549102] ata4.00: hard resetting link
[  239.854315] ata4.00: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  239.854344] ata4.01: hard resetting link
[  240.159316] ata4.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  240.159344] ata4.02: hard resetting link
[  240.464316] ata4.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  240.464343] ata4.03: hard resetting link
[  240.769314] ata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  240.769342] ata4.04: hard resetting link
[  241.074316] ata4.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  241.074344] ata4.05: hard resetting link
[  241.379314] ata4.05: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  241.382672] ata4.00: configured for UDMA/100 
[  241.492027] ata4.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[  241.492030] ata4.01: revalidation failed (errno=-5)
[  241.492033] ata4.15: hard resetting link

After the patch:
[   19.436422] ata4.15: Port Multiplier 1.1, 0x1095:0x3726 r23, 6 ports, feat 0x1/0x9
[   19.454715] ata4.00: hard resetting link
[   19.880032] ata4.00: softreset failed (SRST command error)
[   19.880048] ata4.00: failed to read SCR 0 (Emask=0x40)
[   19.880051] ata4.00: reset failed (errno=-85), retrying in 10 secs 
[   29.454092] ata4.00: reset failed, giving up
[   29.454099] ata4.15: hard resetting link
[   29.454102] ata4: controller in dubious state, performing PORT_RST 
[   31.608046] ata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   31.608431] ata4.00: hard resetting link
[   31.924284] ata4.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   31.924335] ata4.01: hard resetting link 
[   32.350029] ata4.01: softreset failed (SRST command error)
[   32.460032] ata4.01: failed to read SCR 0 (Emask=0x1)
[   32.460036] ata4.01: reset failed (errno=-85), retrying in 10 secs 
[   41.924139] ata4.01: reset failed, giving up 
[   41.924146] ata4.15: hard resetting link
[   41.924148] ata4: controller in dubious state, performing PORT_RST
[   44.078047] ata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   44.078384] ata4.00: hard resetting link

Patch also tested with Marvel 7042 and Sil3726.

Gwendal Grignou (1):
  [libata]Issue SRST to Sil3726 PMP

 drivers/ata/libata-eh.c  |   12 +++++++++++-
 drivers/ata/libata-pmp.c |    7 ++-----
 2 files changed, 13 insertions(+), 6 deletions(-)

-- 
1.7.3.1


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

* [PATCH] [libata]Issue SRST to Sil3726 PMP
  2011-10-12 14:03                                         ` Mark Lord
  2011-10-20  0:02                                           ` [PATCH] [libata]Issue SRST to Sil3726 PMP Gwendal Grignou
@ 2011-10-20  0:02                                           ` Gwendal Grignou
  2011-10-20  0:07                                             ` Tejun Heo
  2011-10-20  0:17                                           ` Gwendal Grignou
                                                             ` (3 subsequent siblings)
  5 siblings, 1 reply; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-20  0:02 UTC (permalink / raw)
  To: htejun, kernel, mihrcke, derry; +Cc: linux-ide, Gwendal Grignou

Reenable sending SRST to devices connected behind a Sil3726 PMP.
This allow staggered spinups and handles drives that spins up slowly.

While the drives spin up, the PMP will not accept SRST.
Most controller reissues the reset until the drive is ready, while
some [Sil3124] returns an error.
In ata_eh_error, wait 10s before reset the ATA port and try again.

---
 drivers/ata/libata-eh.c  |   12 +++++++++++-
 drivers/ata/libata-pmp.c |    7 ++-----
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index c021186..927d750 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2882,7 +2882,7 @@ int ata_eh_reset(struct ata_link *link, int classify,
 	    sata_scr_read(link, SCR_STATUS, &sstatus))
 		rc = -ERESTART;
 
-	if (rc == -ERESTART || try >= max_tries) {
+	if (try >= max_tries) {
 		/*
 		 * Thaw host port even if reset failed, so that the port
 		 * can be retried on the next phy event.  This risks
@@ -2908,6 +2908,16 @@ int ata_eh_reset(struct ata_link *link, int classify,
 		ata_eh_acquire(ap);
 	}
 
+	/*
+	 * While disks spinup behind PMP, some controllers fail sending SRST.
+	 * They need to be reset - as well as the PMP - before retrying.
+	 */
+	if (rc == -ERESTART) {
+		if (ata_is_host_link(link))
+			ata_eh_thaw_port(ap);
+		goto out;
+	}
+
 	if (try == max_tries - 1) {
 		sata_down_spd_limit(link, 0);
 		if (slave)
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
index 3eb2b81..183643f 100644
--- a/drivers/ata/libata-pmp.c
+++ b/drivers/ata/libata-pmp.c
@@ -388,12 +388,9 @@ static void sata_pmp_quirks(struct ata_port *ap)
 			/* link reports offline after LPM */
 			link->flags |= ATA_LFLAG_NO_LPM;
 
-			/* Class code report is unreliable and SRST
-			 * times out under certain configurations.
-			 */
+			/* Class code report is unreliable. */
 			if (link->pmp < 5)
-				link->flags |= ATA_LFLAG_NO_SRST |
-					       ATA_LFLAG_ASSUME_ATA;
+				link->flags |= ATA_LFLAG_ASSUME_ATA;
 
 			/* port 5 is for SEMB device and it doesn't like SRST */
 			if (link->pmp == 5)
-- 
1.7.3.1


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

* Re: [PATCH] [libata]Issue SRST to Sil3726 PMP
  2011-10-20  0:02                                           ` Gwendal Grignou
@ 2011-10-20  0:07                                             ` Tejun Heo
  2011-10-20  0:28                                               ` Gwendal Grignou
  0 siblings, 1 reply; 48+ messages in thread
From: Tejun Heo @ 2011-10-20  0:07 UTC (permalink / raw)
  To: Gwendal Grignou; +Cc: kernel, mihrcke, derry, linux-ide

Hello,

On Wed, Oct 19, 2011 at 05:02:42PM -0700, Gwendal Grignou wrote:
> Reenable sending SRST to devices connected behind a Sil3726 PMP.
> This allow staggered spinups and handles drives that spins up slowly.
> 
> While the drives spin up, the PMP will not accept SRST.
> Most controller reissues the reset until the drive is ready, while
> some [Sil3124] returns an error.
> In ata_eh_error, wait 10s before reset the ATA port and try again.

While I agree with the change, the description doesn't seem too
accurate.

* The behavior change applies to all PMPs.

* I hope 3726 change is in a separate patch.

* It waits for reset deadline which currently happens to be 10s.

Thanks.

-- 
tejun

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

* [PATCH] [libata]Issue SRST to Sil3726 PMP
  2011-10-12 14:03                                         ` Mark Lord
  2011-10-20  0:02                                           ` [PATCH] [libata]Issue SRST to Sil3726 PMP Gwendal Grignou
  2011-10-20  0:02                                           ` Gwendal Grignou
@ 2011-10-20  0:17                                           ` Gwendal Grignou
  2011-10-20  0:17                                           ` Gwendal Grignou
                                                             ` (2 subsequent siblings)
  5 siblings, 0 replies; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-20  0:17 UTC (permalink / raw)
  To: htejun, kernel, mihrcke, derry; +Cc: linux-ide, Gwendal Grignou

By issuing SRST,
. We re enable staggered spin up
. We allow slow disks to spin up while we are still in initial error handler

However, some controller fails sending SRST while the disk is spinning up
behind the port multiplier.
To avoid slow disk to be ignored, or link to be downgraded unnecessarily, wait 10s if
SRST fails before resetting the ATA port.

With a Sil3132.
Before the patch:
[  236.184036] ata4.15: hard resetting link
[  236.184038] ata4: controller in dubious state, performing PORT_RST
[  238.338048] ata4.15: SATA link up 1.5 Gbps (SStatus 113 SControl 10)
[  239.549102] ata4.00: hard resetting link
[  239.854315] ata4.00: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  239.854344] ata4.01: hard resetting link
[  240.159316] ata4.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  240.159344] ata4.02: hard resetting link
[  240.464316] ata4.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  240.464343] ata4.03: hard resetting link
[  240.769314] ata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  240.769342] ata4.04: hard resetting link
[  241.074316] ata4.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  241.074344] ata4.05: hard resetting link
[  241.379314] ata4.05: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  241.382672] ata4.00: configured for UDMA/100 
[  241.492027] ata4.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[  241.492030] ata4.01: revalidation failed (errno=-5)
[  241.492033] ata4.15: hard resetting link

After the patch:
[   19.436422] ata4.15: Port Multiplier 1.1, 0x1095:0x3726 r23, 6 ports, feat 0x1/0x9
[   19.454715] ata4.00: hard resetting link
[   19.880032] ata4.00: softreset failed (SRST command error)
[   19.880048] ata4.00: failed to read SCR 0 (Emask=0x40)
[   19.880051] ata4.00: reset failed (errno=-85), retrying in 10 secs 
[   29.454092] ata4.00: reset failed, giving up
[   29.454099] ata4.15: hard resetting link
[   29.454102] ata4: controller in dubious state, performing PORT_RST 
[   31.608046] ata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   31.608431] ata4.00: hard resetting link
[   31.924284] ata4.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   31.924335] ata4.01: hard resetting link 
[   32.350029] ata4.01: softreset failed (SRST command error)
[   32.460032] ata4.01: failed to read SCR 0 (Emask=0x1)
[   32.460036] ata4.01: reset failed (errno=-85), retrying in 10 secs 
[   41.924139] ata4.01: reset failed, giving up 
[   41.924146] ata4.15: hard resetting link
[   41.924148] ata4: controller in dubious state, performing PORT_RST
[   44.078047] ata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   44.078384] ata4.00: hard resetting link

Patch also tested with Marvel 7042 and Sil3726.

Signed off version.

Gwendal Grignou (1):
  [libata]Issue SRST to Sil3726 PMP

 drivers/ata/libata-eh.c  |   12 +++++++++++-
 drivers/ata/libata-pmp.c |    7 ++-----
 2 files changed, 13 insertions(+), 6 deletions(-)

-- 
1.7.3.1


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

* [PATCH] [libata]Issue SRST to Sil3726 PMP
  2011-10-12 14:03                                         ` Mark Lord
                                                             ` (2 preceding siblings ...)
  2011-10-20  0:17                                           ` Gwendal Grignou
@ 2011-10-20  0:17                                           ` Gwendal Grignou
  2011-10-20  0:35                                           ` [PATCH] [libata]Send SRST to disks behind " Gwendal Grignou
  2011-10-20  0:35                                           ` [PATCH] [libata]Issue SRST to Disks behind Sil3726 Gwendal Grignou
  5 siblings, 0 replies; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-20  0:17 UTC (permalink / raw)
  To: htejun, kernel, mihrcke, derry; +Cc: linux-ide, Gwendal Grignou

Reenable sending SRST to devices connected behind a Sil3726 PMP.
This allow staggered spinups and handles drives that spins up slowly.

While the drives spin up, the PMP will not accept SRST.
Most controller reissues the reset until the drive is ready, while
some [Sil3124] returns an error.
In ata_eh_error, wait 10s before reset the ATA port and try again.


Signed-off-by: Gwendal Grignou <gwendal@google.com>
---
 drivers/ata/libata-eh.c  |   12 +++++++++++-
 drivers/ata/libata-pmp.c |    7 ++-----
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index c021186..927d750 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2882,7 +2882,7 @@ int ata_eh_reset(struct ata_link *link, int classify,
 	    sata_scr_read(link, SCR_STATUS, &sstatus))
 		rc = -ERESTART;
 
-	if (rc == -ERESTART || try >= max_tries) {
+	if (try >= max_tries) {
 		/*
 		 * Thaw host port even if reset failed, so that the port
 		 * can be retried on the next phy event.  This risks
@@ -2908,6 +2908,16 @@ int ata_eh_reset(struct ata_link *link, int classify,
 		ata_eh_acquire(ap);
 	}
 
+	/*
+	 * While disks spinup behind PMP, some controllers fail sending SRST.
+	 * They need to be reset - as well as the PMP - before retrying.
+	 */
+	if (rc == -ERESTART) {
+		if (ata_is_host_link(link))
+			ata_eh_thaw_port(ap);
+		goto out;
+	}
+
 	if (try == max_tries - 1) {
 		sata_down_spd_limit(link, 0);
 		if (slave)
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
index 3eb2b81..183643f 100644
--- a/drivers/ata/libata-pmp.c
+++ b/drivers/ata/libata-pmp.c
@@ -388,12 +388,9 @@ static void sata_pmp_quirks(struct ata_port *ap)
 			/* link reports offline after LPM */
 			link->flags |= ATA_LFLAG_NO_LPM;
 
-			/* Class code report is unreliable and SRST
-			 * times out under certain configurations.
-			 */
+			/* Class code report is unreliable. */
 			if (link->pmp < 5)
-				link->flags |= ATA_LFLAG_NO_SRST |
-					       ATA_LFLAG_ASSUME_ATA;
+				link->flags |= ATA_LFLAG_ASSUME_ATA;
 
 			/* port 5 is for SEMB device and it doesn't like SRST */
 			if (link->pmp == 5)
-- 
1.7.3.1


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

* Re: [PATCH] [libata]Issue SRST to Sil3726 PMP
  2011-10-20  0:07                                             ` Tejun Heo
@ 2011-10-20  0:28                                               ` Gwendal Grignou
  0 siblings, 0 replies; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-20  0:28 UTC (permalink / raw)
  To: Tejun Heo; +Cc: kernel, mihrcke, derry, linux-ide

On Wed, Oct 19, 2011 at 5:07 PM, Tejun Heo <htejun@gmail.com> wrote:
> Hello,
>
> On Wed, Oct 19, 2011 at 05:02:42PM -0700, Gwendal Grignou wrote:
>> Reenable sending SRST to devices connected behind a Sil3726 PMP.
>> This allow staggered spinups and handles drives that spins up slowly.
>>
>> While the drives spin up, the PMP will not accept SRST.
>> Most controller reissues the reset until the drive is ready, while
>> some [Sil3124] returns an error.
>> In ata_eh_error, wait 10s before reset the ATA port and try again.
>
> While I agree with the change, the description doesn't seem too
> accurate.
>
> * The behavior change applies to all PMPs.
I just re-enable SRST for Sil3726, not the other PMPs. For the other
ones where ATA_LFLAG_NO_SRST is still set, we will not issue softreset
and therefore will not try to access the spining disk until we send
the first identify.
For the other PMP where SRST was allowed, I guess the Sil3132
controller would have offline the disks or downgrade the speed
unnecessarily.
>
> * I hope 3726 change is in a separate patch.
>
> * It waits for reset deadline which currently happens to be 10s.
That's correct.

I update the description.

Gwendal.
>
> Thanks.
>
> --
> tejun
>

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

* [PATCH] [libata]Send SRST to disks behind Sil3726 PMP.
  2011-10-12 14:03                                         ` Mark Lord
                                                             ` (3 preceding siblings ...)
  2011-10-20  0:17                                           ` Gwendal Grignou
@ 2011-10-20  0:35                                           ` Gwendal Grignou
  2011-10-20  0:35                                           ` [PATCH] [libata]Issue SRST to Disks behind Sil3726 Gwendal Grignou
  5 siblings, 0 replies; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-20  0:35 UTC (permalink / raw)
  To: htejun, kernel, mihrcke, derry; +Cc: linux-ide, Gwendal Grignou

By issuing SRST,
. We re enable staggered spin up
. We allow slow disks to spin up while we are still in initial error handler

However, some controller fails sending SRST while the disk is spinning up
behind the port multiplier.
To avoid slow disk to be ignored, or link to be downgraded unnecessarily,
wait for the reset deadline if SRST fails before resetting the ATA port.

With a Sil3132.
Before the patch:
[  236.184036] ata4.15: hard resetting link
[  236.184038] ata4: controller in dubious state, performing PORT_RST
[  238.338048] ata4.15: SATA link up 1.5 Gbps (SStatus 113 SControl 10)
[  239.549102] ata4.00: hard resetting link
[  239.854315] ata4.00: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  239.854344] ata4.01: hard resetting link
[  240.159316] ata4.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  240.159344] ata4.02: hard resetting link
[  240.464316] ata4.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  240.464343] ata4.03: hard resetting link
[  240.769314] ata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  240.769342] ata4.04: hard resetting link
[  241.074316] ata4.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  241.074344] ata4.05: hard resetting link
[  241.379314] ata4.05: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  241.382672] ata4.00: configured for UDMA/100 
[  241.492027] ata4.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[  241.492030] ata4.01: revalidation failed (errno=-5)
[  241.492033] ata4.15: hard resetting link

After the patch:
[   19.436422] ata4.15: Port Multiplier 1.1, 0x1095:0x3726 r23, 6 ports, feat 0x1/0x9
[   19.454715] ata4.00: hard resetting link
[   19.880032] ata4.00: softreset failed (SRST command error)
[   19.880048] ata4.00: failed to read SCR 0 (Emask=0x40)
[   19.880051] ata4.00: reset failed (errno=-85), retrying in 10 secs 
[   29.454092] ata4.00: reset failed, giving up
[   29.454099] ata4.15: hard resetting link
[   29.454102] ata4: controller in dubious state, performing PORT_RST 
[   31.608046] ata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   31.608431] ata4.00: hard resetting link
[   31.924284] ata4.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   31.924335] ata4.01: hard resetting link 
[   32.350029] ata4.01: softreset failed (SRST command error)
[   32.460032] ata4.01: failed to read SCR 0 (Emask=0x1)
[   32.460036] ata4.01: reset failed (errno=-85), retrying in 10 secs 
[   41.924139] ata4.01: reset failed, giving up 
[   41.924146] ata4.15: hard resetting link
[   41.924148] ata4: controller in dubious state, performing PORT_RST
[   44.078047] ata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   44.078384] ata4.00: hard resetting link

Patch also tested with Marvel 7042 and Sil3726.

Gwendal Grignou (1):
  [libata]Issue SRST to Sil3726 PMP

 drivers/ata/libata-eh.c  |   12 +++++++++++-
 drivers/ata/libata-pmp.c |    7 ++-----
 2 files changed, 13 insertions(+), 6 deletions(-)

-- 
1.7.3.1

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

* [PATCH] [libata]Issue SRST to Disks behind Sil3726
  2011-10-12 14:03                                         ` Mark Lord
                                                             ` (4 preceding siblings ...)
  2011-10-20  0:35                                           ` [PATCH] [libata]Send SRST to disks behind " Gwendal Grignou
@ 2011-10-20  0:35                                           ` Gwendal Grignou
  2011-10-20  0:37                                             ` Tejun Heo
  5 siblings, 1 reply; 48+ messages in thread
From: Gwendal Grignou @ 2011-10-20  0:35 UTC (permalink / raw)
  To: htejun, kernel, mihrcke, derry; +Cc: linux-ide, Gwendal Grignou

Reenable sending SRST to devices connected behind a Sil3726 PMP.
This allow staggered spinups and handles drives that spins up slowly.

While the drives spin up, the PMP will not accept SRST.
Most controllers reissue the reset until the drive is ready, while
some [Sil3124] returns an error.
In ata_eh_error, wait for the next reset deadline before resetting the ATA
port and trying again.


Signed-off-by: Gwendal Grignou <gwendal@google.com>
---
 drivers/ata/libata-eh.c  |   12 +++++++++++-
 drivers/ata/libata-pmp.c |    7 ++-----
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index c021186..927d750 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2882,7 +2882,7 @@ int ata_eh_reset(struct ata_link *link, int classify,
 	    sata_scr_read(link, SCR_STATUS, &sstatus))
 		rc = -ERESTART;
 
-	if (rc == -ERESTART || try >= max_tries) {
+	if (try >= max_tries) {
 		/*
 		 * Thaw host port even if reset failed, so that the port
 		 * can be retried on the next phy event.  This risks
@@ -2908,6 +2908,16 @@ int ata_eh_reset(struct ata_link *link, int classify,
 		ata_eh_acquire(ap);
 	}
 
+	/*
+	 * While disks spinup behind PMP, some controllers fail sending SRST.
+	 * They need to be reset - as well as the PMP - before retrying.
+	 */
+	if (rc == -ERESTART) {
+		if (ata_is_host_link(link))
+			ata_eh_thaw_port(ap);
+		goto out;
+	}
+
 	if (try == max_tries - 1) {
 		sata_down_spd_limit(link, 0);
 		if (slave)
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
index 3eb2b81..183643f 100644
--- a/drivers/ata/libata-pmp.c
+++ b/drivers/ata/libata-pmp.c
@@ -388,12 +388,9 @@ static void sata_pmp_quirks(struct ata_port *ap)
 			/* link reports offline after LPM */
 			link->flags |= ATA_LFLAG_NO_LPM;
 
-			/* Class code report is unreliable and SRST
-			 * times out under certain configurations.
-			 */
+			/* Class code report is unreliable. */
 			if (link->pmp < 5)
-				link->flags |= ATA_LFLAG_NO_SRST |
-					       ATA_LFLAG_ASSUME_ATA;
+				link->flags |= ATA_LFLAG_ASSUME_ATA;
 
 			/* port 5 is for SEMB device and it doesn't like SRST */
 			if (link->pmp == 5)
-- 
1.7.3.1


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

* Re: [PATCH] [libata]Issue SRST to Disks behind Sil3726
  2011-10-20  0:35                                           ` [PATCH] [libata]Issue SRST to Disks behind Sil3726 Gwendal Grignou
@ 2011-10-20  0:37                                             ` Tejun Heo
  0 siblings, 0 replies; 48+ messages in thread
From: Tejun Heo @ 2011-10-20  0:37 UTC (permalink / raw)
  To: Gwendal Grignou; +Cc: kernel, mihrcke, derry, linux-ide

On Wed, Oct 19, 2011 at 05:35:53PM -0700, Gwendal Grignou wrote:
> Reenable sending SRST to devices connected behind a Sil3726 PMP.
> This allow staggered spinups and handles drives that spins up slowly.
> 
> While the drives spin up, the PMP will not accept SRST.
> Most controllers reissue the reset until the drive is ready, while
> some [Sil3124] returns an error.
> In ata_eh_error, wait for the next reset deadline before resetting the ATA
> port and trying again.
> 
> 
> Signed-off-by: Gwendal Grignou <gwendal@google.com>

 Acked-by: Tejun Heo <tj@kernel.org>

I hope this can be applied to other controllers too as the failure
mode should be similar for all SIMG PMPs.

Thanks.

-- 
tejun

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-11-10 18:26                   ` Lars Michael Jogback
@ 2008-11-11  2:56                     ` Tejun Heo
  0 siblings, 0 replies; 48+ messages in thread
From: Tejun Heo @ 2008-11-11  2:56 UTC (permalink / raw)
  To: Lars Michael Jogback; +Cc: linux-ide

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

Lars Michael Jogback wrote:
>> Can you please try the attached patch and see whether anything is
>> different?
> 
> Yes, it made it working.

Heh... Okay, that's unexpected.

> You don't think it has something todo with the spin-up time?
> 
> The spin-up time on these disks is quite long:
> smartctl -a /dev/sdn | grep Spin_Up_Time
>   3 Spin_Up_Time            0x0007   068   068   011    Pre-fail  Always       -       10240

Maybe but I don't know.  Spin up is usually waited upon by device
readiness wait after SRST which libata does every time it probes or
resets a device behind PMP.  The drive is bringing link down briefly
after SRST is complete.  It doesn't make much sense.  Maybe some
quirkiness in the firmware?

Can you please try the attached patch?  If it doesn't work, please
increment the constant 200LU by 100 each time and find out where it
starts to work.

Thanks.

-- 
tejun

[-- Attachment #2: deb-debug.patch --]
[-- Type: text/x-patch, Size: 969 bytes --]

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 0cd3ad4..7f1a469 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -3799,10 +3799,17 @@ int sata_link_hardreset(struct ata_link *link, const unsigned long *timing,
 int sata_std_hardreset(struct ata_link *link, unsigned int *class,
 		       unsigned long deadline)
 {
-	const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
+	const unsigned long *t = sata_ehc_deb_timing(&link->eh_context);
+	unsigned long timing[3] = { t[0], t[1], t[2] };
 	bool online;
 	int rc;
 
+	ata_link_printk(link, KERN_INFO, "XXX0 hardreset debounce %lu %lu %lu\n",
+			timing[0], timing[1], timing[2]);
+	timing[1] = max(timing[1], 200LU);
+	ata_link_printk(link, KERN_INFO, "XXX1 hardreset debounce %lu %lu %lu\n",
+			timing[0], timing[1], timing[2]);
+
 	/* do hardreset */
 	rc = sata_link_hardreset(link, timing, deadline, &online, NULL);
 	return online ? -EAGAIN : rc;

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-11-10  6:47                 ` Tejun Heo
@ 2008-11-10 18:26                   ` Lars Michael Jogback
  2008-11-11  2:56                     ` Tejun Heo
  0 siblings, 1 reply; 48+ messages in thread
From: Lars Michael Jogback @ 2008-11-10 18:26 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide

* Tejun Heo <tj@kernel.org> [2008-11-10 15:47:18]:

> Lars Michael Jogback wrote:
> > * Tejun Heo <tj@kernel.org> [2008-10-27 16:38:18]:
> > 
> >> Oh.. one more thing.  Can you please try the attached patch and post the
> >> failing log?
> > 
> > Yank the drive:
> > [  423.185630] ata7: XXX error_intr irq_stat=0x8040800
> > [  423.200853] ata7.02: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
> > [  423.200930] ata7: SError: { PHYRdyChg CommWake DevExch }
> 
> I bought harddrive of the same generation but of lower capacity and
> tested it with two 3726s but can't reproduce the problem you're
> seeing.  :-(

Bummer.

> Can you please try the attached patch and see whether anything is
> different?
> 

Yes, it made it working.

[  158.852022] ata7.02: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[  158.852135] ata7: SError: { PHYRdyChg CommWake DevExch }
[  158.852456] ata7.02: hard resetting link
[  160.095980] ata7.02: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  160.111927] ata7.02: failed to IDENTIFY (I/O error, err_mask=0x11)
[  160.112034] ata7.15: hard resetting link
[  162.240274] ata7.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  162.241087] ata7.00: hard resetting link
[  163.080382] ata7.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  163.080490] ata7.01: hard resetting link
[  163.920030] ata7.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  163.920137] ata7.02: hard resetting link
[  164.759924] ata7.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  164.760031] ata7.03: hard resetting link
[  165.599951] ata7.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  165.600057] ata7.04: hard resetting link
[  166.440288] ata7.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  166.440395] ata7.05: hard resetting link
[  167.280368] ata7.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  167.314762] ata7.00: configured for UDMA/100
[  167.327704] ata7.01: configured for UDMA/100
[  167.342455] ata7.02: failed to IDENTIFY (I/O error, err_mask=0x11)
[  167.342705] ata7.15: hard resetting link
[  169.472805] ata7.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  169.473169] ata7.00: hard resetting link
[  170.312834] ata7.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  170.312941] ata7.01: hard resetting link
[  171.152772] ata7.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  171.152879] ata7.02: hard resetting link
[  171.993505] ata7.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  171.993622] ata7.03: hard resetting link
[  172.834758] ata7.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  172.834865] ata7.04: hard resetting link
[  173.675984] ata7.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  173.676109] ata7.05: hard resetting link
[  174.517356] ata7.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  174.530205] ata7.00: configured for UDMA/100
[  174.543188] ata7.01: configured for UDMA/100
[  174.549525] ata7.02: FORCE: horkage modified (noncq)
[  174.549751] ata7.02: ATA-7: SAMSUNG HD103UJ, 1AA01112, max UDMA7
[  174.549860] ata7.02: 1953525168 sectors, multi 0: LBA48 NCQ (not used)
[  174.556383] ata7.02: configured for UDMA/100
[  174.569329] ata7.03: configured for UDMA/100
[  174.582199] ata7.04: configured for UDMA/100
[  174.597407] ata7: EH complete

You don't think it has something todo with the spin-up time?

The spin-up time on these disks is quite long:
smartctl -a /dev/sdn | grep Spin_Up_Time
  3 Spin_Up_Time            0x0007   068   068   011    Pre-fail  Always       -       10240

Best Regards,
/LM


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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-27 19:40               ` Lars Michael Jogback
@ 2008-11-10  6:47                 ` Tejun Heo
  2008-11-10 18:26                   ` Lars Michael Jogback
  0 siblings, 1 reply; 48+ messages in thread
From: Tejun Heo @ 2008-11-10  6:47 UTC (permalink / raw)
  To: Lars Michael Jogback; +Cc: linux-ide

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

Lars Michael Jogback wrote:
> * Tejun Heo <tj@kernel.org> [2008-10-27 16:38:18]:
> 
>> Oh.. one more thing.  Can you please try the attached patch and post the
>> failing log?
> 
> Yank the drive:
> [  423.185630] ata7: XXX error_intr irq_stat=0x8040800
> [  423.200853] ata7.02: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
> [  423.200930] ata7: SError: { PHYRdyChg CommWake DevExch }

I bought harddrive of the same generation but of lower capacity and
tested it with two 3726s but can't reproduce the problem you're
seeing.  :-(

Can you please try the attached patch and see whether anything is
different?

Thanks.

-- 
tejun

[-- Attachment #2: add-delay-after-hrst.patch --]
[-- Type: text/x-patch, Size: 392 bytes --]

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 0cd3ad4..e0dca54 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -3805,6 +3805,7 @@ int sata_std_hardreset(struct ata_link *link, unsigned int *class,
 
 	/* do hardreset */
 	rc = sata_link_hardreset(link, timing, deadline, &online, NULL);
+	msleep(500);
 	return online ? -EAGAIN : rc;
 }
 

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-27  7:38             ` Tejun Heo
  2008-10-27  8:47               ` Lars Michael Jogback
@ 2008-10-27 19:40               ` Lars Michael Jogback
  2008-11-10  6:47                 ` Tejun Heo
  1 sibling, 1 reply; 48+ messages in thread
From: Lars Michael Jogback @ 2008-10-27 19:40 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide

* Tejun Heo <tj@kernel.org> [2008-10-27 16:38:18]:

> Oh.. one more thing.  Can you please try the attached patch and post the
> failing log?

Yank the drive:
[  423.185630] ata7: XXX error_intr irq_stat=0x8040800
[  423.200853] ata7.02: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[  423.200930] ata7: SError: { PHYRdyChg CommWake DevExch }
[  423.201065] ata7.02: hard resetting link
[  423.988033] ata7.02: SATA link down (SStatus 0 SControl 320)
[  423.988033] ata7: failed to recover some devices, retrying in 5 secs
[  429.320975] ata7.02: hard resetting link
[  429.657112] ata7.02: SATA link down (SStatus 0 SControl 320)
[  429.657215] ata7: failed to recover some devices, retrying in 5 secs
[  435.205828] ata7.02: hard resetting link
[  435.663470] ata7.02: SATA link down (SStatus 0 SControl 320)
[  435.663573] ata7.02: disabled
[  436.233999] ata7: EH complete
[  436.234100] ata7.02: detaching (SCSI 7:2:0:0)
[  436.234390] sd 7:2:0:0: [sdn] Synchronizing SCSI cache
[  436.237266] sd 7:2:0:0: [sdn] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK
[  436.237399] sd 7:2:0:0: [sdn] Stopping disk
[  436.237471] sd 7:2:0:0: [sdn] START_STOP FAILED
[  436.237537] sd 7:2:0:0: [sdn] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK

Hotplug the drive:
[  457.946173] ata7: XXX error_intr irq_stat=0x8040800
[  457.946173] ata7: XXX error_intr irq_stat=0x8000800
[  457.959773] ata7.02: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[  457.959849] ata7: SError: { PHYRdyChg CommWake DevExch }
[  457.959985] ata7.02: hard resetting link
[  458.740089] ata7.02: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  458.740173] ata7: XXX error_intr irq_stat=0x60002
[  458.740252] ata7: XXX error_intr cerr=4
[  458.755959] ata7.02: failed to IDENTIFY (I/O error, err_mask=0x11)
[  458.756096] ata7.15: hard resetting link
[  461.059644] ata7.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  461.059946] ata7.00: hard resetting link
[  461.395778] ata7.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  461.395852] ata7.01: hard resetting link
[  461.736413] ata7.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  461.736490] ata7.02: hard resetting link
[  462.107859] ata7.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  462.107935] ata7.03: hard resetting link
[  462.471134] ata7.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  462.471210] ata7.04: hard resetting link
[  462.810982] ata7.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  462.811057] ata7.05: hard resetting link
[  463.146993] ata7.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  463.159869] ata7.00: configured for UDMA/100
[  463.172734] ata7.01: configured for UDMA/100
[  463.172811] ata7: XXX error_intr irq_stat=0x60002
[  463.172882] ata7: XXX error_intr cerr=4
[  463.186852] ata7.02: failed to IDENTIFY (I/O error, err_mask=0x11)
[  463.186927] ata7.15: hard resetting link
[  465.319661] ata7.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  465.319970] ata7.00: hard resetting link
[  465.657449] ata7.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  465.657525] ata7.01: hard resetting link
[  465.992843] ata7.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  465.992918] ata7.02: hard resetting link
[  466.328237] ata7.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  466.328312] ata7.03: hard resetting link
[  466.663786] ata7.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  466.663861] ata7.04: hard resetting link
[  467.002569] ata7.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  467.002646] ata7.05: hard resetting link
[  467.336553] ata7.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  467.351825] ata7.00: configured for UDMA/100
[  467.364948] ata7.01: configured for UDMA/100
[  467.365025] ata7: XXX error_intr irq_stat=0x60002
[  467.365096] ata7: XXX error_intr cerr=4
[  467.379054] ata7.02: failed to IDENTIFY (I/O error, err_mask=0x11)
[  467.379128] ata7.02: failed to recover link after 3 tries, disabling
[  467.379200] ata7: failed to recover PMP, retrying in 5 secs
[  472.390964] ata7.15: hard resetting link
[  474.544791] ata7.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  474.859237] ata7.00: hard resetting link
[  475.195706] ata7.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  475.195793] ata7.01: hard resetting link
[  475.535565] ata7.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  475.535641] ata7.03: hard resetting link
[  475.871163] ata7.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  475.871238] ata7.04: hard resetting link
[  476.208521] ata7.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  476.208597] ata7.05: hard resetting link
[  476.547685] ata7.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  476.560025] ata7.00: configured for UDMA/100
[  476.572026] ata7.01: configured for UDMA/100
[  476.584854] ata7.03: configured for UDMA/100
[  476.597676] ata7.04: configured for UDMA/100
[  476.935580] ata7: EH complete
[  476.935691] sd 7:0:0:0: [sdl] 1953525168 512-byte hardware sectors (1000205 MB)
[  476.935798] sd 7:0:0:0: [sdl] Write Protect is off
[  476.935865] sd 7:0:0:0: [sdl] Mode Sense: 00 3a 00 00
[  476.935885] sd 7:0:0:0: [sdl] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  476.935991] sd 7:1:0:0: [sdm] 1953525168 512-byte hardware sectors (1000205 MB)
[  476.936086] sd 7:1:0:0: [sdm] Write Protect is off
[  476.936152] sd 7:1:0:0: [sdm] Mode Sense: 00 3a 00 00
[  476.936171] sd 7:1:0:0: [sdm] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  476.936276] sd 7:3:0:0: [sdo] 1953525168 512-byte hardware sectors (1000205 MB)
[  476.936370] sd 7:3:0:0: [sdo] Write Protect is off
[  476.936437] sd 7:3:0:0: [sdo] Mode Sense: 00 3a 00 00
[  476.936456] sd 7:3:0:0: [sdo] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  476.936561] sd 7:4:0:0: [sdp] 1953525168 512-byte hardware sectors (1000205 MB)
[  476.936655] sd 7:4:0:0: [sdp] Write Protect is off
[  476.936722] sd 7:4:0:0: [sdp] Mode Sense: 00 3a 00 00
[  476.936740] sd 7:4:0:0: [sdp] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  476.936845] sd 7:0:0:0: [sdl] 1953525168 512-byte hardware sectors (1000205 MB)
[  476.936938] sd 7:0:0:0: [sdl] Write Protect is off
[  476.937005] sd 7:0:0:0: [sdl] Mode Sense: 00 3a 00 00
[  476.937024] sd 7:0:0:0: [sdl] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  476.937128] sd 7:1:0:0: [sdm] 1953525168 512-byte hardware sectors (1000205 MB)
[  476.937236] sd 7:1:0:0: [sdm] Write Protect is off
[  476.937303] sd 7:1:0:0: [sdm] Mode Sense: 00 3a 00 00
[  476.937322] sd 7:1:0:0: [sdm] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  476.937427] sd 7:3:0:0: [sdo] 1953525168 512-byte hardware sectors (1000205 MB)
[  476.937521] sd 7:3:0:0: [sdo] Write Protect is off
[  476.937588] sd 7:3:0:0: [sdo] Mode Sense: 00 3a 00 00
[  476.937606] sd 7:3:0:0: [sdo] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  476.937710] sd 7:4:0:0: [sdp] 1953525168 512-byte hardware sectors (1000205 MB)
[  476.937804] sd 7:4:0:0: [sdp] Write Protect is off
[  476.937871] sd 7:4:0:0: [sdp] Mode Sense: 00 3a 00 00
[  476.937890] sd 7:4:0:0: [sdp] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

Best Regards,
/LM


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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-27  7:38             ` Tejun Heo
@ 2008-10-27  8:47               ` Lars Michael Jogback
  2008-10-27 19:40               ` Lars Michael Jogback
  1 sibling, 0 replies; 48+ messages in thread
From: Lars Michael Jogback @ 2008-10-27  8:47 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide

* Tejun Heo <tj@kernel.org> [2008-10-27 16:38:18]:

> Oh.. one more thing.  Can you please try the attached patch and post the
> failing log?

The first patch I already tried on your request:
http://article.gmane.org/gmane.linux.ide/35357

I'll try the second patch tonight.

Best Regards,
/LM


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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-27  7:35           ` Tejun Heo
@ 2008-10-27  7:38             ` Tejun Heo
  2008-10-27  8:47               ` Lars Michael Jogback
  2008-10-27 19:40               ` Lars Michael Jogback
  0 siblings, 2 replies; 48+ messages in thread
From: Tejun Heo @ 2008-10-27  7:38 UTC (permalink / raw)
  To: Lars Michael Jogback; +Cc: linux-ide

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

Oh.. one more thing.  Can you please try the attached patch and post the
failing log?

Thanks.

-- 
tejun

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

diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c
index 4621807..f8b9898 100644
--- a/drivers/ata/sata_sil24.c
+++ b/drivers/ata/sata_sil24.c
@@ -978,6 +978,8 @@ static void sil24_error_intr(struct ata_port *ap)
 	ehi = &link->eh_info;
 	ata_ehi_clear_desc(ehi);
 
+	ata_port_printk(ap, KERN_INFO,
+			"XXX error_intr irq_stat=0x%x\n", irq_stat);
 	ata_ehi_push_desc(ehi, "irq_stat 0x%08x", irq_stat);
 
 	if (irq_stat & PORT_IRQ_SDB_NOTIFY) {
@@ -1045,6 +1047,8 @@ static void sil24_error_intr(struct ata_port *ap)
 
 		/* analyze CMD_ERR */
 		cerr = readl(port + PORT_CMD_ERR);
+		ata_port_printk(ap, KERN_INFO,
+				"XXX error_intr cerr=%u\n", cerr);
 		if (cerr < ARRAY_SIZE(sil24_cerr_db))
 			ci = &sil24_cerr_db[cerr];
 

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-23 18:14         ` Lars Michael Jogback
@ 2008-10-27  7:35           ` Tejun Heo
  2008-10-27  7:38             ` Tejun Heo
  0 siblings, 1 reply; 48+ messages in thread
From: Tejun Heo @ 2008-10-27  7:35 UTC (permalink / raw)
  To: Lars Michael Jogback; +Cc: linux-ide

Lars Michael Jogback wrote:
> Hi,
> 
> I did installed an earlier kernel on the machine, and then hotplug
> worked.
> 
> This is the log when I did hotplug using v2.6.24 (the kernel from Debian
> Etch-n-half)

Hmmm... 2.6.24 works but 2.6.26 doesn't, strange.  I've been trying to
reproduce the problem here but it doesn't happen with any drive I
have.  I just ordered a similar drive, so I might have better luck
with it.  I'll write back when I know more.

Thanks.

-- 
tejun

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-18 16:52       ` Lars Michael Jogback
@ 2008-10-23 18:14         ` Lars Michael Jogback
  2008-10-27  7:35           ` Tejun Heo
  0 siblings, 1 reply; 48+ messages in thread
From: Lars Michael Jogback @ 2008-10-23 18:14 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide

Hi,

I did installed an earlier kernel on the machine, and then hotplug
worked.

This is the log when I did hotplug using v2.6.24 (the kernel from Debian
Etch-n-half)


This is when I yank the drive:
ata7.04: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xb
ata7: SError: { PHYRdyChg CommWake DevExch }
ata7.04: hard resetting link
ata7.04: SATA link down (SStatus 0 SControl 320)
ata7: failed to recover some devices, retrying in 5 secs
ata7.04: hard resetting link
ata7.04: SATA link down (SStatus 0 SControl 320)
ata7: failed to recover some devices, retrying in 5 secs
ata7.04: hard resetting link
ata7.04: SATA link down (SStatus 0 SControl 320)
ata7.04: disabled
ata7.04: soft resetting link
ata7.04: SATA link down (SStatus 0 SControl 320)
ata7: EH complete
ata7.04: detaching (SCSI 7:4:0:0)
sd 7:4:0:0: [sdp] Synchronizing SCSI cache
sd 7:4:0:0: [sdp] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK
sd 7:4:0:0: [sdp] Stopping disk
sd 7:4:0:0: [sdp] START_STOP FAILED
sd 7:4:0:0: [sdp] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK

And this is when I plug the drive:
ata7.04: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xb
ata7: SError: { PHYRdyChg CommWake DevExch }
ata7.04: hard resetting link
ata7.04: softreset failed (SRST command error)
ata7.04: reset failed (errno=-5), retrying in 10 secs
ata7.04: hard resetting link
ata7.04: hardreset failed (port not ready)
ata7.04: reset failed (errno=-5), retrying in 10 secs
ata7.04: hard resetting link
ata7.04: failed to read SCR 2 (Emask=0x40)
ata7.04: failed to read SCR 2 (Emask=0x40)
ata7.04: COMRESET failed (errno=-5)
ata7.04: failed to read SCR 0 (Emask=0x40)
ata7.04: reset failed, giving up
ata7.15: hard resetting link
ata7: controller in dubious state, performing PORT_RST
ata7.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
ata7.00: hard resetting link
ata7.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
ata7.01: hard resetting link
ata7.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata7.02: hard resetting link
ata7.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata7.03: hard resetting link
ata7.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata7.04: hard resetting link
ata7.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata7.05: hard resetting link
ata7.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
ata7.00: configured for UDMA/100
ata7.01: configured for UDMA/100
ata7.02: configured for UDMA/100
ata7.03: configured for UDMA/100
ata7.04: ATA-7: SAMSUNG HD103UJ, 1AA01113, max UDMA7
ata7.04: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata7.04: configured for UDMA/100
ata7.00: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x1 t4
ata7.00: irq_stat 0x00060002, failed to transmit command FIS
ata7.00: configured for UDMA/100
ata7: EH complete
sd 7:0:0:0: [sdl] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:0:0:0: [sdl] Write Protect is off
sd 7:0:0:0: [sdl] Mode Sense: 00 3a 00 00
sd 7:0:0:0: [sdl] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 7:1:0:0: [sdm] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:1:0:0: [sdm] Write Protect is off
sd 7:1:0:0: [sdm] Mode Sense: 00 3a 00 00
sd 7:1:0:0: [sdm] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 7:2:0:0: [sdn] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:2:0:0: [sdn] Write Protect is off
sd 7:2:0:0: [sdn] Mode Sense: 00 3a 00 00
sd 7:2:0:0: [sdn] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 7:3:0:0: [sdo] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:3:0:0: [sdo] Write Protect is off
sd 7:3:0:0: [sdo] Mode Sense: 00 3a 00 00
sd 7:3:0:0: [sdo] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 7:0:0:0: [sdl] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:0:0:0: [sdl] Write Protect is off
sd 7:0:0:0: [sdl] Mode Sense: 00 3a 00 00
sd 7:0:0:0: [sdl] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 7:1:0:0: [sdm] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:1:0:0: [sdm] Write Protect is off
sd 7:1:0:0: [sdm] Mode Sense: 00 3a 00 00
sd 7:1:0:0: [sdm] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 7:2:0:0: [sdn] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:2:0:0: [sdn] Write Protect is off
sd 7:2:0:0: [sdn] Mode Sense: 00 3a 00 00
sd 7:2:0:0: [sdn] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 7:3:0:0: [sdo] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:3:0:0: [sdo] Write Protect is off
sd 7:3:0:0: [sdo] Mode Sense: 00 3a 00 00
sd 7:3:0:0: [sdo] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
scsi 7:4:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
sd 7:4:0:0: [sdp] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:4:0:0: [sdp] Write Protect is off
sd 7:4:0:0: [sdp] Mode Sense: 00 3a 00 00
sd 7:4:0:0: [sdp] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 7:4:0:0: [sdp] 1953525168 512-byte hardware sectors (1000205 MB)
sd 7:4:0:0: [sdp] Write Protect is off
sd 7:4:0:0: [sdp] Mode Sense: 00 3a 00 00
sd 7:4:0:0: [sdp] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdp:
sd 7:4:0:0: [sdp] Attached SCSI disk

Best Regards,
/LM


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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-15  7:03     ` Tejun Heo
@ 2008-10-18 16:52       ` Lars Michael Jogback
  2008-10-23 18:14         ` Lars Michael Jogback
  0 siblings, 1 reply; 48+ messages in thread
From: Lars Michael Jogback @ 2008-10-18 16:52 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide

* Tejun Heo <tj@kernel.org> [2008-10-15 16:03:55]:

> Can you please try the followings?
> 
> 1. If you swap the drive on the second slot with another one, does the
>    detection problem stay with the port or follow the drive?

It doesn't follow the drive. It sort of stays with port in that sense
that it happens on the first equipped port after the first one (which is
probed by the controllers BIOS). If I leave the second port empty, it
happens on the third when I do a cold boot.

I have also moved the drives around, and it does not follow the drive.

One odd thing that I've noticed is that it's only happening on my
Samsung drives, I've got a couple of WD aswell and they seem to work.

> 2. Does "libata.force=1.5Gbps" make any difference?

No, same behaviour.

> 3. Apply the patch and post log after failed hotplug.
> 

I had to change it to:
ata_port_printk(ap, KERN_WARNING,  "XXX error_intr irq_stat=0x%x\n", irq_stat);

I hope that was correct.

Yank the drive:
[   82.081889] ata3: XXX error_intr irq_stat=0x8040800
[   82.095851] ata3.04: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[   82.095913] ata3: SError: { PHYRdyChg CommWake DevExch }
[   82.096037] ata3.04: hard resetting link
[   83.183919] ata3.04: SATA link down (SStatus 0 SControl 320)
[   83.184006] ata3: failed to recover some devices, retrying in 5 secs
[   88.756273] ata3.04: hard resetting link
[   89.092417] ata3.04: SATA link down (SStatus 0 SControl 320)
[   89.092504] ata3: failed to recover some devices, retrying in 5 secs
[   95.136519] ata3.04: hard resetting link
[   95.504418] ata3.04: SATA link down (SStatus 0 SControl 320)
[   95.504467] ata3.04: disabled
[   96.102757] ata3: EH complete
[   96.102711] ata3.04: detaching (SCSI 3:4:0:0)
[   96.102711] sd 3:4:0:0: [sdp] Synchronizing SCSI cache
[   96.102711] sd 3:4:0:0: [sdp] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK
[   96.102711] sd 3:4:0:0: [sdp] Stopping disk
[   96.102711] sd 3:4:0:0: [sdp] START_STOP FAILED
[   96.102711] sd 3:4:0:0: [sdp] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK

Plug the drive:
[  103.696514] ata3: XXX error_intr irq_stat=0x8040800
[  103.712305] ata3.04: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[  103.712368] ata3: SError: { PHYRdyChg CommWake DevExch }
[  103.712493] ata3.04: hard resetting link
[  104.452364] ata3.04: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  104.452447] ata3: XXX error_intr irq_stat=0x60002
[  104.468214] ata3.04: failed to IDENTIFY (I/O error, err_mask=0x11)
[  104.468288] ata3.15: hard resetting link
[  107.671458] ata3.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  107.671657] ata3.00: hard resetting link
[  108.030320] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  108.030396] ata3.01: hard resetting link
[  108.418464] ata3.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  108.418541] ata3.02: hard resetting link
[  108.762278] ata3.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  108.762292] ata3.03: hard resetting link
[  109.097482] ata3.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  109.097556] ata3.04: hard resetting link
[  109.432900] ata3.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  109.432975] ata3.05: hard resetting link
[  110.062677] ata3.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  110.074170] ata3.00: configured for UDMA/100
[  110.087041] ata3.01: configured for UDMA/100
[  110.099889] ata3.02: configured for UDMA/100
[  110.112772] ata3.03: configured for UDMA/100
[  110.112848] ata3: XXX error_intr irq_stat=0x60002
[  110.125182] ata3.04: failed to IDENTIFY (I/O error, err_mask=0x11)
[  110.125257] ata3.15: hard resetting link
[  112.253161] ata3.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  112.253413] ata3.00: hard resetting link
[  112.589297] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  112.589372] ata3.01: hard resetting link
[  112.925296] ata3.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  112.925371] ata3.02: hard resetting link
[  113.261297] ata3.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  113.261372] ata3.03: hard resetting link
[  113.597296] ata3.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  113.597371] ata3.04: hard resetting link
[  113.937936] ata3.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  113.938011] ata3.05: hard resetting link
[  114.274271] ata3.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  114.289542] ata3.00: configured for UDMA/100
[  114.302397] ata3.01: configured for UDMA/100
[  114.315239] ata3.02: configured for UDMA/100
[  114.328084] ata3.03: configured for UDMA/100
[  114.328161] ata3: XXX error_intr irq_stat=0x60002
[  114.340527] ata3.04: failed to IDENTIFY (I/O error, err_mask=0x11)
[  114.340601] ata3.04: failed to recover link after 3 tries, disabling
[  114.340673] ata3: failed to recover PMP, retrying in 5 secs
[  119.350834] ata3.15: hard resetting link
[  121.478839] ata3.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[  121.799894] ata3.00: hard resetting link
[  122.135051] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  122.135126] ata3.01: hard resetting link
[  122.470974] ata3.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  122.471049] ata3.02: hard resetting link
[  122.806974] ata3.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  122.807049] ata3.03: hard resetting link
[  123.142974] ata3.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  123.143049] ata3.05: hard resetting link
[  123.478974] ata3.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[  123.491861] ata3.00: configured for UDMA/100
[  123.504712] ata3.01: configured for UDMA/100
[  123.517553] ata3.02: configured for UDMA/100
[  123.530403] ata3.03: configured for UDMA/100
[  123.862927] ata3: EH complete

The drive seems to come alive and seems to start at [  119.350834] above.
But then it's been tried 3 times and is already disabled.

BR
/LM

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-14 20:19   ` Lars Michael Jogback
@ 2008-10-15  7:03     ` Tejun Heo
  2008-10-18 16:52       ` Lars Michael Jogback
  0 siblings, 1 reply; 48+ messages in thread
From: Tejun Heo @ 2008-10-15  7:03 UTC (permalink / raw)
  To: Lars Michael Jogback; +Cc: linux-ide

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

Lars Michael Jogback wrote:
> * Tejun Heo <tj@kernel.org> [2008-10-14 14:51:54]:
> 
>> Hmmm.. drives usually make reset wait while they're spinning up so
>> that's where the spin wait logic is implemented.  Strange.  Can you
>> post full boot log and the result of "hdparm -I" on the drive?  Also,
>> if you first spin up the drive by conneciting only the power connector
>> and then connect the SATA cable a bit later, does it work?
> 
> OK, The drives are placed in hotswap-cages in an external enclosure with
> it's own powersupply. I have no possibility to connect the power to the
> actual drive before signal when I'm hotswapping. I don't think that'll
> make a difference though, since I have the same issue when I do a "cold
> boot".
> 
> With "cold boot" I mean that I turn the power on the enclosure first and
> then boot the PC. With a "warm boot" I reboot the PC a second time 
> without powercycling the disc enclosure or the discs.

Okay, that's enough.  That means spinning up doesn't have anything to
do with the detection failure.

> When I boot the first drive on the PMP is detected by the Sil3124. If
> it's a "cold boot", the second drive is not detected in Linux with the
> same error as when I hotplug the drive.
> 
> When I "warm boot" everything detects and is fine until I hotplug a
> disc.
> 
> Attached is dmesg from cold and warm boot, and hdparm -I on one of the
> disks.

Can you please try the followings?

1. If you swap the drive on the second slot with another one, does the
   detection problem stay with the port or follow the drive?

2. Does "libata.force=1.5Gbps" make any difference?

3. Apply the patch and post log after failed hotplug.

Thanks.

-- 
tejun

[-- Attachment #2: pmp-detection-debug --]
[-- Type: text/plain, Size: 531 bytes --]

---
 drivers/ata/sata_sil24.c |    1 +
 1 file changed, 1 insertion(+)

Index: tree0/drivers/ata/sata_sil24.c
===================================================================
--- tree0.orig/drivers/ata/sata_sil24.c
+++ tree0/drivers/ata/sata_sil24.c
@@ -978,6 +978,7 @@ static void sil24_error_intr(struct ata_
 	ehi = &link->eh_info;
 	ata_ehi_clear_desc(ehi);
 
+	ata_port_printk(ap, "XXX error_intr irq_stat=0x%x\n", irq_stat);
 	ata_ehi_push_desc(ehi, "irq_stat 0x%08x", irq_stat);
 
 	if (irq_stat & PORT_IRQ_SDB_NOTIFY) {

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-14  5:51 ` Tejun Heo
@ 2008-10-14 20:19   ` Lars Michael Jogback
  2008-10-15  7:03     ` Tejun Heo
  0 siblings, 1 reply; 48+ messages in thread
From: Lars Michael Jogback @ 2008-10-14 20:19 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide

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

* Tejun Heo <tj@kernel.org> [2008-10-14 14:51:54]:

> Hmmm.. drives usually make reset wait while they're spinning up so
> that's where the spin wait logic is implemented.  Strange.  Can you
> post full boot log and the result of "hdparm -I" on the drive?  Also,
> if you first spin up the drive by conneciting only the power connector
> and then connect the SATA cable a bit later, does it work?

OK, The drives are placed in hotswap-cages in an external enclosure with
it's own powersupply. I have no possibility to connect the power to the
actual drive before signal when I'm hotswapping. I don't think that'll
make a difference though, since I have the same issue when I do a "cold
boot".

With "cold boot" I mean that I turn the power on the enclosure first and
then boot the PC. With a "warm boot" I reboot the PC a second time 
without powercycling the disc enclosure or the discs.

When I boot the first drive on the PMP is detected by the Sil3124. If
it's a "cold boot", the second drive is not detected in Linux with the
same error as when I hotplug the drive.

When I "warm boot" everything detects and is fine until I hotplug a
disc.

Attached is dmesg from cold and warm boot, and hdparm -I on one of the
disks.

BR,
/LM

[-- Attachment #2: warm_boot_dmesg.txt --]
[-- Type: text/plain, Size: 49455 bytes --]

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.26-1-xen-amd64 (Debian 2.6.26-8) (waldi@debian.org) (gcc version 4.1.3 20080623 (prerelease) (Debian 4.1.2-23)) #1 SMP Thu Oct 9 17:11:22 UTC 2008
[    0.000000] Command line: root=/dev/mapper/cleopatra-root ro console=tty0 elevator=deadline
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  Xen: 0000000000000000 - 0000000080800000 (usable)
[    0.000000] Entering add_active_range(0, 0, 526336) 0 entries of 256 used
[    0.000000] max_pfn_mapped = 526336
[    0.000000] init_memory_mapping
[    0.000000] DMI present.
[    0.000000] Entering add_active_range(0, 0, 526336) 0 entries of 256 used
[    0.000000]   early res: 0 [200000-631917] TEXT DATA BSS
[    0.000000]   early res: 1 [632000-1f53fff] Xen provided
[    0.000000]   early res: 2 [1f54000-1f55fff] INITMAP
[    0.000000]   early res: 3 [1f56000-235efff] PGTABLE
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA             0 ->     4096
[    0.000000]   DMA32        4096 ->  1048576
[    0.000000]   Normal    1048576 ->  1048576
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0:        0 ->   526336
[    0.000000] On node 0 totalpages: 526336
[    0.000000]   DMA zone: 56 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 4040 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 7140 pages used for memmap
[    0.000000]   DMA32 zone: 515100 pages, LIFO batch:31
[    0.000000]   Normal zone: 0 pages used for memmap
[    0.000000]   Movable zone: 0 pages used for memmap
[    0.000000] ACPI: RSDP 000F5F00, 0014 (r0 PTLTD )
[    0.000000] ACPI: RSDT DFEE3831, 003C (r1 PTLTD    RSDT    6040000  LTP        0)
[    0.000000] ACPI: FACP DFEE9E70, 0074 (r1 INTEL            6040000 PTL         3)
[    0.000000] ACPI: DSDT DFEE4C59, 5217 (r1  INTEL GLENWOOD  6040000 MSFT  100000E)
[    0.000000] ACPI: FACS DFEEAFC0, 0040
[    0.000000] ACPI: MCFG DFEE9EE4, 003C (r1 PTLTD    MCFG    6040000  LTP        0)
[    0.000000] ACPI: HPET DFEE9F20, 0038 (r1 PTLTD  HPETTBL   6040000  LTP        1)
[    0.000000] ACPI: APIC DFEE9F58, 0080 (r1 PTLTD  	 APIC    6040000  LTP        0)
[    0.000000] ACPI: BOOT DFEE9FD8, 0028 (r1 PTLTD  $SBFTBL$  6040000  LTP        1)
[    0.000000] ACPI: SSDT DFEE386D, 13EC (r1  PmRef    CpuPm     3000 INTL 20050228)
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[    0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 2, version 0, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: IOAPIC (id[0x03] address[0xfecc0000] gsi_base[24])
[    0.000000] IOAPIC[1]: apic_id 3, version 0, address 0xfecc0000, GSI 24-47
[    0.000000] ACPI: IOAPIC (id[0x04] address[0xfecc0400] gsi_base[48])
[    0.000000] IOAPIC[2]: apic_id 4, version 0, address 0xfecc0400, GSI 48-71
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Setting APIC routing to xen
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] Allocating PCI resources starting at e1000000 (gap: e0000000:10000000)
[    0.000000] PERCPU: Allocating 22192 bytes of per cpu data
[    0.000000] NR_CPUS: 32, nr_cpu_ids: 2
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 519140
[    0.000000] Kernel command line: root=/dev/mapper/cleopatra-root ro console=tty0 elevator=deadline
[    0.000000] Initializing CPU#0
[    0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[    0.000000] Xen reported: 2394.012 MHz processor.
[    0.004000] Console: colour VGA+ 80x25
[    0.004000] console [tty0] enabled
[    0.004000] console [xvc-1] enabled
[    0.004000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.004000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.004000] Software IO TLB enabled: 
[    0.004000]  Aperture:     64 megabytes
[    0.004000]  Kernel range: ffff88000438f000 - ffff88000838f000
[    0.004000]  Address size: 27 bits
[    0.004000] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.004000] Memory: 1964436k/2105344k available (2277k kernel code, 132504k reserved, 1021k data, 216k init)
[    0.004000] CPA: page pool initialized 1 of 1 pages preallocated
[    0.788053] Calibrating delay using timer specific routine.. 4790.06 BogoMIPS (lpj=9580137)
[    0.788262] Security Framework initialized
[    0.788353] SELinux:  Disabled at boot.
[    0.788440] Capability LSM initialized
[    0.788540] Mount-cache hash table entries: 256
[    0.788756] Initializing cgroup subsys ns
[    0.788845] Initializing cgroup subsys cpuacct
[    0.788932] Initializing cgroup subsys devices
[    0.789043] CPU: L1 I cache: 32K, L1 D cache: 32K
[    0.789193] CPU: L2 cache: 4096K
[    0.789280] CPU: Physical Processor ID: 0
[    0.789365] CPU: Processor Core ID: 0
[    0.789461] ACPI: Core revision 20080321
[    0.797499] Brought up 2 CPUs
[    0.797499] Initializing CPU#1
[    0.797499] CPU: L1 I cache: 32K, L1 D cache: 32K
[    0.797499] CPU: L2 cache: 4096K
[    0.797499] CPU: Physical Processor ID: 0
[    0.797499] CPU: Processor Core ID: 1
[    0.798030] CPU0 attaching sched-domain:
[    0.798033]  domain 0: span 0-1
[    0.798035]   groups: 0 1
[    0.798038] CPU1 attaching sched-domain:
[    0.798040]  domain 0: span 0-1
[    0.798041]   groups: 1 0
[    0.800137] net_namespace: 1224 bytes
[    0.800374] NET: Registered protocol family 16
[    0.800734] ACPI: bus type pci registered
[    0.800917] PCI: MCFG configuration 0: base f0000000 segment 0 buses 0 - 19
[    0.801009] PCI: MCFG area at f0000000 reserved in E820
[    0.802447] PCI: Using MMCONFIG at f0000000 - f13fffff
[    0.802536] PCI: Using configuration type 1 for base access
[    0.805382] ACPI: EC: Look up EC in DSDT
[    0.808052] ACPI: Interpreter enabled
[    0.808139] ACPI: (supports S0 S1 S5)
[    0.808421] ACPI: Using IOAPIC for interrupt routing
[    0.813075] ACPI: PCI Root Bridge [PCI0] (0000:00)
[    0.814329] pci 0000:00:1f.0: quirk: region 1000-107f claimed by ICH6 ACPI/GPIO/TCO
[    0.814440] pci 0000:00:1f.0: quirk: region 1180-11bf claimed by ICH6 GPIO
[    0.814785] pci 0000:01:00.0: PXH quirk detected; SHPC device MSI disabled
[    0.815053] pci 0000:01:00.2: PXH quirk detected; SHPC device MSI disabled
[    0.816582] PCI: Transparent bridge - 0000:00:1e.0
[    0.816727] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.816940] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.DEV1.PXHA._PRT]
[    0.817101] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.DEV1.PXHB._PRT]
[    0.817269] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP1._PRT]
[    0.817364] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP5._PRT]
[    0.817425] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP6._PRT]
[    0.817485] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCIB._PRT]
[    0.822117] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 10 11 14 15) *7
[    0.822117] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 10 *11 14 15)
[    0.822735] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 10 11 14 15) *5
[    0.823410] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 10 *11 14 15)
[    0.824024] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 10 11 14 15) *0, disabled.
[    0.824788] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 10 11 14 15) *0, disabled.
[    0.825546] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 10 11 14 15) *0, disabled.
[    0.826311] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 *10 11 14 15)
[    0.830115] Linux Plug and Play Support v0.97 (c) Adam Belay
[    0.830115] pnp: PnP ACPI init
[    0.830115] ACPI: bus type pnp registered
[    0.830115] pnp 00:00: parse allocated resources
[    0.830115] pnp 00:00:   add io  0xcf8-0xcff flags 0x1
[    0.830115] pnp 00:00: Plug and Play ACPI device, IDs PNP0a03 (active)
[    0.830115] pnp 00:01: parse allocated resources
[    0.830115] pnp 00:01:   add io  0x10-0x1f flags 0x1
[    0.830115] pnp 00:01:   add io  0x24-0x25 flags 0x1
[    0.830115] pnp 00:01:   add io  0x28-0x29 flags 0x1
[    0.830115] pnp 00:01:   add io  0x2c-0x2d flags 0x1
[    0.830115] pnp 00:01:   add io  0x30-0x31 flags 0x1
[    0.830115] pnp 00:01:   add io  0x34-0x35 flags 0x1
[    0.830115] pnp 00:01:   add io  0x38-0x39 flags 0x1
[    0.830115] pnp 00:01:   add io  0x3c-0x3d flags 0x1
[    0.830115] pnp 00:01:   add io  0x72-0x77 flags 0x1
[    0.830115] pnp 00:01:   add io  0x80-0x80 flags 0x1
[    0.830115] pnp 00:01:   add io  0x90-0x9f flags 0x1
[    0.830115] pnp 00:01:   add io  0xa4-0xa5 flags 0x1
[    0.830115] pnp 00:01:   add io  0xa8-0xa9 flags 0x1
[    0.830115] pnp 00:01:   add io  0xac-0xad flags 0x1
[    0.830115] pnp 00:01:   add io  0xb0-0xb5 flags 0x1
[    0.830115] pnp 00:01:   add io  0xb8-0xb9 flags 0x1
[    0.830115] pnp 00:01:   add io  0xbc-0xbd flags 0x1
[    0.830115] pnp 00:01:   add io  0x295-0x296 flags 0x1
[    0.830115] pnp 00:01:   add io  0x800-0x83f flags 0x1
[    0.830115] pnp 00:01:   add io  0x900-0x90f flags 0x1
[    0.830115] pnp 00:01:   add io  0x1000-0x107f flags 0x1
[    0.830115] pnp 00:01:   add io  0x1180-0x11bf flags 0x1
[    0.830115] pnp 00:01:   add io  0x2e-0x2f flags 0x1
[    0.830115] pnp 00:01:   add io  0x4d0-0x4d1 flags 0x1
[    0.830115] pnp 00:01:   add io  0xfe00-0xfe00 flags 0x1
[    0.830115] pnp 00:01:   add mem 0xfed14000-0xfed17fff flags 0x1
[    0.830115] pnp 00:01:   add mem 0xfed13000-0xfed13fff flags 0x1
[    0.830115] pnp 00:01:   add mem 0xfed18000-0xfed1bfff flags 0x1
[    0.830115] pnp 00:01:   add mem 0xf0000000-0xf3ffffff flags 0x1
[    0.830115] pnp 00:01:   add mem 0xfed20000-0xfed8ffff flags 0x1
[    0.830115] pnp 00:01:   add mem 0xfef00000-0xfeffffff flags 0x1
[    0.830115] pnp 00:01: PNP0c02: calling quirk_system_pci_resources+0x0/0x15c
[    0.830115] pnp 00:01: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.830115] pnp 00:02: parse allocated resources
[    0.830115] pnp 00:02:   add io  0x0-0xf flags 0x1
[    0.830115] pnp 00:02:   add io  0x81-0x8f flags 0x1
[    0.830115] pnp 00:02:   add io  0xc0-0xdf flags 0x1
[    0.830115] pnp 00:02:   add dma 4 flags 0x2
[    0.830115] pnp 00:02: Plug and Play ACPI device, IDs PNP0200 (active)
[    0.830115] pnp 00:03: parse allocated resources
[    0.830115] pnp 00:03:   add io  0xf0-0xfe flags 0x1
[    0.830115] pnp 00:03:   add irq 13 flags 0x1
[    0.830115] pnp 00:03: Plug and Play ACPI device, IDs PNP0c04 (active)
[    0.830115] pnp 00:04: parse allocated resources
[    0.830115] pnp 00:04:   add io  0x70-0x71 flags 0x1
[    0.830115] pnp 00:04: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.830115] pnp 00:05: parse allocated resources
[    0.830115] pnp 00:05:   add io  0x61-0x61 flags 0x1
[    0.830115] pnp 00:05: Plug and Play ACPI device, IDs PNP0800 (active)
[    0.830115] pnp 00:06: parse allocated resources
[    0.830115] pnp 00:06:   add irq 8 flags 0x1
[    0.830115] pnp 00:06:   add mem 0xfed00000-0xfed003ff flags 0x0
[    0.830115] pnp 00:06: Plug and Play ACPI device, IDs PNP0103 (active)
[    0.830115] pnp 00:07: parse allocated resources
[    0.830115] pnp 00:07:   add mem 0xff800000-0xffffffff flags 0x0
[    0.830115] pnp 00:07: Plug and Play ACPI device, IDs INT0800 (active)
[    0.830115] pnp 00:08: parse allocated resources
[    0.830115] pnp 00:08:   add io  0x60-0x60 flags 0x1
[    0.830115] pnp 00:08:   add io  0x64-0x64 flags 0x1
[    0.830115] pnp 00:08:   add irq 1 flags 0x1
[    0.830115] pnp 00:08: Plug and Play ACPI device, IDs PNP0303 PNP030b (active)
[    0.830115] pnp 00:09: parse allocated resources
[    0.830115] pnp 00:09:   add irq 12 flags 0x1
[    0.830115] pnp 00:09: Plug and Play ACPI device, IDs PNP0f13 PNP0f13 (active)
[    0.830115] pnp 00:0a: parse allocated resources
[    0.830115] pnp 00:0a:   add io  0x3f8-0x3ff flags 0x1
[    0.830115] pnp 00:0a:   add irq 4 flags 0x1
[    0.830115] pnp 00:0a: parse resource options
[    0.830115] pnp 00:0a: new independent option
[    0.830115] pnp 00:0a: new dependent option (priority 0x0)
[    0.830115] pnp 00:0a:   io  min 0x3f8 max 0x3f8 align 1 size 8 flags 0x1
[    0.830115] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830115] pnp 00:0a: new dependent option (priority 0x1)
[    0.830115] pnp 00:0a:   io  min 0x2f8 max 0x2f8 align 1 size 8 flags 0x1
[    0.830115] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830115] pnp 00:0a: new dependent option (priority 0x1)
[    0.830115] pnp 00:0a:   io  min 0x3e8 max 0x3e8 align 1 size 8 flags 0x1
[    0.830115] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830115] pnp 00:0a: new dependent option (priority 0x1)
[    0.830115] pnp 00:0a:   io  min 0x2e8 max 0x2e8 align 1 size 8 flags 0x1
[    0.830115] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830115] pnp 00:0a: new dependent option (priority 0x2)
[    0.830115] pnp 00:0a:   io  min 0x3f8 max 0x3f8 align 1 size 8 flags 0x1
[    0.830115] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830115] pnp 00:0a: new dependent option (priority 0x2)
[    0.830115] pnp 00:0a:   io  min 0x2f8 max 0x2f8 align 1 size 8 flags 0x1
[    0.830115] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830115] pnp 00:0a: new dependent option (priority 0x2)
[    0.830115] pnp 00:0a:   io  min 0x3e8 max 0x3e8 align 1 size 8 flags 0x1
[    0.830115] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830115] pnp 00:0a: new dependent option (priority 0x2)
[    0.830115] pnp 00:0a:   io  min 0x2e8 max 0x2e8 align 1 size 8 flags 0x1
[    0.830115] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830115] pnp 00:0a: end dependent options
[    0.830115] pnp 00:0a: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.830115] pnp 00:0b: parse allocated resources
[    0.830115] pnp 00:0b:   add io  0x2f8-0x2ff flags 0x1
[    0.830126] pnp 00:0b:   add irq 3 flags 0x1
[    0.830127] pnp 00:0b: parse resource options
[    0.830129] pnp 00:0b: new independent option
[    0.830137] pnp 00:0b: new dependent option (priority 0x1)
[    0.830139] pnp 00:0b:   io  min 0x3f8 max 0x3f8 align 1 size 8 flags 0x1
[    0.830142] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830145] pnp 00:0b: new dependent option (priority 0x0)
[    0.830147] pnp 00:0b:   io  min 0x2f8 max 0x2f8 align 1 size 8 flags 0x1
[    0.830150] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830152] pnp 00:0b: new dependent option (priority 0x1)
[    0.830155] pnp 00:0b:   io  min 0x3e8 max 0x3e8 align 1 size 8 flags 0x1
[    0.830158] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830160] pnp 00:0b: new dependent option (priority 0x1)
[    0.830162] pnp 00:0b:   io  min 0x2e8 max 0x2e8 align 1 size 8 flags 0x1
[    0.830165] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830168] pnp 00:0b: new dependent option (priority 0x2)
[    0.830170] pnp 00:0b:   io  min 0x3f8 max 0x3f8 align 1 size 8 flags 0x1
[    0.830173] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830175] pnp 00:0b: new dependent option (priority 0x2)
[    0.830177] pnp 00:0b:   io  min 0x2f8 max 0x2f8 align 1 size 8 flags 0x1
[    0.830180] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830183] pnp 00:0b: new dependent option (priority 0x2)
[    0.830185] pnp 00:0b:   io  min 0x3e8 max 0x3e8 align 1 size 8 flags 0x1
[    0.830188] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830190] pnp 00:0b: new dependent option (priority 0x2)
[    0.830192] pnp 00:0b:   io  min 0x2e8 max 0x2e8 align 1 size 8 flags 0x1
[    0.830195] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830198] pnp 00:0b: end dependent options
[    0.830244] pnp 00:0b: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.830369] pnp 00:0c: parse allocated resources
[    0.830640] pnp 00:0c:   add io  0x3f0-0x3f5 flags 0x1
[    0.830643] pnp 00:0c:   add io  0x3f7-0x3f7 flags 0x1
[    0.830647] pnp 00:0c:   add irq 6 flags 0x1
[    0.830649] pnp 00:0c:   add dma 2 flags 0x0
[    0.830650] pnp 00:0c: parse resource options
[    0.830652] pnp 00:0c: new independent option
[    0.830657] pnp 00:0c: new dependent option (priority 0x0)
[    0.830659] pnp 00:0c:   io  min 0x3f0 max 0x3f0 align 1 size 6 flags 0x1
[    0.830661] pnp 00:0c:   io  min 0x3f7 max 0x3f7 align 1 size 1 flags 0x1
[    0.830665] pnp 00:0c:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000040 flags 0x1
[    0.830667] pnp 00:0c:   dma bitmask 0x4 flags 0x0
[    0.830669] pnp 00:0c: new dependent option (priority 0x0)
[    0.830671] pnp 00:0c:   io  min 0x370 max 0x370 align 1 size 6 flags 0x1
[    0.830673] pnp 00:0c:   io  min 0x377 max 0x377 align 1 size 1 flags 0x1
[    0.830676] pnp 00:0c:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000040 flags 0x1
[    0.830679] pnp 00:0c:   dma bitmask 0x4 flags 0x0
[    0.830680] pnp 00:0c: end dependent options
[    0.830728] pnp 00:0c: Plug and Play ACPI device, IDs PNP0700 (active)
[    0.830888] pnp: PnP ACPI: found 13 devices
[    0.830979] ACPI: ACPI bus type pnp unregistered
[    0.831097] xen_mem: Initialising balloon driver.
[    0.834114] usbcore: registered new interface driver usbfs
[    0.834114] usbcore: registered new interface driver hub
[    0.834114] usbcore: registered new device driver usb
[    0.834115] PCI: Using ACPI for IRQ routing
[    0.834115] PCI: Cannot allocate resource region 7 of bridge 0000:00:1c.0
[    0.840313] PCI: Cannot allocate resource region 8 of bridge 0000:00:1c.0
[    0.840405] PCI: Cannot allocate resource region 9 of bridge 0000:00:1c.0
[    0.878197] ACPI: RTC can wake from S4
[    0.889989] pnp: the driver 'system' has been registered
[    0.890008] system 00:01: ioport range 0x295-0x296 has been reserved
[    0.890113] system 00:01: ioport range 0x800-0x83f has been reserved
[    0.890197] system 00:01: ioport range 0x900-0x90f has been reserved
[    0.890197] system 00:01: ioport range 0x1000-0x107f has been reserved
[    0.890197] system 00:01: ioport range 0x1180-0x11bf has been reserved
[    0.890197] system 00:01: ioport range 0x4d0-0x4d1 has been reserved
[    0.890197] system 00:01: ioport range 0xfe00-0xfe00 has been reserved
[    0.890197] system 00:01: iomem range 0xfed14000-0xfed17fff has been reserved
[    0.890197] system 00:01: iomem range 0xfed13000-0xfed13fff has been reserved
[    0.890197] system 00:01: iomem range 0xfed18000-0xfed1bfff has been reserved
[    0.890197] system 00:01: iomem range 0xf0000000-0xf3ffffff could not be reserved
[    0.890197] system 00:01: iomem range 0xfed20000-0xfed8ffff has been reserved
[    0.890197] system 00:01: iomem range 0xfef00000-0xfeffffff has been reserved
[    0.890197] system 00:01: driver attached
[    0.890197] PCI: Failed to allocate mem resource #9:100000@e1800000 for 0000:01:00.2
[    0.890197] PCI: Bridge: 0000:01:00.0
[    0.890197]   IO window: 4000-4fff
[    0.890197]   MEM window: 0xe0200000-0xe02fffff
[    0.890197]   PREFETCH window: 0x00000000e1000000-0x00000000e17fffff
[    0.890197] PCI: Bridge: 0000:01:00.2
[    0.890197]   IO window: 5000-5fff
[    0.890197]   MEM window: 0xe0300000-0xe03fffff
[    0.890197]   PREFETCH window: disabled.
[    0.890197] PCI: Bridge: 0000:00:01.0
[    0.890197]   IO window: 4000-5fff
[    0.890197]   MEM window: 0xe0100000-0xe03fffff
[    0.890197]   PREFETCH window: 0x00000000e1000000-0x00000000e17fffff
[    0.890197] PCI: Bridge: 0000:00:1c.0
[    0.890197]   IO window: disabled.
[    0.890197]   MEM window: disabled.
[    0.890197]   PREFETCH window: disabled.
[    0.890197] PCI: Bridge: 0000:00:1c.4
[    0.890197]   IO window: 6000-6fff
[    0.890197]   MEM window: 0xe0400000-0xe04fffff
[    0.890197]   PREFETCH window: disabled.
[    0.890197] PCI: Bridge: 0000:00:1c.5
[    0.890197]   IO window: 7000-7fff
[    0.895446]   MEM window: 0xe0500000-0xe05fffff
[    0.895540]   PREFETCH window: disabled.
[    0.895637] PCI: Bridge: 0000:00:1e.0
[    0.895727]   IO window: 8000-8fff
[    0.895820]   MEM window: 0xe0600000-0xe06fffff
[    0.895914]   PREFETCH window: 0x00000000e8000000-0x00000000efffffff
[    0.896041] ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16
[    0.896222] PCI: Setting latency timer of device 0000:00:01.0 to 64
[    0.896252] PCI: Setting latency timer of device 0000:01:00.0 to 64
[    0.896282] PCI: Setting latency timer of device 0000:01:00.2 to 64
[    0.896315] ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 17 (level, low) -> IRQ 17
[    0.896498] PCI: Setting latency timer of device 0000:00:1c.0 to 64
[    0.896529] ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 17 (level, low) -> IRQ 17
[    0.896710] PCI: Setting latency timer of device 0000:00:1c.4 to 64
[    0.896741] ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 16 (level, low) -> IRQ 16
[    0.896921] PCI: Setting latency timer of device 0000:00:1c.5 to 64
[    0.896940] PCI: Setting latency timer of device 0000:00:1e.0 to 64
[    0.896973] NET: Registered protocol family 2
[    0.943648] IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.944058] TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
[    0.945552] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.946209] TCP: Hash tables configured (established 262144 bind 65536)
[    0.946300] TCP reno registered
[    0.955754] NET: Registered protocol family 1
[    0.955960] checking if image is initramfs... it is
[    0.975589] Freeing initrd memory: 21558k freed
[    0.984084] Simple Boot Flag at 0x38 set to 0x1
[    0.986562] audit: initializing netlink socket (disabled)
[    0.986562] type=2000 audit(1224002821.976:1): initialized
[    0.986562] VFS: Disk quotas dquot_6.5.1
[    0.986562] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.986562] msgmni has been set to 4138
[    0.986562] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.986562] io scheduler noop registered
[    0.986562] io scheduler anticipatory registered
[    0.986562] io scheduler deadline registered (default)
[    0.986562] io scheduler cfq registered
[    0.986562] pci 0000:14:04.0: Boot video device
[    0.986562] PCI: Setting latency timer of device 0000:00:01.0 to 64
[    0.986562] assign_interrupt_mode Found MSI capability
[    0.986562] no ownder
[    0.986562] map irq failed
[    0.986562] Allocate Port Service[0000:00:01.0:pcie00]
[    0.986562] Allocate Port Service[0000:00:01.0:pcie03]
[    0.986562] PCI: Setting latency timer of device 0000:00:1c.0 to 64
[    0.986562] assign_interrupt_mode Found MSI capability
[    0.986562] no ownder
[    0.986653] map irq failed
[    0.987908] Allocate Port Service[0000:00:1c.0:pcie00]
[    0.988343] Allocate Port Service[0000:00:1c.0:pcie02]
[    0.988747] Allocate Port Service[0000:00:1c.0:pcie03]
[    0.989217] PCI: Setting latency timer of device 0000:00:1c.4 to 64
[    0.989283] assign_interrupt_mode Found MSI capability
[    0.989411] no ownder
[    0.989496] map irq failed
[    0.989582] Allocate Port Service[0000:00:1c.4:pcie00]
[    0.990904] Allocate Port Service[0000:00:1c.4:pcie02]
[    0.991722] Allocate Port Service[0000:00:1c.4:pcie03]
[    0.991722] PCI: Setting latency timer of device 0000:00:1c.5 to 64
[    0.991722] assign_interrupt_mode Found MSI capability
[    0.991722] no ownder
[    0.991722] map irq failed
[    0.991722] Allocate Port Service[0000:00:1c.5:pcie00]
[    0.991722] Allocate Port Service[0000:00:1c.5:pcie02]
[    0.991722] Allocate Port Service[0000:00:1c.5:pcie03]
[    0.995722] Linux agpgart interface v0.103
[    0.995722] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[    0.995722] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.995722] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    0.995722] pnp: the driver 'serial' has been registered
[    0.995722] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.995722] serial 00:0a: driver attached
[    0.995722] 00:0b: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    0.995722] serial 00:0b: driver attached
[    0.995722] brd: module loaded
[    0.995722] input: Macintosh mouse button emulation as /class/input/input0
[    0.995954] Xen virtual console successfully installed as xvc0
[    0.996794] Event-channel device installed.
[    0.999723] netfront: Initialising virtual ethernet driver.
[    0.999723] pnp: the driver 'i8042 kbd' has been registered
[    0.999723] i8042 kbd 00:08: driver attached
[    0.999723] pnp: the driver 'i8042 aux' has been registered
[    0.999723] i8042 aux 00:09: driver attached
[    0.999723] PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
[    1.002835] serio: i8042 KBD port at 0x60,0x64 irq 1
[    1.002931] serio: i8042 AUX port at 0x60,0x64 irq 12
[    1.030935] mice: PS/2 mouse device common for all mice
[    1.031218] pnp: the driver 'rtc_cmos' has been registered
[    1.031399] rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
[    1.031512] rtc0: alarms up to one month, y3k
[    1.031602] rtc_cmos 00:04: driver attached
[    1.031765] No iBFT detected.
[    1.032107] TCP cubic registered
[    1.032107] NET: Registered protocol family 17
[    1.032107] registered taskstats version 1
[    1.032107] rtc_cmos 00:04: setting system clock to 2008-10-14 16:47:02 UTC (1224002822)
[    1.032107] Freeing unused kernel memory: 216k freed
[    1.052730] input: AT Translated Set 2 keyboard as /class/input/input1
[    1.134498] ACPI: ACPI0007:00 is registered as cooling_device0
[    1.136134] ACPI: ACPI0007:01 is registered as cooling_device1
[    1.136545] ACPI: ACPI0007:02 is registered as cooling_device2
[    1.136953] ACPI: ACPI0007:03 is registered as cooling_device3
[    1.137360] ACPI: ACPI0007:04 is registered as cooling_device4
[    1.137769] ACPI: ACPI0007:05 is registered as cooling_device5
[    1.138179] ACPI: ACPI0007:06 is registered as cooling_device6
[    1.138585] ACPI: ACPI0007:07 is registered as cooling_device7
[    1.402389] SCSI subsystem initialized
[    1.403304] 3ware 9000 Storage Controller device driver for Linux v2.26.02.010.
[    1.403461] ACPI: PCI Interrupt 0000:02:01.0[A] -> GSI 24 (level, low) -> IRQ 24
[    1.405473] No dock devices found.
[    1.413656] libata version 3.00 loaded.
[    1.426215] e1000e: Intel(R) PRO/1000 Network Driver - 0.3.3.3-k2
[    1.426315] e1000e: Copyright (c) 1999-2008 Intel Corporation.
[    1.431707] USB Universal Host Controller Interface driver v3.0
[    1.518256] floppy0: Unable to grab DMA2 for the floppy driver
[    1.544618] FDC 0 is a post-1991 82077
[    1.632660] scsi0 : 3ware 9000 Storage Controller
[    1.632853] 3w-9xxx: scsi0: Found a 3ware 9000 Storage Controller at 0xe0200000, IRQ: 24.
[    1.968585] 3w-9xxx: scsi0: Firmware FE9X 2.08.00.009, BIOS BE9X 2.03.01.052, Ports: 12.
[    1.969625] sata_sil24 0000:03:01.0: version 1.1
[    1.969983] ACPI: PCI Interrupt 0000:03:01.0[A] -> GSI 48 (level, low) -> IRQ 48
[    1.970179] sata_sil24 0000:03:01.0: Applying completion IRQ loss on PCI-X errata fix
[    1.970684] scsi1 : sata_sil24
[    1.970810] scsi2 : sata_sil24
[    1.970932] scsi3 : sata_sil24
[    1.971052] scsi4 : sata_sil24
[    1.971163] ata1: SATA max UDMA/100 host m128@0xe0308000 port 0xe0300000 irq 48
[    1.971274] ata2: SATA max UDMA/100 host m128@0xe0308000 port 0xe0302000 irq 48
[    1.971384] ata3: SATA max UDMA/100 host m128@0xe0308000 port 0xe0304000 irq 48
[    1.971495] ata4: SATA max UDMA/100 host m128@0xe0308000 port 0xe0306000 irq 48
[    1.972714] ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 23
[    1.972714] PCI: Setting latency timer of device 0000:00:1d.0 to 64
[    1.972714] uhci_hcd 0000:00:1d.0: UHCI Host Controller
[    1.972714] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
[    1.972714] uhci_hcd 0000:00:1d.0: irq 23, io base 0x00003000
[    1.972714] usb usb1: configuration #1 chosen from 1 choice
[    1.972714] hub 1-0:1.0: USB hub found
[    1.972714] hub 1-0:1.0: 2 ports detected
[    2.073496] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    2.073604] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.073729] usb usb1: Product: UHCI Host Controller
[    2.073818] usb usb1: Manufacturer: Linux 2.6.26-1-xen-amd64 uhci_hcd
[    2.073909] usb usb1: SerialNumber: 0000:00:1d.0
[    2.074101] ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 19
[    2.074284] PCI: Setting latency timer of device 0000:00:1d.1 to 64
[    2.074288] uhci_hcd 0000:00:1d.1: UHCI Host Controller
[    2.074413] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
[    2.074551] uhci_hcd 0000:00:1d.1: irq 19, io base 0x00003020
[    2.081305] usb usb2: configuration #1 chosen from 1 choice
[    2.081416] hub 2-0:1.0: USB hub found
[    2.081510] hub 2-0:1.0: 2 ports detected
[    2.186026] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    2.186132] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.186255] usb usb2: Product: UHCI Host Controller
[    2.186343] usb usb2: Manufacturer: Linux 2.6.26-1-xen-amd64 uhci_hcd
[    2.186433] usb usb2: SerialNumber: 0000:00:1d.1
[    2.187777] ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 18
[    2.187955] PCI: Setting latency timer of device 0000:00:1d.2 to 64
[    2.187959] uhci_hcd 0000:00:1d.2: UHCI Host Controller
[    2.188080] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
[    2.188216] uhci_hcd 0000:00:1d.2: irq 18, io base 0x00003040
[    2.188376] usb usb3: configuration #1 chosen from 1 choice
[    2.188485] hub 3-0:1.0: USB hub found
[    2.188579] hub 3-0:1.0: 2 ports detected
[    2.291019] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    2.291125] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.291249] usb usb3: Product: UHCI Host Controller
[    2.291336] usb usb3: Manufacturer: Linux 2.6.26-1-xen-amd64 uhci_hcd
[    2.291426] usb usb3: SerialNumber: 0000:00:1d.2
[    2.292772] ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 16 (level, low) -> IRQ 16
[    2.292949] PCI: Setting latency timer of device 0000:00:1d.3 to 64
[    2.292953] uhci_hcd 0000:00:1d.3: UHCI Host Controller
[    2.293074] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 4
[    2.293211] uhci_hcd 0000:00:1d.3: irq 16, io base 0x00003060
[    2.293269] usb usb4: configuration #1 chosen from 1 choice
[    2.293269] hub 4-0:1.0: USB hub found
[    2.293269] hub 4-0:1.0: 2 ports detected
[    2.394870] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    2.394977] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.395100] usb usb4: Product: UHCI Host Controller
[    2.395188] usb usb4: Manufacturer: Linux 2.6.26-1-xen-amd64 uhci_hcd
[    2.395278] usb usb4: SerialNumber: 0000:00:1d.3
[    2.397313] ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 23
[    2.397505] PCI: Setting latency timer of device 0000:00:1d.7 to 64
[    2.397510] ehci_hcd 0000:00:1d.7: EHCI Host Controller
[    2.397636] ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 5
[    2.401659] ehci_hcd 0000:00:1d.7: debug port 1
[    2.401756] PCI: cache line size of 32 is not supported by device 0000:00:1d.7
[    2.401760] ehci_hcd 0000:00:1d.7: irq 23, io mem 0xe0000000
[    2.416650] ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[    2.416837] usb usb5: configuration #1 chosen from 1 choice
[    2.416969] hub 5-0:1.0: USB hub found
[    2.417067] hub 5-0:1.0: 8 ports detected
[    2.520759] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    2.520870] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.520994] usb usb5: Product: EHCI Host Controller
[    2.521084] usb usb5: Manufacturer: Linux 2.6.26-1-xen-amd64 ehci_hcd
[    2.521177] usb usb5: SerialNumber: 0000:00:1d.7
[    4.084772] ata1: SATA link down (SStatus 0 SControl 0)
[    6.196947] ata2: SATA link down (SStatus 0 SControl 0)
[    8.340912] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[    8.341049] ata3.15: Port Multiplier 1.1, 0x1095:0x3726 r23, 6 ports, feat 0x1/0x9
[    8.356999] ata3.00: hard resetting link
[    8.693037] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[    8.693149] ata3.01: hard resetting link
[    9.029033] ata3.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    9.029145] ata3.02: hard resetting link
[    9.364951] ata3.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    9.365064] ata3.03: hard resetting link
[    9.700966] ata3.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    9.701079] ata3.04: hard resetting link
[   10.036928] ata3.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   10.037040] ata3.05: hard resetting link
[   10.372938] ata3.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[   10.380748] ata3.00: FORCE: horkage modified (noncq)
[   10.380910] ata3.00: ATA-7: SAMSUNG HD103UJ, 1AA01112, max UDMA7
[   10.381021] ata3.00: 1953525168 sectors, multi 16: LBA48 NCQ (not used)
[   10.387354] ata3.00: configured for UDMA/100
[   10.393983] ata3.01: FORCE: horkage modified (noncq)
[   10.394145] ata3.01: ATA-7: SAMSUNG HD103UJ, 1AA01112, max UDMA7
[   10.394248] ata3.01: 1953525168 sectors, multi 0: LBA48 NCQ (not used)
[   10.400756] ata3.01: configured for UDMA/100
[   10.407119] ata3.02: FORCE: horkage modified (noncq)
[   10.407279] ata3.02: ATA-7: SAMSUNG HD103UJ, 1AA01112, max UDMA7
[   10.407391] ata3.02: 1953525168 sectors, multi 0: LBA48 NCQ (not used)
[   10.413894] ata3.02: configured for UDMA/100
[   10.420249] ata3.03: FORCE: horkage modified (noncq)
[   10.420410] ata3.03: ATA-7: SAMSUNG HD103UJ, 1AA01112, max UDMA7
[   10.420521] ata3.03: 1953525168 sectors, multi 0: LBA48 NCQ (not used)
[   10.427013] ata3.03: configured for UDMA/100
[   10.433387] ata3.04: FORCE: horkage modified (noncq)
[   10.433547] ata3.04: ATA-7: SAMSUNG HD103UJ, 1AA01113, max UDMA7
[   10.433650] ata3.04: 1953525168 sectors, multi 0: LBA48 NCQ (not used)
[   10.439892] ata3.04: configured for UDMA/100
[   10.440027] ata3: EH complete
[   12.550294] ata4: SATA link down (SStatus 0 SControl 0)
[   12.550489] scsi 3:0:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
[   12.550719] scsi 3:1:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
[   12.550917] scsi 3:2:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
[   12.551115] scsi 3:3:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
[   12.551313] scsi 3:4:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
[   12.552827] ACPI: PCI Interrupt 0000:12:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[   12.552827] PCI: Setting latency timer of device 0000:12:00.0 to 64
[   12.568654] Driver 'sd' needs updating - please use bus_type methods
[   12.568654] sd 3:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.568654] sd 3:0:0:0: [sda] Write Protect is off
[   12.568654] sd 3:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   12.568654] sd 3:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.568654] sd 3:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.568654] sd 3:0:0:0: [sda] Write Protect is off
[   12.568654] sd 3:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   12.568654] sd 3:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.568654]  sda: sda1 sda2
[   12.591301] sd 3:0:0:0: [sda] Attached SCSI disk
[   12.591438] sd 3:1:0:0: [sdb] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.591558] sd 3:1:0:0: [sdb] Write Protect is off
[   12.591650] sd 3:1:0:0: [sdb] Mode Sense: 00 3a 00 00
[   12.591668] sd 3:1:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.591816] sd 3:1:0:0: [sdb] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.591935] sd 3:1:0:0: [sdb] Write Protect is off
[   12.592026] sd 3:1:0:0: [sdb] Mode Sense: 00 3a 00 00
[   12.592044] sd 3:1:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.592157]  sdb: sdb1 sdb2
[   12.606434] sd 3:1:0:0: [sdb] Attached SCSI disk
[   12.606441] sd 3:2:0:0: [sdc] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.606561] sd 3:2:0:0: [sdc] Write Protect is off
[   12.606652] sd 3:2:0:0: [sdc] Mode Sense: 00 3a 00 00
[   12.606670] sd 3:2:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.606816] sd 3:2:0:0: [sdc] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.606935] sd 3:2:0:0: [sdc] Write Protect is off
[   12.607027] sd 3:2:0:0: [sdc] Mode Sense: 00 3a 00 00
[   12.607045] sd 3:2:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.607158]  sdc: sdc1 sdc2
[   12.622303] sd 3:2:0:0: [sdc] Attached SCSI disk
[   12.622303] sd 3:3:0:0: [sdd] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.622303] sd 3:3:0:0: [sdd] Write Protect is off
[   12.622635] sd 3:3:0:0: [sdd] Mode Sense: 00 3a 00 00
[   12.622654] sd 3:3:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.622798] sd 3:3:0:0: [sdd] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.622918] sd 3:3:0:0: [sdd] Write Protect is off
[   12.623009] sd 3:3:0:0: [sdd] Mode Sense: 00 3a 00 00
[   12.623027] sd 3:3:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.623141]  sdd: sdd1 sdd2
[   12.634020] sd 3:3:0:0: [sdd] Attached SCSI disk
[   12.634146] sd 3:4:0:0: [sde] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.634266] sd 3:4:0:0: [sde] Write Protect is off
[   12.634357] sd 3:4:0:0: [sde] Mode Sense: 00 3a 00 00
[   12.634375] sd 3:4:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.634467] sd 3:4:0:0: [sde] 1953525168 512-byte hardware sectors (1000205 MB)
[   12.634592] sd 3:4:0:0: [sde] Write Protect is off
[   12.634692] sd 3:4:0:0: [sde] Mode Sense: 00 3a 00 00
[   12.634711] sd 3:4:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.634823]  sde: sde1 sde2
[   12.648639] sd 3:4:0:0: [sde] Attached SCSI disk
[   12.674483] eth0: (PCI Express:2.5GB/s:Width x1) 00:30:48:8f:59:b6
[   12.674812] eth0: Intel(R) PRO/1000 Network Connection
[   12.675076] eth0: MAC: 2, PHY: 2, PBA No: ffffff-0ff
[   12.675240] ACPI: PCI Interrupt 0000:13:00.0[A] -> GSI 17 (level, low) -> IRQ 17
[   12.675433] PCI: Setting latency timer of device 0000:13:00.0 to 64
[   12.801251] eth1: (PCI Express:2.5GB/s:Width x1) 00:30:48:8f:59:b7
[   12.801353] eth1: Intel(R) PRO/1000 Network Connection
[   12.801511] eth1: MAC: 2, PHY: 2, PBA No: ffffff-0ff
[   12.804898] ata_piix 0000:00:1f.2: version 2.12
[   12.804931] ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 19
[   12.805119] ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
[   12.971325] PCI: Setting latency timer of device 0000:00:1f.2 to 64
[   12.971899] scsi5 : ata_piix
[   12.972545] scsi6 : ata_piix
[   12.973391] ata5: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0x30a0 irq 14
[   12.973484] ata6: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0x30a8 irq 15
[   13.136414] ata5.00: FORCE: horkage modified (noncq)
[   13.138356] ata5.00: ATA-8: SAMSUNG HM121HI, LZ100-08, max UDMA7
[   13.138460] ata5.00: 234441648 sectors, multi 16: LBA48 NCQ (not used)
[   13.154277] ata5.00: configured for UDMA/133
[   13.316425] ata6.00: FORCE: horkage modified (noncq)
[   13.318362] ata6.00: ATA-8: SAMSUNG HM121HI, LZ100-08, max UDMA7
[   13.318466] ata6.00: 234441648 sectors, multi 16: LBA48 NCQ (not used)
[   13.334269] ata6.00: configured for UDMA/133
[   13.334463] scsi 5:0:0:0: Direct-Access     ATA      SAMSUNG HM121HI  LZ10 PQ: 0 ANSI: 5
[   13.334654] sd 5:0:0:0: [sdf] 234441648 512-byte hardware sectors (120034 MB)
[   13.334760] sd 5:0:0:0: [sdf] Write Protect is off
[   13.334851] sd 5:0:0:0: [sdf] Mode Sense: 00 3a 00 00
[   13.334869] sd 5:0:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.335023] sd 5:0:0:0: [sdf] 234441648 512-byte hardware sectors (120034 MB)
[   13.335030] sd 5:0:0:0: [sdf] Write Protect is off
[   13.335030] sd 5:0:0:0: [sdf] Mode Sense: 00 3a 00 00
[   13.335030] sd 5:0:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.335030]  sdf: sdf1 sdf2
[   13.931999] sd 5:0:0:0: [sdf] Attached SCSI disk
[   13.932162] scsi 6:0:0:0: Direct-Access     ATA      SAMSUNG HM121HI  LZ10 PQ: 0 ANSI: 5
[   13.932329] sd 6:0:0:0: [sdg] 234441648 512-byte hardware sectors (120034 MB)
[   13.932434] sd 6:0:0:0: [sdg] Write Protect is off
[   13.932525] sd 6:0:0:0: [sdg] Mode Sense: 00 3a 00 00
[   13.932543] sd 6:0:0:0: [sdg] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.932690] sd 6:0:0:0: [sdg] 234441648 512-byte hardware sectors (120034 MB)
[   13.932795] sd 6:0:0:0: [sdg] Write Protect is off
[   13.932886] sd 6:0:0:0: [sdg] Mode Sense: 00 3a 00 00
[   13.932903] sd 6:0:0:0: [sdg] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.933017]  sdg: sdg1 sdg2
[   14.570553] sd 6:0:0:0: [sdg] Attached SCSI disk
[   14.577082] Uniform Multi-Platform E-IDE driver
[   14.577082] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[   14.807015] md: raid1 personality registered for level 1
[   14.811907] xor: automatically using best checksumming function: generic_sse
[   14.828986]    generic_sse:  5708.000 MB/sec
[   14.828988] xor: using function: generic_sse (5708.000 MB/sec)
[   14.830490] async_tx: api initialized (async)
[   14.900184] raid6: int64x1   2224 MB/s
[   14.968199] raid6: int64x2   3011 MB/s
[   15.036212] raid6: int64x4   2640 MB/s
[   15.104225] raid6: int64x8   1718 MB/s
[   15.172246] raid6: sse2x1    3278 MB/s
[   15.240263] raid6: sse2x2    3458 MB/s
[   15.308276] raid6: sse2x4    7026 MB/s
[   15.308276] raid6: using algorithm sse2x4 (7026 MB/s)
[   15.308344] md: raid6 personality registered for level 6
[   15.308435] md: raid5 personality registered for level 5
[   15.308527] md: raid4 personality registered for level 4
[   15.323279] md: md0 stopped.
[   15.335116] md: bind<sdg1>
[   15.336052] md: bind<sdf1>
[   15.343167] raid1: raid set md0 active with 2 out of 2 mirrors
[   15.345281] md0: bitmap initialized from disk: read 4/4 pages, set 0 bits
[   15.345373] created bitmap (61 pages) for device md0
[   15.398448] md: md1 stopped.
[   15.430427] md: bind<sdg2>
[   15.430745] md: bind<sdf2>
[   15.437979] raid1: raid set md1 active with 2 out of 2 mirrors
[   15.445315] md1: bitmap initialized from disk: read 14/14 pages, set 82 bits
[   15.445421] created bitmap (223 pages) for device md1
[   15.514327] md: md2 stopped.
[   15.516073] md: md4 stopped.
[   15.553178] md: md3 stopped.
[   15.629129] device-mapper: uevent: version 1.0.3
[   15.629129] device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com
[   15.845439] kjournald starting.  Commit interval 5 seconds
[   15.845554] EXT3-fs: mounted filesystem with ordered data mode.
[   17.695612] udevd version 125 started
[   18.386357] EDAC MC: Ver: 2.1.0 Oct  9 2008
[   18.387685] EDAC MC0: Giving out device to 'i3000_edac' 'i3000': DEV 0000:00:00.0
[   18.387812] EDAC PCI0: Giving out device to module 'i3000_edac' controller 'EDAC PCI controller': DEV '0000:00:00.0' (POLLED)
[   18.442301] input: Power Button (FF) as /class/input/input2
[   18.474192] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[   18.488487] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   18.510587] ACPI: Power Button (FF) [PWRF]
[   18.510759] input: Power Button (CM) as /class/input/input3
[   18.574941] ACPI: Power Button (CM) [PWRB]
[   18.785352] intel_rng: FWH not detected
[   18.817877] ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 19 (level, low) -> IRQ 19
[   18.832969] input: PC Speaker as /class/input/input4
[   18.853427] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.03 (30-Apr-2008)
[   19.337047] input: ImExPS/2 Generic Explorer Mouse as /class/input/input5
[   19.363849] iTCO_wdt: Found a ICH7 or ICH7R TCO device (Version=2, TCOBASE=0x1060)
[   19.363849] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[   21.122217] EXT3 FS on dm-0, internal journal
[   22.430017] loop: module loaded
[   22.505335] md: md2 stopped.
[   22.575811] md: md4 stopped.
[   22.739161] md: bind<sdb2>
[   22.739395] md: bind<sdc2>
[   22.739622] md: bind<sdd2>
[   22.741955] md: bind<sde2>
[   22.742210] md: bind<sda2>
[   22.833279] raid5: device sda2 operational as raid disk 0
[   22.833374] raid5: device sde2 operational as raid disk 4
[   22.833466] raid5: device sdd2 operational as raid disk 3
[   22.833557] raid5: device sdc2 operational as raid disk 2
[   22.833648] raid5: device sdb2 operational as raid disk 1
[   22.833764] raid5: allocated 5324kB for md11
[   22.833764] raid5: raid level 5 set md11 active with 5 out of 5 devices, algorithm 2
[   22.833764] RAID5 conf printout:
[   22.833764]  --- rd:5 wd:5
[   22.833764]  disk 0, o:1, dev:sda2
[   22.833764]  disk 1, o:1, dev:sdb2
[   22.833764]  disk 2, o:1, dev:sdc2
[   22.833764]  disk 3, o:1, dev:sdd2
[   22.833764]  disk 4, o:1, dev:sde2
[   22.855137] md: bind<sdb1>
[   22.855384] md: bind<sdc1>
[   22.855614] md: bind<sdd1>
[   22.855841] md: bind<sde1>
[   22.856062] md: bind<sda1>
[   22.888052] raid5: device sda1 operational as raid disk 0
[   22.888144] raid5: device sde1 operational as raid disk 4
[   22.888233] raid5: device sdd1 operational as raid disk 3
[   22.888322] raid5: device sdc1 operational as raid disk 2
[   22.888410] raid5: device sdb1 operational as raid disk 1
[   22.888836] raid5: allocated 5324kB for md10
[   22.888924] raid5: raid level 6 set md10 active with 5 out of 5 devices, algorithm 2
[   22.889031] RAID5 conf printout:
[   22.889116]  --- rd:5 wd:5
[   22.889200]  disk 0, o:1, dev:sda1
[   22.889285]  disk 1, o:1, dev:sdb1
[   22.889369]  disk 2, o:1, dev:sdc1
[   22.889454]  disk 3, o:1, dev:sdd1
[   22.889539]  disk 4, o:1, dev:sde1
[   24.425636] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
[   24.425636] SGI XFS Quota Management subsystem
[   24.555015] Adding 4972536k swap on /dev/mapper/cleopatra-swap_1.  Priority:-1 extents:1 across:4972536k
[   26.036483] NET: Registered protocol family 10
[   26.036483] lo: Disabled Privacy Extensions
[   26.210010] no ownder
[   26.210113] map irq failed
[   26.211788] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   28.062713] RPC: Registered udp transport module.
[   28.062825] RPC: Registered tcp transport module.
[   28.413655] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   29.335150] eth0: Link is Up 1000 Mbps Full Duplex, Flow Control: None
[   29.335622] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   34.303864] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[   34.333004] NFSD: starting 90-second grace period
[   37.763115] Bridge firewalling registered
[   37.763986] tmpbridge: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
[   38.066787] no ownder
[   38.066881] map irq failed
[   38.069574] ADDRCONF(NETDEV_UP): peth0: link is not ready
[   40.964632] peth0: Link is Up 1000 Mbps Full Duplex, Flow Control: None
[   40.965866] ADDRCONF(NETDEV_CHANGE): peth0: link becomes ready
[   41.161573] device peth0 entered promiscuous mode
[   41.181626] eth0: port 1(peth0) entering learning state
[   41.184954] eth0: topology change detected, propagating
[   41.185052] eth0: port 1(peth0) entering forwarding state
[   41.735776] suspend: event channel 26
[   51.951855] peth0: no IPv6 routers present

[-- Attachment #3: cold_boot_dmesg.txt --]
[-- Type: text/plain, Size: 51005 bytes --]

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.26-1-xen-amd64 (Debian 2.6.26-8) (waldi@debian.org) (gcc version 4.1.3 20080623 (prerelease) (Debian 4.1.2-23)) #1 SMP Thu Oct 9 17:11:22 UTC 2008
[    0.000000] Command line: root=/dev/mapper/cleopatra-root ro console=tty0 elevator=deadline
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  Xen: 0000000000000000 - 0000000080800000 (usable)
[    0.000000] Entering add_active_range(0, 0, 526336) 0 entries of 256 used
[    0.000000] max_pfn_mapped = 526336
[    0.000000] init_memory_mapping
[    0.000000] DMI present.
[    0.000000] Entering add_active_range(0, 0, 526336) 0 entries of 256 used
[    0.000000]   early res: 0 [200000-631917] TEXT DATA BSS
[    0.000000]   early res: 1 [632000-1f53fff] Xen provided
[    0.000000]   early res: 2 [1f54000-1f55fff] INITMAP
[    0.000000]   early res: 3 [1f56000-235efff] PGTABLE
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA             0 ->     4096
[    0.000000]   DMA32        4096 ->  1048576
[    0.000000]   Normal    1048576 ->  1048576
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0:        0 ->   526336
[    0.000000] On node 0 totalpages: 526336
[    0.000000]   DMA zone: 56 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 4040 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 7140 pages used for memmap
[    0.000000]   DMA32 zone: 515100 pages, LIFO batch:31
[    0.000000]   Normal zone: 0 pages used for memmap
[    0.000000]   Movable zone: 0 pages used for memmap
[    0.000000] ACPI: RSDP 000F5F00, 0014 (r0 PTLTD )
[    0.000000] ACPI: RSDT DFEE3831, 003C (r1 PTLTD    RSDT    6040000  LTP        0)
[    0.000000] ACPI: FACP DFEE9E70, 0074 (r1 INTEL            6040000 PTL         3)
[    0.000000] ACPI: DSDT DFEE4C59, 5217 (r1  INTEL GLENWOOD  6040000 MSFT  100000E)
[    0.000000] ACPI: FACS DFEEAFC0, 0040
[    0.000000] ACPI: MCFG DFEE9EE4, 003C (r1 PTLTD    MCFG    6040000  LTP        0)
[    0.000000] ACPI: HPET DFEE9F20, 0038 (r1 PTLTD  HPETTBL   6040000  LTP        1)
[    0.000000] ACPI: APIC DFEE9F58, 0080 (r1 PTLTD  	 APIC    6040000  LTP        0)
[    0.000000] ACPI: BOOT DFEE9FD8, 0028 (r1 PTLTD  $SBFTBL$  6040000  LTP        1)
[    0.000000] ACPI: SSDT DFEE386D, 13EC (r1  PmRef    CpuPm     3000 INTL 20050228)
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[    0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 2, version 0, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: IOAPIC (id[0x03] address[0xfecc0000] gsi_base[24])
[    0.000000] IOAPIC[1]: apic_id 3, version 0, address 0xfecc0000, GSI 24-47
[    0.000000] ACPI: IOAPIC (id[0x04] address[0xfecc0400] gsi_base[48])
[    0.000000] IOAPIC[2]: apic_id 4, version 0, address 0xfecc0400, GSI 48-71
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Setting APIC routing to xen
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] Allocating PCI resources starting at e1000000 (gap: e0000000:10000000)
[    0.000000] PERCPU: Allocating 22192 bytes of per cpu data
[    0.000000] NR_CPUS: 32, nr_cpu_ids: 2
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 519140
[    0.000000] Kernel command line: root=/dev/mapper/cleopatra-root ro console=tty0 elevator=deadline
[    0.000000] Initializing CPU#0
[    0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[    0.000000] Xen reported: 2394.012 MHz processor.
[    0.004000] Console: colour VGA+ 80x25
[    0.004000] console [tty0] enabled
[    0.004000] console [xvc-1] enabled
[    0.004000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.004000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.004000] Software IO TLB enabled: 
[    0.004000]  Aperture:     64 megabytes
[    0.004000]  Kernel range: ffff88000438f000 - ffff88000838f000
[    0.004000]  Address size: 27 bits
[    0.004000] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.004000] Memory: 1964436k/2105344k available (2277k kernel code, 132504k reserved, 1021k data, 216k init)
[    0.004000] CPA: page pool initialized 1 of 1 pages preallocated
[    0.788052] Calibrating delay using timer specific routine.. 4796.97 BogoMIPS (lpj=9593953)
[    0.788261] Security Framework initialized
[    0.788352] SELinux:  Disabled at boot.
[    0.788439] Capability LSM initialized
[    0.788538] Mount-cache hash table entries: 256
[    0.788756] Initializing cgroup subsys ns
[    0.788844] Initializing cgroup subsys cpuacct
[    0.788931] Initializing cgroup subsys devices
[    0.789042] CPU: L1 I cache: 32K, L1 D cache: 32K
[    0.789192] CPU: L2 cache: 4096K
[    0.789279] CPU: Physical Processor ID: 0
[    0.789365] CPU: Processor Core ID: 0
[    0.789460] ACPI: Core revision 20080321
[    0.797504] Brought up 2 CPUs
[    0.797504] Initializing CPU#1
[    0.797504] CPU: L1 I cache: 32K, L1 D cache: 32K
[    0.797504] CPU: L2 cache: 4096K
[    0.797504] CPU: Physical Processor ID: 0
[    0.797504] CPU: Processor Core ID: 1
[    0.798035] CPU0 attaching sched-domain:
[    0.798038]  domain 0: span 0-1
[    0.798040]   groups: 0 1
[    0.798043] CPU1 attaching sched-domain:
[    0.798045]  domain 0: span 0-1
[    0.798046]   groups: 1 0
[    0.800145] net_namespace: 1224 bytes
[    0.800383] NET: Registered protocol family 16
[    0.800743] ACPI: bus type pci registered
[    0.800926] PCI: MCFG configuration 0: base f0000000 segment 0 buses 0 - 19
[    0.801018] PCI: MCFG area at f0000000 reserved in E820
[    0.802456] PCI: Using MMCONFIG at f0000000 - f13fffff
[    0.802545] PCI: Using configuration type 1 for base access
[    0.805481] ACPI: EC: Look up EC in DSDT
[    0.807438] ACPI: Interpreter enabled
[    0.807528] ACPI: (supports S0 S1 S5)
[    0.807819] ACPI: Using IOAPIC for interrupt routing
[    0.813653] ACPI: PCI Root Bridge [PCI0] (0000:00)
[    0.815356] pci 0000:00:1f.0: quirk: region 1000-107f claimed by ICH6 ACPI/GPIO/TCO
[    0.815466] pci 0000:00:1f.0: quirk: region 1180-11bf claimed by ICH6 GPIO
[    0.815812] pci 0000:01:00.0: PXH quirk detected; SHPC device MSI disabled
[    0.816079] pci 0000:01:00.2: PXH quirk detected; SHPC device MSI disabled
[    0.817588] PCI: Transparent bridge - 0000:00:1e.0
[    0.817732] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.817948] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.DEV1.PXHA._PRT]
[    0.818105] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.DEV1.PXHB._PRT]
[    0.818273] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP1._PRT]
[    0.818370] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP5._PRT]
[    0.818431] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP6._PRT]
[    0.818491] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCIB._PRT]
[    0.822621] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 10 11 14 15) *7
[    0.823336] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 10 *11 14 15)
[    0.823946] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 10 11 14 15) *5
[    0.824620] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 10 *11 14 15)
[    0.825234] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 10 11 14 15) *0, disabled.
[    0.825991] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 10 11 14 15) *0, disabled.
[    0.826620] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 10 11 14 15) *0, disabled.
[    0.827408] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 *10 11 14 15)
[    0.829049] Linux Plug and Play Support v0.97 (c) Adam Belay
[    0.829645] pnp: PnP ACPI init
[    0.829737] ACPI: bus type pnp registered
[    0.829836] pnp 00:00: parse allocated resources
[    0.830619] pnp 00:00:   add io  0xcf8-0xcff flags 0x1
[    0.830619] pnp 00:00: Plug and Play ACPI device, IDs PNP0a03 (active)
[    0.830619] pnp 00:01: parse allocated resources
[    0.830619] pnp 00:01:   add io  0x10-0x1f flags 0x1
[    0.830619] pnp 00:01:   add io  0x24-0x25 flags 0x1
[    0.830619] pnp 00:01:   add io  0x28-0x29 flags 0x1
[    0.830619] pnp 00:01:   add io  0x2c-0x2d flags 0x1
[    0.830619] pnp 00:01:   add io  0x30-0x31 flags 0x1
[    0.830619] pnp 00:01:   add io  0x34-0x35 flags 0x1
[    0.830619] pnp 00:01:   add io  0x38-0x39 flags 0x1
[    0.830619] pnp 00:01:   add io  0x3c-0x3d flags 0x1
[    0.830619] pnp 00:01:   add io  0x72-0x77 flags 0x1
[    0.830619] pnp 00:01:   add io  0x80-0x80 flags 0x1
[    0.830619] pnp 00:01:   add io  0x90-0x9f flags 0x1
[    0.830619] pnp 00:01:   add io  0xa4-0xa5 flags 0x1
[    0.830619] pnp 00:01:   add io  0xa8-0xa9 flags 0x1
[    0.830619] pnp 00:01:   add io  0xac-0xad flags 0x1
[    0.830619] pnp 00:01:   add io  0xb0-0xb5 flags 0x1
[    0.830619] pnp 00:01:   add io  0xb8-0xb9 flags 0x1
[    0.830619] pnp 00:01:   add io  0xbc-0xbd flags 0x1
[    0.830619] pnp 00:01:   add io  0x295-0x296 flags 0x1
[    0.830619] pnp 00:01:   add io  0x800-0x83f flags 0x1
[    0.830619] pnp 00:01:   add io  0x900-0x90f flags 0x1
[    0.830619] pnp 00:01:   add io  0x1000-0x107f flags 0x1
[    0.830619] pnp 00:01:   add io  0x1180-0x11bf flags 0x1
[    0.830619] pnp 00:01:   add io  0x2e-0x2f flags 0x1
[    0.830619] pnp 00:01:   add io  0x4d0-0x4d1 flags 0x1
[    0.830619] pnp 00:01:   add io  0xfe00-0xfe00 flags 0x1
[    0.830619] pnp 00:01:   add mem 0xfed14000-0xfed17fff flags 0x1
[    0.830619] pnp 00:01:   add mem 0xfed13000-0xfed13fff flags 0x1
[    0.830619] pnp 00:01:   add mem 0xfed18000-0xfed1bfff flags 0x1
[    0.830619] pnp 00:01:   add mem 0xf0000000-0xf3ffffff flags 0x1
[    0.830619] pnp 00:01:   add mem 0xfed20000-0xfed8ffff flags 0x1
[    0.830619] pnp 00:01:   add mem 0xfef00000-0xfeffffff flags 0x1
[    0.830619] pnp 00:01: PNP0c02: calling quirk_system_pci_resources+0x0/0x15c
[    0.830619] pnp 00:01: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.830619] pnp 00:02: parse allocated resources
[    0.830619] pnp 00:02:   add io  0x0-0xf flags 0x1
[    0.830619] pnp 00:02:   add io  0x81-0x8f flags 0x1
[    0.830619] pnp 00:02:   add io  0xc0-0xdf flags 0x1
[    0.830619] pnp 00:02:   add dma 4 flags 0x2
[    0.830619] pnp 00:02: Plug and Play ACPI device, IDs PNP0200 (active)
[    0.830619] pnp 00:03: parse allocated resources
[    0.830619] pnp 00:03:   add io  0xf0-0xfe flags 0x1
[    0.830619] pnp 00:03:   add irq 13 flags 0x1
[    0.830619] pnp 00:03: Plug and Play ACPI device, IDs PNP0c04 (active)
[    0.830619] pnp 00:04: parse allocated resources
[    0.830619] pnp 00:04:   add io  0x70-0x71 flags 0x1
[    0.830619] pnp 00:04: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.830619] pnp 00:05: parse allocated resources
[    0.830619] pnp 00:05:   add io  0x61-0x61 flags 0x1
[    0.830619] pnp 00:05: Plug and Play ACPI device, IDs PNP0800 (active)
[    0.830619] pnp 00:06: parse allocated resources
[    0.830619] pnp 00:06:   add irq 8 flags 0x1
[    0.830619] pnp 00:06:   add mem 0xfed00000-0xfed003ff flags 0x0
[    0.830619] pnp 00:06: Plug and Play ACPI device, IDs PNP0103 (active)
[    0.830619] pnp 00:07: parse allocated resources
[    0.830619] pnp 00:07:   add mem 0xff800000-0xffffffff flags 0x0
[    0.830619] pnp 00:07: Plug and Play ACPI device, IDs INT0800 (active)
[    0.830619] pnp 00:08: parse allocated resources
[    0.830619] pnp 00:08:   add io  0x60-0x60 flags 0x1
[    0.830619] pnp 00:08:   add io  0x64-0x64 flags 0x1
[    0.830619] pnp 00:08:   add irq 1 flags 0x1
[    0.830619] pnp 00:08: Plug and Play ACPI device, IDs PNP0303 PNP030b (active)
[    0.830619] pnp 00:09: parse allocated resources
[    0.830619] pnp 00:09:   add irq 12 flags 0x1
[    0.830619] pnp 00:09: Plug and Play ACPI device, IDs PNP0f13 PNP0f13 (active)
[    0.830759] pnp 00:0a: parse allocated resources
[    0.830943] pnp 00:0a:   add io  0x3f8-0x3ff flags 0x1
[    0.830947] pnp 00:0a:   add irq 4 flags 0x1
[    0.830949] pnp 00:0a: parse resource options
[    0.830951] pnp 00:0a: new independent option
[    0.830959] pnp 00:0a: new dependent option (priority 0x0)
[    0.830961] pnp 00:0a:   io  min 0x3f8 max 0x3f8 align 1 size 8 flags 0x1
[    0.830965] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830968] pnp 00:0a: new dependent option (priority 0x1)
[    0.830970] pnp 00:0a:   io  min 0x2f8 max 0x2f8 align 1 size 8 flags 0x1
[    0.830973] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830975] pnp 00:0a: new dependent option (priority 0x1)
[    0.830979] pnp 00:0a:   io  min 0x3e8 max 0x3e8 align 1 size 8 flags 0x1
[    0.830982] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.830984] pnp 00:0a: new dependent option (priority 0x1)
[    0.830986] pnp 00:0a:   io  min 0x2e8 max 0x2e8 align 1 size 8 flags 0x1
[    0.830990] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.830992] pnp 00:0a: new dependent option (priority 0x2)
[    0.830994] pnp 00:0a:   io  min 0x3f8 max 0x3f8 align 1 size 8 flags 0x1
[    0.830997] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.831000] pnp 00:0a: new dependent option (priority 0x2)
[    0.831002] pnp 00:0a:   io  min 0x2f8 max 0x2f8 align 1 size 8 flags 0x1
[    0.831005] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.831008] pnp 00:0a: new dependent option (priority 0x2)
[    0.831010] pnp 00:0a:   io  min 0x3e8 max 0x3e8 align 1 size 8 flags 0x1
[    0.831013] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.831016] pnp 00:0a: new dependent option (priority 0x2)
[    0.831018] pnp 00:0a:   io  min 0x2e8 max 0x2e8 align 1 size 8 flags 0x1
[    0.831021] pnp 00:0a:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.831023] pnp 00:0a: end dependent options
[    0.834618] pnp 00:0a: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.834618] pnp 00:0b: parse allocated resources
[    0.834618] pnp 00:0b:   add io  0x2f8-0x2ff flags 0x1
[    0.834618] pnp 00:0b:   add irq 3 flags 0x1
[    0.834618] pnp 00:0b: parse resource options
[    0.834618] pnp 00:0b: new independent option
[    0.834618] pnp 00:0b: new dependent option (priority 0x1)
[    0.834618] pnp 00:0b:   io  min 0x3f8 max 0x3f8 align 1 size 8 flags 0x1
[    0.834618] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.834618] pnp 00:0b: new dependent option (priority 0x0)
[    0.834618] pnp 00:0b:   io  min 0x2f8 max 0x2f8 align 1 size 8 flags 0x1
[    0.834618] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.834618] pnp 00:0b: new dependent option (priority 0x1)
[    0.834618] pnp 00:0b:   io  min 0x3e8 max 0x3e8 align 1 size 8 flags 0x1
[    0.834618] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.834618] pnp 00:0b: new dependent option (priority 0x1)
[    0.834618] pnp 00:0b:   io  min 0x2e8 max 0x2e8 align 1 size 8 flags 0x1
[    0.834618] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.834618] pnp 00:0b: new dependent option (priority 0x2)
[    0.834618] pnp 00:0b:   io  min 0x3f8 max 0x3f8 align 1 size 8 flags 0x1
[    0.834618] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.834618] pnp 00:0b: new dependent option (priority 0x2)
[    0.834618] pnp 00:0b:   io  min 0x2f8 max 0x2f8 align 1 size 8 flags 0x1
[    0.834618] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.834618] pnp 00:0b: new dependent option (priority 0x2)
[    0.834618] pnp 00:0b:   io  min 0x3e8 max 0x3e8 align 1 size 8 flags 0x1
[    0.834618] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000008 flags 0x1
[    0.834618] pnp 00:0b: new dependent option (priority 0x2)
[    0.834618] pnp 00:0b:   io  min 0x2e8 max 0x2e8 align 1 size 8 flags 0x1
[    0.834618] pnp 00:0b:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000010 flags 0x1
[    0.834618] pnp 00:0b: end dependent options
[    0.834618] pnp 00:0b: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.834618] pnp 00:0c: parse allocated resources
[    0.834618] pnp 00:0c:   add io  0x3f0-0x3f5 flags 0x1
[    0.834618] pnp 00:0c:   add io  0x3f7-0x3f7 flags 0x1
[    0.834618] pnp 00:0c:   add irq 6 flags 0x1
[    0.834618] pnp 00:0c:   add dma 2 flags 0x0
[    0.834618] pnp 00:0c: parse resource options
[    0.834618] pnp 00:0c: new independent option
[    0.834618] pnp 00:0c: new dependent option (priority 0x0)
[    0.834618] pnp 00:0c:   io  min 0x3f0 max 0x3f0 align 1 size 6 flags 0x1
[    0.834618] pnp 00:0c:   io  min 0x3f7 max 0x3f7 align 1 size 1 flags 0x1
[    0.834618] pnp 00:0c:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000040 flags 0x1
[    0.834618] pnp 00:0c:   dma bitmask 0x4 flags 0x0
[    0.834618] pnp 00:0c: new dependent option (priority 0x0)
[    0.834618] pnp 00:0c:   io  min 0x370 max 0x370 align 1 size 6 flags 0x1
[    0.834618] pnp 00:0c:   io  min 0x377 max 0x377 align 1 size 1 flags 0x1
[    0.834618] pnp 00:0c:   irq bitmask 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000040 flags 0x1
[    0.834618] pnp 00:0c:   dma bitmask 0x4 flags 0x0
[    0.834618] pnp 00:0c: end dependent options
[    0.834618] pnp 00:0c: Plug and Play ACPI device, IDs PNP0700 (active)
[    0.834618] pnp: PnP ACPI: found 13 devices
[    0.834618] ACPI: ACPI bus type pnp unregistered
[    0.834618] xen_mem: Initialising balloon driver.
[    0.834618] usbcore: registered new interface driver usbfs
[    0.834618] usbcore: registered new interface driver hub
[    0.834618] usbcore: registered new device driver usb
[    0.834618] PCI: Using ACPI for IRQ routing
[    0.834618] PCI: Cannot allocate resource region 7 of bridge 0000:00:1c.0
[    0.844634] PCI: Cannot allocate resource region 8 of bridge 0000:00:1c.0
[    0.844728] PCI: Cannot allocate resource region 9 of bridge 0000:00:1c.0
[    0.864776] ACPI: RTC can wake from S4
[    0.884689] pnp: the driver 'system' has been registered
[    0.884700] system 00:01: ioport range 0x295-0x296 has been reserved
[    0.884805] system 00:01: ioport range 0x800-0x83f has been reserved
[    0.884909] system 00:01: ioport range 0x900-0x90f has been reserved
[    0.885016] system 00:01: ioport range 0x1000-0x107f has been reserved
[    0.885107] system 00:01: ioport range 0x1180-0x11bf has been reserved
[    0.885198] system 00:01: ioport range 0x4d0-0x4d1 has been reserved
[    0.885289] system 00:01: ioport range 0xfe00-0xfe00 has been reserved
[    0.885381] system 00:01: iomem range 0xfed14000-0xfed17fff has been reserved
[    0.885473] system 00:01: iomem range 0xfed13000-0xfed13fff has been reserved
[    0.885565] system 00:01: iomem range 0xfed18000-0xfed1bfff has been reserved
[    0.885658] system 00:01: iomem range 0xf0000000-0xf3ffffff could not be reserved
[    0.885765] system 00:01: iomem range 0xfed20000-0xfed8ffff has been reserved
[    0.885857] system 00:01: iomem range 0xfef00000-0xfeffffff has been reserved
[    0.885949] system 00:01: driver attached
[    0.886480] PCI: Failed to allocate mem resource #9:100000@e1800000 for 0000:01:00.2
[    0.886480] PCI: Bridge: 0000:01:00.0
[    0.886480]   IO window: 4000-4fff
[    0.886480]   MEM window: 0xe0200000-0xe02fffff
[    0.886480]   PREFETCH window: 0x00000000e1000000-0x00000000e17fffff
[    0.886480] PCI: Bridge: 0000:01:00.2
[    0.886480]   IO window: 5000-5fff
[    0.886480]   MEM window: 0xe0300000-0xe03fffff
[    0.886480]   PREFETCH window: disabled.
[    0.886480] PCI: Bridge: 0000:00:01.0
[    0.886480]   IO window: 4000-5fff
[    0.886480]   MEM window: 0xe0100000-0xe03fffff
[    0.886480]   PREFETCH window: 0x00000000e1000000-0x00000000e17fffff
[    0.886480] PCI: Bridge: 0000:00:1c.0
[    0.886480]   IO window: disabled.
[    0.886480]   MEM window: disabled.
[    0.886480]   PREFETCH window: disabled.
[    0.886480] PCI: Bridge: 0000:00:1c.4
[    0.886480]   IO window: 6000-6fff
[    0.886480]   MEM window: 0xe0400000-0xe04fffff
[    0.886480]   PREFETCH window: disabled.
[    0.886480] PCI: Bridge: 0000:00:1c.5
[    0.886480]   IO window: 7000-7fff
[    0.886574]   MEM window: 0xe0500000-0xe05fffff
[    0.886580]   PREFETCH window: disabled.
[    0.891268] PCI: Bridge: 0000:00:1e.0
[    0.891358]   IO window: 8000-8fff
[    0.891451]   MEM window: 0xe0600000-0xe06fffff
[    0.891545]   PREFETCH window: 0x00000000e8000000-0x00000000efffffff
[    0.891669] ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16
[    0.891849] PCI: Setting latency timer of device 0000:00:01.0 to 64
[    0.891879] PCI: Setting latency timer of device 0000:01:00.0 to 64
[    0.891909] PCI: Setting latency timer of device 0000:01:00.2 to 64
[    0.891942] ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 17 (level, low) -> IRQ 17
[    0.892124] PCI: Setting latency timer of device 0000:00:1c.0 to 64
[    0.892156] ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 17 (level, low) -> IRQ 17
[    0.892336] PCI: Setting latency timer of device 0000:00:1c.4 to 64
[    0.892367] ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 16 (level, low) -> IRQ 16
[    0.892548] PCI: Setting latency timer of device 0000:00:1c.5 to 64
[    0.892566] PCI: Setting latency timer of device 0000:00:1e.0 to 64
[    0.892603] NET: Registered protocol family 2
[    0.939494] IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.939873] TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
[    0.941505] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.942215] TCP: Hash tables configured (established 262144 bind 65536)
[    0.942307] TCP reno registered
[    0.951517] NET: Registered protocol family 1
[    0.951725] checking if image is initramfs... it is
[    0.971406] Freeing initrd memory: 21558k freed
[    0.979853] Simple Boot Flag at 0x38 set to 0x1
[    0.982401] audit: initializing netlink socket (disabled)
[    0.982401] type=2000 audit(1224002540.968:1): initialized
[    0.982401] VFS: Disk quotas dquot_6.5.1
[    0.982401] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.982401] msgmni has been set to 4138
[    0.982401] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.982401] io scheduler noop registered
[    0.982401] io scheduler anticipatory registered
[    0.982401] io scheduler deadline registered (default)
[    0.982401] io scheduler cfq registered
[    0.982401] pci 0000:14:04.0: Boot video device
[    0.982401] PCI: Setting latency timer of device 0000:00:01.0 to 64
[    0.982401] assign_interrupt_mode Found MSI capability
[    0.982401] no ownder
[    0.982401] map irq failed
[    0.982401] Allocate Port Service[0000:00:01.0:pcie00]
[    0.982401] Allocate Port Service[0000:00:01.0:pcie03]
[    0.982401] PCI: Setting latency timer of device 0000:00:1c.0 to 64
[    0.982401] assign_interrupt_mode Found MSI capability
[    0.982401] no ownder
[    0.982493] map irq failed
[    0.983778] Allocate Port Service[0000:00:1c.0:pcie00]
[    0.984211] Allocate Port Service[0000:00:1c.0:pcie02]
[    0.984613] Allocate Port Service[0000:00:1c.0:pcie03]
[    0.985081] PCI: Setting latency timer of device 0000:00:1c.4 to 64
[    0.985147] assign_interrupt_mode Found MSI capability
[    0.985275] no ownder
[    0.985361] map irq failed
[    0.985447] Allocate Port Service[0000:00:1c.4:pcie00]
[    0.986797] Allocate Port Service[0000:00:1c.4:pcie02]
[    0.987592] Allocate Port Service[0000:00:1c.4:pcie03]
[    0.987592] PCI: Setting latency timer of device 0000:00:1c.5 to 64
[    0.987592] assign_interrupt_mode Found MSI capability
[    0.987592] no ownder
[    0.987592] map irq failed
[    0.987592] Allocate Port Service[0000:00:1c.5:pcie00]
[    0.987592] Allocate Port Service[0000:00:1c.5:pcie02]
[    0.987592] Allocate Port Service[0000:00:1c.5:pcie03]
[    0.991592] Linux agpgart interface v0.103
[    0.991592] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[    0.991592] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.991592] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    0.991592] pnp: the driver 'serial' has been registered
[    0.991592] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.991592] serial 00:0a: driver attached
[    0.991592] 00:0b: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    0.991592] serial 00:0b: driver attached
[    0.991593] brd: module loaded
[    0.991593] input: Macintosh mouse button emulation as /class/input/input0
[    0.991761] Xen virtual console successfully installed as xvc0
[    0.992518] Event-channel device installed.
[    0.995593] netfront: Initialising virtual ethernet driver.
[    0.995593] pnp: the driver 'i8042 kbd' has been registered
[    0.995593] i8042 kbd 00:08: driver attached
[    0.995593] pnp: the driver 'i8042 aux' has been registered
[    0.995593] i8042 aux 00:09: driver attached
[    0.995593] PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
[    0.997831] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.997922] serio: i8042 AUX port at 0x60,0x64 irq 12
[    1.016855] mice: PS/2 mouse device common for all mice
[    1.016990] pnp: the driver 'rtc_cmos' has been registered
[    1.017048] rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
[    1.017158] rtc0: alarms up to one month, y3k
[    1.017245] rtc_cmos 00:04: driver attached
[    1.017274] No iBFT detected.
[    1.017671] TCP cubic registered
[    1.017757] NET: Registered protocol family 17
[    1.017938] registered taskstats version 1
[    1.018150] rtc_cmos 00:04: setting system clock to 2008-10-14 16:42:21 UTC (1224002541)
[    1.018265] Freeing unused kernel memory: 216k freed
[    1.040665] input: AT Translated Set 2 keyboard as /class/input/input1
[    1.122890] ACPI: ACPI0007:00 is registered as cooling_device0
[    1.123258] ACPI: ACPI0007:01 is registered as cooling_device1
[    1.123606] ACPI: ACPI0007:02 is registered as cooling_device2
[    1.123954] ACPI: ACPI0007:03 is registered as cooling_device3
[    1.124301] ACPI: ACPI0007:04 is registered as cooling_device4
[    1.124651] ACPI: ACPI0007:05 is registered as cooling_device5
[    1.125001] ACPI: ACPI0007:06 is registered as cooling_device6
[    1.125357] ACPI: ACPI0007:07 is registered as cooling_device7
[    1.383912] No dock devices found.
[    1.388931] SCSI subsystem initialized
[    1.402806] libata version 3.00 loaded.
[    1.402856] 3ware 9000 Storage Controller device driver for Linux v2.26.02.010.
[    1.403017] ACPI: PCI Interrupt 0000:02:01.0[A] -> GSI 24 (level, low) -> IRQ 24
[    1.419617] e1000e: Intel(R) PRO/1000 Network Driver - 0.3.3.3-k2
[    1.419716] e1000e: Copyright (c) 1999-2008 Intel Corporation.
[    1.431513] USB Universal Host Controller Interface driver v3.0
[    1.523034] floppy0: Unable to grab DMA2 for the floppy driver
[    1.541613] FDC 0 is a post-1991 82077
[    1.630458] scsi0 : 3ware 9000 Storage Controller
[    1.630641] 3w-9xxx: scsi0: Found a 3ware 9000 Storage Controller at 0xe0200000, IRQ: 24.
[    1.966457] 3w-9xxx: scsi0: Firmware FE9X 2.08.00.009, BIOS BE9X 2.03.01.052, Ports: 12.
[    1.968018] sata_sil24 0000:03:01.0: version 1.1
[    1.968046] ACPI: PCI Interrupt 0000:03:01.0[A] -> GSI 48 (level, low) -> IRQ 48
[    1.968236] sata_sil24 0000:03:01.0: Applying completion IRQ loss on PCI-X errata fix
[    1.968280] scsi1 : sata_sil24
[    1.968280] scsi2 : sata_sil24
[    1.968280] ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 23
[    1.968280] PCI: Setting latency timer of device 0000:00:1d.0 to 64
[    1.968280] uhci_hcd 0000:00:1d.0: UHCI Host Controller
[    1.968280] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
[    1.968280] uhci_hcd 0000:00:1d.0: irq 23, io base 0x00003000
[    1.968280] usb usb1: configuration #1 chosen from 1 choice
[    1.968280] hub 1-0:1.0: USB hub found
[    1.968280] hub 1-0:1.0: 2 ports detected
[    1.968280] scsi3 : sata_sil24
[    1.968280] scsi4 : sata_sil24
[    1.968280] ata1: SATA max UDMA/100 host m128@0xe0308000 port 0xe0300000 irq 48
[    1.968280] ata2: SATA max UDMA/100 host m128@0xe0308000 port 0xe0302000 irq 48
[    1.968280] ata3: SATA max UDMA/100 host m128@0xe0308000 port 0xe0304000 irq 48
[    1.968280] ata4: SATA max UDMA/100 host m128@0xe0308000 port 0xe0306000 irq 48
[    2.071272] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    2.071380] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.071503] usb usb1: Product: UHCI Host Controller
[    2.071590] usb usb1: Manufacturer: Linux 2.6.26-1-xen-amd64 uhci_hcd
[    2.071680] usb usb1: SerialNumber: 0000:00:1d.0
[    2.073094] ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 19
[    2.073271] PCI: Setting latency timer of device 0000:00:1d.1 to 64
[    2.073275] uhci_hcd 0000:00:1d.1: UHCI Host Controller
[    2.073399] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
[    2.073536] uhci_hcd 0000:00:1d.1: irq 19, io base 0x00003020
[    2.079771] usb usb2: configuration #1 chosen from 1 choice
[    2.079881] hub 2-0:1.0: USB hub found
[    2.079975] hub 2-0:1.0: 2 ports detected
[    2.184509] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    2.184615] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.184739] usb usb2: Product: UHCI Host Controller
[    2.184826] usb usb2: Manufacturer: Linux 2.6.26-1-xen-amd64 uhci_hcd
[    2.184916] usb usb2: SerialNumber: 0000:00:1d.1
[    2.186273] ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 18
[    2.186451] PCI: Setting latency timer of device 0000:00:1d.2 to 64
[    2.186455] uhci_hcd 0000:00:1d.2: UHCI Host Controller
[    2.186577] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
[    2.186715] uhci_hcd 0000:00:1d.2: irq 18, io base 0x00003040
[    2.186877] usb usb3: configuration #1 chosen from 1 choice
[    2.186985] hub 3-0:1.0: USB hub found
[    2.186985] hub 3-0:1.0: 2 ports detected
[    2.288723] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    2.288836] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.288943] usb usb3: Product: UHCI Host Controller
[    2.289030] usb usb3: Manufacturer: Linux 2.6.26-1-xen-amd64 uhci_hcd
[    2.289121] usb usb3: SerialNumber: 0000:00:1d.2
[    2.290451] ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 16 (level, low) -> IRQ 16
[    2.290627] PCI: Setting latency timer of device 0000:00:1d.3 to 64
[    2.290632] uhci_hcd 0000:00:1d.3: UHCI Host Controller
[    2.290753] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 4
[    2.290890] uhci_hcd 0000:00:1d.3: irq 16, io base 0x00003060
[    2.290985] usb usb4: configuration #1 chosen from 1 choice
[    2.290985] hub 4-0:1.0: USB hub found
[    2.290985] hub 4-0:1.0: 2 ports detected
[    2.393691] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    2.393797] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.393920] usb usb4: Product: UHCI Host Controller
[    2.394007] usb usb4: Manufacturer: Linux 2.6.26-1-xen-amd64 uhci_hcd
[    2.394098] usb usb4: SerialNumber: 0000:00:1d.3
[    2.395468] ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 23
[    2.395653] PCI: Setting latency timer of device 0000:00:1d.7 to 64
[    2.395657] ehci_hcd 0000:00:1d.7: EHCI Host Controller
[    2.395781] ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 5
[    2.399808] ehci_hcd 0000:00:1d.7: debug port 1
[    2.399902] PCI: cache line size of 32 is not supported by device 0000:00:1d.7
[    2.399906] ehci_hcd 0000:00:1d.7: irq 23, io mem 0xe0000000
[    2.414732] ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[    2.414914] usb usb5: configuration #1 chosen from 1 choice
[    2.415042] hub 5-0:1.0: USB hub found
[    2.415138] hub 5-0:1.0: 8 ports detected
[    2.518837] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    2.518944] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.519067] usb usb5: Product: EHCI Host Controller
[    2.519154] usb usb5: Manufacturer: Linux 2.6.26-1-xen-amd64 ehci_hcd
[    2.519245] usb usb5: SerialNumber: 0000:00:1d.7
[    4.087104] ata1: SATA link down (SStatus 0 SControl 0)
[    6.199345] ata2: SATA link down (SStatus 0 SControl 0)
[    8.343532] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[    8.343757] ata3.15: Port Multiplier 1.1, 0x1095:0x3726 r23, 6 ports, feat 0x1/0x9
[    8.359613] ata3.00: hard resetting link
[    8.695610] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[    8.695723] ata3.01: hard resetting link
[    9.031587] ata3.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    9.031699] ata3.02: hard resetting link
[    9.367582] ata3.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    9.367694] ata3.03: hard resetting link
[    9.703578] ata3.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    9.703690] ata3.04: hard resetting link
[   10.039574] ata3.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   10.039687] ata3.05: hard resetting link
[   10.375537] ata3.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[   10.383308] ata3.00: FORCE: horkage modified (noncq)
[   10.383471] ata3.00: ATA-7: SAMSUNG HD103UJ, 1AA01112, max UDMA7
[   10.383574] ata3.00: 1953525168 sectors, multi 16: LBA48 NCQ (not used)
[   10.389920] ata3.00: configured for UDMA/100
[   10.404563] ata3.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[   10.404668] ata3.15: hard resetting link
[   12.532590] ata3.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   12.532818] ata3.00: hard resetting link
[   12.868695] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   12.868807] ata3.01: hard resetting link
[   13.204711] ata3.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   13.204823] ata3.02: hard resetting link
[   13.540650] ata3.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   13.540763] ata3.03: hard resetting link
[   13.876662] ata3.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   13.876775] ata3.04: hard resetting link
[   14.212691] ata3.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   14.212801] ata3.05: hard resetting link
[   14.548666] ata3.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[   14.561833] ata3.00: configured for UDMA/100
[   14.576783] ata3.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[   14.577849] ata3.15: hard resetting link
[   16.705791] ata3.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   16.706018] ata3.00: hard resetting link
[   17.041916] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   17.042028] ata3.01: hard resetting link
[   17.377911] ata3.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   17.378024] ata3.02: hard resetting link
[   17.713834] ata3.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   17.713938] ata3.03: hard resetting link
[   18.049813] ata3.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   18.049925] ata3.04: hard resetting link
[   18.385941] ata3.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   18.386054] ata3.05: hard resetting link
[   18.721898] ata3.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[   18.735003] ata3.00: configured for UDMA/100
[   18.749948] ata3.01: failed to IDENTIFY (I/O error, err_mask=0x11)
[   18.750052] ata3.01: failed to recover link after 3 tries, disabling
[   18.750155] ata3: failed to recover PMP, retrying in 5 secs
[   23.753975] ata3.15: hard resetting link
[   25.881927] ata3.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[   26.201981] ata3.00: hard resetting link
[   26.538070] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[   26.538178] ata3.02: hard resetting link
[   26.874030] ata3.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   26.874143] ata3.03: hard resetting link
[   27.210041] ata3.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   27.210145] ata3.04: hard resetting link
[   27.545988] ata3.04: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   27.546100] ata3.05: hard resetting link
[   27.881968] ata3.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[   27.894998] ata3.00: configured for UDMA/100
[   27.901497] ata3.02: FORCE: horkage modified (noncq)
[   27.901658] ata3.02: ATA-7: SAMSUNG HD103UJ, 1AA01112, max UDMA7
[   27.901769] ata3.02: 1953525168 sectors, multi 0: LBA48 NCQ (not used)
[   27.908257] ata3.02: configured for UDMA/100
[   27.914623] ata3.03: FORCE: horkage modified (noncq)
[   27.914784] ata3.03: ATA-7: SAMSUNG HD103UJ, 1AA01112, max UDMA7
[   27.914895] ata3.03: 1953525168 sectors, multi 0: LBA48 NCQ (not used)
[   27.921389] ata3.03: configured for UDMA/100
[   27.927753] ata3.04: FORCE: horkage modified (noncq)
[   27.927913] ata3.04: ATA-7: SAMSUNG HD103UJ, 1AA01113, max UDMA7
[   27.928016] ata3.04: 1953525168 sectors, multi 0: LBA48 NCQ (not used)
[   27.934519] ata3.04: configured for UDMA/100
[   28.270164] ata3: EH complete
[   30.382321] ata4: SATA link down (SStatus 0 SControl 0)
[   30.382450] scsi 3:0:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
[   30.382681] scsi 3:2:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
[   30.382880] scsi 3:3:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
[   30.383079] scsi 3:4:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  1AA0 PQ: 0 ANSI: 5
[   30.384310] ACPI: PCI Interrupt 0000:12:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[   30.384498] PCI: Setting latency timer of device 0000:12:00.0 to 64
[   30.395994] Driver 'sd' needs updating - please use bus_type methods
[   30.404791] sd 3:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
[   30.404925] sd 3:0:0:0: [sda] Write Protect is off
[   30.405017] sd 3:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   30.405036] sd 3:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   30.405196] sd 3:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
[   30.405315] sd 3:0:0:0: [sda] Write Protect is off
[   30.405407] sd 3:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   30.405427] sd 3:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   30.405542]  sda: sda1 sda2
[   30.450713] sd 3:0:0:0: [sda] Attached SCSI disk
[   30.450863] sd 3:2:0:0: [sdb] 1953525168 512-byte hardware sectors (1000205 MB)
[   30.450984] sd 3:2:0:0: [sdb] Write Protect is off
[   30.451075] sd 3:2:0:0: [sdb] Mode Sense: 00 3a 00 00
[   30.451093] sd 3:2:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   30.451238] sd 3:2:0:0: [sdb] 1953525168 512-byte hardware sectors (1000205 MB)
[   30.451358] sd 3:2:0:0: [sdb] Write Protect is off
[   30.451449] sd 3:2:0:0: [sdb] Mode Sense: 00 3a 00 00
[   30.451467] sd 3:2:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   30.451580]  sdb: sdb1 sdb2
[   30.462216] sd 3:2:0:0: [sdb] Attached SCSI disk
[   30.462346] sd 3:3:0:0: [sdc] 1953525168 512-byte hardware sectors (1000205 MB)
[   30.462466] sd 3:3:0:0: [sdc] Write Protect is off
[   30.462557] sd 3:3:0:0: [sdc] Mode Sense: 00 3a 00 00
[   30.462575] sd 3:3:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   30.468807] sd 3:3:0:0: [sdc] 1953525168 512-byte hardware sectors (1000205 MB)
[   30.468926] sd 3:3:0:0: [sdc] Write Protect is off
[   30.469018] sd 3:3:0:0: [sdc] Mode Sense: 00 3a 00 00
[   30.469036] sd 3:3:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   30.469149]  sdc: sdc1 sdc2
[   30.482928] sd 3:3:0:0: [sdc] Attached SCSI disk
[   30.483446] sd 3:4:0:0: [sdd] 1953525168 512-byte hardware sectors (1000205 MB)
[   30.483566] sd 3:4:0:0: [sdd] Write Protect is off
[   30.483657] sd 3:4:0:0: [sdd] Mode Sense: 00 3a 00 00
[   30.483675] sd 3:4:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   30.483820] sd 3:4:0:0: [sdd] 1953525168 512-byte hardware sectors (1000205 MB)
[   30.483939] sd 3:4:0:0: [sdd] Write Protect is off
[   30.484030] sd 3:4:0:0: [sdd] Mode Sense: 00 3a 00 00
[   30.484048] sd 3:4:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   30.484161]  sdd: sdd1 sdd2
[   30.498842] sd 3:4:0:0: [sdd] Attached SCSI disk
[   30.507249] eth0: (PCI Express:2.5GB/s:Width x1) 00:30:48:8f:59:b6
[   30.507353] eth0: Intel(R) PRO/1000 Network Connection
[   30.507615] eth0: MAC: 2, PHY: 2, PBA No: ffffff-0ff
[   30.507770] ACPI: PCI Interrupt 0000:13:00.0[A] -> GSI 17 (level, low) -> IRQ 17
[   30.507959] PCI: Setting latency timer of device 0000:13:00.0 to 64
[   30.630491] eth1: (PCI Express:2.5GB/s:Width x1) 00:30:48:8f:59:b7
[   30.630589] eth1: Intel(R) PRO/1000 Network Connection
[   30.630745] eth1: MAC: 2, PHY: 2, PBA No: ffffff-0ff
[   30.635561] ata_piix 0000:00:1f.2: version 2.12
[   30.635561] ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 19
[   30.635561] ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
[   30.789665] PCI: Setting latency timer of device 0000:00:1f.2 to 64
[   30.790040] scsi5 : ata_piix
[   30.790211] scsi6 : ata_piix
[   30.791060] ata5: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0x30a0 irq 14
[   30.791156] ata6: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0x30a8 irq 15
[   30.954946] ata5.00: FORCE: horkage modified (noncq)
[   30.956884] ata5.00: ATA-8: SAMSUNG HM121HI, LZ100-08, max UDMA7
[   30.956988] ata5.00: 234441648 sectors, multi 16: LBA48 NCQ (not used)
[   30.972764] ata5.00: configured for UDMA/133
[   31.139542] ata6.00: FORCE: horkage modified (noncq)
[   31.141661] ata6.00: ATA-8: SAMSUNG HM121HI, LZ100-08, max UDMA7
[   31.141661] ata6.00: 234441648 sectors, multi 16: LBA48 NCQ (not used)
[   31.161601] ata6.00: configured for UDMA/133
[   31.161659] scsi 5:0:0:0: Direct-Access     ATA      SAMSUNG HM121HI  LZ10 PQ: 0 ANSI: 5
[   31.161659] sd 5:0:0:0: [sde] 234441648 512-byte hardware sectors (120034 MB)
[   31.161659] sd 5:0:0:0: [sde] Write Protect is off
[   31.161659] sd 5:0:0:0: [sde] Mode Sense: 00 3a 00 00
[   31.161659] sd 5:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   31.161659] sd 5:0:0:0: [sde] 234441648 512-byte hardware sectors (120034 MB)
[   31.161659] sd 5:0:0:0: [sde] Write Protect is off
[   31.161659] sd 5:0:0:0: [sde] Mode Sense: 00 3a 00 00
[   31.161659] sd 5:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   31.161659]  sde: sde1 sde2
[   31.814038] sd 5:0:0:0: [sde] Attached SCSI disk
[   31.814201] scsi 6:0:0:0: Direct-Access     ATA      SAMSUNG HM121HI  LZ10 PQ: 0 ANSI: 5
[   31.814365] sd 6:0:0:0: [sdf] 234441648 512-byte hardware sectors (120034 MB)
[   31.814469] sd 6:0:0:0: [sdf] Write Protect is off
[   31.814561] sd 6:0:0:0: [sdf] Mode Sense: 00 3a 00 00
[   31.814578] sd 6:0:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   31.814722] sd 6:0:0:0: [sdf] 234441648 512-byte hardware sectors (120034 MB)
[   31.814827] sd 6:0:0:0: [sdf] Write Protect is off
[   31.814918] sd 6:0:0:0: [sdf] Mode Sense: 00 3a 00 00
[   31.814935] sd 6:0:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   31.815049]  sdf: sdf1 sdf2
[   32.491794] sd 6:0:0:0: [sdf] Attached SCSI disk
[   32.494108] Uniform Multi-Platform E-IDE driver
[   32.494108] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[   32.728630] md: raid1 personality registered for level 1
[   32.733849] xor: automatically using best checksumming function: generic_sse
[   32.750906]    generic_sse:  5720.000 MB/sec
[   32.750906] xor: using function: generic_sse (5720.000 MB/sec)
[   32.750906] async_tx: api initialized (async)
[   32.822546] raid6: int64x1   2240 MB/s
[   32.890559] raid6: int64x2   3012 MB/s
[   32.958571] raid6: int64x4   2643 MB/s
[   33.026583] raid6: int64x8   1720 MB/s
[   33.094600] raid6: sse2x1    3275 MB/s
[   33.162615] raid6: sse2x2    3568 MB/s
[   33.230627] raid6: sse2x4    7050 MB/s
[   33.230627] raid6: using algorithm sse2x4 (7050 MB/s)
[   33.230627] md: raid6 personality registered for level 6
[   33.230627] md: raid5 personality registered for level 5
[   33.230627] md: raid4 personality registered for level 4
[   33.242464] md: md0 stopped.
[   33.256246] md: bind<sdf1>
[   33.256574] md: bind<sde1>
[   33.264344] raid1: raid set md0 active with 2 out of 2 mirrors
[   33.266445] md0: bitmap initialized from disk: read 4/4 pages, set 0 bits
[   33.266537] created bitmap (61 pages) for device md0
[   33.310420] md: md1 stopped.
[   33.319791] md: bind<sdf2>
[   33.319791] md: bind<sde2>
[   33.327606] raid1: raid set md1 active with 2 out of 2 mirrors
[   33.337696] md1: bitmap initialized from disk: read 14/14 pages, set 82 bits
[   33.337792] created bitmap (223 pages) for device md1
[   33.384725] md: md2 stopped.
[   33.387372] md: md4 stopped.
[   33.423094] md: md3 stopped.
[   33.481275] device-mapper: uevent: version 1.0.3
[   33.481275] device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com
[   33.712637] kjournald starting.  Commit interval 5 seconds
[   33.712756] EXT3-fs: mounted filesystem with ordered data mode.
[   35.658257] udevd version 125 started
[   36.357557] EDAC MC: Ver: 2.1.0 Oct  9 2008
[   36.380399] input: Power Button (FF) as /class/input/input2
[   36.385009] EDAC MC0: Giving out device to 'i3000_edac' 'i3000': DEV 0000:00:00.0
[   36.385009] EDAC PCI0: Giving out device to module 'i3000_edac' controller 'EDAC PCI controller': DEV '0000:00:00.0' (POLLED)
[   36.429066] ACPI: Power Button (FF) [PWRF]
[   36.429234] input: Power Button (CM) as /class/input/input3
[   36.501472] ACPI: Power Button (CM) [PWRB]
[   36.657100] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[   36.667726] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   36.782686] intel_rng: FWH not detected
[   36.802131] ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 19 (level, low) -> IRQ 19
[   36.814264] input: PC Speaker as /class/input/input4
[   36.853791] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.03 (30-Apr-2008)
[   37.236354] input: ImExPS/2 Generic Explorer Mouse as /class/input/input5
[   37.264723] iTCO_wdt: Found a ICH7 or ICH7R TCO device (Version=2, TCOBASE=0x1060)
[   37.264865] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[   39.163310] EXT3 FS on dm-0, internal journal
[   40.477642] loop: module loaded
[   40.545727] md: md2 stopped.
[   40.617272] md: md4 stopped.
[   40.760450] md: bind<sdb2>
[   40.761655] md: bind<sdc2>
[   40.761883] md: bind<sdd2>
[   40.762104] md: bind<sda2>
[   40.847721] raid5: device sda2 operational as raid disk 0
[   40.847721] raid5: device sdd2 operational as raid disk 4
[   40.847721] raid5: device sdc2 operational as raid disk 3
[   40.847721] raid5: device sdb2 operational as raid disk 2
[   40.847721] raid5: allocated 5324kB for md11
[   40.847721] raid5: raid level 5 set md11 active with 4 out of 5 devices, algorithm 2
[   40.847721] RAID5 conf printout:
[   40.847721]  --- rd:5 wd:4
[   40.847721]  disk 0, o:1, dev:sda2
[   40.847721]  disk 2, o:1, dev:sdb2
[   40.847721]  disk 3, o:1, dev:sdc2
[   40.853869]  disk 4, o:1, dev:sdd2
[   40.857847] md: bind<sdb1>
[   40.858057] md: bind<sdc1>
[   40.858261] md: bind<sdd1>
[   40.858464] md: bind<sda1>
[   40.888956] raid5: device sda1 operational as raid disk 0
[   40.889054] raid5: device sdd1 operational as raid disk 4
[   40.889146] raid5: device sdc1 operational as raid disk 3
[   40.889238] raid5: device sdb1 operational as raid disk 2
[   40.891733] raid5: allocated 5324kB for md10
[   40.891733] raid5: raid level 6 set md10 active with 4 out of 5 devices, algorithm 2
[   40.891733] RAID5 conf printout:
[   40.891733]  --- rd:5 wd:4
[   40.891733]  disk 0, o:1, dev:sda1
[   40.891733]  disk 2, o:1, dev:sdb1
[   40.891733]  disk 3, o:1, dev:sdc1
[   40.891733]  disk 4, o:1, dev:sdd1
[   42.296413] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
[   42.296413] SGI XFS Quota Management subsystem
[   42.423652] Adding 4972536k swap on /dev/mapper/cleopatra-swap_1.  Priority:-1 extents:1 across:4972536k
[   43.910868] NET: Registered protocol family 10
[   43.910868] lo: Disabled Privacy Extensions
[   44.057216] no ownder
[   44.057308] map irq failed
[   44.058743] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   45.912555] RPC: Registered udp transport module.
[   45.912555] RPC: Registered tcp transport module.
[   46.251245] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   46.749950] eth0: Link is Up 1000 Mbps Full Duplex, Flow Control: None
[   46.750443] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   52.125226] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[   52.171087] NFSD: starting 90-second grace period
[   55.827905] Bridge firewalling registered
[   55.828777] tmpbridge: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
[   56.138353] no ownder
[   56.138462] map irq failed
[   56.139864] ADDRCONF(NETDEV_UP): peth0: link is not ready
[   58.739116] peth0: Link is Up 1000 Mbps Full Duplex, Flow Control: None
[   58.739729] ADDRCONF(NETDEV_CHANGE): peth0: link becomes ready
[   59.186009] device peth0 entered promiscuous mode
[   59.464293] eth0: port 1(peth0) entering learning state
[   59.468010] eth0: topology change detected, propagating
[   59.468292] eth0: port 1(peth0) entering forwarding state
[   60.052183] suspend: event channel 26
[   69.073711] peth0: no IPv6 routers present

[-- Attachment #4: hdparm.txt --]
[-- Type: text/plain, Size: 2904 bytes --]


/dev/sdb:

ATA device, with non-removable media
	Model Number:       SAMSUNG HD103UJ                         
	Serial Number:      S13PJ1EQ505832      
	Firmware Revision:  1AA01112
Standards:
	Used: ATA-8-ACS revision 3b 
	Supported: 7 6 5 4 
Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors: 1953525168
	device size with M = 1024*1024:      953869 MBytes
	device size with M = 1000*1000:     1000204 MBytes (1000 GB)
Capabilities:
	LBA, IORDY(can be disabled)
	Queue depth: 32
	Standby timer values: spec'd by Standard, no device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 0
	Advanced power management level: disabled
	Recommended acoustic management value: 254, current value: 0
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6 udma7 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	Host Protected Area feature set
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	NOP cmd
	   *	DOWNLOAD_MICROCODE
	    	Advanced Power Management feature set
	    	Power-Up In Standby feature set
	   *	SET_FEATURES required to spinup after power up
	    	SET_MAX security extension
	    	Automatic Acoustic Management feature set
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	FLUSH_CACHE_EXT
	   *	SMART error logging
	   *	SMART self-test
	    	Media Card Pass-Through
	   *	General Purpose Logging feature set
	   *	64-bit World wide name
	   *	WRITE_UNCORRECTABLE_EXT command
	   *	{READ,WRITE}_DMA_EXT_GPL commands
	   *	Segmented DOWNLOAD_MICROCODE
	   *	SATA-I signaling speed (1.5Gb/s)
	   *	SATA-II signaling speed (3.0Gb/s)
	   *	Native Command Queueing (NCQ)
	   *	Host-initiated interface power management
	   *	Phy event counters
	   *	unknown 76[12]
	    	DMA Setup Auto-Activate optimization
	    	Device-initiated interface power management
	   *	Software settings preservation
	   *	SMART Command Transport (SCT) feature set
	   *	SCT Long Sector Access (AC1)
	   *	SCT LBA Segment Access (AC2)
	   *	SCT Error Recovery Control (AC3)
	   *	SCT Features Control (AC4)
	   *	SCT Data Tables (AC5)
Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
		supported: enhanced erase
	178min for SECURITY ERASE UNIT. 178min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5000f00b058523
	NAA		: 5
	IEEE OUI	: f0
	Unique ID	: 0b058523
Checksum: correct

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

* Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
  2008-10-11 14:27 Lars Michael Jogback
@ 2008-10-14  5:51 ` Tejun Heo
  2008-10-14 20:19   ` Lars Michael Jogback
  0 siblings, 1 reply; 48+ messages in thread
From: Tejun Heo @ 2008-10-14  5:51 UTC (permalink / raw)
  To: Lars Michael Jogback; +Cc: linux-ide

Lars Michael Jogback wrote:
> I've got trouble to get a drive to reconnect to the system after
> hotplug.
> 
> I'm using Linux 2.6.26 (Debian 2.6.26-8) on AMD64. The controller card
> is any Sil3124-based, and the disks are connected to a Sil3726.
> 
> The disks in this case (but I've got the same behaviour on different
> disks) is SAMSUNG HD103UJ. Their Spin_Up_Time according to smartctl is
> 11030 (which I translate to approx 11 seconds, right?)
>
...
> [75101.684114] ata4.03: failed to IDENTIFY (I/O error, err_mask=0x11)
...
> 
> As I understand it, the first IDENTIFY happens 1 second after hotplug,
> the second 5 seconds after hotplug, and the last and third one happens 9
> seconds after the hotplug, and as I understand this disk need at least
> 11 seconds to spin-up.
> 
> The only way I can get the disk back online is to yank the cable between
> the controller and the PMP, then it works.
> 
> Is it someway to extend the timeout to wait for spin-up of the disk?

Hmmm.. drives usually make reset wait while they're spinning up so
that's where the spin wait logic is implemented.  Strange.  Can you
post full boot log and the result of "hdparm -I" on the drive?  Also,
if you first spin up the drive by conneciting only the power connector
and then connect the SATA cable a bit later, does it work?

Thanks.

-- 
tejun

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

* Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
@ 2008-10-11 14:27 Lars Michael Jogback
  2008-10-14  5:51 ` Tejun Heo
  0 siblings, 1 reply; 48+ messages in thread
From: Lars Michael Jogback @ 2008-10-11 14:27 UTC (permalink / raw)
  To: linux-ide

I've got trouble to get a drive to reconnect to the system after
hotplug.

I'm using Linux 2.6.26 (Debian 2.6.26-8) on AMD64. The controller card
is any Sil3124-based, and the disks are connected to a Sil3726.

The disks in this case (but I've got the same behaviour on different
disks) is SAMSUNG HD103UJ. Their Spin_Up_Time according to smartctl is
11030 (which I translate to approx 11 seconds, right?)

The disks are mounted in drivecages.

When I yank the disk this happens:
[75044.264218] ata4.03: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xf
[75044.264322] ata4: SError: { PHYRdyChg DevExch }
[75044.264971] ata4.03: hard resetting link
[75045.007015] ata4.03: SATA link down (SStatus 0 SControl 320)
[75045.007164] ata4: failed to recover some devices, retrying in 5 secs
[75050.035389] ata4.03: hard resetting link
[75050.371528] ata4.03: SATA link down (SStatus 0 SControl 320)
[75050.371672] ata4: failed to recover some devices, retrying in 5 secs
[75055.387768] ata4.03: hard resetting link
[75055.724346] ata4.03: SATA link down (SStatus 0 SControl 320)
[75055.724797] ata4.03: disabled
[75056.228377] ata4: EH complete
[75056.228469] ata4.03: detaching (SCSI 4:3:0:0)
[75056.228830] sd 4:3:0:0: [sdt] Synchronizing SCSI cache
[75056.228959] sd 4:3:0:0: [sdt] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK
[75056.229149] sd 4:3:0:0: [sdt] Stopping disk
[75056.229250] sd 4:3:0:0: [sdt] START_STOP FAILED
[75056.229346] sd 4:3:0:0: [sdt] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK

And when I plug the disk this happens.
[75096.396748] ata4.03: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xf
[75096.396849] ata4: SError: { PHYRdyChg CommWake DevExch }
[75096.716825] ata4.03: hard resetting link
[75097.461358] ata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[75097.477638] ata4.03: failed to IDENTIFY (I/O error, err_mask=0x11)
[75097.477745] ata4.15: hard resetting link
[75099.622365] ata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[75099.943070] ata4.00: hard resetting link
[75100.278871] ata4.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[75100.278971] ata4.01: hard resetting link
[75100.615444] ata4.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[75100.615545] ata4.02: hard resetting link
[75100.950786] ata4.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[75100.950887] ata4.03: hard resetting link
[75101.287528] ata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[75101.287626] ata4.05: hard resetting link
[75101.624445] ata4.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[75101.640432] ata4.00: configured for UDMA/100
[75101.652704] ata4.01: configured for UDMA/100
[75101.666964] ata4.02: configured for UDMA/100
[75101.684114] ata4.03: failed to IDENTIFY (I/O error, err_mask=0x11)
[75101.684211] ata4.15: hard resetting link
[75103.828553] ata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[75104.149612] ata4.00: hard resetting link
[75104.486756] ata4.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[75104.486855] ata4.01: hard resetting link
[75104.823978] ata4.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[75104.824079] ata4.02: hard resetting link
[75105.162597] ata4.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[75105.162698] ata4.03: hard resetting link
[75105.501892] ata4.03: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[75105.501993] ata4.05: hard resetting link
[75105.838207] ata4.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[75105.851061] ata4.00: configured for UDMA/100
[75105.863553] ata4.01: configured for UDMA/100
[75105.876447] ata4.02: configured for UDMA/100
[75105.890214] ata4.03: failed to IDENTIFY (I/O error, err_mask=0x11)
[75105.890321] ata4.03: failed to recover link after 3 tries, disabling
[75105.890415] ata4: failed to recover PMP, retrying in 5 secs
[75110.903191] ata4.15: hard resetting link
[75113.144415] ata4.15: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[75113.788536] ata4.00: hard resetting link
[75114.127956] ata4.00: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[75114.127956] ata4.01: hard resetting link
[75114.468727] ata4.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[75114.468830] ata4.02: hard resetting link
[75114.803270] ata4.02: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[75114.803371] ata4.05: hard resetting link
[75115.143819] ata4.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[75115.157855] ata4.00: configured for UDMA/100
[75115.170739] ata4.01: configured for UDMA/100
[75115.183895] ata4.02: configured for UDMA/100
[75115.841430] ata4: EH complete

As I understand it, the first IDENTIFY happens 1 second after hotplug,
the second 5 seconds after hotplug, and the last and third one happens 9
seconds after the hotplug, and as I understand this disk need at least
11 seconds to spin-up.

The only way I can get the disk back online is to yank the cable between
the controller and the PMP, then it works.

Is it someway to extend the timeout to wait for spin-up of the disk?

Best Regards,
/LM


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

end of thread, other threads:[~2011-10-20  0:37 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <359604ECF8F440408B9634E6146249B42923805F@mail.scl.local>
     [not found] ` <20110628095723.GC3386@htj.dyndns.org>
2011-06-30 17:53   ` Problem w/ hotplug on sata_sil24 w/ PMP (sil3726) Derry Bryson
2011-07-12 15:01     ` tj
2011-07-12 19:21       ` Derry Bryson
2011-07-13 13:34         ` tj
2011-07-13 14:39           ` tj
2011-07-13 16:23             ` Derry Bryson
2011-07-14  7:14               ` tj
2011-07-14 17:37                 ` Derry Bryson
2011-07-21  9:00                   ` tj
2011-07-21 16:22                     ` Derry Bryson
2011-07-22  9:50                       ` tj
2011-07-22 17:29                         ` Derry Bryson
2011-07-22 19:34                         ` Derry Bryson
2011-07-30 12:54                           ` tj
2011-09-30 21:54                             ` Mike I
2011-10-06  5:48                               ` Gwendal Grignou
2011-10-06  6:03                                 ` [PATCH] libata: Allow SOFT_RESET for Sil3726 Gwendal Grignou
2011-10-06  8:03                                   ` Tejun Heo
2011-10-06 20:44                                     ` Gwendal Grignou
2011-10-06 22:10                                       ` Tejun Heo
2011-10-12 14:03                                         ` Mark Lord
2011-10-20  0:02                                           ` [PATCH] [libata]Issue SRST to Sil3726 PMP Gwendal Grignou
2011-10-20  0:02                                           ` Gwendal Grignou
2011-10-20  0:07                                             ` Tejun Heo
2011-10-20  0:28                                               ` Gwendal Grignou
2011-10-20  0:17                                           ` Gwendal Grignou
2011-10-20  0:17                                           ` Gwendal Grignou
2011-10-20  0:35                                           ` [PATCH] [libata]Send SRST to disks behind " Gwendal Grignou
2011-10-20  0:35                                           ` [PATCH] [libata]Issue SRST to Disks behind Sil3726 Gwendal Grignou
2011-10-20  0:37                                             ` Tejun Heo
2011-10-06 10:42                                   ` [PATCH] libata: Allow SOFT_RESET for Sil3726 Sergei Shtylyov
     [not found]                                 ` <CAMHSBOV8rSW3jumpx8URZrgo8w1He9zruP7yAOw7uhQOaAj3Xg@mail.gmail.com>
2011-10-06  6:07                                   ` Problem w/ hotplug on sata_sil24 w/ PMP (sil3726) Gwendal Grignou
2011-10-08 18:25                                 ` Michael Ihrcke
2011-10-12  2:06                                   ` Michael Ihrcke
2011-10-13  2:09                                     ` Mike I
2008-10-11 14:27 Lars Michael Jogback
2008-10-14  5:51 ` Tejun Heo
2008-10-14 20:19   ` Lars Michael Jogback
2008-10-15  7:03     ` Tejun Heo
2008-10-18 16:52       ` Lars Michael Jogback
2008-10-23 18:14         ` Lars Michael Jogback
2008-10-27  7:35           ` Tejun Heo
2008-10-27  7:38             ` Tejun Heo
2008-10-27  8:47               ` Lars Michael Jogback
2008-10-27 19:40               ` Lars Michael Jogback
2008-11-10  6:47                 ` Tejun Heo
2008-11-10 18:26                   ` Lars Michael Jogback
2008-11-11  2:56                     ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.