mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mel Gorman <mel@csn.ul.ie>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: petkovbb@gmail.com, sshtylyov@ru.mvista.com,
	linux-kernel@vger.kernel.org
Subject: Re: Is the change to IDE probing really necessary?
Date: Mon, 24 Nov 2008 23:09:48 +0000	[thread overview]
Message-ID: <20081124230948.GB8293@csn.ul.ie> (raw)
In-Reply-To: <20081124185453.57ca7dcc@lxorguk.ukuu.org.uk>

On Mon, Nov 24, 2008 at 06:54:53PM +0000, Alan Cox wrote:
> O> On a machine requiring probing of the legacy ports, the suggested
> > probe_mask of 0x3f results in other devices being registered as IDE
> > devices. Suggest to the user they use 0x3 which is the old value of
> > probe_mask prior to commit 20df429dd6671804999493baf2952f82582869fa.
> 
> NAK
> 
> This makes no sense.
> 

Ok.

> 0x3F means probe them all.
> 
> 0x03 means only peer at primary/secondary.
> 

Then can the message outputted printed out say something along those
lines? On this particular machine, probing 0x3F resulted in a misconfigured
machine. It's not obvious to me at all that 0x3F means probe everything,
possibly with adverse results and 0x03 means peer at primary/secondary.

> If you don't want them probed, don't pass arguments asking for them to be
> probed!
> 
> "how is a distro install using modules meant to be fixed up?"
> 
> If the distribution supports non PCI bus boxes then pass a mask of 0x3F
> on non PCI boxes.

Which in this case would have resulted in a machine with a disk but no
networking. CONFIG_ISA is not even set on this machine and it looks like a
PCI bus box.

> If the distribution is for PCI systems then leave the
> mask alone.
> 

Which in this case resulted in no disk because the mask defaults to 0
now instead of 0x3 or anything else.

What you suggest for the numbers in each case is right, but it's not
obvious. The machine might be so old that no will encounter this problem
in practice.

> If you want it to just work automatically use pata_legacy instead as that
> automatically flips between probing ISA tertiary devices and leaving
> things well alone according to the presence of PCI bus.
> 

It doesn't find the disk.

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab

  reply	other threads:[~2008-11-24 23:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24 15:56 Mel Gorman
2008-11-24 18:43 ` Mel Gorman
2008-11-24 18:54   ` Alan Cox
2008-11-24 23:09     ` Mel Gorman [this message]
2008-11-25  0:03       ` Alan Cox
2008-11-25  0:16         ` Mel Gorman
2008-11-25  0:30           ` Alan Cox
2008-11-25  0:36             ` Mel Gorman
2008-11-24 22:51 ` Borislav Petkov
2008-11-25  0:01   ` Mel Gorman
2008-11-25  7:21     ` Borislav Petkov
2008-11-25 10:45       ` Mel Gorman
     [not found] <bBM1f-6TS-19@gated-at.bofh.it>
     [not found] ` <bBOFD-1WX-21@gated-at.bofh.it>
     [not found]   ` <bBOYV-2w9-7@gated-at.bofh.it>
     [not found]     ` <bBSST-7ut-11@gated-at.bofh.it>
     [not found]       ` <bBTFg-8vL-15@gated-at.bofh.it>
     [not found]         ` <bBTOS-dn-3@gated-at.bofh.it>
     [not found]           ` <bBU8c-w0-1@gated-at.bofh.it>
2008-11-26 21:48             ` Bodo Eggert

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=20081124230948.GB8293@csn.ul.ie \
    --to=mel@csn.ul.ie \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petkovbb@gmail.com \
    --cc=sshtylyov@ru.mvista.com \
    /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

all inboxes | Powered by JetHome®