public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: Reserving an ATA interface
Date: 03 May 2003 20:39:39 +0200	[thread overview]
Message-ID: <1051987179.7818.69.camel@gaston> (raw)
In-Reply-To: <Pine.SOL.4.30.0305031912510.10296-100000@mion.elka.pw.edu.pl>

On Sat, 2003-05-03 at 19:21, Bartlomiej Zolnierkiewicz wrote:


> >
> > So my patch may actually fix some cases there too.
> 
> No, look at ide_match_hwif() in setup-pci.c .
> PCI grabs only ide_unknown interfaces.

No, you missed my point.

 1) setup-pci claims a free hwif slot
 2) the driver sets some custom IOPs (MMIO PCI interface for example)
    and/or does other tweaks to hwif
 3) no device is attached to this interface, the IDE probe code leaves
    hwif->present to 0, but the hwif fields (IOps etc... are still
    set by the PCI driver)
 4) later on, ide-cs gets in, and picks that slot since hwif->present
    is 0 and ide-cs doesn't care about chipset. However, those IOps
    fields (and possibly other, DMA stuff etc...) are still those of
    the PCI interface. If the PCI interface set it to MMIO for example,
    boom !

Note that I haven't actually tested the above scenario as I don't have
a box with such PCI IDE interfaces, but it seems the problem I have
with ide-pmac in this case is identical.

With my patch, since the PCI interface will not set the "hold" flag,
ide_register_hw() called by ide-cs will call init_hwif_data(), thus
putting back the hwif to a sane state  

> btw, I think the only real long-term solution for all ordering issues
>      is customizable device mapper... 2.7?

Or not relying on /dev/hdX entries for mounting ? (disk UUID etc..) ;)


  reply	other threads:[~2003-05-03 18:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-03  9:33 Reserving an ATA interface Benjamin Herrenschmidt
2003-05-03 16:42 ` Bartlomiej Zolnierkiewicz
2003-05-03 16:59   ` Benjamin Herrenschmidt
2003-05-03 17:08     ` Benjamin Herrenschmidt
2003-05-03 17:21       ` Bartlomiej Zolnierkiewicz
2003-05-03 18:39         ` Benjamin Herrenschmidt [this message]
2003-05-03 19:31           ` Bartlomiej Zolnierkiewicz
2003-05-03 19:40             ` Benjamin Herrenschmidt
2003-05-03 17:12     ` Bartlomiej Zolnierkiewicz
2003-05-04  1:28       ` Andre Hedrick
  -- strict thread matches above, loose matches on Subject: below --
2003-05-03 21:24 Chuck Ebbert

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=1051987179.7818.69.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=alan@lxorguk.ukuu.org.uk \
    --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