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] Re: Re: 3ware 9650 and Xen 3.1

To: "Shaun R." <mailinglists@xxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Re: 3ware 9650 and Xen 3.1
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sat, 15 Sep 2007 08:22:08 +0100
Delivery-date: Sat, 15 Sep 2007 00:18:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <fcf2n1$sfa$1@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acf3aR/FXlmUfGNcEdyNxwAWy6hiGQ==
Thread-topic: [Xen-devel] Re: Re: 3ware 9650 and Xen 3.1
User-agent: Microsoft-Entourage/11.3.6.070618
On 14/9/07 23:41, "Shaun R." <mailinglists@xxxxxxxxxxxxxxxx> wrote:

> ok, i finally got it to boot, i had to do some digging and used the previous
> 3ware driver version and it works, not here's the diff of the two... doesnt
> look like too much was changed so i figured i would paste it and see if you
> had a idea about if the problem was with 3wares driver or somthing in the
> xen kernel patch...

Following chunk is the only one that could really have an effect. What
happens if you revert it?

 -- Keir

> -       retval = pci_set_dma_mask(pdev, sizeof(dma_addr_t) > 4 ?
> DMA_64BIT_MASK : DMA_32BIT_MASK);
> -       if (retval) {
> -               TW_PRINTK(host, TW_DRIVER, 0x23, "Failed to set dma mask");
> -               goto out_disable_device;
> -       }
> +       if (pci_set_dma_mask(pdev, DMA_64BIT_MASK)
> +           || pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK))
> +               if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)
> +                   || pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) {
> +                       TW_PRINTK(host, TW_DRIVER, 0x23, "Failed to set dma
> mask");
> +                       retval = -ENODEV;
> +                       goto out_disable_device;
> +               }



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