OpenCloudOS-Kernel/drivers/gpu/drm/vmwgfx
Sinclair Yeh 05c9501859 drm/vmwgfx: Fix crash when unloading vmwgfx v2
This patch fixes two issues.  One, when a surface is a proxy for a DMA
buffer, it holds an extra reference that needs to be cleared.

Two, when fbdev is enabled, we need to unpin the framebuffer before
unloading the driver.  This is done by a call to vmw_fb_off().

v2
Moved unreferencing surface to from vmw_framebuffer_surface_destroy()
to vmw_kms_new_framebuffer()

Added "struct vmw_framebuffer *vfb = NULL;" to silence a compiler
warning.

Removed error checking after calling vmw_surface/dmabuf_reference()

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2015-08-12 10:06:13 -07:00
..
Kconfig drm: Move plane helpers into drm_kms_helper.ko 2014-06-04 13:36:08 +10:00
Makefile drm/vmwgfx: Implement screen targets 2015-08-05 14:01:07 +02:00
svga3d_reg.h drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
svga3d_surfacedefs.h drm/vmwgfx: SVGA device definition update 2015-08-05 14:01:06 +02:00
svga_escape.h vmwgfx: Update register files to latest from vmware-sdk 2011-10-05 10:17:08 +01:00
svga_overlay.h vmwgfx: Update register files to latest from vmware-sdk 2011-10-05 10:17:08 +01:00
svga_reg.h vmwgfx: Update device headers for command buffers. 2015-08-05 14:01:04 +02:00
svga_types.h vmwgfx: Update device headers for command buffers. 2015-08-05 14:01:04 +02:00
vmwgfx_buffer.c drm/vmwgfx: Add command buffer support v3 2015-08-05 14:01:04 +02:00
vmwgfx_cmdbuf.c drm/vmwgfx: Fix an uninitialized value 2015-08-05 14:01:12 +02:00
vmwgfx_cmdbuf_res.c drm/vmwgfx: Fix hash key computation 2014-10-31 09:54:22 +01:00
vmwgfx_context.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_dmabuf.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_drv.c drm/vmwgfx: Fix crash when unloading vmwgfx v2 2015-08-12 10:06:13 -07:00
vmwgfx_drv.h drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_execbuf.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_fb.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_fence.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_fence.h drm/vmwgfx: rework to new fence interface, v2 2014-09-02 16:41:50 +02:00
vmwgfx_fifo.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_gmr.c drm/vmwgfx: Fix the driver for large dma addresses 2014-01-17 07:44:15 +01:00
vmwgfx_gmrid_manager.c drm/ttm: move fpfn and lpfn into each placement v2 2014-08-27 13:16:04 +02:00
vmwgfx_ioctl.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_irq.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_kms.c drm/vmwgfx: Fix crash when unloading vmwgfx v2 2015-08-12 10:06:13 -07:00
vmwgfx_kms.h drm/vmwgfx: Implement fbdev on kms v2 2015-08-05 14:01:10 +02:00
vmwgfx_ldu.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_marker.c drm: vmwgfx: Use nsec based interfaces 2014-07-23 15:01:50 -07:00
vmwgfx_mob.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_overlay.c drm/vmwgfx: Introduce a pin count to allow for recursive pinning v2 2015-08-05 14:01:08 +02:00
vmwgfx_prime.c drm/vmwgfx: Hook up the prime ioctls 2013-11-18 04:11:53 -08:00
vmwgfx_reg.h drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_resource.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_resource_priv.h drm/vmwgfx: Break out surface and context management to separate files 2012-11-21 07:47:08 +10:00
vmwgfx_scrn.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_shader.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_stdu.c drm/vmwgfx: Convert screen targets to new helpers v3 2015-08-05 14:01:09 +02:00
vmwgfx_surface.c drm/vmwgfx: Kill a bunch of sparse warnings 2015-08-05 14:01:11 +02:00
vmwgfx_ttm_glue.c UAPI: (Scripted) Convert #include "..." to #include <path/...> in drivers/gpu/ 2012-10-02 18:01:07 +01:00