Skip to content
  1. Dec 16, 2012
    • Dave Airlie's avatar
      Merge branch 'exynos-drm-next' of... · 2f3f2406
      Dave Airlie authored
      Merge branch 'exynos-drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next
      
      Inki writes:
      "- add dmabuf attach/detach feature
        . This patch would resolve performance deterioration issue
          when v4l2-based driver is using the buffer imported from gem.
      - drm/exynos: use DMA_ATTR_NO_KERNEL_MAPPING attribute
        . With gem allocation, kernel space mapping isn't allocated and
          also physical pages aren't mapped with the kernel space.
          The physical pages are mapped with kernel space though vmap
          function only for console framebuffer.
      - add the below two patches I missed.
        drm: exynos: moved exynos drm device registration to drm driver
        drm: exynos: moved exynos drm hdmi device registration to drm driver
      - add IPP subsystem framework and its-based device drivers.
        . This patch set includes fimc, rotator and gsc drivers to perform
          image scaling, rotation and color space conversion.
      - add runtime pm support to hdmi driver.
      - And fixups and cleanups."
      
      * 'exynos-drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos: (30 commits)
        drm/exynos: add gsc ipp driver
        drm/exynos: add rotator ipp driver
        drm/exynos: add fimc ipp driver
        drm/exynos: add iommu support for ipp
        drm/exynos: add ipp subsystem
        drm/exynos: support device tree for fimd
        drm/exynos: support extended screen coordinate of fimd
        drm/exynos: fix x, y coordinates for right bottom pixel
        drm/exynos: fix fb offset calculation for plane
        drm/exynos: hdmi: Fix potential NULL pointer dereference error
        drm/exynos: hdmi: Add CONFIG_OF and use of_match_ptr() macro
        drm/exynos: add support for hdmiphy power control for exynos5
        drm/exynos: add runtime pm support for mixer
        drm/exynos: added runtime pm support for hdmi
        drm/exynos: fix allocation and cache mapping type
        drm/exynos: reorder framebuffer init sequence
        drm/exynos/iommu: fix return value check in drm_create_iommu_mapping()
        drm/exynos: remove unused vaddr member
        drm/exynos: use DMA_ATTR_NO_KERNEL_MAPPING attribute
        drm/exynos: add exception codes to exynos_drm_fbdev_create()
        ...
      2f3f2406
    • Dave Airlie's avatar
      Merge branch 'drm-next-3.8' of git://people.freedesktop.org/~agd5f/linux into drm-next · 652a1876
      Dave Airlie authored
      Fix regression, and some locking races, also as CS support
      for the DMA engines.
      
      * 'drm-next-3.8' of git://people.freedesktop.org/~agd5f/linux:
        radeon: fix regression with eviction since evict caching changes
        drm/radeon: add more pedantic checks in the CP DMA checker
        drm/radeon: bump version for CS ioctl support for async DMA
        drm/radeon: enable the async DMA rings in the CS ioctl
        drm/radeon: add VM CS parser support for async DMA on cayman/TN/SI
        drm/radeon/kms: add evergreen/cayman CS parser for async DMA (v2)
        drm/radeon/kms: add 6xx/7xx CS parser for async DMA (v2)
        drm/radeon: fix htile buffer size computation for command stream checker
        drm/radeon: fix fence locking in the pageflip callback
        drm/radeon: make indirect register access concurrency-safe
        drm/radeon: add W|RREG32_IDX for MM_INDEX|DATA based mmio accesss
      652a1876
  2. Dec 15, 2012
    • Eunchul Kim's avatar
      drm/exynos: add gsc ipp driver · f2646380
      Eunchul Kim authored
      
      
      This patch adds IPP subsystem-based gsc driver for exynos5 series.
      GSC is stand for General SCaler and supports the following features:
      - image scaler/rotator/crop/flip/csc and input/output DMA operations.
      - image rotation and image effect functions.
      - writeback and display output operations.
      - M2M operation to crop, scale, rotation and csc.
      
      The below is GSC hardware path:
      Memory------->GSC------>Memory
      FIMD--------->GSC------>HDMI
      FIMD--------->GSC------>Memory
      Memory------->GSC------>FIMD, Mixer
      
      This driver is registered to IPP subsystem framework to be used by user side
      and user can control the GSC hardware through some interfaces of IPP subsystem
      framework.
      
      Changelog v1 ~ v5:
      - added comments, code fixups and cleanups.
      
      Signed-off-by: default avatarEunchul Kim <chulspro.kim@samsung.com>
      Signed-off-by: default avatarJinyoung Jeon <jy0.jeon@samsung.com>
      Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
      Signed-off-by: default avatarKyungmin.park <kyungmin.park@samsung.com>
      f2646380
    • Eunchul Kim's avatar
      drm/exynos: add rotator ipp driver · bea8a429
      Eunchul Kim authored
      
      
      This patch adds IPP subsystem-based rotator driver.
      And Rotator supports the following features.
      - Image crop operation support.
      - Rotate operation support to 90, 180 or 270 degree.
      - Flip operation support to vertical, horizontal or both.
        . as limitaions, the pixel format to source buffer should be
          same as the one to destination buffer and no scaler.
      
      This driver is registered to IPP subsystem framework to be used by user side
      and user can control the Rotator hardware through some interfaces of IPP
      subsystem framework.
      
      Changelog v6:
      - fix build warning.
      
      Changelog v1 ~ v5:
      - added comments, code fixups and cleanups.
      
      Signed-off-by: default avatarEunchul Kim <chulspro.kim@samsung.com>
      Signed-off-by: default avatarYoungjun Cho <yj44.cho@samsung.com>
      Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      bea8a429
    • Eunchul Kim's avatar
      drm/exynos: add fimc ipp driver · 16102edb
      Eunchul Kim authored
      
      
      FIMC is stand for Fully Interfactive Mobile Camera and
      supports image scaler/rotator/crop/flip/csc and input/output DMA operations
      and also supports writeback and display output operations.
      
      This driver is registered to IPP subsystem framework to be used by user side
      and user can control the FIMC hardware through some interfaces of IPP subsystem
      framework.
      
      Changelog v6:
      - fix build warning.
      
      Changelog v1 ~ v5:
      - add comments, code fixups and cleanups.
      
      Signed-off-by: default avatarEunchul Kim <chulspro.kim@samsung.com>
      Signed-off-by: default avatarJinyoung Jeon <jy0.jeon@samsung.com>
      Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      16102edb
    • Eunchul Kim's avatar
      drm/exynos: add iommu support for ipp · c12e2617
      Eunchul Kim authored
      
      
      This patch adds iommu support for IPP subsystem framework.
      For this, it adds subdrv_probe/remove callback to enable or
      disable ipp iommu.
      We can get or put device address to a gem handle from user
      through exynos_drm_gem_get/put_dma_addr().
      
      Signed-off-by: default avatarEunchul Kim <chulspro.kim@samsung.com>
      Signed-off-by: default avatarJinyoung Jeon <jy0.jeon@samsung.com>
      Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      c12e2617
    • Eunchul Kim's avatar
      drm/exynos: add ipp subsystem · cb471f14
      Eunchul Kim authored
      
      
      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: default avatarEunchul Kim <chulspro.kim@samsung.com>
      Signed-off-by: default avatarJinyoung Jeon <jy0.jeon@samsung.com>
      Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      cb471f14
    • Joonyoung Shim's avatar
      drm/exynos: support device tree for fimd · d636ead8
      Joonyoung Shim authored
      
      
      This adds the of_match_table to exynos-drm fimd driver to be probed from
      the device tree.
      
      Changelog v2:
      - fix build error without CONFIG_OF.
      
      Signed-off-by: default avatarJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      d636ead8
  3. Dec 14, 2012
  4. Dec 13, 2012