linux/drivers/gpu/drm/vmwgfx
Ville Syrjälä 464ce098e6 drm/vmwgfx: Stop using plane->fb in vmw_kms_helper_dirty()
Instead of plane->fb (which we're going to deprecate for atomic drivers)
we need to look at plane->state->fb. The maze of code leading to
vmw_kms_helper_dirty() wasn't particularly clear, but my analysis
concluded that the calls originating from vmw_*_primary_plane_atomic_update()
all pass in the crtc which means we'll never end up in this branch
of the function. All other callers use drm_modeset_lock_all() somewhere
higher up, which means accessing plane->state is safe.

v2: Drop the comment and make the code do what it did before (Thomas)
v3: Drop the bogus lockdep assert

Cc: Deepak Rawat <drawat@vmware.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Cc: Sinclair Yeh <syeh@vmware.com>
Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180525185045.29689-3-ville.syrjala@linux.intel.com
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
2018-06-11 20:22:44 +03:00
..
device_include drm/vmwgfx: Fix multiple command buffer context use 2018-03-22 12:08:23 +01:00
Kconfig
Makefile drm/vmwgfx: Add a cpu blit utility that can be used for page-backed bos 2018-03-22 12:08:23 +01:00
vmwgfx_binding.c drm/ttm: use an operation ctx for ttm_mem_global_alloc 2017-12-27 11:38:54 -05:00
vmwgfx_binding.h
vmwgfx_blit.c drm/vmwgfx: Add a cpu blit utility that can be used for page-backed bos 2018-03-22 12:08:23 +01:00
vmwgfx_buffer.c drm/vmwgfx: Avoid pinning fbdev framebuffers 2018-03-22 12:08:23 +01:00
vmwgfx_cmdbuf_res.c drm/vmwgfx: Fix NULL pointer comparison 2017-07-17 23:40:34 -07:00
vmwgfx_cmdbuf.c drm/vmwgfx: Fix multiple command buffer context use 2018-03-22 12:08:23 +01:00
vmwgfx_context.c drm/ttm: use an operation ctx for ttm_mem_global_alloc 2017-12-27 11:38:54 -05:00
vmwgfx_cotable.c drm/ttm: use an operation ctx for ttm_mem_global_alloc 2017-12-27 11:38:54 -05:00
vmwgfx_dmabuf.c drm/vmwgfx: Avoid pinning fbdev framebuffers 2018-03-22 12:08:23 +01:00
vmwgfx_drv.c drm/vmwgfx: Drop DRM_CONTROL_ALLOW 2018-05-03 11:28:02 +02:00
vmwgfx_drv.h Linux 4.16-rc7 2018-03-28 14:30:41 +10:00
vmwgfx_execbuf.c Linux 4.15-rc8 2018-01-18 09:32:15 +10:00
vmwgfx_fb.c Merge branch 'vmwgfx-next' of git://people.freedesktop.org/~thomash/linux into drm-next 2018-03-23 06:18:48 +10:00
vmwgfx_fence.c drm/vmwgfx: use monotonic event timestamps 2018-03-22 12:08:24 +01:00
vmwgfx_fence.h drm/vmwgfx: Add support for imported Fence File Descriptor 2017-08-28 17:51:38 +02:00
vmwgfx_fifo.c drm/vmwgfx: Handle vmalloc() failure in vmw_local_fifo_reserve() 2017-06-07 12:07:35 +02:00
vmwgfx_gmr.c
vmwgfx_gmrid_manager.c drm/ttm: make ttm_mem_type_manager_func debug more useful 2017-08-17 15:45:59 -04:00
vmwgfx_ioctl.c drm/vmwgfx: replace drm_*_unreference with drm_*_put 2018-03-14 14:52:05 +01:00
vmwgfx_irq.c drm/vmwgfx: Move irq bottom half processing to threads 2017-08-28 17:40:43 +02:00
vmwgfx_kms.c drm/vmwgfx: Stop using plane->fb in vmw_kms_helper_dirty() 2018-06-11 20:22:44 +03:00
vmwgfx_kms.h Linux 4.16-rc7 2018-03-28 14:30:41 +10:00
vmwgfx_ldu.c drm/vmwgfx: Remove no-op prepare/cleanup_fb callbacks 2018-04-24 13:57:11 +02:00
vmwgfx_marker.c
vmwgfx_mob.c drm/ttm: drop persistent_swap_storage from ttm_bo_init and co 2018-02-26 23:09:45 -05:00
vmwgfx_msg.c drm/vmwgfx: Use kasprintf 2018-03-22 12:08:24 +01:00
vmwgfx_msg.h
vmwgfx_overlay.c
vmwgfx_prime.c
vmwgfx_reg.h
vmwgfx_resource_priv.h
vmwgfx_resource.c drm/vmwgfx: Avoid pinning fbdev framebuffers 2018-03-22 12:08:23 +01:00
vmwgfx_scrn.c Linux 4.16-rc7 2018-03-28 14:30:41 +10:00
vmwgfx_shader.c drm/ttm: use an operation ctx for ttm_mem_global_alloc 2017-12-27 11:38:54 -05:00
vmwgfx_simple_resource.c drm/ttm: use an operation ctx for ttm_mem_global_alloc 2017-12-27 11:38:54 -05:00
vmwgfx_so.c drm/ttm: use an operation ctx for ttm_mem_global_alloc 2017-12-27 11:38:54 -05:00
vmwgfx_so.h
vmwgfx_stdu.c Linux 4.16-rc7 2018-03-28 14:30:41 +10:00
vmwgfx_surface.c drm/vmwgfx: Stricter count of legacy surface device resources 2018-03-22 12:08:24 +01:00
vmwgfx_ttm_glue.c
vmwgfx_va.c