From: "Jérôme Augé" <jauge@club-internet.fr>
To: linux-kernel@vger.kernel.org
Subject: 2.4.21 can't set IDE DMA on harddrive (HDIO_SET_DMA failed: Operation not permitted)
Date: Mon, 2 Jun 2003 13:48:38 +0200 [thread overview]
Message-ID: <20030602114838.GA1730@satellite.workgroup.fr> (raw)
Hi,
I'm now using kernel 2.4.20-13.8 (from RH8) and 2.4.21-ck1 (from Con
Kolivas based on 2.4.21-rc6) and I'm unable to set the dma for my
harddrive with hdparm:
# hdparm -d1 /dev/hda
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
Before these kernels I was using the 2.4.18 (from RH8 too) and
2.4.20-ck1 and setting DMA was working.
I checked my logs and found that the 2.4.21 kernel use E-IDE version
7.00beta[34]-.2.4 and the 2.4.20 one use version 6.31.
Looks like something went wrong in the IDE code regarding DMA settings ?
Here is the output from 'lspci' for my IDE controler (Toshiba Satellite
2540CDT):
--8<--
00:10.0 IDE interface: Toshiba America Info Systems: Unknown device 0102 (rev 34) (prog-if f0)
Subsystem: Toshiba America Info Systems: Unknown device 0002
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort-<TAbort-<MAbort- >SERR- <PERR-
Latency: 64 (500ns min, 10000ns max)
Region 4: I/O ports at 1800 [size=16]
-->8--
and the IDE 7.00beta3-.2.4 messages from /var/log/messages:
--8<--
May 26 12:54:10 satellite kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00beta3-.2.4
May 26 12:54:10 satellite kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
May 26 12:54:10 satellite kernel: hda: TOSHIBA MK4309MAT, ATA DISK drive
May 26 12:54:10 satellite kernel: hdc: CD-224E, ATAPI CD/DVD-ROM drive
May 26 12:54:10 satellite kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
May 26 12:54:10 satellite kernel: ide1 at 0x170-0x177,0x376 on irq 15
May 26 12:54:11 satellite kernel: hda: attached ide-disk driver.
May 26 12:54:11 satellite kernel: hda: host protected area => 1
May 26 12:54:11 satellite kernel: hda: 8452080 sectors (4327 MB), CHS=526/255/63
-->8--
and the IDE 6.31 messages:
--8<--
May 12 11:41:52 satellite kernel: Uniform Multi-Platform E-IDE driver Revision: 6.31
May 12 11:41:52 satellite kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
May 12 11:41:52 satellite kernel: PCI_IDE: unknown IDE controller on PCI bus 00 device 80, VID=1179, DID=0102
May 12 11:41:52 satellite kernel: PCI_IDE: chipset revision 52
May 12 11:41:53 satellite kernel: PCI_IDE: not 100%% native mode: will probe irqs later
May 12 11:41:53 satellite kernel: ide0: BM-DMA at 0x1800-0x1807, BIOS settings: hda:DMA, hdb:pio
May 12 11:41:53 satellite kernel: ide1: BM-DMA at 0x1808-0x180f, BIOS settings: hdc:pio, hdd:pio
May 12 11:41:53 satellite kernel: hda: TOSHIBA MK4309MAT, ATA DISK drive
May 12 11:41:53 satellite kernel: hdc: CD-224E, ATAPI CD/DVD-ROM drive
May 12 11:41:53 satellite kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
May 12 11:41:53 satellite kernel: ide1 at 0x170-0x177,0x376 on irq 15
May 12 11:41:53 satellite kernel: blk: queue c03a7604, I/O limit 4095Mb (mask 0xffffffff)
May 12 11:41:53 satellite kernel: hda: 8452080 sectors (4327 MB), CHS=526/255/63, UDMA(33)
May 12 11:41:53 satellite kernel: hdc: ATAPI 24X CD-ROM drive, 128kB Cache, DMA
-->8--
Thanks.
--
next reply other threads:[~2003-06-02 11:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-02 11:48 Jérôme Augé [this message]
2003-06-02 12:00 ` 2.4.21 can't set IDE DMA on harddrive (HDIO_SET_DMA failed: Operation not permitted) Con Kolivas
2003-06-02 14:29 ` Jérôme Augé
2003-06-02 14:21 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030602114838.GA1730@satellite.workgroup.fr \
--to=jauge@club-internet.fr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox