linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jordan Crouse" <jordan.crouse@amd.com>
To: "Martin K. Petersen" <mkp@mkp.net>
Cc: linux-ide@vger.kernel.org, info-linux@geode.amd.com
Subject: Re: pata_cs5536: ATA driver for Geode companion chip
Date: Wed, 3 Oct 2007 14:31:18 -0600	[thread overview]
Message-ID: <20071003203118.GA2916@cosmic.amd.com> (raw)
In-Reply-To: <yq14ph8xg3z.fsf@sermon.lab.mkp.net>

On 03/10/07 13:28 -0400, Martin K. Petersen wrote:
> 
> This is a driver specifically for the ATA controller on the Geode
> CS5536 companion chip.  The PCI device ID for this device was
> previously claimed by pata_amd.c but there were two problems with
> that:
 
Hmm - I had to ruminate on this for a while.   As a general rule of thumb
I try to discourage working around the PCI virtualization - both because
it encumbers Linux with one off drivers such as this one, and we lose
any benefit from bug fixes in the firmware (not to mention bug fixes in
the common shared driver).  AMD has gone to a lot of trouble and expense
to make a decidedly non-PCI bus Just Work (TM) like a PCI bus, and it
takes a lot to convince me to diverge from that.

>  - Not all Geode platforms emulate the ATA registers in PCI config
>    space

If you system has any sort of PCI virtualization support at all,
and it doesn't support these registers, then thats a big fat
bug, IMHO, and should be resolved post haste.  But that said, 
the VSA doesn't do any sort of messy workaround here, so the direct
route isn't going to lose us anything in terms of bug fixes.

>  - CS5536 PIO timings are not identical to AMD74XX/8111

This is true, and it was brought up when we first pushed the drivers.
Tests showed that the timings generated by the Thor driver were within
the optimal tolerances for the 5536 controller, and we decided that a
custom driver wasn't indicated.  But if we *are* going to have a custom
driver, then we should get these right.

> pata_cs5536.c relies on Geode Machine Specific Registers to configure
> the ATA function and uses the correct PIO timings for the chip.

I have to discourage this patch just on principle, because I don't like
the idea of working around the VSA.  That said, it seems that Alan is 
willing to take on the extra code, and there isn't anything technically
deficient here, so I'm fine with this going in.

Jordan



  parent reply	other threads:[~2007-10-03 20:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03 17:28 [PATCH 1/1] pata_cs5536: ATA driver for Geode companion chip Martin K. Petersen
2007-10-03 18:22 ` Alan Cox
2007-10-03 18:20   ` Jeff Garzik
2007-10-03 18:45   ` Martin K. Petersen
2007-10-03 18:51     ` Alan Cox
2007-10-03 20:31 ` Jordan Crouse [this message]
2007-10-03 20:59   ` Alan Cox
2007-10-03 21:18     ` Jordan Crouse
2007-10-03 22:32       ` Martin K. Petersen
2007-10-03 22:56         ` Jeff Garzik
2007-10-10  1:25 ` [PATCH 1/1] " Jeff Garzik
2007-10-10  4:33   ` Martin K. Petersen
2007-10-10 15:20     ` Jordan Crouse
2007-10-10 17:39       ` Andrew Paprocki
2007-10-11  7:22         ` Andrew Paprocki
  -- strict thread matches above, loose matches on Subject: below --
2007-10-03 23:30 Jordan Crouse
2007-10-04  3:29 ` Martin K. Petersen
2007-10-04 12:04   ` Alan Cox
2007-10-04 15:58   ` Alan Cox
2007-10-04 16:08     ` Jordan Crouse
2007-10-04 16:22       ` Alan Cox
2007-10-04 17:00         ` Martin K. Petersen
2007-10-05  6:05       ` Martin K. Petersen

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=20071003203118.GA2916@cosmic.amd.com \
    --to=jordan.crouse@amd.com \
    --cc=info-linux@geode.amd.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=mkp@mkp.net \
    /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).