Re: Can't enable DMA over ATA on Intel Chipset 2.6.16

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

 



On Sun, Aug 27, 2006 at 02:34:35PM -0500, Gustavo Guillermo P?rez wrote:
> forgot to said "off"
> BIOS has Enhaced or Combined mode, but no one of this options helps.
> Disabling SATA, and using a normal ATAPI Hard Drive, let me use DMA for Atapi 
> Devices and works.
> 
> But I see this problem on a newest sony vaio laptop too, having the same 
> chipset, on this one there is no option for sata, cause there is no sata...
> 
> 00:00.0 Host bridge: Intel Corporation 915G/P/GV/GL/PL/910GL Express Memory 
> Controller Hub (rev 04)
> 00:02.0 Display controller: Intel Corporation 82915G/GV/910GL Express Chipset 
> Family Graphics Controller (rev 04)
> 00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) 
> High Definition Audio Controller (rev 04)
> 00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) 
> USB UHCI #1 (rev 04)
> 00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) 
> USB UHCI #2 (rev 04)
> 00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) 
> USB UHCI #3 (rev 04)
> 00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) 
> USB UHCI #4 (rev 04)
> 00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) 
> USB2 EHCI Controller (rev 04)
> 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d4)
> 00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface 
> Bridge (rev 04)
> 00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) 
> IDE Controller (rev 04)
> 00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus 
> Controller (rev 04)
> 01:00.0 Multimedia video controller: Internext Compression Inc iTVC16 
> (CX23416) MPEG-2 Encoder (rev 01)
> 01:01.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000 
> AGP 8x] (rev c1)
> 01:02.0 Communication controller: Agere Systems V.92 56K WinModem (rev 03)
> 01:08.0 Ethernet controller: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE 
> (LOM) Ethernet Controller (rev 04)
> 01:09.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller 
> (rev 80)
> root@rp-1 /home/gus # hdparm /dev/hda
> 
> /dev/hda:
>  multcount    = 16 (on)
>  IO_support   =  0 (default 16-bit)
>  unmaskirq    =  0 (off)
>  using_dma    =  1 (on)
>  keepsettings =  0 (off)
>  readonly     =  0 (off)
>  readahead    = 256 (on)
>  geometry     = 16383/255/63, sectors = 156368016, start = 0

Make sure the piix ide drive is loaded BEFORE the ide-generic driver,
otherwise the wrong driver will run the PATA port, and the generic
driver doesn't do DMA.  Your dmesg did not look like it was using the
piix driver for PATA, it looked like ide-generic.  Some initrd systems
seem to load ide-generic for cdrom, if the HD is on sata or scsi, or
something later in the boot process does it.

You should see something like (using piix driver, ata_piix would look
somewhat different I think):

ICH5: IDE controller at PCI slot 0000:00:1f.1
PCI: Enabling device 0000:00:1f.1 (0005 -> 0007)
ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 193
ICH5: chipset revision 2
ICH5: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
hda: PLEXTOR DVDR PX-708A, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hda: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
Probing IDE interface ide1...

Yours had:

ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
Probing IDE interface ide1...
hdc: SAMSUNG SP0802N, ATA DISK drive
hdd: TSSTcorpCD/DVDW TS-H552L, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hdc: max request size: 512KiB
hdc: 156368016 sectors (80060 MB) w/2048KiB Cache, CHS=16383/255/63
hdc: cache flushes supported
 /dev/ide/host1/bus0/target0/lun0: p1 p2 p3 p4 < p5 p6 p7 >
hdd: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
libata version 1.20 loaded.
ata_piix 0000:00:1f.2: version 1.05
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 16
ata: 0x170 IDE port busy
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xFFA0 irq 14
ATA: abnormal status 0x7F on port 0x1F7
ata1: disabling port
scsi0 : ata_piix

That looks like ata_piix couldn't get at the ide port because it was
already taken by the generic driver already.

--
Len Sorensen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux