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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 14 Aug 2019 10:38:43 +0200
From:   Joerg Roedel <>
To:     Lu Baolu <>
Cc:     David Woodhouse <>,
        Bjorn Helgaas <>,
        Christoph Hellwig <>,,,,,, Ingo Molnar <>,
        Greg Kroah-Hartman <>,,
        Konrad Rzeszutek Wilk <>,
        Marek Szyprowski <>,
        Robin Murphy <>,
        Jonathan Corbet <>,
        Boris Ostrovsky <>,
        Juergen Gross <>,
        Stefano Stabellini <>,
        Steven Rostedt <>,,,
        Jacob Pan <>,
        Alan Cox <>,
        Mika Westerberg <>
Subject: Re: [PATCH v6 5/8] iommu: Add bounce page APIs

Hi Lu Baolu,

On Tue, Jul 30, 2019 at 12:52:26PM +0800, Lu Baolu wrote:
> * iommu_bounce_map(dev, addr, paddr, size, dir, attrs)
>   - Map a buffer start at DMA address @addr in bounce page
>     manner. For buffer parts that doesn't cross a whole
>     minimal IOMMU page, the bounce page policy is applied.
>     A bounce page mapped by swiotlb will be used as the DMA
>     target in the IOMMU page table. Otherwise, the physical
>     address @paddr is mapped instead.
> * iommu_bounce_unmap(dev, addr, size, dir, attrs)
>   - Unmap the buffer mapped with iommu_bounce_map(). The bounce
>     page will be torn down after the bounced data get synced.
> * iommu_bounce_sync(dev, addr, size, dir, target)
>   - Synce the bounced data in case the bounce mapped buffer is
>     reused.

I don't really get why this API extension is needed for your use-case.
Can't this just be done using iommu_map/unmap operations? Can you please
elaborate a bit why these functions are needed?



Powered by blists - more mailing lists