From: Mark Lord <liml@rtr.ca>
To: Andrew Hall <andrew.a.hall@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: CF flash PATA on libata failure to attach
Date: Thu, 28 Jun 2007 13:37:13 -0400 [thread overview]
Message-ID: <4683F1C9.2060505@rtr.ca> (raw)
In-Reply-To: <4682f7a3.15538c0a.2e12.ffff8676@mx.google.com>
Andrew Hall wrote:
> Hi Mark,
>
> The device is a Nexcom NSA1083 appliance:
>
> http://www.nexcom.com/product/productshow.jsp?iid=13&pid=878
>
> It's an OEM appliance that uses the Intel 965 chipset. We use it as one of
> three platforms for our access control and compliance products as it has 8
> built in Ethernet ports and a dual core processor - with built in compact
> flash. The older appliance that this new (1083) one is superseding also had
> built in CF although this one apparently had separate PATA and SATA
> controllers, whereas the 1083 has only one 4 channel ICH8 Intel SATA
> controller which interfaces to one CF connector and one IDE connector via a
> SATA to PATA bridge ( I don't know exactly what this bridge is or how it
> interfaces to the SATA bus - but I can probably find this out from the
> manufacturer). The CF is a standard 512MB Sandisk/Kingston chip that we boot
> from and write configuration data to.
..
I'm betting that the SATA/PATA converter is getting confused with
the ata_piix driver's attempt to use MDMA2 on it.
PIO appears to be working fine -- the BIOS uses it to boot,
and libata uses it to do the IDENTIFY operation.
So, try this hack, which should force ata_piix to use only PIO
for the ICH8 chipset. So long as you don't have any real SATA
drives, this might do the trick.
Cheers
--- linux/drivers/ata/ata_piix.c.orig 2007-06-27 11:20:51.000000000 -0400
+++ linux/drivers/ata/ata_piix.c 2007-06-28 13:32:27.000000000 -0400
@@ -526,8 +526,8 @@
.flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR |
PIIX_FLAG_AHCI,
.pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
- .udma_mask = 0x7f, /* udma0-6 */
+ .mwdma_mask = 0x00, /* mwdma0-2 */
+ .udma_mask = 0x00, /* udma0-6 */
.port_ops = &piix_sata_ops,
},
@@ -537,8 +537,8 @@
.flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR |
PIIX_FLAG_AHCI,
.pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
- .udma_mask = 0x7f, /* udma0-6 */
+ .mwdma_mask = 0x00, /* mwdma0-2 */
+ .udma_mask = 0x00, /* udma0-6 */
.port_ops = &piix_sata_ops,
},
next prev parent reply other threads:[~2007-06-28 17:36 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-18 10:02 CF flash IDE failure to attach with 2.6.20+ Andrew_hall
2007-06-18 11:26 ` Tejun Heo
2007-06-18 11:57 ` Alan Cox
2007-06-18 23:01 ` Andrew Hall
2007-06-19 5:00 ` Tejun Heo
2007-06-21 1:05 ` Andrew Hall
2007-06-21 3:02 ` Tejun Heo
2007-06-21 7:19 ` Andrew Hall
2007-06-21 14:45 ` Mark Lord
2007-06-21 15:09 ` Andrew Hall
2007-06-26 8:51 ` CF flash PATA on libata failure to attach Andrew Hall
2007-06-26 18:50 ` Mark Lord
2007-06-27 3:57 ` Andrew Hall
2007-06-27 14:08 ` Mark Lord
2007-06-27 23:49 ` Andrew Hall
2007-06-28 17:37 ` Mark Lord [this message]
2007-06-29 0:35 ` Andrew Hall
2007-06-29 1:10 ` Mark Lord
2007-06-29 1:36 ` Tejun Heo
2007-06-29 2:26 ` Mark Lord
2007-06-29 2:15 ` Andrew Hall
2007-06-29 2:28 ` Mark Lord
2007-06-29 3:24 ` Andrew Hall
2007-06-29 7:34 ` Andrew Hall
2007-06-29 10:17 ` Alan Cox
2007-07-02 10:58 ` Tejun Heo
2007-07-03 6:13 ` Albert Lee
2007-06-29 10:06 ` Alan Cox
2007-06-25 9:05 ` CF flash IDE failure to attach with 2.6.20+ Andrew Hall
2007-06-18 23:23 ` Andrew Hall
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=4683F1C9.2060505@rtr.ca \
--to=liml@rtr.ca \
--cc=andrew.a.hall@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.