[Openchrome-devel] drm-openchrome: drivers/gpu/drm

James Simmons jsimmons at kemper.freedesktop.org
Thu Jul 11 17:32:24 PDT 2013


 drivers/gpu/drm/via/via_drv.c |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 948efeed9e21b6a0065227597456412ae5340ce0
Author: James Simmons <jsimmons at infradead.org>
Date:   Thu Jul 11 20:31:54 2013 -0400

    It is possible for userland applications to destroy the frame buffer console display surface. To work around broken apps we restart fbcon on the last closing of the drm device

diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c
index 71a3811..efd55b7 100644
--- a/drivers/gpu/drm/via/via_drv.c
+++ b/drivers/gpu/drm/via/via_drv.c
@@ -417,6 +417,13 @@ static int via_final_context(struct drm_device *dev, int context)
 	return 1;
 }
 
+static void via_driver_lastclose(struct drm_device *dev)
+{
+	if (drm_core_check_feature(dev, DRIVER_MODESET) &&
+	    dev->mode_config.funcs->output_poll_changed)
+		dev->mode_config.funcs->output_poll_changed(dev);
+}
+
 static void via_reclaim_buffers_locked(struct drm_device *dev,
 					struct drm_file *filp)
 {
@@ -453,6 +460,7 @@ static struct drm_driver via_driver = {
 	.irq_uninstall = via_driver_irq_uninstall,
 	.irq_handler = via_driver_irq_handler,
 	.dma_quiescent = via_driver_dma_quiescent,
+	.lastclose = via_driver_lastclose,
 	.gem_init_object = ttm_gem_init_object,
 	.gem_free_object = ttm_gem_free_object,
 	.dumb_create = via_dumb_create,


More information about the Openchrome-devel mailing list