WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH][VTD] pci mmcfg patch for x86-64 - version 2

To: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH][VTD] pci mmcfg patch for x86-64 - version 2
From: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Date: Tue, 9 Dec 2008 17:22:03 -0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Han, Weidong" <weidong.han@xxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Tue, 09 Dec 2008 17:22:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <18750.26439.321579.51939@xxxxxxxxxxxxxxxxxx>
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: <57C9024A16AD2D4C97DC78E552063EA35C77DA3B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <18750.26439.321579.51939@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclZ+2nCzulnBvPdRw2FyyKty1nC3gAac/9Q
Thread-topic: [Xen-devel] [PATCH][VTD] pci mmcfg patch for x86-64 - version 2
I have moved the files into arch/x86 directory, added mmconfig_32.c but with 
pci_mmcfg_read/write() stubbed out - returning appropriate error values.

I will send out 3rd version after I fix a minor issue. 

Allen 

>-----Original Message-----
>From: Espen Skoglund [mailto:espen.skoglund@xxxxxxxxxxxxx] 
>Sent: Tuesday, December 09, 2008 4:41 AM
>To: Kay, Allen M
>Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Han, Weidong; Espen 
>Skoglund; Keir Fraser
>Subject: Re: [Xen-devel] [PATCH][VTD] pci mmcfg patch for 
>x86-64 - version 2
>
>I see that all the special pci mmcfg stuff has been put under the
>x86_64 tree.  However, most of it is generic x86.  Why not make the
>code mostly generic x86 and let the x86_32 specific part fail
>gracefully (as in: mmcfg not configured properly)?  Support for x86_32
>can then later be added without requiring code duplication or
>restructuring.
>
>        eSk
>
>
>[Allen M Kay]
>> Fixes made in version 2:
>> 1) Use PML4[257] for ioremap of PCI mmcfg.  As full 16-bit segment
>>    support would require 44-bits.  Since each slot only has 39-bits,
>>    we support 2048 PCI segments for now.  This can be easily
>>    expanded if deemed necessary in the future.
>
>> 2) Integrated PCI mmcfg access with existing PCI config interface
>>    for x86_64.  Use MMCFG interface if offset is greater than 256.
>
>> Signed-off-by: Allen Kay <allen.m.kay@xxxxxxxxx>
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel