[ltp] DMA transfers on TP 765L

Tino Keitel linux-thinkpad@www.bm-soft.com
Wed, 28 Feb 2001 00:39:11 +0100


On Dienstag, 27. Februar 2001 18:15, you wrote:
> linux-thinkpad@www.bm-soft.com schrieb am 27.02.01:
> > In case it's of some use to you, here are the relevant
> > lines from my dmesg output (ThinkPad 600 51U):   // Thomas
> >
> > Uniform Multi-Platform E-IDE driver Revision: 6.31
> > ide: Assuming 33MHz system bus speed for PIO modes; override with
> > idebus=xx PIIX4: IDE controller on PCI bus 00 dev 39
> > PIIX4: chipset revision 1
> > PIIX4: not 100% native mode: will probe irqs later
> >     ide0: BM-DMA at 0xfcf0-0xfcf7, BIOS settings: hda:DMA, hdb:pio
>
>             ^^^^^^
> That's what I miss. The device manager in win95 also shows 0xfcf0-0xfcf7 as
> DMA IO address range. Maybe I should hardcode my ide driver to use that
> address as the dma_base.

I just modified ide-pci.c to force the kernel to use 0xfcf0 for dma_base of 
ide0 and now it works. :-) Thanks Thomas.

> >     ide1: BM-DMA at 0xfcf8-0xfcff, BIOS settings: hdc:DMA, hdd:pio
> > hda: IBM-DCXA-210000, ATA DISK drive
> > hdc: TOSHIBA CD-ROM XM-1702BC, ATAPI CD/DVD-ROM drive
> > ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> > ide1 at 0x170-0x177,0x376 on irq 15

My CD-ROM is reported as hdb so I wonder if the secondary IDE channel is used 
on my thinkpad. I turned it on using PS2.EXE but lspnp -vv only shows the 
primary IDE channel.

> > hda: 19640880 sectors (10056 MB) w/420KiB Cache, CHS=1299/240/63,
> > UDMA(33) hdc: ATAPI 24X CD-ROM drive, 128kB Cache, DMA
> > Uniform CD-ROM driver Revision: 3.12
> > Partition check:
> >  hda: hda1 hda2 < hda5 hda6 hda7 hda8 >
> >
> >
> > --- Tino Keitel <tino.keitel@web.de> wrote: > Hi folks,
> >
> > > can anyone tell me how to enable DMA transfers for my IDE-HD? Win95 is
> > > able to do this with the standard bus master driver, so the IDE
> > > interface and the hard disk both support DMA transfers. Here are the
> > > messages when the kernel detects the IDE interface:
> > >
> > > PIIX: IDE controller on PCI bus 00 dev 08
> > > PIIX: not 100% native mode: will probe irqs later
> > > PIIX: neither IDE port enabled (BIOS)
> > > hda: IBM-DPLA-25120, ATA DISK drive
> > > hdb: SANYO CRD-S54P, ATAPI CDROM drive
> > > ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> > > hda: IBM-DPLA-25120, 4887MB w/468kB Cache, CHS=662/240/63
> > >
> > > AFAIK I can only turn on DMA transfers using hdparm if the kernel
> > > reports "ide0: BM-DMA at...". I looked into the kernel sources and it
> > > seems that DMA isn't possible because of the line "neither IDE port
> > > enabled (BIOS)". How can
> > >
> > > I enable the IDE port? Or am I completely wrong?
> > >
> > > Tino

----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html