All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel 2.6.30rc7 limits IDE to UDMA33
@ 2009-06-02 22:25 Grozdan
  2009-06-03  4:05 ` Robert Hancock
  0 siblings, 1 reply; 23+ messages in thread
From: Grozdan @ 2009-06-02 22:25 UTC (permalink / raw)
  To: linux-kernel

Hi,

I gave today kernel 2.6.30rc7 a spin on my Athlon 64 system and it
seems there's yet again a problem with libata limiting IDE disks to
UDMA33 since it thinks that the cable is only 40 wires. My distro
kernel which is 2.6.27.21 does not have this problem and correctly
sets my disks to UDMA133. I googled around and it seems in the past
this was a known problem for some kernels. Any suggestions? :)

Please cc me as I'm not subscribed to the list

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-02 22:25 Kernel 2.6.30rc7 limits IDE to UDMA33 Grozdan
@ 2009-06-03  4:05 ` Robert Hancock
  2009-06-03 11:35   ` Grozdan
  0 siblings, 1 reply; 23+ messages in thread
From: Robert Hancock @ 2009-06-03  4:05 UTC (permalink / raw)
  To: Grozdan; +Cc: linux-kernel, ide

Grozdan wrote:
> Hi,
> 
> I gave today kernel 2.6.30rc7 a spin on my Athlon 64 system and it
> seems there's yet again a problem with libata limiting IDE disks to
> UDMA33 since it thinks that the cable is only 40 wires. My distro
> kernel which is 2.6.27.21 does not have this problem and correctly
> sets my disks to UDMA133. I googled around and it seems in the past
> this was a known problem for some kernels. Any suggestions? :)
> 
> Please cc me as I'm not subscribed to the list

Full dmesg output from bootup would be useful.

CCing linux-ide.

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-03  4:05 ` Robert Hancock
@ 2009-06-03 11:35   ` Grozdan
  2009-06-03 12:14     ` Alan Cox
  0 siblings, 1 reply; 23+ messages in thread
From: Grozdan @ 2009-06-03 11:35 UTC (permalink / raw)
  To: Robert Hancock; +Cc: linux-kernel, linux-ide

2009/6/3 Robert Hancock <hancockrwd@gmail.com>:
> Grozdan wrote:
>>
>> Hi,
>>
>> I gave today kernel 2.6.30rc7 a spin on my Athlon 64 system and it
>> seems there's yet again a problem with libata limiting IDE disks to
>> UDMA33 since it thinks that the cable is only 40 wires. My distro
>> kernel which is 2.6.27.21 does not have this problem and correctly
>> sets my disks to UDMA133. I googled around and it seems in the past
>> this was a known problem for some kernels. Any suggestions? :)
>>
>> Please cc me as I'm not subscribed to the list
>
> Full dmesg output from bootup would be useful.
>
> CCing linux-ide.
>

Hi

Sorry for the late reply. Here's the dmesg output of kernel 2.6.30-rc7-git4

Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.30-rc7-git4-neutrino (geeko@buildhost) (gcc version
4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) ) #1 SMP PREEMPT
Wed Jun 3 13:07:40 CEST 2009
Command line: root=/dev/sda1 resume=/dev/sda3 splash=silent vga=0x317
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000006fee0000 (usable)
 BIOS-e820: 000000006fee0000 - 000000006fee3000 (ACPI NVS)
 BIOS-e820: 000000006fee3000 - 000000006fef0000 (ACPI data)
 BIOS-e820: 000000006fef0000 - 000000006ff00000 (reserved)
 BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
DMI 2.3 present.
Phoenix BIOS detected: BIOS may corrupt low RAM, working around it.
e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
last_pfn = 0x6fee0 max_arch_pfn = 0x100000000
MTRR default type: uncachable
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-C7FFF write-protect
  C8000-FFFFF uncachable
MTRR variable ranges enabled:
  0 base 0000000000 mask FFC0000000 write-back
  1 base 0040000000 mask FFE0000000 write-back
  2 base 0060000000 mask FFF0000000 write-back
  3 base 006FF00000 mask FFFFF00000 uncachable
  4 disabled
  5 disabled
  6 disabled
  7 disabled
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
init_memory_mapping: 0000000000000000-000000006fee0000
 0000000000 - 006fe00000 page 2M
 006fe00000 - 006fee0000 page 4k
kernel direct mapping tables up to 6fee0000 @ 10000-14000
RAMDISK: 3758e000 - 37fef163
ACPI: RSDP 00000000000f7ba0 00014 (v00 K8T890)
ACPI: RSDT 000000006fee3040 00030 (v01 K8T890 AWRDACPI 42302E31 AWRD 00000000)
ACPI: FACP 000000006fee30c0 00074 (v01 K8T890 AWRDACPI 42302E31 AWRD 00000000)
ACPI: DSDT 000000006fee3180 079C5 (v01 K8T890 AWRDACPI 00001000 MSFT 0100000E)
ACPI: FACS 000000006fee0000 00040
ACPI: MCFG 000000006feeac80 0003C (v01 K8T890 AWRDACPI 42302E31 AWRD 00000000)
ACPI: APIC 000000006feeabc0 00066 (v01 K8T890 AWRDACPI 42302E31 AWRD 00000000)
ACPI: Local APIC address 0xfee00000
Scanning NUMA topology in Northbridge 24
No NUMA configuration found
Faking a node at 0000000000000000-000000006fee0000
Bootmem setup node 0 0000000000000000-000000006fee0000
  NODE_DATA [0000000000012000 - 0000000000045fff]
  bootmap [0000000000046000 -  0000000000053fdf] pages e
(7 early reservations) ==> bootmem [0000000000 - 006fee0000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0000200000 - 000513b38c]    TEXT DATA BSS ==> [0000200000 - 000513b38c]
  #3 [003758e000 - 0037fef163]          RAMDISK ==> [003758e000 - 0037fef163]
  #4 [000009f800 - 0000100000]    BIOS reserved ==> [000009f800 - 0000100000]
  #5 [000513c000 - 000513c13d]              BRK ==> [000513c000 - 000513c13d]
  #6 [0000010000 - 0000012000]          PGTABLE ==> [0000010000 - 0000012000]
found SMP MP-table at [ffff8800000f5aa0] f5aa0
 [ffffe20000000000-ffffe200019fffff] PMD ->
[ffff880005400000-ffff880006dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000010 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000010 -> 0x0000009f
    0: 0x00000100 -> 0x0006fee0
On node 0 totalpages: 458351
  DMA zone: 56 pages used for memmap
  DMA zone: 101 pages reserved
  DMA zone: 3826 pages, LIFO batch:0
  DMA32 zone: 6213 pages used for memmap
  DMA32 zone: 448155 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0x4008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 0, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x03] address[0xfecc0000] gsi_base[24])
