linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: akpm@osdl.org, linux-ide@vger.kernel.org, Alan Cox <alan@redhat.com>
Subject: Re: [PATCH 07/24] libata: Fix the host_set hacks and sort out simplex mode
Date: Fri, 07 Jul 2006 17:50:16 +0100	[thread overview]
Message-ID: <1152291016.20883.32.camel@localhost.localdomain> (raw)
In-Reply-To: <44AE88B9.2080800@pobox.com>

Ar Gwe, 2006-07-07 am 12:15 -0400, ysgrifennodd Jeff Garzik:
> If nothing happens in a few days, please yell at me, and I'll apply this 
> patch and work on top of it.  As it stands, it does some things I don't 
> want (irq2) and wish to avoid.

If nothing happens in the next few days it'll be OLS so I'll beat you
[verbally] senseless in person ;)

I agree with your "push IRQ out of libata" direction so I'm more than
happy to see it go that way

> Such code is appropriate ONLY in libata-bmdma.c (PCI IDE-specific code).

I wish you'd rename that file, its got very little to do with BMDMA and
very much to do with ST506/SFF.

> > +#define ATA_SECONDARY_CMD	0x170
> > +#define ATA_SECONDARY_CTL	0x376
> > +#define ATA_SECONDARY_IRQ	15
> > +
> > +#endif
> 
> This is either silly, or obviously-preliminary code.
> 
> We don't want to duplicate this information, but instead do as your 
> __ASM_GENERIC_LIBATA_PORTMAP_H symbol implies:  put a single copy into 
> include/asm-generic.

Its the first cut. I need to rework it a little because it turns out
that for some platforms you can only answer the question "what port is
legacy IDE on" if you know the PCI root bridge. In fact some boxes may
have multiple legacy mode IDE devices each on "0x1F0" as far as the PCI
bus is concerned and elsewhere as far as the bridge to cpu mapping is
concerned. I'm still pondering that particular vomitous mess and I'd
prefer to shoot all the special cases here and do what I'm testing in
the patches which is to spot legacy mode IDE and "fix" the bars up when
reading the otherwise invalid PCI registers in that mode.

Alan


  reply	other threads:[~2006-07-07 16:33 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-04 18:14 PATA updates (rebased) alan
2006-07-04 18:14 ` [PATCH 01/24] ata_piix TIME0/TIME1 setup alan
2006-07-04 18:14   ` [PATCH 02/24] pata_ali - further debug work alan
2006-07-04 18:15     ` [PATCH 03/24] pata_amd - new chips alan
2006-07-04 18:17       ` [PATCH 04/24] pata_pcmcia: Make drivers/scsi/pata_pcmcia.c:pcmcia_remove_one() static alan
2006-07-04 18:14         ` [PATCH 05/24] pata_ali: Revisions below 0x20 need CD config poking too alan
2006-07-04 18:14           ` [PATCH 06/24] Sort out MC65 compile for now alan
2006-07-04 18:15             ` [PATCH 07/24] libata: Fix the host_set hacks and sort out simplex mode alan
2006-07-04 18:15               ` [PATCH 08/24] pata_it821x: Fix pass through alan
2006-07-04 18:14                 ` [PATCH 09/24] pci_ids: Add JMicron identifiers as we need them in various drivers and quirks alan
2006-07-04 18:14                   ` [PATCH 10/24] ahci: Ensure that we don't grab both functions alan
2006-07-04 18:14                     ` [PATCH 11/24] jmicron: Add quirks to force the device into a sane mode alan
2006-07-04 18:14                       ` [PATCH 12/24] jmicron: Configuration alan
2006-07-04 18:14                         ` [PATCH 13/24] My name is Ingo Molnar, you killed my make allyesconfig, prepare to die alan
2006-07-04 18:15                           ` [PATCH 14/24] it821x: Fix the ATAPI autodma setup alan
2006-07-04 18:14                             ` [PATCH 15/24] ata_generic - generic BIOS setup SFF ATA driver alan
2006-07-04 18:15                               ` [PATCH 16/24] jmicron: IDE old type driver alan
2006-07-04 18:15                                 ` [PATCH 17/24] pata_qdi: Fix return code alan
2006-07-04 18:15                                   ` [PATCH 18/24] ide jmicron: Finish writing alan
2006-07-04 18:15                                     ` [PATCH 19/24] jmicron: It works better if you get the file name right alan
2006-07-04 18:15                                       ` [PATCH 20/24] jmicron: Further clean up alan
2006-07-04 18:15                                         ` [PATCH 21/24] ata_jmicro: Fix an escapee alan
2006-07-04 18:14                                           ` [PATCH 22/24] jmicron: Jmicron multifunction setup alan
2006-07-04 18:15                                             ` [PATCH 23/24] libata: Enable per device speed setting alan
2006-07-04 18:15                                               ` [PATCH 24/24] jmicron: Missed one alan
2006-07-07 16:36                                                 ` Jeff Garzik
2006-07-07 16:39                                               ` [PATCH 23/24] libata: Enable per device speed setting Jeff Garzik
2006-07-07 17:06                                                 ` Alan Cox
2006-07-07 16:34                                             ` [PATCH 22/24] jmicron: Jmicron multifunction setup Jeff Garzik
     [not found]                                               ` <20060707124359.670e84c6.akpm@osdl.o! rg>
2006-07-07 19:43                                               ` Andrew Morton
2006-07-07 19:48                                                 ` Jeff Garzik
2006-07-07 20:01                                                   ` Andrew Morton
2006-07-07 20:05                                                     ` Jeff Garzik
2006-07-07 19:45                                               ` Andrew Morton
2006-07-07 19:50                                                 ` Jeff Garzik
2006-07-07 16:35                                             ` Jeff Garzik
2006-07-07 16:31                                   ` [PATCH 17/24] pata_qdi: Fix return code Jeff Garzik
2006-07-07 16:31                               ` [PATCH 15/24] ata_generic - generic BIOS setup SFF ATA driver Jeff Garzik
2006-07-07 17:20                                 ` Alan Cox
2006-07-07 17:22                                   ` Jeff Garzik
2006-07-07 16:26                             ` [PATCH 14/24] it821x: Fix the ATAPI autodma setup Jeff Garzik
2006-07-07 16:25                           ` [PATCH 13/24] My name is Ingo Molnar, you killed my make allyesconfig, prepare to die Jeff Garzik
2006-07-07 16:23                       ` [PATCH 11/24] jmicron: Add quirks to force the device into a sane mode Jeff Garzik
2006-07-07 16:51                         ` Alan Cox
2006-07-07 16:15               ` [PATCH 07/24] libata: Fix the host_set hacks and sort out simplex mode Jeff Garzik
2006-07-07 16:50                 ` Alan Cox [this message]
2006-07-05 12:44 ` PATA updates (rebased) Erik Mouw
2006-07-05 16:15   ` Alan Cox
2006-07-07 16:07 ` Jeff Garzik

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=1152291016.20883.32.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=akpm@osdl.org \
    --cc=alan@redhat.com \
    --cc=jgarzik@pobox.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 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).