mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 13:34:38 +08:00
cb471f14b5
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>
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
config DRM_EXYNOS
|
|
tristate "DRM Support for Samsung SoC EXYNOS Series"
|
|
depends on DRM && (PLAT_SAMSUNG || ARCH_MULTIPLATFORM)
|
|
select DRM_KMS_HELPER
|
|
select FB_CFB_FILLRECT
|
|
select FB_CFB_COPYAREA
|
|
select FB_CFB_IMAGEBLIT
|
|
select VT_HW_CONSOLE_BINDING if FRAMEBUFFER_CONSOLE
|
|
help
|
|
Choose this option if you have a Samsung SoC EXYNOS chipset.
|
|
If M is selected the module will be called exynosdrm.
|
|
|
|
config DRM_EXYNOS_IOMMU
|
|
bool "EXYNOS DRM IOMMU Support"
|
|
depends on DRM_EXYNOS && EXYNOS_IOMMU && ARM_DMA_USE_IOMMU
|
|
help
|
|
Choose this option if you want to use IOMMU feature for DRM.
|
|
|
|
config DRM_EXYNOS_DMABUF
|
|
bool "EXYNOS DRM DMABUF"
|
|
depends on DRM_EXYNOS
|
|
help
|
|
Choose this option if you want to use DMABUF feature for DRM.
|
|
|
|
config DRM_EXYNOS_FIMD
|
|
bool "Exynos DRM FIMD"
|
|
depends on DRM_EXYNOS && !FB_S3C
|
|
help
|
|
Choose this option if you want to use Exynos FIMD for DRM.
|
|
|
|
config DRM_EXYNOS_HDMI
|
|
bool "Exynos DRM HDMI"
|
|
depends on DRM_EXYNOS && !VIDEO_SAMSUNG_S5P_TV
|
|
help
|
|
Choose this option if you want to use Exynos HDMI for DRM.
|
|
|
|
config DRM_EXYNOS_VIDI
|
|
bool "Exynos DRM Virtual Display"
|
|
depends on DRM_EXYNOS
|
|
help
|
|
Choose this option if you want to use Exynos VIDI for DRM.
|
|
|
|
config DRM_EXYNOS_G2D
|
|
bool "Exynos DRM G2D"
|
|
depends on DRM_EXYNOS && !VIDEO_SAMSUNG_S5P_G2D
|
|
help
|
|
Choose this option if you want to use Exynos G2D for DRM.
|
|
|
|
config DRM_EXYNOS_IPP
|
|
bool "Exynos DRM IPP"
|
|
depends on DRM_EXYNOS
|
|
help
|
|
Choose this option if you want to use IPP feature for DRM.
|