linux/drivers/gpu/drm/exynos
Eunchul Kim cb471f14b5 drm/exynos: add ipp subsystem
This patch adds Image Post Processing(IPP) support for exynos drm driver.

IPP supports image scaler/rotator and input/output DMA operations
using IPP subsystem framework to control FIMC, Rotator and GSC hardware
and supports some user interfaces for user side.

And each IPP-based drivers support Memory to Memory operations
with various converting. And in case of FIMC hardware, it also supports
Writeback and Display output operations through local path.

Features:
- Memory to Memory operation support.
- Various pixel formats support.
- Image scaling support.
- Color Space Conversion support.
- Image crop operation support.
- Rotate operation support to 90, 180 or 270 degree.
- Flip operation support to vertical, horizontal or both.
- Writeback operation support to display blended image of FIMD fifo on screen

A summary to IPP Subsystem operations:
First of all, user should get property capabilities from IPP subsystem
and set these properties to hardware registers for desired operations.
The properties could be pixel format, position, rotation degree and
flip operation.

And next, user should set source and destination buffer data using
DRM_EXYNOS_IPP_QUEUE_BUF ioctl command with gem handles to source and
destinition buffers.

And next, user can control user-desired hardware with desired operations
such as play, stop, pause and resume controls.

And finally, user can aware of dma operation completion and also get
destination buffer that it contains user-desried result through dequeue
command.

IOCTL commands:
- DRM_EXYNOS_IPP_GET_PROPERTY
  . get ipp driver capabilitis and id.
- DRM_EXYNOS_IPP_SET_PROPERTY
  . set format, position, rotation, flip to source and destination buffers
- DRM_EXYNOS_IPP_QUEUE_BUF
  . enqueue/dequeue buffer and make event list.
- DRM_EXYNOS_IPP_CMD_CTRL
  . play/stop/pause/resume control.

Event:
- DRM_EXYNOS_IPP_EVENT
  . a event to notify dma operation completion to user side.

Basic control flow:
Open -> Get properties -> User choose desired IPP sub driver(FIMC, Rotator
or GSCALER) -> Set Property -> Create gem handle -> Enqueue to source and
destination buffers -> Command control(Play) -> Event is notified to User
-> User gets destinition buffer complated -> (Enqueue to source and
destination buffers -> Event is notified to User) * N -> Queue/Dequeue to
source and destination buffers -> Command control(Stop) -> Free gem handle
-> Close

Changelog v1 ~ v5:
- added comments, code fixups and cleanups.

