atom feed122 messages in com.xensource.lists.xen-develRe: [Xen-devel] pvops: AHCI problems ...
FromSent OnAttachments
Jeremy FitzhardingeSep 18, 2009 6:19 pm 
Marc - A. DahlhausSep 19, 2009 3:35 am 
Patrick ScharrenbergSep 19, 2009 7:45 am.png
Boris DerzhavetsSep 19, 2009 9:07 am.gz
Marc - A. DahlhausSep 20, 2009 12:29 pm.gz, .gz
Patrick ScharrenbergSep 20, 2009 10:57 pm 
Pasi KärkkäinenSep 20, 2009 11:22 pm 
Marc - A. Dahlhaus [ Administration | Westermann GmbH ]Sep 21, 2009 1:48 am 
Pasi KärkkäinenSep 21, 2009 2:02 am 
Marc - A. Dahlhaus [ Administration | Westermann GmbH ]Sep 21, 2009 2:17 am 
Konrad Rzeszutek WilkSep 21, 2009 7:38 am 
Konrad Rzeszutek WilkSep 21, 2009 7:43 am 
Konrad Rzeszutek WilkSep 21, 2009 8:06 am 
Pasi KärkkäinenSep 21, 2009 8:20 am 
Pasi KärkkäinenSep 21, 2009 12:24 pm 
Jeremy FitzhardingeSep 21, 2009 12:29 pm 
Pasi KärkkäinenSep 21, 2009 12:49 pm 
Jeremy FitzhardingeSep 21, 2009 1:20 pm 
Pasi KärkkäinenSep 21, 2009 1:26 pm 
Jeremy FitzhardingeSep 21, 2009 1:29 pm 
Pasi KärkkäinenSep 21, 2009 1:35 pm 
Patrick ScharrenbergSep 22, 2009 2:00 am 
Konrad Rzeszutek WilkSep 22, 2009 7:08 am 
Patrick ScharrenbergSep 23, 2009 12:37 am 
Konrad Rzeszutek WilkSep 23, 2009 5:06 am 
Konrad Rzeszutek WilkSep 23, 2009 5:09 am 
Christian TramnitzSep 23, 2009 6:15 am 
Jeremy FitzhardingeSep 23, 2009 12:22 pm 
Konrad Rzeszutek WilkSep 23, 2009 12:32 pm 
Jeremy FitzhardingeSep 23, 2009 1:09 pm 
Jeremy FitzhardingeSep 23, 2009 1:13 pm 
Jeremy FitzhardingeSep 23, 2009 1:30 pm 
Konrad Rzeszutek WilkSep 23, 2009 2:24 pm 
Jeremy FitzhardingeSep 23, 2009 2:55 pm 
Qing HeSep 23, 2009 8:10 pm 
Zhang, XiantaoSep 24, 2009 1:14 am.patch, .patch
Konrad Rzeszutek WilkSep 24, 2009 5:43 am 
Christian TramnitzSep 24, 2009 6:19 am 
Andy BurnsSep 24, 2009 10:46 am 
Jeremy FitzhardingeSep 24, 2009 11:22 am 
Thiago Camargo Martins CordeiroSep 24, 2009 11:29 am 
Patrick ScharrenbergSep 24, 2009 12:11 pm 
Thiago Camargo Martins CordeiroSep 24, 2009 12:31 pm 
Jeremy FitzhardingeSep 24, 2009 12:37 pm 
Jeremy FitzhardingeSep 24, 2009 12:55 pm 
Jeremy FitzhardingeSep 24, 2009 1:00 pm 
Konrad Rzeszutek WilkSep 24, 2009 2:35 pm 
Zhang, XiantaoSep 24, 2009 6:43 pm 
Pasi KärkkäinenOct 11, 2009 8:38 am 
Konrad Rzeszutek WilkOct 12, 2009 1:02 pm 
Pasi KärkkäinenOct 14, 2009 2:13 pm 
Konrad Rzeszutek WilkOct 15, 2009 1:03 pm 
Boris DerzhavetsOct 16, 2009 12:47 am.gz
Pasi KärkkäinenOct 16, 2009 2:01 am 
Konrad Rzeszutek WilkOct 20, 2009 9:57 am.patch
Pasi KärkkäinenOct 21, 2009 4:53 am 
Konrad Rzeszutek WilkOct 21, 2009 11:31 am 
Pasi KärkkäinenOct 21, 2009 11:51 am 
Jeremy FitzhardingeOct 21, 2009 12:49 pm 
Pasi KärkkäinenOct 21, 2009 1:21 pm 
Pasi KärkkäinenOct 27, 2009 8:46 am 
Konrad Rzeszutek WilkOct 27, 2009 9:59 am.makefile, .c
Pasi KärkkäinenOct 27, 2009 10:29 am 
Konrad Rzeszutek WilkOct 27, 2009 12:40 pm 
Pasi KärkkäinenOct 27, 2009 12:45 pm 
Konrad Rzeszutek WilkOct 27, 2009 1:12 pm 
Pasi KärkkäinenOct 27, 2009 1:17 pm 
Pasi KärkkäinenOct 27, 2009 1:23 pm 
Pasi KärkkäinenOct 27, 2009 1:35 pm 
Jeremy FitzhardingeNov 11, 2009 4:46 pm 
Jeremy FitzhardingeNov 11, 2009 4:59 pm 
Jeremy FitzhardingeNov 12, 2009 3:50 pm 
Zhang, XiantaoNov 12, 2009 9:26 pm 
Keir FraserNov 12, 2009 11:24 pm 
Jeremy FitzhardingeNov 13, 2009 3:56 pm 
Keir FraserNov 14, 2009 12:04 am 
Zhang, XiantaoNov 16, 2009 2:37 am.patch, .patch
Jeremy FitzhardingeNov 16, 2009 10:37 am 
Zhang, XiantaoNov 16, 2009 7:12 pm 
Keir FraserNov 16, 2009 7:44 pm 
Jeremy FitzhardingeNov 16, 2009 9:12 pm 
Jeremy FitzhardingeNov 16, 2009 9:19 pm 
Keir FraserNov 16, 2009 9:43 pm 
Zhang, XiantaoNov 17, 2009 4:45 am.patch
Keir FraserNov 17, 2009 5:04 am 
Zhang, XiantaoNov 17, 2009 6:16 am 
Jeremy FitzhardingeNov 17, 2009 10:50 am 
Keir FraserNov 17, 2009 11:49 am 
Jiang, YunhongNov 17, 2009 7:11 pm 
Zhang, XiantaoNov 17, 2009 7:24 pm 
32 later messages
Subject:Re: [Xen-devel] pvops: AHCI problems with SB600
From:Jeremy Fitzhardinge (jer@goop.org)
Date:Sep 24, 2009 11:22:36 am
List:com.xensource.lists.xen-devel

