From: Randy Dunlap <randy.dunlap@oracle.com>
To: Andrey Borzenkov <arvidjaar@mail.ru>
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org
Subject: Re: 2.6.19: ALi M5229 - CD-ROM not found with pata_ali
Date: Fri, 1 Dec 2006 12:48:37 -0800 [thread overview]
Message-ID: <20061201124837.6d0d8adb.randy.dunlap@oracle.com> (raw)
In-Reply-To: <200612012335.29179.arvidjaar@mail.ru>
On Fri, 1 Dec 2006 23:35:28 +0300 Andrey Borzenkov wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thursday 22 June 2006 00:04, Andrey Borzenkov wrote:
> > Just in case you have missed this on LKML :)
> >
> > Alan Cox wrote:
> > > http://zeniv.linux.org.uk/~alan/IDE
> > >
> > > This is basically a resync versus 2.6.17, the head of the PATA tree is
> > > now built against Jeffs tree with revised error handling and the like.
> >
> > Running vanilla 2.6.17 + ide1 patch on ALi M5229 does not find CD-ROM.
> > Notice "ata2: command 0xa0 timeout" below.
> >
>
> Still the same in 2.6.19 + suspend pata_ali patch. The only way I can get
> CD-ROM is with
>
> options pata_ali atapi_max_xfer_mask=0x7f
>
> and patch
>
> diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c
> index 1d695df..a0b9e49 100644
> - --- a/drivers/ata/pata_ali.c
> +++ b/drivers/ata/pata_ali.c
> @@ -329,6 +329,16 @@ static void ali_lock_sectors(struct ata_
> adev->max_sectors = 255;
> }
>
> +static unsigned long atapi_max_xfer_mask = ~0;
> +module_param(atapi_max_xfer_mask, ulong, 644);
^^^
BTW: 0644
> +
> +static unsigned long ali_mode_filter(const struct ata_port *ap, struct
> ata_devi
> ce *adev, unsigned long xfer_mask)
> +{
> + if (adev->class == ATA_DEV_ATAPI)
> + xfer_mask &= atapi_max_xfer_mask;
> + return ata_pci_default_filter(ap, adev, xfer_mask);
> +}
> +
> static struct scsi_host_template ali_sht = {
> .module = THIS_MODULE,
> .name = DRV_NAME,
> @@ -428,7 +438,7 @@ static struct ata_port_operations ali_c2
> .port_disable = ata_port_disable,
> .set_piomode = ali_set_piomode,
> .set_dmamode = ali_set_dmamode,
> - - .mode_filter = ata_pci_default_filter,
> + .mode_filter = ali_mode_filter,
> .tf_load = ata_tf_load,
> .tf_read = ata_tf_read,
> .check_status = ata_check_status,
>
> allowing even MWDMA results in the same timeouts and CD-ROM not found.
---
~Randy
next prev parent reply other threads:[~2006-12-01 20:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200606220004.30863.arvidjaar@mail.ru>
2006-12-01 20:35 ` Andrey Borzenkov
2006-12-01 20:48 ` Randy Dunlap [this message]
2006-12-01 21:06 ` Andrey Borzenkov
2006-12-01 21:57 ` Alan
2006-12-02 21:27 ` Andrey Borzenkov
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=20061201124837.6d0d8adb.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=arvidjaar@mail.ru \
--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
Powered by JetHome