linux_dsm_epyc7002/drivers/gpu/drm/vkms
Mahesh Kumar c0811a7d5b drm/crc: Cleanup crtc_crc_open function
This patch make changes to allocate crc-entries buffer before
enabling CRC generation.
It moves all the failure check early in the function before setting
the source or memory allocation.
Now set_crc_source takes only two variable inputs, values_cnt we
already gets as part of verify_crc_source.

Changes since V1:
 - refactor code to use single spin lock
Changes since V2:
 - rebase
Changes since V3:
 - rebase on top of VKMS driver

Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Haneen Mohammed <hamohammed.sa@gmail.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Leo Li <sunpeng.li@amd.com> (V2)
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> (V3)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180821083858.26275-3-mahesh1.kumar@intel.com
2018-08-22 09:47:58 -07:00
..
Makefile drm/vkms: Implement CRC debugfs API 2018-08-03 14:52:58 -04:00
vkms_crc.c drm/crc: Cleanup crtc_crc_open function 2018-08-22 09:47:58 -07:00
vkms_crtc.c drm/vkms/crc: Implement verify_crc_source callback 2018-08-22 09:47:02 -07:00
vkms_drv.c drm/vkms: Implement CRC debugfs API 2018-08-03 14:52:58 -04:00
vkms_drv.h drm/crc: Cleanup crtc_crc_open function 2018-08-22 09:47:58 -07:00
vkms_gem.c drm/vkms: Fix vmap_count increment position 2018-08-08 10:19:54 +02:00
vkms_output.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
vkms_plane.c drm/vkms: Implement CRC debugfs API 2018-08-03 14:52:58 -04:00