Skip to content

Commit

Permalink
Merge branch 'xen/fbdev' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/jeremy/xen

* 'xen/fbdev' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen:
  xen pvfb: Inhibit VM_IO flag to be set on vmalloc-ed framebuffers.
  fb-defio: Inhibit VM_IO flag to be set on vmalloc-ed framebuffers.
  fb-defio: If FBINFO_VIRTFB is defined, do not set VM_IO flag.
  Fix toogle whether xenbus driver should be built as module or part of kernel.
  • Loading branch information
Linus Torvalds committed Dec 10, 2009
2 parents 02412f4 + df11303 commit eae6fa9
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions drivers/input/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ config XEN_KBDDEV_FRONTEND
tristate "Xen virtual keyboard and mouse support"
depends on XEN_FBDEV_FRONTEND
default y
select XEN_XENBUS_FRONTEND
help
This driver implements the front-end of the Xen virtual
keyboard and mouse device driver. It communicates with a back-end
Expand Down
1 change: 1 addition & 0 deletions drivers/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,7 @@ config XEN_FBDEV_FRONTEND
select FB_SYS_IMAGEBLIT
select FB_SYS_FOPS
select FB_DEFERRED_IO
select XEN_XENBUS_FRONTEND
default y
help
This driver implements the front-end of the Xen virtual
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/broadsheetfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ static int __devinit broadsheetfb_probe(struct platform_device *dev)
par->read_reg = broadsheet_read_reg;
init_waitqueue_head(&par->waitq);

info->flags = FBINFO_FLAG_DEFAULT;
info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB;

info->fbdefio = &broadsheetfb_defio;
fb_deferred_io_init(info);
Expand Down
4 changes: 3 additions & 1 deletion drivers/video/fb_defio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/hecubafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static int __devinit hecubafb_probe(struct platform_device *dev)
par->send_command = apollo_send_command;
par->send_data = apollo_send_data;

info->flags = FBINFO_FLAG_DEFAULT;
info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB;

info->fbdefio = &hecubafb_defio;
fb_deferred_io_init(info);
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/metronomefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ static int __devinit metronomefb_probe(struct platform_device *dev)
if (retval < 0)
goto err_free_irq;

info->flags = FBINFO_FLAG_DEFAULT;
info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB;

info->fbdefio = &metronomefb_defio;
fb_deferred_io_init(info);
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/xen-fbfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_FLAG_DEFAULT | FBINFO_VIRTFB;

ret = fb_alloc_cmap(&fb_info->cmap, 256, 0);
if (ret < 0) {
Expand Down
1 change: 1 addition & 0 deletions include/linux/fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ struct fb_tile_ops {
* takes over; acceleration engine should be in a quiescent state */

/* hints */
#define FBINFO_VIRTFB 0x0004 /* FB is System RAM, not device. */
#define FBINFO_PARTIAL_PAN_OK 0x0040 /* otw use pan only for double-buffering */
#define FBINFO_READS_FAST 0x0080 /* soft-copy faster than rendering */

Expand Down

0 comments on commit eae6fa9

Please sign in to comment.