IOAPIC[1]: apic_id 3, version 0, address 0xfecc0000, GSI 24-47
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 48
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 70000000 (gap: 6ff00000:70100000)
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 26 pages at ffff880005170000, static data 73760 bytes
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 451981
Policy zone: DMA32
Kernel command line: root=/dev/sda1 resume=/dev/sda3 splash=silent vga=0x317
bootsplash: silent mode.
Initializing CPU#0
NR_IRQS:4352
PID hash table entries: 4096 (order: 12, 32768 bytes)
Fast TSC calibration using PIT
Detected 2400.217 MHz processor.
Console: colour dummy device 80x25
console [tty0] enabled
Checking aperture...
AGP bridge at 00:00:00
Aperture from AGP @ d0000000 old size 32 MB
Aperture from AGP @ d0000000 size 128 MB (APSIZE f20)
Node 0: aperture @ fed0000000 size 128 MB
Aperture beyond 4GB. Ignoring.
Memory: 1705648k/1833856k available (3489k kernel code, 452k absent,
127756k reserved, 3497k data, 908k init)
Calibrating delay loop (skipped), value calculated using timer
frequency.. 4802.45 BogoMIPS (lpj=8000723)
kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All
Rights Reserved
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
CPU 0/0x0 -> Node 0
tseg: 006ff00000
SMP alternatives: switching to UP code
Freeing SMP alternatives: 23k freed
ACPI: Core revision 20090320
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
CPU0: AMD Athlon(tm) 64 Processor 4000+ stepping 01
Brought up 1 CPUs
Total of 1 processors activated (4802.45 BogoMIPS).
CPU0 attaching NULL sched-domain.
net_namespace: 1888 bytes
NET: Registered protocol family 16
node 0 link 0: io port [1000, fffff]
TOM: 0000000070000000 aka 1792M
node 0 link 0: mmio [a0000, bffff]
node 0 link 0: mmio [70000000, ff70ffff]
bus: [00,ff] on node 0 link 0
bus: 00 index 0 io port: [0, ffff]
bus: 00 index 1 mmio: [a0000, bffff]
bus: 00 index 2 mmio: [70000000, fcffffffff]
ACPI: bus type pci registered
PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 - 255
PCI: MCFG area at e0000000 reserved in E820
PCI: Using MMCONFIG at e0000000 - efffffff
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI Warning (dsobject-0502): Package List length (7) larger than
NumElements count (5), truncated
 [20090320]
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:00.0: reg 10 32bit mmio: [0xd0000000-0xd7ffffff]
pci 0000:00:02.0: PME# supported from D0 D3hot D3cold
pci 0000:00:02.0: PME# disabled
pci 0000:00:03.0: PME# supported from D0 D3hot D3cold
pci 0000:00:03.0: PME# disabled
pci 0000:00:03.1: PME# supported from D0 D3hot D3cold
pci 0000:00:03.1: PME# disabled
pci 0000:00:03.2: PME# supported from D0 D3hot D3cold
pci 0000:00:03.2: PME# disabled
pci 0000:00:03.3: PME# supported from D0 D3hot D3cold
pci 0000:00:03.3: PME# disabled
pci 0000:00:07.0: reg 10 32bit mmio: [0xde010000-0xde01ffff]
pci 0000:00:07.0: reg 14 32bit mmio: [0xde000000-0xde00ffff]
pci 0000:00:08.0: reg 10 32bit mmio: [0xde024000-0xde0247ff]
pci 0000:00:08.0: reg 14 32bit mmio: [0xde020000-0xde023fff]
pci 0000:00:08.0: supports D1 D2
pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:08.0: PME# disabled
pci 0000:00:0c.0: reg 10 io port: [0xc000-0xc01f]
pci 0000:00:0c.0: supports D1 D2
pci 0000:00:0c.1: reg 10 io port: [0xc400-0xc407]
pci 0000:00:0c.1: supports D1 D2
pci 0000:00:0d.0: reg 10 io port: [0xc800-0xc807]
pci 0000:00:0d.0: reg 14 io port: [0xcc00-0xcc03]
pci 0000:00:0d.0: reg 18 io port: [0xd000-0xd007]
pci 0000:00:0d.0: reg 1c io port: [0xd400-0xd403]
pci 0000:00:0d.0: reg 20 io port: [0xd800-0xd80f]
pci 0000:00:0d.0: reg 30 32bit mmio: [0xdd000000-0xdd07ffff]
pci 0000:00:0d.0: supports D1 D2
pci 0000:00:0f.0: reg 20 io port: [0xdc00-0xdc0f]
pci 0000:00:10.0: reg 20 io port: [0xe000-0xe01f]
pci 0000:00:10.0: supports D1 D2
pci 0000:00:10.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:00:10.0: PME# disabled
pci 0000:00:10.1: reg 20 io port: [0xe400-0xe41f]
pci 0000:00:10.1: supports D1 D2
pci 0000:00:10.1: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:00:10.1: PME# disabled
pci 0000:00:10.2: reg 20 io port: [0xe800-0xe81f]
pci 0000:00:10.2: supports D1 D2
pci 0000:00:10.2: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:00:10.2: PME# disabled
pci 0000:00:10.3: reg 20 io port: [0xec00-0xec1f]
pci 0000:00:10.3: supports D1 D2
pci 0000:00:10.3: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:00:10.3: PME# disabled
pci 0000:00:10.4: reg 10 32bit mmio: [0xde025000-0xde0250ff]
pci 0000:00:10.4: supports D1 D2
pci 0000:00:10.4: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:00:10.4: PME# disabled
HPET not enabled in BIOS. You might try hpet=force boot option
pci 0000:00:11.0: Enabled onboard AC97/MC97 devices
pci 0000:00:11.5: reg 10 io port: [0x00-0xff]
pci 0000:00:11.5: supports D1 D2
pci 0000:00:11.6: reg 10 io port: [0x00-0xff]
pci 0000:02:00.0: reg 10 32bit mmio: [0xd8000000-0xd8ffffff]
pci 0000:02:00.0: reg 14 64bit mmio: [0xc0000000-0xcfffffff]
pci 0000:02:00.0: reg 1c 64bit mmio: [0xd9000000-0xd9ffffff]
pci 0000:02:00.0: reg 30 32bit mmio: [0xda000000-0xda01ffff]
pci 0000:02:00.0: disabling ASPM on pre-1.1 PCIe device.  You can
enable it with 'pcie_aspm=force'
pci 0000:00:02.0: bridge 32bit mmio: [0xd8000000-0xdaffffff]
pci 0000:00:02.0: bridge 32bit mmio pref: [0xc0000000-0xcfffffff]
pci 0000:00:03.0: bridge 32bit mmio: [0x000000-0x0fffff]
pci 0000:00:03.1: bridge 32bit mmio: [0x000000-0x0fffff]
pci 0000:05:00.0: reg 10 64bit mmio: [0xdc000000-0xdc003fff]
pci 0000:05:00.0: reg 18 io port: [0xb000-0xb0ff]
pci 0000:05:00.0: reg 30 32bit mmio: [0xdb000000-0xdb01ffff]
pci 0000:05:00.0: supports D1 D2
pci 0000:05:00.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:05:00.0: PME# disabled
pci 0000:05:00.0: disabling ASPM on pre-1.1 PCIe device.  You can
enable it with 'pcie_aspm=force'
pci 0000:00:03.2: bridge io port: [0xb000-0xbfff]
pci 0000:00:03.2: bridge 32bit mmio: [0xdb000000-0xdcffffff]
pci 0000:00:03.3: bridge 32bit mmio: [0x000000-0x0fffff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEXG._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX2._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX3._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 6 7 10 11 12) *5
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 6 7 10 *11 12)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 6 7 *10 11 12)
ACPI: PCI Interrupt Link [ALKA] (IRQs *20), disabled.
ACPI: PCI Interrupt Link [ALKB] (IRQs *21)
ACPI: PCI Interrupt Link [ALKC] (IRQs *22), disabled.
ACPI: PCI Interrupt Link [ALKD] (IRQs *23), disabled.
PCI: Using ACPI for IRQ routing
pci 0000:00:03.0: BAR 8: can't allocate resource
pci 0000:00:03.1: BAR 8: can't allocate resource
pci 0000:00:03.3: BAR 8: can't allocate resource
agpgart-amd64 0000:00:00.0: AGP bridge [1106/0238]
agpgart-amd64 0000:00:00.0: AGP aperture is 128M @ 0xd0000000
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp 00:02: io resource (0x10-0x1f) overlaps 0000:00:11.5 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x22-0x3f) overlaps 0000:00:11.5 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x44-0x5f) overlaps 0000:00:11.5 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x62-0x63) overlaps 0000:00:11.5 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x65-0x6f) overlaps 0000:00:11.5 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x74-0x7f) overlaps 0000:00:11.5 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x91-0x93) overlaps 0000:00:11.5 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0xa2-0xbf) overlaps 0000:00:11.5 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0xe0-0xef) overlaps 0000:00:11.5 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x10-0x1f) overlaps 0000:00:11.6 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x22-0x3f) overlaps 0000:00:11.6 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x44-0x5f) overlaps 0000:00:11.6 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x62-0x63) overlaps 0000:00:11.6 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x65-0x6f) overlaps 0000:00:11.6 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x74-0x7f) overlaps 0000:00:11.6 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0x91-0x93) overlaps 0000:00:11.6 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0xa2-0xbf) overlaps 0000:00:11.6 BAR 0
(0x0-0xff), disabling
pnp 00:02: io resource (0xe0-0xef) overlaps 0000:00:11.6 BAR 0
(0x0-0xff), disabling
pnp: PnP ACPI: found 10 devices
ACPI: ACPI bus type pnp unregistered
system 00:01: ioport range 0x4000-0x407f has been reserved
system 00:01: ioport range 0x5000-0x500f has been reserved
system 00:02: ioport range 0xb78-0xb7b has been reserved
system 00:02: ioport range 0xf78-0xf7b has been reserved
system 00:02: ioport range 0xa78-0xa7b has been reserved
system 00:02: ioport range 0xe78-0xe7b has been reserved
system 00:02: ioport range 0xbbc-0xbbf has been reserved
system 00:02: ioport range 0xfbc-0xfbf has been reserved
system 00:02: ioport range 0x4d0-0x4d1 has been reserved
system 00:02: ioport range 0x290-0x297 has been reserved
system 00:08: iomem range 0xe0000000-0xefffffff has been reserved
system 00:09: iomem range 0xcec00-0xcffff has been reserved
system 00:09: iomem range 0xf0000-0xf7fff could not be reserved
system 00:09: iomem range 0xf8000-0xfbfff could not be reserved
system 00:09: iomem range 0xfc000-0xfffff could not be reserved
system 00:09: iomem range 0x6fef0000-0x6ffeffff could not be reserved
system 00:09: iomem range 0x6fee0000-0x6fefffff could not be reserved
system 00:09: iomem range 0xffff0000-0xffffffff has been reserved
system 00:09: iomem range 0x0-0x9ffff could not be reserved
system 00:09: iomem range 0x100000-0x6fedffff could not be reserved
system 00:09: iomem range 0xfec00000-0xfec00fff has been reserved
system 00:09: iomem range 0xfee00000-0xfee00fff has been reserved
system 00:09: iomem range 0xfff80000-0xfffeffff has been reserved
pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
pci 0000:00:01.0:   IO window: disabled
pci 0000:00:01.0:   MEM window: disabled
pci 0000:00:01.0:   PREFETCH window: disabled
pci 0000:00:02.0: PCI bridge, secondary bus 0000:02
pci 0000:00:02.0:   IO window: disabled
pci 0000:00:02.0:   MEM window: 0xd8000000-0xdaffffff
pci 0000:00:02.0:   PREFETCH window: 0x000000c0000000-0x000000cfffffff
pci 0000:00:03.0: PCI bridge, secondary bus 0000:03
pci 0000:00:03.0:   IO window: disabled
pci 0000:00:03.0:   MEM window: disabled
pci 0000:00:03.0:   PREFETCH window: disabled
pci 0000:00:03.1: PCI bridge, secondary bus 0000:04
pci 0000:00:03.1:   IO window: disabled
pci 0000:00:03.1:   MEM window: disabled
pci 0000:00:03.1:   PREFETCH window: disabled
pci 0000:00:03.2: PCI bridge, secondary bus 0000:05
pci 0000:00:03.2:   IO window: 0xb000-0xbfff
pci 0000:00:03.2:   MEM window: 0xdb000000-0xdcffffff
pci 0000:00:03.2:   PREFETCH window: disabled
pci 0000:00:03.3: PCI bridge, secondary bus 0000:06
pci 0000:00:03.3:   IO window: disabled
pci 0000:00:03.3:   MEM window: disabled
pci 0000:00:03.3:   PREFETCH window: disabled
pci 0000:00:01.0: setting latency timer to 64
pci 0000:00:02.0: PCI INT A -> GSI 27 (level, low) -> IRQ 27
pci 0000:00:02.0: setting latency timer to 64
pci 0000:00:03.0: PCI INT A -> GSI 31 (level, low) -> IRQ 31
pci 0000:00:03.0: setting latency timer to 64
pci 0000:00:03.1: PCI INT B -> GSI 35 (level, low) -> IRQ 35
pci 0000:00:03.1: setting latency timer to 64
pci 0000:00:03.2: PCI INT C -> GSI 39 (level, low) -> IRQ 39
pci 0000:00:03.2: setting latency timer to 64
pci 0000:00:03.3: PCI INT D -> GSI 43 (level, low) -> IRQ 43
pci 0000:00:03.3: setting latency timer to 64
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
pci_bus 0000:02: resource 1 mem: [0xd8000000-0xdaffffff]
pci_bus 0000:02: resource 2 pref mem [0xc0000000-0xcfffffff]
pci_bus 0000:03: resource 1 mem: [0x0-0xfffff]
pci_bus 0000:04: resource 1 mem: [0x0-0xfffff]
pci_bus 0000:05: resource 0 io:  [0xb000-0xbfff]
pci_bus 0000:05: resource 1 mem: [0xdb000000-0xdcffffff]
pci_bus 0000:06: resource 1 mem: [0x0-0xfffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
Unpacking initramfs...
Freeing initrd memory: 10628k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1244035689.673:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 838
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
pci 0000:00:01.0: disabling DAC on VIA PCI bridge
pci 0000:02:00.0: Boot video device
pcieport-driver 0000:00:02.0: irq 48 for MSI/MSI-X
pcieport-driver 0000:00:02.0: setting latency timer to 64
pcieport-driver 0000:00:03.0: irq 49 for MSI/MSI-X
pcieport-driver 0000:00:03.0: setting latency timer to 64
pcieport-driver 0000:00:03.1: irq 50 for MSI/MSI-X
pcieport-driver 0000:00:03.1: setting latency timer to 64
pcieport-driver 0000:00:03.2: irq 51 for MSI/MSI-X
pcieport-driver 0000:00:03.2: setting latency timer to 64
pcieport-driver 0000:00:03.3: irq 52 for MSI/MSI-X
pcieport-driver 0000:00:03.3: setting latency timer to 64
aer 0000:00:02.0:pcie02: AER service couldn't init device: no _OSC support
aer 0000:00:03.0:pcie02: AER service couldn't init device: no _OSC support
aer 0000:00:03.1:pcie02: AER service couldn't init device: no _OSC support
aer 0000:00:03.2:pcie02: AER service couldn't init device: no _OSC support
aer 0000:00:03.3:pcie02: AER service couldn't init device: no _OSC support
vesafb: framebuffer at 0xc0000000, mapped to 0xffffc20010980000, using
6144k, total 65536k
vesafb: mode is 1024x768x16, linelength=2048, pages=1
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
bootsplash 3.1.6-2004/03/31: looking for picture...
bootsplash: silentjpeg size 100719 bytes
bootsplash: ...found (1024x768, 38691 bytes, v3).
Console: switching to colour frame buffer device 124x44
fb0: VESA VGA frame buffer device
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
Switched to high resolution mode on CPU 0
PNP: PS/2 appears to have AUX port disabled, if this is incorrect
please boot with i8042.nopnp
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
cpuidle: using governor ladder
cpuidle: using governor menu
TCP cubic registered
input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input0
registered taskstats version 1
Freeing unused kernel memory: 908k freed
Write protecting the kernel read-only data: 5852k
processor ACPI_CPU:00: registered as cooling_device0
thermal LNXTHERM:01: registered as thermal_zone0
ACPI: Thermal Zone [THRM] (49 C)
fan PNP0C0B:00: registered as cooling_device1
ACPI: Fan [FAN] (on)
SCSI subsystem initialized
libata version 3.00 loaded.
pata_via 0000:00:0f.0: version 0.3.4
ACPI: PCI Interrupt Link [ALKA] disabled and referenced, BIOS bug
ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20
pata_via 0000:00:0f.0: PCI INT A -> Link[ALKA] -> GSI 20 (level, low) -> IRQ 20
scsi0 : pata_via
scsi1 : pata_via
ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xdc00 irq 14
ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xdc08 irq 15
ata1.00: ATA-7: Maxtor 6Y080L0, YAR41BW0, max UDMA/133
ata1.00: 160086528 sectors, multi 16: LBA
ata1.01: ATA-5: ST340016A, 3.10, max UDMA/100
ata1.01: 78165360 sectors, multi 16: LBA
ata1.00: limited to UDMA/33 due to 40-wire cable
ata1.01: limited to UDMA/33 due to 40-wire cable
ata1.00: configured for UDMA/33
ata1.01: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      Maxtor 6Y080L0   YAR4 PQ: 0 ANSI: 5
scsi 0:0:1:0: Direct-Access     ATA      ST340016A        3.10 PQ: 0 ANSI: 5
ata2.00: ATAPI: TSSTcorpCD/DVDW TS-H552U, US08, max UDMA/33
ata2.00: configured for UDMA/33
scsi 1:0:0:0: CD-ROM            TSSTcorp CD/DVDW TS-H552U US08 PQ: 0 ANSI: 5
BIOS EDD facility v0.16 2004-Jun-25, 2 devices found
udevd version 128 started
sd 0:0:0:0: [sda] 160086528 512-byte hardware sectors: (81.9 GB/76.3 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
 sda:<5>sd 0:0:1:0: [sdb] 78165360 512-byte hardware sectors: (40.0 GB/37.2 GiB)
 sda1 sda2 sda3 sda4
sd 0:0:1:0: [sdb] Write Protect is off
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
 sdb: sdb1
sd 0:0:1:0: [sdb] Attached SCSI disk
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
uhci_hcd: USB Universal Host Controller Interface driver
ACPI: PCI Interrupt Link [ALKB] enabled at IRQ 21
uhci_hcd 0000:00:10.0: PCI INT A -> Link[ALKB] -> GSI 21 (level, low) -> IRQ 21
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
uhci_hcd 0000:00:10.0: UHCI Host Controller
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:10.0: irq 21, io base 0x0000e000
Warning! ehci_hcd should always be loaded before uhci_hcd and
ohci_hcd, not after
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: UHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.30-rc7-git4-neutrino uhci_hcd
usb usb1: SerialNumber: 0000:00:10.0
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ehci_hcd 0000:00:10.4: PCI INT C -> Link[ALKB] -> GSI 21 (level, low) -> IRQ 21
ehci_hcd 0000:00:10.4: EHCI Host Controller
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:10.4: irq 21, io mem 0xde025000
ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.30-rc7-git4-neutrino ehci_hcd
usb usb2: SerialNumber: 0000:00:10.4
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
uhci_hcd 0000:00:10.1: PCI INT A -> Link[ALKB] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.1: UHCI Host Controller
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:10.1: irq 21, io base 0x0000e400
usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: UHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.30-rc7-git4-neutrino uhci_hcd
usb usb3: SerialNumber: 0000:00:10.1
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.2: PCI INT B -> Link[ALKB] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.2: UHCI Host Controller
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:10.2: irq 21, io base 0x0000e800
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: UHCI Host Controller
usb usb4: Manufacturer: Linux 2.6.30-rc7-git4-neutrino uhci_hcd
usb usb4: SerialNumber: 0000:00:10.2
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.3: PCI INT B -> Link[ALKB] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.3: UHCI Host Controller
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:10.3: irq 21, io base 0x0000ec00
usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: UHCI Host Controller
usb usb5: Manufacturer: Linux 2.6.30-rc7-git4-neutrino uhci_hcd
usb usb5: SerialNumber: 0000:00:10.3
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
usb 1-1: new low speed USB device using uhci_hcd and address 2
usb 1-1: New USB device found, idVendor=04b4, idProduct=0001
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: USB Mouse
usb 1-1: Manufacturer: Adomax
usb 1-1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
usb 1-2: new low speed USB device using uhci_hcd and address 3
usb 1-2: New USB device found, idVendor=046d, idProduct=c00e
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-2: Product: USB-PS/2 Optical Mouse
usb 1-2: Manufacturer: Logitech
usb 1-2: configuration #1 chosen from 1 choice
input: Logitech USB-PS/2 Optical Mouse as
/devices/pci0000:00/0000:00:10.0/usb1/1-2/1-2:1.0/input/input1
generic-usb 0003:046D:C00E.0002: input,hidraw0: USB HID v1.10 Mouse
[Logitech USB-PS/2 Optical Mouse] on usb-0000:00:10.0-2/input0
PM: Starting manual resume from disk
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
udevd version 128 started
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:1:0: Attached scsi generic sg1 type 0
scsi 1:0:0:0: Attached scsi generic sg2 type 5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
input: PC Speaker as /devices/platform/pcspkr/input/input2
pata_cmd64x 0000:00:0d.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
scsi2 : pata_cmd64x
scsi3 : pata_cmd64x
ata3: PATA max UDMA/100 cmd 0xc800 ctl 0xcc00 bmdma 0xd800 irq 18
ata4: PATA max UDMA/100 cmd 0xd000 ctl 0xd400 bmdma 0xd808 irq 18
pata_cmd64x: active 10 recovery 10 setup 3.
pata_cmd64x: active 10 recovery 10 setup 3.
pata_cmd64x: active 10 recovery 10 setup 3.
pata_cmd64x: active 10 recovery 10 setup 3.
input: Adomax USB Mouse as
/devices/pci0000:00/0000:00:10.0/usb1/1-1/1-1:1.0/input/input3
cypress 0003:04B4:0001.0001: input,hidraw1: USB HID v1.00 Mouse
[Adomax USB Mouse] on usb-0000:00:10.0-1/input0
sky2 driver version 1.22
sky2 0000:05:00.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36
sky2 0000:05:00.0: setting latency timer to 64
sky2 0000:05:00.0: PCI: Disallowing DAC for device
sky2 0000:05:00.0: Yukon-2 EC chip revision 2
sky2 0000:05:00.0: irq 53 for MSI/MSI-X
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
ACPI: Power Button [PWRF]
input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input5
ACPI: Power Button [PWRB]
sky2 0000:05:00.0: No interrupt generated using MSI, switching to INTx mode.
sky2 eth0: addr 00:11:d8:a1:5b:0e
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
gameport: EMU10K1 is pci0000:00:0c.1/gameport0, io 0xc400, speed 1153kHz
ohci1394 0000:00:08.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[16]
MMIO=[de024000-de0247ff]  Max Packet=[2048]  IR/IT contexts=[4/8]
sr0: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
Uniform Multi-Platform E-IDE driver
rtc_cmos 00:04: RTC can wake from S4
rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one year, y3k, 242 bytes nvram
EMU10K1_Audigy 0000:00:0c.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
VIA 82xx Modem 0000:00:11.6: enabling device (0000 -> 0001)
ACPI: PCI Interrupt Link [ALKC] enabled at IRQ 22
VIA 82xx Modem 0000:00:11.6: PCI INT C -> Link[ALKC] -> GSI 22 (level,
low) -> IRQ 22
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[0011d8000017f53d]
VIA 82xx Modem 0000:00:11.6: setting latency timer to 64
VIA 82xx Modem 0000:00:11.6: PCI INT C disabled
VIA 82xx Modem: probe of 0000:00:11.6 failed with error -13
VIA 82xx Audio 0000:00:11.5: enabling device (0000 -> 0001)
VIA 82xx Audio 0000:00:11.5: PCI INT C -> Link[ALKC] -> GSI 22 (level,
low) -> IRQ 22
VIA 82xx Audio 0000:00:11.5: setting latency timer to 64
Adding 1052248k swap on /dev/sda3.  Priority:-1 extents:1 across:1052248k
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: dm-devel@redhat.com
loop: module loaded
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
SGI XFS with ACLs, security attributes, realtime, large block/inode
numbers, no debug enabled
SGI XFS Quota Management subsystem
XFS mounting filesystem sdb1
Ending clean XFS mount for filesystem: sdb1
fuse init (API version 7.11)
powernow-k8: Found 1 AMD Athlon(tm) 64 Processor 4000+ processors (1
cpu cores) (version 2.20.00)
powernow-k8:    0 : fid 0x10 (2400 MHz), vid 0x6
powernow-k8:    1 : fid 0xe (2200 MHz), vid 0x8
powernow-k8:    2 : fid 0xc (2000 MHz), vid 0xa
powernow-k8:    3 : fid 0xa (1800 MHz), vid 0xc
powernow-k8:    4 : fid 0x2 (1000 MHz), vid 0x12
Marking TSC unstable due to cpufreq changes
Clocksource tsc unstable (delta = -220379918 ns)
ip6_tables: (C) 2000-2006 Netfilter Core Team
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
sky2 eth0: enabling interface
NET: Registered protocol family 17
sky2 eth0: Link is up at 100 Mbps, full duplex, flow control rx

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-03 11:35   ` Grozdan
@ 2009-06-03 12:14     ` Alan Cox
  2009-06-03 12:52       ` Grozdan
  0 siblings, 1 reply; 23+ messages in thread
From: Alan Cox @ 2009-06-03 12:14 UTC (permalink / raw)
  To: Grozdan; +Cc: Robert Hancock, linux-kernel, linux-ide

> ACPI: PCI Interrupt Link [ALKA] disabled and referenced, BIOS bug
> ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20
> pata_via 0000:00:0f.0: PCI INT A -> Link[ALKA] -> GSI 20 (level, low) -> IRQ 20
> scsi0 : pata_via
> scsi1 : pata_via
> ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xdc00 irq 14
> ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xdc08 irq 15
> ata1.00: ATA-7: Maxtor 6Y080L0, YAR41BW0, max UDMA/133
> ata1.00: 160086528 sectors, multi 16: LBA
> ata1.01: ATA-5: ST340016A, 3.10, max UDMA/100
> ata1.01: 78165360 sectors, multi 16: LBA
> ata1.00: limited to UDMA/33 due to 40-wire cable
> ata1.01: limited to UDMA/33 due to 40-wire cable

The via driver hasn't changed its cable detect handling between 2.6.27
and now. The actual detection is done by the BIOS either by setting flags
or via ACPI.

To trace it down I'd need to at minimum to know exactly which kernel the
behaviour you see changed.

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-03 12:14     ` Alan Cox
@ 2009-06-03 12:52       ` Grozdan
  2009-06-03 13:01         ` Alan Cox
  0 siblings, 1 reply; 23+ messages in thread
From: Grozdan @ 2009-06-03 12:52 UTC (permalink / raw)
  To: Alan Cox; +Cc: hancockrwd, linux-kernel, linux-ide

2009/6/3 Alan Cox <alan@lxorguk.ukuu.org.uk>:
>> ACPI: PCI Interrupt Link [ALKA] disabled and referenced, BIOS bug
>> ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20
>> pata_via 0000:00:0f.0: PCI INT A -> Link[ALKA] -> GSI 20 (level, low) -> IRQ 20
>> scsi0 : pata_via
>> scsi1 : pata_via
>> ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xdc00 irq 14
>> ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xdc08 irq 15
>> ata1.00: ATA-7: Maxtor 6Y080L0, YAR41BW0, max UDMA/133
>> ata1.00: 160086528 sectors, multi 16: LBA
>> ata1.01: ATA-5: ST340016A, 3.10, max UDMA/100
>> ata1.01: 78165360 sectors, multi 16: LBA
>> ata1.00: limited to UDMA/33 due to 40-wire cable
>> ata1.01: limited to UDMA/33 due to 40-wire cable
>
> The via driver hasn't changed its cable detect handling between 2.6.27
> and now. The actual detection is done by the BIOS either by setting flags
> or via ACPI.
>
> To trace it down I'd need to at minimum to know exactly which kernel the
> behaviour you see changed.
>

Hi Alan,

The limiting only appears on kernel 2.6.30-rc7-git4. I downloaded the
source RPM package from the SUSE build service and compiled it myself,
enabling/tweaking a few things (higher Hz, full preempt, stack
protector enabled, CPU set to Opteron/Athlon64). During configuration,
I did not change any block device or IDE options (except for selecting
anticipatory disk scheduler to be the default), nor any ACPI related
ones. My distro default kernel, which is 2.6.27.21, correctly sets the
UDMA for my disks on this machine. Only kernel 2.6.30-rc7-git4 (which
is the only 2.6.30 kernel I tried so far) limits them to UDMA33. My
IDE cables are alright (I use high-quality black AOpen 80-wires
cables)

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-03 12:52       ` Grozdan
@ 2009-06-03 13:01         ` Alan Cox
  2009-06-03 13:15           ` Grozdan
  2009-06-03 13:39           ` Grozdan
  0 siblings, 2 replies; 23+ messages in thread
From: Alan Cox @ 2009-06-03 13:01 UTC (permalink / raw)
  To: Grozdan; +Cc: hancockrwd, linux-kernel, linux-ide

What about 2.6.28 or 2.6.29 ?

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-03 13:01         ` Alan Cox
@ 2009-06-03 13:15           ` Grozdan
  2009-06-03 13:39           ` Grozdan
  1 sibling, 0 replies; 23+ messages in thread
From: Grozdan @ 2009-06-03 13:15 UTC (permalink / raw)
  To: Alan Cox; +Cc: hancockrwd, linux-kernel, linux-ide

2009/6/3 Alan Cox <alan@lxorguk.ukuu.org.uk>:
> What about 2.6.28 or 2.6.29 ?
>

Hi,

I did not try those and I don't think I can find them anymore in the
build service. There's only a 2.6.29 realtime one. I will try it out
and report back in a few...

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-03 13:01         ` Alan Cox
  2009-06-03 13:15           ` Grozdan
@ 2009-06-03 13:39           ` Grozdan
  2009-06-04 14:50             ` Grozdan
  1 sibling, 1 reply; 23+ messages in thread
From: Grozdan @ 2009-06-03 13:39 UTC (permalink / raw)
  To: Alan Cox; +Cc: hancockrwd, linux-kernel, linux-ide

2009/6/3 Alan Cox <alan@lxorguk.ukuu.org.uk>:
> What about 2.6.28 or 2.6.29 ?
>

Hi,

I just installed kernel 2.6.29.4-rt16-2-rt from the SUSE build service
(there's no 2.6.28 one available nor a 'normal' 2.6.29 one) and my
UDMA is set correctly just as when using the default 2.6.27.21 kernel.
Now I'm not sure if there really is a problem in 2.6.30-rc7-git4 or
did I somehow introduced it by configuring something incorrectly
(which I doubt because as I said, I didn't touch anything related to
IDE during configuration. I only tweaked a few options, most of them
in the General and Processor sections). However, this
2.6.29.4-rt16-2-rt kernel seems to have a bug (not sure if it's
present in mainline too or because of the patches Novell used to build
this rt kernel) in rtmutex as I get things such as...

BUG: sleeping function called from invalid context at
/usr/src/packages/BUILD/kernel-rt-2.6.29.4/linux-2.6.29/kernel/rtmutex.c:685
in_atomic(): 1, irqs_disabled(): 1, pid: 17, name: work_on_cpu/0
Pid: 17, comm: work_on_cpu/0 Not tainted 2.6.29.4-rt16-2-rt #1
Call Trace:
[<ffffffff80227b4a>] dump_trace+0xda/0x3d0
[<ffffffff802288ff>] show_trace_log_lvl+0x4c/0x58
[<ffffffff8022891b>] show_trace+0x10/0x12
[<ffffffff804ee605>] dump_stack+0x72/0x7b
[<ffffffff80252635>] __might_sleep+0x10a/0x10c
[<ffffffff804f0af7>] rt_spin_lock+0x2f/0x78
[<ffffffff802ee5b1>] _slab_irq_disable+0x40/0x63
[<ffffffff802f0495>] kmem_cache_alloc_node+0x3a/0x21b
[<ffffffff802a9621>] irq_to_desc_alloc_cpu+0xb7/0x20e
[<ffffffff8023d47a>] io_apic_set_pci_routing+0x63/0xbe
[<ffffffff80238555>] mp_register_gsi+0xc1/0xcc
[<ffffffff802385cc>] acpi_register_gsi+0x3f/0x4b
[<ffffffff803fb41b>] acpi_pci_irq_enable+0x145/0x233
[<ffffffff8045c4bb>] pcibios_enable_device+0x29/0x2e
[<ffffffff803ae1b7>] do_pci_enable_device+0x28/0x40
[<ffffffff803ae224>] __pci_enable_device_flags+0x55/0x70
[<ffffffff803ae24d>] pci_enable_device+0xe/0x10
[<ffffffffa0116292>] usb_hcd_pci_probe+0x42/0x2a0 [usbcore]
[<ffffffff803afc7b>] local_pci_probe+0x12/0x16
[<ffffffff80273224>] do_work_for_cpu+0x13/0x1b
[<ffffffff80273429>] run_workqueue+0x110/0x1b0
[<ffffffff802735a9>] worker_thread+0xe0/0xf1
[<ffffffff80277028>] kthread+0x49/0x76
[<ffffffff80225f9a>] child_rip+0xa/0x20


---------- dmesg IDE of 2.6.29.4-rt16-2-rt----------------

pata_via 0000:00:0f.0: PCI INT A -> Link[ALKA] -> GSI 20 (level, low) -> IRQ 20
scsi0 : pata_via
scsi1 : pata_via
ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xdc00 irq 14
ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xdc08 irq 15
ata1.00: ATA-7: Maxtor 6Y080L0, YAR41BW0, max UDMA/133
ata1.00: 160086528 sectors, multi 16: LBA
ata1.01: ATA-5: ST340016A, 3.10, max UDMA/100
ata1.01: 78165360 sectors, multi 16: LBA
ata1.00: configured for UDMA/133
ata1.01: configured for UDMA/100
isa bounce pool size: 16 pages
scsi 0:0:0:0: Direct-Access     ATA      Maxtor 6Y080L0   YAR4 PQ: 0 ANSI: 5
scsi 0:0:1:0: Direct-Access     ATA      ST340016A        3.10 PQ: 0 ANSI: 5
ata2.00: ATAPI: TSSTcorpCD/DVDW TS-H552U, US08, max UDMA/33
ata2.00: configured for UDMA/33
scsi 1:0:0:0: CD-ROM            TSSTcorp CD/DVDW TS-H552U US08 PQ: 0 ANSI: 5
BIOS EDD facility v0.16 2004-Jun-25, 2 devices found
udevd version 128 started
Driver 'sd' needs updating - please use bus_type methods
sd 0:0:0:0: [sda] 160086528 512-byte hardware sectors: (81.9 GB/76.3 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
sd 0:0:0:0: [sda] 160086528 512-byte hardware sectors: (81.9 GB/76.3 GiB)

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-03 13:39           ` Grozdan
@ 2009-06-04 14:50             ` Grozdan
  2009-06-05  9:05               ` Alan Cox
  0 siblings, 1 reply; 23+ messages in thread
From: Grozdan @ 2009-06-04 14:50 UTC (permalink / raw)
  To: Alan Cox; +Cc: hancockrwd, linux-kernel, linux-ide

2009/6/3 Grozdan <neutrino8@gmail.com>:
> 2009/6/3 Alan Cox <alan@lxorguk.ukuu.org.uk>:
>> What about 2.6.28 or 2.6.29 ?
>>
>
> Hi,
>
> I just installed kernel 2.6.29.4-rt16-2-rt from the SUSE build service
> (there's no 2.6.28 one available nor a 'normal' 2.6.29 one) and my
> UDMA is set correctly just as when using the default 2.6.27.21 kernel.
> Now I'm not sure if there really is a problem in 2.6.30-rc7-git4 or
> did I somehow introduced it by configuring something incorrectly
> (which I doubt because as I said, I didn't touch anything related to
> IDE during configuration. I only tweaked a few options, most of them
> in the General and Processor sections).
>
> ---------- dmesg IDE of 2.6.29.4-rt16-2-rt----------------
>
> pata_via 0000:00:0f.0: PCI INT A -> Link[ALKA] -> GSI 20 (level, low) -> IRQ 20
> scsi0 : pata_via
> scsi1 : pata_via
> ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xdc00 irq 14
> ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xdc08 irq 15
> ata1.00: ATA-7: Maxtor 6Y080L0, YAR41BW0, max UDMA/133
> ata1.00: 160086528 sectors, multi 16: LBA
> ata1.01: ATA-5: ST340016A, 3.10, max UDMA/100
> ata1.01: 78165360 sectors, multi 16: LBA
> ata1.00: configured for UDMA/133
> ata1.01: configured for UDMA/100
> isa bounce pool size: 16 pages
> scsi 0:0:0:0: Direct-Access     ATA      Maxtor 6Y080L0   YAR4 PQ: 0 ANSI: 5
> scsi 0:0:1:0: Direct-Access     ATA      ST340016A        3.10 PQ: 0 ANSI: 5
> ata2.00: ATAPI: TSSTcorpCD/DVDW TS-H552U, US08, max UDMA/33
> ata2.00: configured for UDMA/33
> scsi 1:0:0:0: CD-ROM            TSSTcorp CD/DVDW TS-H552U US08 PQ: 0 ANSI: 5
> BIOS EDD facility v0.16 2004-Jun-25, 2 devices found
> udevd version 128 started
> Driver 'sd' needs updating - please use bus_type methods
> sd 0:0:0:0: [sda] 160086528 512-byte hardware sectors: (81.9 GB/76.3 GiB)
> sd 0:0:0:0: [sda] Write Protect is off
> sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
> sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't
> support DPO or FUA
> sd 0:0:0:0: [sda] 160086528 512-byte hardware sectors: (81.9 GB/76.3 GiB)
>

Adding more information. A user on the openSUSE forum which is trying
out openSUSE 11.2 milestone 2 (with kernel 2.6.30-rc6-git3) is having
the same problems. His computer is using the pata_amd driver instead
of pata_via like mine and he too gets limiting to UDMA33 during boot

Link: http://forums.opensuse.org/pre-release-beta/415373-hd-speed.html

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-04 14:50             ` Grozdan
@ 2009-06-05  9:05               ` Alan Cox
  2009-06-05 10:35                 ` Grozdan
  0 siblings, 1 reply; 23+ messages in thread
From: Alan Cox @ 2009-06-05  9:05 UTC (permalink / raw)
  To: Grozdan; +Cc: hancockrwd, linux-kernel, linux-ide

> Adding more information. A user on the openSUSE forum which is trying
> out openSUSE 11.2 milestone 2 (with kernel 2.6.30-rc6-git3) is having
> the same problems. His computer is using the pata_amd driver instead
> of pata_via like mine and he too gets limiting to UDMA33 during boot
> 
> Link: http://forums.opensuse.org/pre-release-beta/415373-hd-speed.html

Different problem. However that Nvidia one it would be worth trying this
so that we just rely upon the ACPI/BIOS data for Nvidia.

diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c
index 33a74f1..c9c5fad 100644
--- a/drivers/ata/pata_amd.c
+++ b/drivers/ata/pata_amd.c
@@ -424,7 +424,7 @@ static struct ata_port_operations amd133_port_ops = {
 
 static const struct ata_port_operations nv_base_port_ops = {
 	.inherits	= &ata_bmdma_port_ops,
-	.cable_detect	= ata_cable_ignore,
+	.cable_detect	= ata_cable_80wire,
 	.mode_filter	= nv_mode_filter,
 	.prereset	= nv_pre_reset,
 	.host_stop	= nv_host_stop,

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-05  9:05               ` Alan Cox
@ 2009-06-05 10:35                 ` Grozdan
  2009-06-05 10:42                   ` Alan Cox
  0 siblings, 1 reply; 23+ messages in thread
From: Grozdan @ 2009-06-05 10:35 UTC (permalink / raw)
  To: Alan Cox; +Cc: hancockrwd, linux-kernel, linux-ide

2009/6/5 Alan Cox <alan@lxorguk.ukuu.org.uk>:
>> Adding more information. A user on the openSUSE forum which is trying
>> out openSUSE 11.2 milestone 2 (with kernel 2.6.30-rc6-git3) is having
>> the same problems. His computer is using the pata_amd driver instead
>> of pata_via like mine and he too gets limiting to UDMA33 during boot
>>
>> Link: http://forums.opensuse.org/pre-release-beta/415373-hd-speed.html
>
> Different problem. However that Nvidia one it would be worth trying this
> so that we just rely upon the ACPI/BIOS data for Nvidia.
>
> diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c
> index 33a74f1..c9c5fad 100644
> --- a/drivers/ata/pata_amd.c
> +++ b/drivers/ata/pata_amd.c
> @@ -424,7 +424,7 @@ static struct ata_port_operations amd133_port_ops = {
>
>  static const struct ata_port_operations nv_base_port_ops = {
>        .inherits       = &ata_bmdma_port_ops,
> -       .cable_detect   = ata_cable_ignore,
> +       .cable_detect   = ata_cable_80wire,
>        .mode_filter    = nv_mode_filter,
>        .prereset       = nv_pre_reset,
>        .host_stop      = nv_host_stop,
>

Hi Alan,

I've relayed your reply to the pata_amd user on the forum. As for my
case with pata_via, until this is fixed, is there any way to force it
to use a higher UDMA? Is there a flag that can be passed in, for
example, in /sys somewhere? hdparm fails to set a higher UDMA and I
looked at sdparm but don't see anything in it to increase UDMA...

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-05 10:35                 ` Grozdan
@ 2009-06-05 10:42                   ` Alan Cox
  2009-06-05 12:43                     ` Grozdan
  2009-06-06  1:07                     ` Robert Hancock
  0 siblings, 2 replies; 23+ messages in thread
From: Alan Cox @ 2009-06-05 10:42 UTC (permalink / raw)
  To: Grozdan; +Cc: hancockrwd, linux-kernel, linux-ide

> I've relayed your reply to the pata_amd user on the forum. As for my
> case with pata_via, until this is fixed, is there any way to force it
> to use a higher UDMA? Is there a flag that can be passed in, for

In your case given the BIOS appears to be informing us you have a 40wire
cable there isn't much that can be fixed

> example, in /sys somewhere? hdparm fails to set a higher UDMA and I
> looked at sdparm but don't see anything in it to increase UDMA...

Tejun some time ago added stuff to override all of these things:

See Documentation/kernel-parameters.txt

	libata.force=

which will let you override all sorts of autodetection for quirky boards

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-05 10:42                   ` Alan Cox
@ 2009-06-05 12:43                     ` Grozdan
  2009-06-05 13:21                       ` Alan Cox
  2009-06-06  1:07                     ` Robert Hancock
  1 sibling, 1 reply; 23+ messages in thread
From: Grozdan @ 2009-06-05 12:43 UTC (permalink / raw)
  To: Alan Cox; +Cc: hancockrwd, linux-kernel, linux-ide

2009/6/5 Alan Cox <alan@lxorguk.ukuu.org.uk>:
>> I've relayed your reply to the pata_amd user on the forum. As for my
>> case with pata_via, until this is fixed, is there any way to force it
>> to use a higher UDMA? Is there a flag that can be passed in, for
>
> In your case given the BIOS appears to be informing us you have a 40wire
> cable there isn't much that can be fixed
>
>> example, in /sys somewhere? hdparm fails to set a higher UDMA and I
>> looked at sdparm but don't see anything in it to increase UDMA...
>
> Tejun some time ago added stuff to override all of these things:
>
> See Documentation/kernel-parameters.txt
>
>        libata.force=
>
> which will let you override all sorts of autodetection for quirky boards
>

Thanks, I will try out the kernel params. However, I still wonder why
older kernels have no problems setting the correct UDMA while 2.6.30
does have problems. Something must have definitely changed in this
latest kernel. I'll go dig in my BIOS to see if I may need to
change/force something.

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-05 12:43                     ` Grozdan
@ 2009-06-05 13:21                       ` Alan Cox
  2009-06-05 14:02                         ` Grozdan
  0 siblings, 1 reply; 23+ messages in thread
From: Alan Cox @ 2009-06-05 13:21 UTC (permalink / raw)
  To: Grozdan; +Cc: hancockrwd, linux-kernel, linux-ide

> older kernels have no problems setting the correct UDMA while 2.6.30
> does have problems. Something must have definitely changed in this
> latest kernel. I'll go dig in my BIOS to see if I may need to
> change/force something.

Unless you can actually work through the various kernels and release
candidates to find the one it changes its basically impossible to tell
what has occurred or why.

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-05 13:21                       ` Alan Cox
@ 2009-06-05 14:02                         ` Grozdan
  0 siblings, 0 replies; 23+ messages in thread
From: Grozdan @ 2009-06-05 14:02 UTC (permalink / raw)
  To: Alan Cox; +Cc: hancockrwd, linux-kernel, linux-ide

2009/6/5 Alan Cox <alan@lxorguk.ukuu.org.uk>:
>> older kernels have no problems setting the correct UDMA while 2.6.30
>> does have problems. Something must have definitely changed in this
>> latest kernel. I'll go dig in my BIOS to see if I may need to
>> change/force something.
>
> Unless you can actually work through the various kernels and release
> candidates to find the one it changes its basically impossible to tell
> what has occurred or why.
>

Well, I looked around in the BIOS and there isn't anything I can do to
force a specific UDMA - it only offers disable and auto detect.
Upgrading the BIOS firware won't do a thing since I'm already running
the latest version of it. The BIOS correctly reports that my first
disk is using Transfer Mode 6 and my second one Transfer Mode 5. I've
also noticed that some Ubuntu users have the same problem on kernel
2.6.27 (which works for me)

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/285595

So if this can't be fixed in the kernel itself, I may need to resort
to kernel params if I experience the problem again in the future. I
may give all rc's of 2.6.30 a try and see which one introduces it...

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-05 10:42                   ` Alan Cox
  2009-06-05 12:43                     ` Grozdan
@ 2009-06-06  1:07                     ` Robert Hancock
  2009-06-06 14:56                       ` Alan Cox
  1 sibling, 1 reply; 23+ messages in thread
From: Robert Hancock @ 2009-06-06  1:07 UTC (permalink / raw)
  To: Alan Cox; +Cc: Grozdan, linux-kernel, linux-ide

Alan Cox wrote:
>> I've relayed your reply to the pata_amd user on the forum. As for my
>> case with pata_via, until this is fixed, is there any way to force it
>> to use a higher UDMA? Is there a flag that can be passed in, for
> 
> In your case given the BIOS appears to be informing us you have a 40wire
> cable there isn't much that can be fixed
> 
>> example, in /sys somewhere? hdparm fails to set a higher UDMA and I
>> looked at sdparm but don't see anything in it to increase UDMA...
> 
> Tejun some time ago added stuff to override all of these things:
> 
> See Documentation/kernel-parameters.txt
> 
> 	libata.force=
> 
> which will let you override all sorts of autodetection for quirky boards

I wouldn't rule out the possibility of a bug. The code in pata_via looks 
a bit fishy, it reports a 40-wire cable if either the GTM data wasn't 
present or valid, or if it reports a mode of UDMA2 or less. In the 
former case it seems like ATA_CABLE_PATA_UNK would be the safer choice 
since we really don't know, and we should then use drive-side detection, 
rather than assuming a 40-wire cable by default..

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-06  1:07                     ` Robert Hancock
@ 2009-06-06 14:56                       ` Alan Cox
  2009-06-06 18:16                         ` Robert Hancock
  0 siblings, 1 reply; 23+ messages in thread
From: Alan Cox @ 2009-06-06 14:56 UTC (permalink / raw)
  To: Robert Hancock; +Cc: Grozdan, linux-kernel, linux-ide

> I wouldn't rule out the possibility of a bug. The code in pata_via looks 
> a bit fishy, it reports a 40-wire cable if either the GTM data wasn't 
> present or valid, or if it reports a mode of UDMA2 or less. In the 
> former case it seems like ATA_CABLE_PATA_UNK would be the safer choice 
> since we really don't know, and we should then use drive-side detection, 
> rather than assuming a 40-wire cable by default..

Drive side detection doesn't work for many VIA boards, the neccessary
components are not included.

About the only other check I can think to try is to see if the BIOS
programmed modes > UDMA2 for either device. That has its own problems
(suspend-resume/hotplug/non-bios devices) which is why we currently don't
do it.

Alan

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-06 14:56                       ` Alan Cox
@ 2009-06-06 18:16                         ` Robert Hancock
  2009-06-06 22:08                           ` Alan Cox
  2009-06-07  4:39                           ` Grozdan
  0 siblings, 2 replies; 23+ messages in thread
From: Robert Hancock @ 2009-06-06 18:16 UTC (permalink / raw)
  To: Alan Cox; +Cc: Grozdan, linux-kernel, linux-ide, Tejun Heo

Alan Cox wrote:
>> I wouldn't rule out the possibility of a bug. The code in pata_via looks 
>> a bit fishy, it reports a 40-wire cable if either the GTM data wasn't 
>> present or valid, or if it reports a mode of UDMA2 or less. In the 
>> former case it seems like ATA_CABLE_PATA_UNK would be the safer choice 
>> since we really don't know, and we should then use drive-side detection, 
>> rather than assuming a 40-wire cable by default..
> 
> Drive side detection doesn't work for many VIA boards, the neccessary
> components are not included.

Ugh, seems they messed this stuff up as bad as NVIDIA did..

> 
> About the only other check I can think to try is to see if the BIOS
> programmed modes > UDMA2 for either device. That has its own problems
> (suspend-resume/hotplug/non-bios devices) which is why we currently don't
> do it.

Well, that's pretty much the same thing that GTM does (it generally just 
reads the configured mode out of the controller registers). So it really 
wouldn't be much worse than what we're doing now.

Thing is somehow the GTM detection isn't working now and it apparently 
was in 2.6.27.1. I'm not seeing any patches to pata_via or libata-acpi 
that seem like they would affect this offhand. Grozdan, would you be 
able to try git bisect to try to figure out what changed the behavior?

CCing Tejun in case he has any ideas..

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-06 18:16                         ` Robert Hancock
@ 2009-06-06 22:08                           ` Alan Cox
  2009-06-07  4:39                           ` Grozdan
  1 sibling, 0 replies; 23+ messages in thread
From: Alan Cox @ 2009-06-06 22:08 UTC (permalink / raw)
  To: Robert Hancock; +Cc: Grozdan, linux-kernel, linux-ide, Tejun Heo

> > Drive side detection doesn't work for many VIA boards, the neccessary
> > components are not included.
> 
> Ugh, seems they messed this stuff up as bad as NVIDIA did..

Nvidia seem to have gotten it close to right. The Nvidia chipsets use
ACPI for reporting and only ACPI. The ACPI parts are pretty reliable, its
just if your ACPI is busted....

> Well, that's pretty much the same thing that GTM does (it generally just 
> reads the configured mode out of the controller registers). So it really 
> wouldn't be much worse than what we're doing now.
> 
> Thing is somehow the GTM detection isn't working now and it apparently 
> was in 2.6.27.1. I'm not seeing any patches to pata_via or libata-acpi 
> that seem like they would affect this offhand. Grozdan, would you be 
> able to try git bisect to try to figure out what changed the behavior?

Could be power management. Something is putting devices into D3 that
didn't use to happen. That was what broke the ALi ATA driver and I could
believe a D3 transition of the IDE controller broke the BIOS
configuration.

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-06 18:16                         ` Robert Hancock
  2009-06-06 22:08                           ` Alan Cox
@ 2009-06-07  4:39                           ` Grozdan
       [not found]                             ` <4A2BF785.3020402@gmail.com>
  1 sibling, 1 reply; 23+ messages in thread
From: Grozdan @ 2009-06-07  4:39 UTC (permalink / raw)
  To: Robert Hancock; +Cc: linux-kernel, linux-ide, tj, alan

2009/6/6 Robert Hancock <hancockrwd@gmail.com>:
>
> Thing is somehow the GTM detection isn't working now and it apparently was
> in 2.6.27.1. I'm not seeing any patches to pata_via or libata-acpi that seem
> like they would affect this offhand. Grozdan, would you be able to try git
> bisect to try to figure out what changed the behavior?
>
> CCing Tejun in case he has any ideas..
>

I've no idea how and where to do a git bisect so if someone is willing
to explain in simple steps, I can try...

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
       [not found]                             ` <4A2BF785.3020402@gmail.com>
@ 2009-06-07 18:24                               ` Grozdan
  2009-06-07 18:46                                 ` Michael S. Zick
  0 siblings, 1 reply; 23+ messages in thread
From: Grozdan @ 2009-06-07 18:24 UTC (permalink / raw)
  To: Robert Hancock; +Cc: linux-kernel, linux-ide, tj, alan

2009/6/7 Robert Hancock <hancockrwd@gmail.com>:
> Grozdan wrote:
>>
>> 2009/6/6 Robert Hancock <hancockrwd@gmail.com>:
>>>
>>> Thing is somehow the GTM detection isn't working now and it apparently
>>> was
>>> in 2.6.27.1. I'm not seeing any patches to pata_via or libata-acpi that
>>> seem
>>> like they would affect this offhand. Grozdan, would you be able to try
>>> git
>>> bisect to try to figure out what changed the behavior?
>>>
>>> CCing Tejun in case he has any ideas..
>>>
>>
>> I've no idea how and where to do a git bisect so if someone is willing
>> to explain in simple steps, I can try...
>
> Linus's post on here is a pretty simple explanation:
>
> http://kerneltrap.org/node/11753
>

Yes, it's clear to someone who's familiar with git but not to a noob
like me. Where do I run this git? After it's finished what to do next?
How many times do I have to compile kernels? Which kernels exactly?
After booting a "bad" kernel, what then? etc... From reading the
article, the guy has to compile 14!! times just to catch a problem
between kernel 2.6.21 and 2.6.22. I guess in my case I'll have to
compile a lot more than 14 times to catch something between kernel
2.6.27 and 2.6.30 and honestly I don't have time for this right now.
However, I did a diff between the pata_via driver of kernel 2.6.27 and
2.6.30 and there have been changes to it but I'm not sure if they
affect the cable detection...

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-07 18:24                               ` Grozdan
@ 2009-06-07 18:46                                 ` Michael S. Zick
  2009-06-07 19:54                                   ` Alan Cox
  0 siblings, 1 reply; 23+ messages in thread
From: Michael S. Zick @ 2009-06-07 18:46 UTC (permalink / raw)
  To: Grozdan; +Cc: Robert Hancock, linux-kernel, linux-ide, tj, alan

On Sun June 7 2009, Grozdan wrote:
> 2009/6/7 Robert Hancock <hancockrwd@gmail.com>:
> > Grozdan wrote:
> >>
> >> 2009/6/6 Robert Hancock <hancockrwd@gmail.com>:
> >>>
> >>> Thing is somehow the GTM detection isn't working now and it apparently
> >>> was
> >>> in 2.6.27.1. I'm not seeing any patches to pata_via or libata-acpi that
> >>> seem
> >>> like they would affect this offhand. Grozdan, would you be able to try
> >>> git
> >>> bisect to try to figure out what changed the behavior?
> >>>
> >>> CCing Tejun in case he has any ideas..
> >>>
> >>
> >> I've no idea how and where to do a git bisect so if someone is willing
> >> to explain in simple steps, I can try...
> >
> > Linus's post on here is a pretty simple explanation:
> >
> > http://kerneltrap.org/node/11753
> >
> 
> Yes, it's clear to someone who's familiar with git but not to a noob
> like me. Where do I run this git? After it's finished what to do next?
> How many times do I have to compile kernels? Which kernels exactly?
> After booting a "bad" kernel, what then? etc... From reading the
> article, the guy has to compile 14!! times just to catch a problem
> between kernel 2.6.21 and 2.6.22. 
>

The article presumes the simple case of a single commit being the
problem.  If the problem involves more than one. . .

Think of doing a binary search in a list of values with duplicate
entries.  ;)

> I guess in my case I'll have to 
> compile a lot more than 14 times to catch something between kernel
> 2.6.27 and 2.6.30 and honestly I don't have time for this right now.
>

Yes, it can get to be time-consuming unless your lucky.

> However, I did a diff between the pata_via driver of kernel 2.6.27 and
> 2.6.30 and there have been changes to it but I'm not sure if they
> affect the cable detection...
>

That's a start.  Now if you knew what you where looking for...
(No offense intended - "diff" doesn't place "here I am" markers.)

The machine I am doing my own tests on uses the pata_via driver and
it detects the udma66 disk drive as a udma33 - - -

But finding this is way down on my list of things to look for -
Someone else is welcome to beat me to it.

Mike
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> 

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

* Re: Kernel 2.6.30rc7 limits IDE to UDMA33
  2009-06-07 18:46                                 ` Michael S. Zick
@ 2009-06-07 19:54                                   ` Alan Cox
  0 siblings, 0 replies; 23+ messages in thread
From: Alan Cox @ 2009-06-07 19:54 UTC (permalink / raw)
  To: lkml; +Cc: Grozdan, Robert Hancock, linux-kernel, linux-ide, tj

> The article presumes the simple case of a single commit being the
> problem.  If the problem involves more than one. . .
> 
> Think of doing a binary search in a list of values with duplicate
> entries.  ;)

My first guess is its whatever starting putting devices in D3 rudely
around 2.6.28/29. Someone needs to pin that down anyway and fix it.

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

end of thread, other threads:[~2009-06-07 19:54 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-02 22:25 Kernel 2.6.30rc7 limits IDE to UDMA33 Grozdan
2009-06-03  4:05 ` Robert Hancock
2009-06-03 11:35   ` Grozdan
2009-06-03 12:14     ` Alan Cox
2009-06-03 12:52       ` Grozdan
2009-06-03 13:01         ` Alan Cox
2009-06-03 13:15           ` Grozdan
2009-06-03 13:39           ` Grozdan
2009-06-04 14:50             ` Grozdan
2009-06-05  9:05               ` Alan Cox
2009-06-05 10:35                 ` Grozdan
2009-06-05 10:42                   ` Alan Cox
2009-06-05 12:43                     ` Grozdan
2009-06-05 13:21                       ` Alan Cox
2009-06-05 14:02                         ` Grozdan
2009-06-06  1:07                     ` Robert Hancock
2009-06-06 14:56                       ` Alan Cox
2009-06-06 18:16                         ` Robert Hancock
2009-06-06 22:08                           ` Alan Cox
2009-06-07  4:39                           ` Grozdan
     [not found]                             ` <4A2BF785.3020402@gmail.com>
2009-06-07 18:24                               ` Grozdan
2009-06-07 18:46                                 ` Michael S. Zick
2009-06-07 19:54                                   ` Alan Cox

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.