Re: [PATCH] dc395x: Fix support for highmem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2005-04-23 at 12:06 +0200, Guennadi Liakhovetski wrote:
> Hm, it is sometimes a good idea to at least compile-test ones patches... 
> So, the one below at least compiles.
> 
> One more thing I wanted to ask - what can one assume about request 
> buffers? If it is a sg, I guess, each segment is within one page frame, 
> right? And if sg is not used, is request_buffer also guaranteed to be 
> within one page or not?

No to the first one if you've enabled clustering or have an IOMMU and no
to the second one.

As long as the sg list hasn't gone through dma_map_sg, then you can rely
on its elements being contiguous in physical space.  Once it's gone
through dma_map_sg, it's elements are contiguous in the bus space beyond
the IOMMU, so no longer (possibly) even physically contiguous.

The request_buffer for no sg cases is guaranteed to be both physically
and virtually contiguous.

James


-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux