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] xen kernel 2.6.18 bug with a d-link DFE 580TX - pci hide

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] xen kernel 2.6.18 bug with a d-link DFE 580TX - pci hide
From: Michael Kapp <tquarkk@xxxxxxxxxx>
Date: Sun, 26 Oct 2008 09:40:35 +0100
Cc: xen-dev <xen-devel@xxxxxxxxxxxxxxxxxxx>, Frank Mundinger <f.mundinger@xxxxxxx>
Delivery-date: Sun, 26 Oct 2008 00:41:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C5296772.1E873%keir.fraser@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: <C5296772.1E873%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.17 (X11/20080914)
Keir Fraser wrote:
> On 25/10/08 21:05, "Michael Kapp" <tquarkk@xxxxxxxxxx> wrote:
> 
>> ----------- [cut here ] --------- [please bite here ] ---------
>> Kernel BUG at arch/x86_64/kernel/../../i386/kernel/pci-dma-xen.c:377
> 
> What's at line 377 in that source file in your kernel source tree?

See attachment of the specific part from pci-dma-xen.c.

>  -- Keir

Regards,
Michael


362 dma_addr_t
363 dma_map_single(struct device *dev, void *ptr, size_t size,
364            enum dma_data_direction direction)
365 {
366     dma_addr_t dma;
367
368     if (direction == DMA_NONE)
369         BUG();
370     WARN_ON(size == 0);
371
372     if (swiotlb) {
373         dma = swiotlb_map_single(dev, ptr, size, direction);
374     } else {
375         dma = gnttab_dma_map_page(virt_to_page(ptr)) +
376               offset_in_page(ptr);
377         IOMMU_BUG_ON(range_straddles_page_boundary(__pa(ptr), size));
378         IOMMU_BUG_ON(address_needs_mapping(dev, dma));
379     }
380
381     flush_write_buffers();
382     return dma;
383 }
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel