|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH 0 of 9] swiotlb: use phys_addr_t for pages
To: |
FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> |
Subject: |
[Xen-devel] Re: [PATCH 0 of 9] swiotlb: use phys_addr_t for pages |
From: |
Ingo Molnar <mingo@xxxxxxx> |
Date: |
Sun, 28 Dec 2008 10:37:51 +0100 |
Cc: |
jeremy@xxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, ian.campbell@xxxxxxxxxx, beckyb@xxxxxxxxxxxxxxxxxxx, Joerg Roedel <joerg.roedel@xxxxxxx>, x86@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, tony.luck@xxxxxxxxx |
Delivery-date: |
Sun, 28 Dec 2008 01:39:08 -0800 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<20081228142900W.fujita.tomonori@xxxxxxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20081228014432L.fujita.tomonori@xxxxxxxxxxxxx> <20081227165622.GA19796@xxxxxxx> <20081228020312K.fujita.tomonori@xxxxxxxxxxxxx> <20081228142900W.fujita.tomonori@xxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
* FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> wrote:
> If we really want to clean up the dma mapping operations, we should
> define struct dma_mapping_ops in a generic place (such as
> include/linux/dma-mapping.h) instead each architecture define the own
> struct dma_mapping_ops. These dma_mapping_ops structures are very
> similar but a bit different. That's the root cause of the dma mapping
> operation ugliness.
>
> If we do, X86 and IA64 can share swiotlb and intel VTD code cleanly,
> X86, IA64, and POWERPC can share swiotlb cleanly too. For example, we
> can define swiotlb_dma_ops in lib/swiotlb.c and then everyone can share
> it. Currently, X86 and IA64 define the own swiotlb_dma_ops (and X86
> needs swiotlb_map_single_phys hack). It doesn't make sense.
Sure.
Note that we went through this process (of unifying dma_mapping_ops)
recently on x86 recently - 32-bit and 64-bit x86 had such differences.
Note that the main complication wasnt even the small variations in
signatures, but the different _semantics_: one dma_mapping_ops
implementation passed in kernel-virtual addresses, the other physical
addresses. Unifying that was invasive and non-trivial, and it can break
stuff not at the build level but at the runtime level. We can expect
similar complications when done over 20 architectures as well.
But yes, it's all desired. Obviously extending swiotlb to highmem and
using it on xen and powerpc is an essential first step in the direction of
generalizing all this code.
Ingo
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 7 of 9] swiotlb: Add support for systems with highmem, (continued)
Message not available
|
|
|
|
|