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-ia64-devel

Re: [Xen-ia64-devel] [Patch] Follow new interrupt deliver mechanism for

To: DOI Tsunehisa <Doi.Tsunehisa@xxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [Patch] Follow new interrupt deliver mechanism for PV-on-HVM/IPF
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Tue, 19 Dec 2006 11:36:04 -0700
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 19 Dec 2006 10:36:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4587C678.2050902@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: OSLO R&D
References: <4587C678.2050902@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-12-19 at 20:01 +0900, DOI Tsunehisa wrote:
> --- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c        Mon Dec 
> 18 10:56:34 2006 -0700
> +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c        Tue Dec 
> 19 18:22:05 2006 +0900
> @@ -182,12 +182,16 @@ static int get_callback_irq(struct pci_d
>  static int get_callback_irq(struct pci_dev *pdev)
>  {
>  #ifdef __ia64__
> -     int irq;
> +     int irq, rid;
>       for (irq = 0; irq < 16; irq++) {
>               if (isa_irq_to_vector(irq) == pdev->irq)
>                       return irq;
>       }
> -     return 0;
> +     /* use Requester-ID as callback_irq */
> +     /* RID: '<#bus(8)><#dev(5)><#func(3)>' (cf. PCI-Express spec) */
> +     rid = ((pdev->bus->number & 0xff) << 8) | pdev->devfn;
> +     printk(KERN_INFO DRV_NAME ":use Requester-ID(%04x) as callback irq\n", 
> rid);
> +     return rid | (1 << 31); /* with RID marker(MSB) */

   Ok, except (1 << 31) needs to be defined in a common header somewhere
so it's not just a random magic bit.  Thanks,

        Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel