linux/drivers/gpu/drm/amd/display/amdgpu_dm
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
..
amdgpu_dm_color.c drm/amd/display: get rid of 32.32 unsigned fixed point 2018-05-18 16:08:21 -05:00
amdgpu_dm_crc.c drm/crc: Cleanup crtc_crc_open function 2018-08-22 09:47:58 -07:00
amdgpu_dm_helpers.c Merge branch 'drm-next-4.19' of git://people.freedesktop.org/~agd5f/linux into drm-next 2018-06-22 13:19:05 +10:00
amdgpu_dm_irq.c drm/amd/display: Do not program interrupt status on disabled crtc 2018-05-29 13:30:38 -05:00
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm: drop _mode_ from remaining connector functions 2018-07-13 18:40:27 +02:00
amdgpu_dm_mst_types.h
amdgpu_dm_services.c amdgpu: display: use modern ktime accessors 2018-06-19 13:17:38 -05:00
amdgpu_dm.c drm/amdgpu_dm/crc: Implement verify_crc_source callback 2018-08-13 14:00:20 +02:00
amdgpu_dm.h drm/crc: Cleanup crtc_crc_open function 2018-08-22 09:47:58 -07:00
Makefile