lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1327896090.1527.0.camel@vkoul-udesk3>
Date:	Mon, 30 Jan 2012 09:31:30 +0530
From:	Vinod Koul <vinod.koul@...el.com>
To:	Lars-Peter Clausen <lars@...afoo.de>
Cc:	Russell King <linux@....linux.org.uk>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: How is dmaengine_prep_slave_single supposed to be used?

On Fri, 2012-01-27 at 15:32 +0100, Lars-Peter Clausen wrote:
> Hi,
> 
> I've tried using dmaengine_prep_slave_single in one of my drivers an run
> into an issue, the dma_address attribute of the sg element is not
> initialized and thus the dma transfer and the DMA transfer fails.
> 
> Quoting from Documentation/dmaengine.txt:
> 
>    The peripheral driver is expected to have mapped the scatterlist for
>    the DMA operation prior to calling device_prep_slave_sg, and must
>    keep the scatterlist mapped until the DMA operation has completed.
> 
> So this is clearly not the case with dmaengine_prep_slave_single, so I'm
> wondering how is ut supposed to be used and can it work properly at all?
> 
Yes this is broken now, I will fix this up

-- 
~Vinod

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