public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: Anton Blanchard <anton@samba.org>
Cc: Andi Kleen <ak@suse.de>, davem@redhat.com, linux-arch@vger.kernel.org
Subject: Re: pci_map_single return value
Date: 19 Mar 2004 11:57:10 -0500	[thread overview]
Message-ID: <1079715431.1732.18.camel@mulgrave> (raw)
In-Reply-To: <20040319001448.GP28212@krispykreme>

On Thu, 2004-03-18 at 19:14, Anton Blanchard wrote:
> Better late than never. Andrew does this look OK to you?

Actually, there is a fundamental problem with this.  Today drivers
assume the system will panic if it runs out of mapping resources, so
very few of them actually check return values.

Unless someone is stepping up to fix *all* the drivers in the kernel,
then we need to cope with this for a while yet.

The way I'd thought of doing this was allowing drivers to advertise
compliance with the error handling API (probably via a flag in struct
device).  Those that say they handle errors, we return the error code. 
Unmodified drivers wouldn't have the flag, and thus we could still panic
for them before the system gets corrupted...

James

  parent reply	other threads:[~2004-03-19 16:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20031212155752.GD17683@krispykreme>
     [not found] ` <20031212175104.07dc8444.ak@suse.de>
     [not found]   ` <20031212192131.GF17683@krispykreme>
     [not found]     ` <20031213220444.4c526afa.davem@redhat.com>
     [not found]       ` <20040102120121.GT28023@krispykreme>
     [not found]         ` <20040102133454.22daa451.ak@suse.de>
2004-03-19  0:14           ` pci_map_single return value Anton Blanchard
2004-03-19  0:41             ` David S. Miller
2004-03-19  0:55             ` Andrew Morton
2004-03-19  1:37               ` Anton Blanchard
2004-03-19 14:16                 ` James Bottomley
2004-03-19 16:57             ` James Bottomley [this message]
2004-03-19 18:55               ` David S. Miller
2004-03-19 21:01                 ` James Bottomley
2004-03-19 21:05                   ` Andi Kleen
2004-03-20  0:13                     ` James Bottomley

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=1079715431.1732.18.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=ak@suse.de \
    --cc=anton@samba.org \
    --cc=davem@redhat.com \
    --cc=linux-arch@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