Skip to contentSkip to conversation

drm/vmwgfx: allow a kconfig option to choose if fbcon is enabled

PATCH New Dave Airlie 1 participant 2 messages Aug 28, 2012

Subsystems (3)
lore
Share & tools
lore

Dave Airlie

author maintainer
#0 lore raw

PATCH 1/2 drm/vmwgfx: allow a kconfig option to choose if fbcon is enabled

From: Dave Airlie <[email protected]>

This makes things easier for distros where we'd like to have fbcon enabled all the time.

---
 drivers/gpu/drm/vmwgfx/Kconfig      | 8 ++++++++
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/Kconfig +8 -0
index 794ff67..b71bcd0 100644
@@ -12,3 +12,11 @@ config DRM_VMWGFX
 	  This is a KMS enabled DRM driver for the VMware SVGA2
 	  virtual hardware.
 	  The compiled module will be called "vmwgfx.ko".
+
+config DRM_VMWGFX_FBCON
+	depends on DRM_VMWGFX
+	bool "Enable framebuffer console under vmwgfx by default"
+	help
+	   Choose this option if you are shipping a new vmwgfx
+	   userspace driver that supports using the kernel driver.
+
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +1 -1
index 4d13bf7..8b44236 100644
@@ -183,7 +183,7 @@ static struct pci_device_id vmw_pci_id_list[] = {
 	{0, 0, 0}
 };
 
-static int enable_fbdev;
+static int enable_fbdev = IS_ENABLED(CONFIG_DRM_VMWGFX_FBCON);
 
 static int vmw_probe(struct pci_dev *, const struct pci_device_id *);
 static void vmw_master_init(struct vmw_master *);
Signature · 1 line
1.7.11.4
author maintainer
#1 lore raw

PATCH 2/2 drm/vmwgfx: add MODULE_DEVICE_TABLE so vmwgfx loads at boot

From: Dave Airlie <[email protected]>

This will cause udev to load vmwgfx instead of waiting for X to do it.

---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +1 -0
index 8b44236..ba2c35d 100644
@@ -182,6 +182,7 @@ static struct pci_device_id vmw_pci_id_list[] = {
 	{0x15ad, 0x0405, PCI_ANY_ID, PCI_ANY_ID, 0, 0, VMWGFX_CHIP_SVGAII},
 	{0, 0, 0}
 };
+MODULE_DEVICE_TABLE(pci, vmw_pci_id_list);
 
 static int enable_fbdev = IS_ENABLED(CONFIG_DRM_VMWGFX_FBCON);
 
Signature · 1 line
1.7.11.4