From: Tejun Heo <htejun@gmail.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>, Mark Lord <liml@rtr.ca>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
IDE/ATA development list <linux-ide@vger.kernel.org>,
andre@linux-ide.org
Subject: Re: [CALL-FOR-HELP] pata_ali: can't get MWDMA working!
Date: Thu, 10 Jan 2008 10:39:43 +0900 [thread overview]
Message-ID: <4785775F.9040300@gmail.com> (raw)
In-Reply-To: <200801092355.34934.bzolnier@gmail.com>
Hello,
Bartlomiej Zolnierkiewicz wrote:
>> I wondered whether the device was configured differently, so compared
>> hdparm --Istdout results. They were identical too. (attached)
>
> ATA device, with non-removable media
> Model Number: IC25N040ATMR04-0
> Serial Number: MRG208K2K3A37H
> Firmware Revision: MO2OAD5A
Eeek. sorry about that. Correct one...
/dev/sr0:
ATAPI CD-ROM, with removable media
Model Number: HL-DT-STCD-RW/DVD DRIVE GCC-4241N
Serial Number:
Firmware Revision: 0C29
Standards:
Likely used CD-ROM ATAPI-1
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(can be disabled)
DMA: sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
HW reset results:
CBLID- below Vih
Device num = 0 determined by CSEL
/dev/sr0:
85c0 0000 0000 0000 0000 0000 0000 0000
0000 0000 2020 2020 2020 2020 2020 2020
2020 2020 2020 2020 0000 0000 0000 3043
3239 2020 2020 484c 2d44 542d 5354 4344
2d52 572f 4456 4420 4452 4956 4520 4743
432d 3432 3431 4e20 2020 2020 2020 0000
0000 0f00 0000 0200 0200 0002 0000 0000
0000 0000 0000 0000 0000 0000 0007 0407
0003 0078 0078 0078 0078 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
003c 0013 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 404d 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 fffe 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
> Could you also send hdparm output for ATAPI device? Does it use CDB intr?
>
>> I walked through IDE and libata codes and found some differences in the
>> order registers are accessed and which values are written (e.g. libata
>> never turns on device 0/1 DMA capable bits in BMDMA status register
>> while IDE does). I made them access the registers in the same order and
>> write the same values. Still no go.
>>
>> Then, I made libata probing sequence very close to IDE such that no
>> reset is performed and NIEN isn't tempered with. No go.
>>
>> I thought maybe the drive should just be blacklisted. I took the laptop
>> apart, took out the DVD combo drive to ICH7 ata_piix. It works just fine.
>>
>> So, I'm out of ideas at this point. Any suggestions? Ideas?
>
> If ATAPI device uses CDB intr then ->irq_clear will be called by
> ata_host_intr() on CDB IRQ and may confuse DMA engine (it shouldn't
> on most chipsets but older ALi-s are pretty weird)...?
Unfortunately no CDB intr.
Thanks.
--
tejun
prev parent reply other threads:[~2008-01-10 1:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-09 16:52 [CALL-FOR-HELP] pata_ali: can't get MWDMA working! Tejun Heo
2008-01-09 17:01 ` Tejun Heo
2008-01-09 17:16 ` Alan Cox
2008-01-09 17:28 ` Alan Cox
2008-01-10 1:44 ` Tejun Heo
2008-01-09 17:25 ` Mark Lord
2008-01-10 1:49 ` Tejun Heo
2008-01-09 17:27 ` Sergei Shtylyov
2008-01-10 2:14 ` Tejun Heo
2008-01-09 22:55 ` Bartlomiej Zolnierkiewicz
2008-01-10 1:39 ` Tejun Heo [this message]
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=4785775F.9040300@gmail.com \
--to=htejun@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=andre@linux-ide.org \
--cc=bzolnier@gmail.com \
--cc=jeff@garzik.org \
--cc=liml@rtr.ca \
--cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).