public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: Ross Biro <ross.biro@gmail.com>
Cc: Ross Biro <rossb@google.com>, linux-kernel@vger.kernel.org
Subject: Re: [RFC/Patch 2.6.11] Take control of PCI Master Abort Mode
Date: 13 Apr 2005 20:37:25 +0200
Date: Wed, 13 Apr 2005 20:37:25 +0200	[thread overview]
Message-ID: <20050413183725.GG50241@muc.de> (raw)
In-Reply-To: <8783be66050412075218b2b0b0@mail.gmail.com>

On Tue, Apr 12, 2005 at 10:52:55AM -0400, Ross Biro wrote:
> On Apr 10, 2005 9:29 AM, Andi Kleen <ak@muc.de> wrote:
> > 
> > 
> > The right way to do this would be to have sysfs knobs that allow
> > to change these bits, and then let a user space tool change
> > it depending on PCI-ID. If the issue is critical enough
> > that it happens very often then it should be added to kernel
> > pci quirks - but again be unconditional.
> 
> 
> Using user space knobs has advantages, but nothing can depend on just the 
> hardware configuration. The application the machine is being used for also 
> matters. Image you have one of the bad NICs and an IDE controller behind the 
> same bridge. Then you have to chose between silent data corruption and the 
> NIC locking up for up to a few minutes once in a while. The correct choice 
> depends on the application. 
> 
> For the way we use machines, we are better off with a compile time option 
> and no boot line override. That's clearly wrong for general use.

That is definitely wrong for general use. In fact the Linux kernel
has been moving away from the old "put weird workarounds into CONFIG"
for quite some time now. One big reason is that actually most 
users use binary kernels these days, but even for us who recompile
kernels regularly it is inconvenient to recompile kernels just for
such things.

If you want it compiled in for your use case I would recommend
that you add a local patch or add a patch for a compiled in kernel
command line in config (some non i386 archs have this already)

> 
> You're argument that no one can make sense of such options is totally off 
> base. Once you are having a problem, it's pretty easy to see if it's related 

I dont think it is in any way help to put suche highly obscure
things into Config. Near nobody can make any sense of it.

If you take a look at quirks.c and DMI options you will see we have quite a lot 
of workarounds for various hardware bug. Just imagine there were 
CONFIG options for all of this. It would be a big mess!

> to a wrong master abort mode setting. If you see data that is all 0xff's 
> somewhere it shouldn't be, for example on a hard drive sector (it usually 
> occurs in the file system meta data and not in the data itself) you need to 
> force master abort mode on. If you have a mis-behaving PCI device and 
> everytime it misbehaves, the saw target abort bit is set, then you need to 
> force master abort mode off. First line tech support people should be able 
> to tell users to use these settings.

Yeah, but that is impossible if it is a CONFIG - they would need
to expnain the users first how to recompile a kernel, which would
be totally wasted time because it can be set fine without any recompilation
if done properly.

> 
> I actually don't see any reason you would ever want master abort mode off, 
> other than you have buggy hardware. Unfortunately when you are working with 
> PC's you have to assume you always have buggy hardware. I don't have much 
> experience with other platforms, so I'll assume they are better (those of 
> you with experience, please do not disillusion me.)

Probably yes. 

What you could do is to put a experimental patch that forces this always
into -mm* for a few weeks and see if there are any bad reports.

-Andi

  parent reply	other threads:[~2005-04-13 18:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-05 19:33 [RFC/Patch 2.6.11] Take control of PCI Master Abort Mode Ross Biro
2005-04-05 20:53 ` Randy.Dunlap
2005-04-06 12:47   ` Ross Biro
2005-04-06 20:44 ` Daniel Egger
2005-04-10 13:29 ` Andi Kleen
     [not found]   ` <8783be66050412075218b2b0b0@mail.gmail.com>
2005-04-13 18:37     ` Andi Kleen [this message]
2005-04-13 23:00       ` Ross Biro
2005-04-13 23:28         ` Dave Jones
2005-04-14 17:25           ` Ross Biro
2005-04-14 17:34             ` Tim Hockin
2005-04-14 18:02               ` Andi Kleen
2005-04-14 18:33                 ` Dave Jones
2005-04-14 19:14             ` Daniel Egger

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=20050413183725.GG50241@muc.de \
    --to=ak@muc.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ross.biro@gmail.com \
    --cc=rossb@google.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