lkml.org 
[lkml]   [2003]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] block layer support for DMA IOMMU bypass mode II
On Tue, 8 Jul 2003 15:47:44 -0400
Jeff Garzik <jgarzik@pobox.com> wrote:

> Personally, I've always thought we were kidding ourselves by not doing
> the error checking you describe. From my somewhat-narrow perspective of
> network drivers and the libata storage driver, you have to deal with
> atomic allocations _anyway_ ... so why not make sure IOMMU overflow
> properly fails at the pci_map_foo level?

pci_map_single currently has no defined error return, but if you could
persuade all your drivers colleagues to fix their drivers to check
this I'm sure things would be better.

(on AMD64 the check could be trivially implemented as a macro because errors
always return a well defined address)

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.105 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site