Re: [PATCH 2.4.x] prevent emulated SCSI hosts from wasting DMA memory



On Wed, Nov 30, 2005 at 11:02:23PM +0200, Dan Aloni wrote:
> On Wed, Nov 30, 2005 at 07:33:47PM +0000, Luke-Jr wrote:
> > On Wednesday 30 November 2005 17:15, Dan Aloni wrote:
> > > Emulated scsi hosts don't do DMA, so don't unnecessarily increase
> > > the SCSI DMA pool.
> >
> > They don't? Recently I learned(?) that apparently using hdparm -d on the
> > old /dev/hdX device still worked/applied when using ide-scsi... or do
> > "emulated scsi hosts" refer to something else?
>
> Actually by 'do DMA' I meant use the scsi_malloc() interface - which
> is mostly used by low level drivers. The IDE drivers allocate their
> DMA memory outside the SCSI layer. iSCSI hosts for instance, don't
> need to cause unnecessary DMA allocations.

(1) there's no guranteee a driver setting ->emulated can't use scsi_malloc
(2) 2.4.x is very late in the cycle so there's just no point in putting this
in (and in 2.6.x scsi_malloc is gone fortunately)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: reinstallation
    ... I know is isn't the SCSI or Serial and am pretty sure it ... isn;t DMA ... the Windows 2000 ... >and select S to specify additional drivers. ...
    (microsoft.public.win2000.setup)
  • Re: New ports wanted
    ... Joerg Schilling wrote: ... all my software compile as it uses a highly portable structure. ... SCSI commands from from user space. ... A halfway reasonable DMA implementation will prevent DMA overruns. ...
    (comp.os.minix)
  • Re: swiotlb default size (64 MB) too small?
    ... It doesn't happen with SCSI (copying can continue a bit ... dma mapping errors are transient so SCSI retries. ... copying operation. ... too much swiotlb resources the whole time; and then just waiting a bit ...
    (Linux-Kernel)
  • Re: [SLE] Video DVD will not play correctly
    ... > cannot get mplayer to play the DVD. ... I changed the DMA mode so it is now ... > be due to the use of an ide-scsi emulation. ... If you really have a SCSI ...
    (SuSE)
  • Re: [PATCH] SCSI midlayer power management
    ... SCSI DMA is a host controller feature, ... > suspend routine, it is called before the host controller's suspend ...
    (Linux-Kernel)