From: david.vrabel@citrix.com (David Vrabel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 RFC 7/8] swiotlb-xen: support autotranslate guests
Date: Thu, 1 Aug 2013 13:19:46 +0100 [thread overview]
Message-ID: <51FA5262.6090604@citrix.com> (raw)
In-Reply-To: <1375300452-12545-7-git-send-email-stefano.stabellini@eu.citrix.com>
On 31/07/13 20:54, Stefano Stabellini wrote:
> Support autotranslate guests in swiotlb-xen by keeping track of the
> phys-to-bus and bus-to-phys mappings of the swiotlb buffer
> (xen_io_tlb_start-xen_io_tlb_end).
>
> Use a simple direct access on a pre-allocated array for phys-to-bus
> queries. Use a red-black tree for bus-to-phys queries.
It would be nice if the dma_map_page() etc. returned a unique handle in
addition to the dma_addr_t so the lookup on unmap could be cheaper, but
in the absence of this.
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
David
WARNING: multiple messages have this Message-ID (diff)
From: David Vrabel <david.vrabel@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: <xen-devel@lists.xensource.com>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>, <konrad.wilk@oracle.com>,
<Ian.Campbell@citrix.com>
Subject: Re: [PATCH v2 RFC 7/8] swiotlb-xen: support autotranslate guests
Date: Thu, 1 Aug 2013 13:19:46 +0100 [thread overview]
Message-ID: <51FA5262.6090604@citrix.com> (raw)
In-Reply-To: <1375300452-12545-7-git-send-email-stefano.stabellini@eu.citrix.com>
On 31/07/13 20:54, Stefano Stabellini wrote:
> Support autotranslate guests in swiotlb-xen by keeping track of the
> phys-to-bus and bus-to-phys mappings of the swiotlb buffer
> (xen_io_tlb_start-xen_io_tlb_end).
>
> Use a simple direct access on a pre-allocated array for phys-to-bus
> queries. Use a red-black tree for bus-to-phys queries.
It would be nice if the dma_map_page() etc. returned a unique handle in
addition to the dma_addr_t so the lookup on unmap could be cheaper, but
in the absence of this.
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
David
WARNING: multiple messages have this Message-ID (diff)
From: David Vrabel <david.vrabel@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, konrad.wilk@oracle.com,
Ian.Campbell@citrix.com
Subject: Re: [PATCH v2 RFC 7/8] swiotlb-xen: support autotranslate guests
Date: Thu, 1 Aug 2013 13:19:46 +0100 [thread overview]
Message-ID: <51FA5262.6090604@citrix.com> (raw)
In-Reply-To: <1375300452-12545-7-git-send-email-stefano.stabellini@eu.citrix.com>
On 31/07/13 20:54, Stefano Stabellini wrote:
> Support autotranslate guests in swiotlb-xen by keeping track of the
> phys-to-bus and bus-to-phys mappings of the swiotlb buffer
> (xen_io_tlb_start-xen_io_tlb_end).
>
> Use a simple direct access on a pre-allocated array for phys-to-bus
> queries. Use a red-black tree for bus-to-phys queries.
It would be nice if the dma_map_page() etc. returned a unique handle in
addition to the dma_addr_t so the lookup on unmap could be cheaper, but
in the absence of this.
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
David
next prev parent reply other threads:[~2013-08-01 12:19 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-31 19:52 [PATCH v2 RFC 0/8] enable swiotlb-xen on arm and arm64 Stefano Stabellini
2013-07-31 19:52 ` Stefano Stabellini
2013-07-31 19:52 ` Stefano Stabellini
2013-07-31 19:54 ` [PATCH v2 RFC 1/8] arm: make SWIOTLB available Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` [PATCH v2 RFC 2/8] arm: introduce a global dma_ops pointer Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 20:01 ` Russell King - ARM Linux
2013-07-31 20:01 ` Russell King - ARM Linux
2013-08-02 11:42 ` Stefano Stabellini
2013-08-02 11:42 ` Stefano Stabellini
2013-08-02 11:42 ` Stefano Stabellini
2013-07-31 19:54 ` [PATCH v2 RFC 3/8] arm64: do not initialize arm64_swiotlb if dma_ops is already set Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` [PATCH v2 RFC 4/8] xen/arm,arm64: move Xen initialization earlier Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` [PATCH v2 RFC 5/8] xen: introduce XENMEM_get_dma_buf and xen_put_dma_buf Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` [PATCH v2 RFC 6/8] xen: make xen_create_contiguous_region return the dma address Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` [PATCH v2 RFC 7/8] swiotlb-xen: support autotranslate guests Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-08-01 12:19 ` David Vrabel [this message]
2013-08-01 12:19 ` David Vrabel
2013-08-01 12:19 ` David Vrabel
2013-07-31 19:54 ` [PATCH v2 RFC 8/8] xen/arm,arm64: enable SWIOTLB_XEN Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
2013-07-31 19:54 ` Stefano Stabellini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51FA5262.6090604@citrix.com \
--to=david.vrabel@citrix.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.