On 09/24/09 05:44, Konrad Rzeszutek Wilk wrote:

There was a lot of havoc - all of the PCI BARs were useless. Is the MFN (from the pfn_to_mfn on this address) suppose to have a specific value?

Not sure. pfn_to_mfn is never supposed to happen on ioremap phys addrs, because of _PAGE_IOMAP in the pte. Its probably worth checking that _PAGE_IOMAP is actually getting set.

For all of those setting, no_iommu=1 should do the trick. But in reality I need to double-check that:

diff --git a/arch/x86/xen/pci-swiotlb.c b/arch/x86/xen/pci-swiotlb.c index 00f2260..390f698 100644 --- a/arch/x86/xen/pci-swiotlb.c +++ b/arch/x86/xen/pci-swiotlb.c @@ -989,6 +989,8 @@ void __init xen_swiotlb_init(void) xen_swiotlb_init_with_default_size(64 * (1<<20)); /* default to 64MB */ dma_ops = &xen_swiotlb_dma_ops; iommu_detected = 1; + no_iommu = 1; /* Forces the other IOMMU (if they are detected) to + to quit, rather than initialize. */ #ifdef CONFIG_GART_IOMMU gart_iommu_aperture_disabled = 1; #endif

<sigh>I think I need to rethink this swiotlb-Xen part. This is starting to look like a hack.

It isn't great. We need a way to either layer or arbitrate between these different address translation mechanisms.

Another thought, could we actually use the gart iommu instead of swiotlb if it is available? I think it leads to exactly the same set of issues as extending normal swiotlb for Xen's use (ie, inserting pfn->mfn conversion into the correct places, and perhaps allocating the memory properly). Worth thinking about; it may shine light on better ways to fix up swiotlb.

Yes! That was my next step - see if it is possible to use it and if so extend it for that purpose (and without any ghastly #ifdef).

Good.

J