linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Albert Lee <albertcc@tw.ibm.com>
To: YUP <yupadmin@gmail.com>
Cc: albertl@mail.com, linux-ide@vger.kernel.org
Subject: Re: libata: CD and dvd devices not recognized
Date: Sat, 17 Mar 2007 18:51:51 +0800	[thread overview]
Message-ID: <45FBC847.6010400@tw.ibm.com> (raw)
In-Reply-To: <45FBB04F.7020102@gmail.com>

YUP wrote:
> Hi Albert,
> 
> I confirm that windows can read data from this drive. Autoplay works
> too. Even more, after I inserted dist into cdrom drive nero-info showed
> speed 52X:
> 
> Drive Information
> ------------------
> Drive                      : E-IDE    CD-ROM 56X/AKH
> Type                       : CD-ROM Drive
> Firmware Version           : A80
> Buffer Size                : 192 KB
> Date                       : ?
> Serial Number
> Vendor Specific            :
> Drive Letter               : D:\
> Location                   : 1:1
> Mechanism                  : Tray
> Read Speed                 : 52 , 40 , 32 , 24 , 16 , 8 , 4  X
> Write Speed                :  n/a
> 
> Read CD Text               : No
> Return C2 Pointers         : No
> Read CD-R                  : Yes
> Read CD-RW                 : Yes
> Read DVD-ROM               : No
> Read DVD-RAM               : No
> Read DVD-R                 : No
> Read DVD-RW                : No
> Read DVD-R DL              : No
> Read DVD+R                 : No
> Read DVD+RW                : No
> Read DVD+R DL              : No
> Read BD-ROM                : No
> Read BD-R                  : No
> Read BD-RE                 : No
> Read HD DVD-ROM            : No
> Read HD DVD-R              : No
> Read HD DVD-RW             : No
> Read HD-BURN               : No
> Read Digital Audio         : Yes
> Read CD+G                  : No
> Read VideoCD               : Yes
> 
> I tried to start linux box with inserted cd into drive but it didn't help.
> 

I don't know how windows works with it? Maybe uses polling to deal
with the lost irq?

Could you please keep the AOpen drive connected to the Promise adapter,
disconnect the HP drive from the Intel controller,
apply the attached patch, together with the previous debug patch and
{ "CD-ROM 56X/AKH", NULL,    ATA_HORKAGE_NODMA } DMA blacklist, and see if it helps.

Thanks.

--
albert

--- linux-2.6.20.3-ori/drivers/ata/pata_pdc2027x.c	2007-03-14 02:27:08.000000000 +0800
+++ linux-2.6.20.3-mod/drivers/ata/pata_pdc2027x.c	2007-03-17 18:40:49.000000000 +0800
@@ -214,7 +214,7 @@ static struct ata_port_info pdc2027x_por
 	{
 		.sht		= &pdc2027x_sht,
 		.flags		= ATA_FLAG_NO_LEGACY | ATA_FLAG_SLAVE_POSS |
-		                  ATA_FLAG_MMIO,
+		                  ATA_FLAG_MMIO | ATA_FLAG_PIO_POLLING,
 		.pio_mask	= 0x1f, /* pio0-4 */
 		.mwdma_mask	= 0x07, /* mwdma0-2 */
 		.udma_mask	= ATA_UDMA5, /* udma0-5 */
@@ -224,7 +224,7 @@ static struct ata_port_info pdc2027x_por
 	{
 		.sht		= &pdc2027x_sht,
 		.flags		= ATA_FLAG_NO_LEGACY | ATA_FLAG_SLAVE_POSS |
-                        	  ATA_FLAG_MMIO,
+                        	  ATA_FLAG_MMIO | ATA_FLAG_PIO_POLLING,
 		.pio_mask	= 0x1f, /* pio0-4 */
 		.mwdma_mask	= 0x07, /* mwdma0-2 */
 		.udma_mask	= ATA_UDMA6, /* udma0-6 */


      reply	other threads:[~2007-03-17 10:52 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14 22:14 libata: CD and dvd devices not recognized YUP
2007-03-15  3:56 ` Albert Lee
2007-03-15 13:11   ` YUP
2007-03-15 17:32     ` Albert Lee
2007-03-16 10:16       ` YUP
2007-03-16 15:06         ` Albert Lee
2007-03-16 15:50           ` YUP
2007-03-17 13:29             ` Bartlomiej Zolnierkiewicz
2007-03-17 14:39               ` Albert Lee
2007-03-17 15:00                 ` Bartlomiej Zolnierkiewicz
2007-03-17 18:38                   ` YUP
2007-03-17 18:47                   ` YUP
2007-03-17 19:12                     ` Bartlomiej Zolnierkiewicz
2007-03-17 19:22                       ` YUP
2007-03-17 20:07                         ` Bartlomiej Zolnierkiewicz
2007-03-18 10:07                           ` YUP
2007-03-18 15:10                             ` Bartlomiej Zolnierkiewicz
2007-03-18 15:22                               ` YUP
2007-03-18 15:54                                 ` Bartlomiej Zolnierkiewicz
2007-03-18 15:49                                   ` YUP
2007-03-18 22:48                                   ` YUP
2007-03-19  3:31                                   ` Albert Lee
2007-03-19  8:22                                     ` YUP
2007-03-19  8:29                                       ` Albert Lee
2007-03-19 12:10                               ` Sergei Shtylyov
2007-03-19 19:35                                 ` YUP
2007-03-20  7:27                                   ` Albert Lee
2007-03-20  9:07                                     ` Albert Lee
2007-03-21  4:52                                   ` Albert Lee
2007-03-21  9:01                                     ` YUP
2007-03-22  6:06                                       ` Albert Lee
2007-03-22  7:09                                         ` Tejun Heo
2007-03-22 12:37                                         ` Alan Cox
2007-03-23  3:40                                           ` Albert Lee
2007-03-23 15:19                                             ` Douglas Gilbert
2007-03-26  5:50                                               ` Albert Lee
2007-03-22 14:50                                         ` Sergei Shtylyov
2007-03-23  3:21                                           ` Albert Lee
2007-03-19 23:02                                 ` YUP
2007-03-20 15:23                                   ` Sergei Shtylyov
2007-03-23 22:13                                 ` Bartlomiej Zolnierkiewicz
2007-03-26  5:53                                   ` Albert Lee
2007-03-18  6:42                   ` YUP
2007-03-16 22:37           ` YUP
2007-03-17  3:24             ` Albert Lee
2007-03-17  9:09               ` YUP
2007-03-17 10:51                 ` Albert Lee [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=45FBC847.6010400@tw.ibm.com \
    --to=albertcc@tw.ibm.com \
    --cc=albertl@mail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=yupadmin@gmail.com \
    /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).