Signed-off-by: Eunchul Kim <chulspro.kim@samsung.com>
Signed-off-by: Jinyoung Jeon <jy0.jeon@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
2012-12-15 02:29:08 +09:00
..
exynos_ddc.c drm/exynos: hdmi: Add CONFIG_OF and use of_match_ptr() macro 2012-12-14 15:40:50 +09:00
exynos_drm_buf.c drm/exynos: fix allocation and cache mapping type 2012-12-14 15:40:26 +09:00
exynos_drm_buf.h drm/exynos: remove 'pages' and 'page_size' elements in exynos gem buffer 2012-12-05 14:39:20 +09:00
exynos_drm_connector.c drm/exynos: fix display on issue 2012-10-31 06:11:29 -07:00
exynos_drm_connector.h drm/exynos: fix display power call issue. 2012-10-04 10:06:01 +09:00
exynos_drm_core.c Merge branch 'exynos-drm-next' of git://git.infradead.org/users/kmpark/linux-samsung into drm-next 2012-10-07 21:06:33 +10:00
exynos_drm_crtc.c drm/exynos: hold event_lock while accessing pageflip_event_list 2012-11-29 03:30:33 -08:00
exynos_drm_crtc.h drm/exynos: update overlay via plane from crtc 2012-07-27 11:13:53 +09:00
exynos_drm_dmabuf.c drm/exynos: add dmabuf attach/detach callbacks. 2012-12-13 06:05:43 -08:00
exynos_drm_dmabuf.h drm/exynos: added drm prime feature. 2012-05-08 18:46:32 +09:00
exynos_drm_drv.c drm/exynos: add ipp subsystem 2012-12-15 02:29:08 +09:00
exynos_drm_drv.h drm/exynos: add ipp subsystem 2012-12-15 02:29:08 +09:00
exynos_drm_encoder.c drm/exynos: make wait_for_vblank a manager op 2012-12-13 06:05:43 -08:00
exynos_drm_encoder.h drm/exynos: make sure that overlay data are updated 2012-12-05 14:39:19 +09:00
exynos_drm_fb.c drm/exynos: reorder framebuffer init sequence 2012-12-14 13:40:41 +09:00
exynos_drm_fb.h drm/exynos: check NV12M format specific to Exynos properly 2012-10-04 10:06:00 +09:00
exynos_drm_fbdev.c drm/exynos: use DMA_ATTR_NO_KERNEL_MAPPING attribute 2012-12-13 06:05:45 -08:00
exynos_drm_fbdev.h
exynos_drm_fimd.c drm/exynos: support device tree for fimd 2012-12-15 02:28:40 +09:00
exynos_drm_g2d.c drm/exynos: Fix potential NULL pointer dereference 2012-12-05 14:39:21 +09:00
exynos_drm_g2d.h drm/exynos: add G2D driver 2012-05-17 20:14:48 +09:00
exynos_drm_gem.c drm/exynos: use DMA_ATTR_NO_KERNEL_MAPPING attribute 2012-12-13 06:05:45 -08:00
exynos_drm_gem.h drm/exynos: use DMA_ATTR_NO_KERNEL_MAPPING attribute 2012-12-13 06:05:45 -08:00
exynos_drm_hdmi.c drm/exynos: move hdmi's wait_for_vblank to manager_ops 2012-12-13 06:05:43 -08:00
exynos_drm_hdmi.h drm/exynos: move hdmi's wait_for_vblank to manager_ops 2012-12-13 06:05:43 -08:00
exynos_drm_iommu.c drm/exynos/iommu: fix return value check in drm_create_iommu_mapping() 2012-12-13 06:05:45 -08:00
exynos_drm_iommu.h drm/exynos: add iommu support for exynos drm framework 2012-11-29 03:30:35 -08:00
exynos_drm_ipp.c drm/exynos: add ipp subsystem 2012-12-15 02:29:08 +09:00
exynos_drm_ipp.h drm/exynos: add ipp subsystem 2012-12-15 02:29:08 +09:00
exynos_drm_plane.c drm/exynos: fix fb offset calculation for plane 2012-12-14 15:54:34 +09:00
exynos_drm_plane.h drm/exynos: add plane enable/disable 2012-07-27 11:13:54 +09:00
exynos_drm_vidi.c drm/exynos: remove unused vaddr member 2012-12-13 06:05:45 -08:00
exynos_drm_vidi.h drm/exynos: added virtual display driver. 2012-03-21 10:15:49 +00:00
exynos_hdmi.c drm/exynos: hdmi: Fix potential NULL pointer dereference error 2012-12-14 15:40:50 +09:00
exynos_hdmi.h drm/exynos: cleanup exynos_hdmi.h 2012-03-20 09:41:45 +00:00
exynos_hdmiphy.c drm/exynos: hdmi: Add CONFIG_OF and use of_match_ptr() macro 2012-12-14 15:40:50 +09:00
exynos_mixer.c drm/exynos: add runtime pm support for mixer 2012-12-14 15:40:48 +09:00
Kconfig drm/exynos: add ipp subsystem 2012-12-15 02:29:08 +09:00
Makefile drm/exynos: add ipp subsystem 2012-12-15 02:29:08 +09:00
regs-hdmi.h drm/exynos: add support for hdmiphy power control for exynos5 2012-12-14 15:40:49 +09:00
regs-mixer.h drm: exynos: hdmi: add support for exynos5 mixer 2012-10-05 19:15:10 +09:00
regs-vp.h drm/exynos: added hdmi display support 2011-12-29 11:21:42 +09:00