[discuss] Re: [PATCH 2/4] x86-64: Calgary IOMMU - move valid_dma_direction into the callers
ak at suse.de
Fri May 26 11:35:36 CEST 2006
> > On the other hand if the problem of passing wrong parameters here
> > isn't common I would be ok with dropping them.
> As the author noted, it was only used in early platform bring-up. And
> simply reviewing the patch... it is clear that screwing up the
> parameters would cause massive, noticeable problems immediately -- such
> as on EM64T with swiotlb.
Well the point is that even if you don't run on swiotlb
(which most people even on EM64T don't use because they don't have more than
3GB of RAM) you won't screw them up.
On the other hand correct IOMMU operation needs much more than passing
these parameters so only checking for this might not be very useful.
BTW we've had these checks forever - Jon just moved them to a different place.
But they indeed might have outlived their usefulness.
More information about the discuss