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: mm.c:777:d2 Non-privileged (2) attempt to map I/O sp

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Re: mm.c:777:d2 Non-privileged (2) attempt to map I/O space 000f995a + (XEN) mm.c:845:d20 Error getting mfn jd (pfn 84fd) from L1 entry 800000000246d467 for l1e_owner=20, pg_owner=32753
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Tue, 1 Dec 2009 16:57:45 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, armbru@xxxxxxxxxx, JBeulich@xxxxxxxxxx, Ian.Campbell@xxxxxxxxxxxxx, Olivier NOEL <ONOEL@xxxxxxxxxxxxxx>, keir.fraser@xxxxxxxxxxxxx
Delivery-date: Tue, 01 Dec 2009 14:01:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B14BA55.80503@xxxxxxxx>
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: <481249.38422.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <4A78CA69.3090105@xxxxxxxx> <0E87C0E865217944860BB378D2898000E1467F@xxxxxxxxxxxxxxxxxx> <0E87C0E865217944860BB378D2898000E146B1@xxxxxxxxxxxxxxxxxx> <4A7B306D.5080108@xxxxxxxx> <20091109235051.GA20408@xxxxxxxxxxxxxxxxxxx> <20091201031120.GA11230@xxxxxxxxxxxxxxxxxxx> <4B14BA55.80503@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.19 (2009-01-05)
> 1a) add a flag to avoid setting VM_IO?  (uncompiled, untested, uneverything)

That did it. Tested with Dom0 and DomU succesfully.

Signed off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>

> 
> diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c
> index 0a7a667..dd03822 100644
> --- a/drivers/video/fb_defio.c
> +++ b/drivers/video/fb_defio.c
> @@ -144,7 +144,9 @@ static const struct address_space_operations 
> fb_deferred_io_aops = {
>  static int fb_deferred_io_mmap(struct fb_info *info, struct vm_area_struct 
> *vma)
>  {
>       vma->vm_ops = &fb_deferred_io_vm_ops;
> -     vma->vm_flags |= ( VM_IO | VM_RESERVED | VM_DONTEXPAND );
> +     vma->vm_flags |= ( VM_RESERVED | VM_DONTEXPAND );
> +     if (!(info->flags & FBINFO_VIRTFB))
> +       vma->vm_flags |= VM_IO;
>       vma->vm_private_data = info;
>       return 0;
>  }
> diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
> index 0c6b1c6..60d9d61 100644
> --- a/drivers/video/xen-fbfront.c
> +++ b/drivers/video/xen-fbfront.c
> @@ -440,7 +440,7 @@ static int __devinit xenfb_probe(struct xenbus_device 
> *dev,
>       fb_info->fix.type = FB_TYPE_PACKED_PIXELS;
>       fb_info->fix.accel = FB_ACCEL_NONE;
>  
> -     fb_info->flags = FBINFO_FLAG_DEFAULT;
> +     fb_info->flags = FBINFO_DEFAULT | FBINFO_VIRTFB;
>  
>       ret = fb_alloc_cmap(&fb_info->cmap, 256, 0);
>       if (ret < 0) {
> diff --git a/include/linux/fb.h b/include/linux/fb.h
> index f847df9..65134b5 100644
> --- a/include/linux/fb.h
> +++ b/include/linux/fb.h
> @@ -766,6 +766,7 @@ struct fb_tile_ops {
>        *  Hardware acceleration is turned off.  Software implementations
>        *  of required functions (copyarea(), fillrect(), and imageblit())
>        *  takes over; acceleration engine should be in a quiescent state */
> +#define FBINFO_VIRTFB                0x0004  /* FB is in system RAM, not 
> device */
>  
>  /* hints */
>  #define FBINFO_PARTIAL_PAN_OK        0x0040 /* otw use pan only for 
> double-buffering */
> 
>       J
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

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

<Prev in Thread] Current Thread [Next in Thread>