1. 30 Jul, 2016 2 commits
    • Peter Wu's avatar
      drm/nouveau/acpi: ensure matching ACPI handle and supported functions · df42194a
      Peter Wu authored
      Ensure that the returned set of supported DSM functions (MUX, Optimus)
      match the ACPI handle that is set in nouveau_dsm_pci_probe.
      
      As there are no machines with a MUX function on just one PCI device and
      an Optimus on another, there should not be a functional impact. This
      change however makes this implicit assumption more obvious.
      
      Convert int to bool and rename has_dsm to has_mux while at it. Let the
      caller set nouveau_dsm_priv.dhandle as needed.
      
       v2: pass dhandle to the caller.
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      Acked-by: Dave Airlie <airlied@redhat.com
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      df42194a
    • Mikulas Patocka's avatar
      drm/nouveau/fbcon: fix font width not divisible by 8 · 28668f43
      Mikulas Patocka authored
      The patch f045f459 ("drm/nouveau/fbcon: fix out-of-bounds memory accesses")
      tries to fix some out of memory accesses. Unfortunatelly, the patch breaks the
      display when using fonts with width that is not divisiable by 8.
      
      The monochrome bitmap for each character is stored in memory by lines from top
      to bottom. Each line is padded to a full byte.
      
      For example, for 22x11 font, each line is padded to 16 bits, so each
      character is consuming 44 bytes total, that is 11 32-bit words. The patch
      f045f459 changed the logic to "dsize = ALIGN(image->width *
      image->height, 32) >> 5", that is just 8 words - this is incorrect and it
      causes display corruption.
      
      This patch adds the necesary padding of lines to 8 bytes.
      
      This patch should be backported to stable kernels where f045f459 was
      backported.
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Fixes: f045f459 ("drm/nouveau/fbcon: fix out-of-bounds memory accesses")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      28668f43
  2. 22 Jul, 2016 2 commits
    • Dave Airlie's avatar
      Merge branch 'for-next' of http://git.agner.ch/git/linux-drm-fsl-dcu into drm-next · c11dea5b
      Dave Airlie authored
      This adds drm bridge support for the NXP/Freescale DCU. The patchset
      has been discussed on the mailing list since quite some time...
      Plus there is a small fix provided by Peter.
      
      * 'for-next' of http://git.agner.ch/git/linux-drm-fsl-dcu:
        drm/fsl-dcu: add support for drm bridge
        drm/fsl-dcu: rework codes to support of_graph dt binding for panel
        drm/fsl-dcu: add missing of_node_put after calling of_parse_phandle
      c11dea5b
    • Dave Airlie's avatar
      Merge branch 'drm-rockchip-next-fixes-2016-07-19' of... · c8c21231
      Dave Airlie authored
      Merge branch 'drm-rockchip-next-fixes-2016-07-19' of https://github.com/markyzq/kernel-drm-rockchip into drm-next
      
      Here are some little fixes for rockchip drm, looks good for me, and there is no doubt on them, So I'd like you can land them.
      
      * 'drm-rockchip-next-fixes-2016-07-19' of https://github.com/markyzq/kernel-drm-rockchip:
        drm/rockchip: allocate correct crtc state structure on reset
        drm/rockchip: Delete an unnecessary check before drm_gem_object_unreference_unlocked()
        drm/rockchip: fix a couple off by one bugs
        drm/rockchip: vop: correct rk3036 register define
        drm/rockchip: vop: correct the source size of uv scale factor setting
        drm/rockchip: vop: add uv_vir register field for RK3036 VOP
        drm/rockchip: fix "should it be static?" warnings
        drm/rockchip: fb: add missing header
        drm/rockchip: dw_hdmi: remove unused #include
      c8c21231
  3. 19 Jul, 2016 10 commits
  4. 18 Jul, 2016 2 commits
    • Dave Airlie's avatar
      Merge branch 'msm-next' of git://people.freedesktop.org/~robclark/linux into drm-next · d315495d
      Dave Airlie authored
      This time, a bunch of cleanups and refactoring work so that we can get
      dt bindings upstream.  In general, we keep compatibility with existing
      downstream bindings as much as possible, to make backports to device
      kernels easier, but now we have cleaner upstream bindings so that we
      can start landing gpu/display support in upstream dts files.
      
      Plus shrinker and madvise support, which has been on my todo list for
      a long time.  And support for arbitrary # of cmd bufs in submit ioctl
      (I've got libdrm+mesa userspace for this on branches) to enable some
      of the mesa batch/reorder stuff I'm working on.  Userspace decides
      whether this is supported based on advertised driver version.  For the
      interesting userspace bits, see:
      
        https://github.com/freedreno/libdrm/commit/1baf03ac6e77049d9c8be1e3d5164283ce82c9db
      
      Plus support for ASoC hdmi audio codec, and few other random other
      cleanups.
      
      * 'msm-next' of git://people.freedesktop.org/~robclark/linux: (52 commits)
        drm/msm: Delete an unnecessary check before drm_gem_object_unreference()
        drm/msm: Delete unnecessary checks before drm_gem_object_unreference_unlocked()
        drm/msm/hdmi: Delete an unnecessary check before the function call "kfree"
        drm/msm: return -EFAULT instead of bytes remaining
        drm/msm/hdmi: use PTR_ERR_OR_ZERO() to simplify the code
        drm/msm: add missing of_node_put after calling of_parse_phandle
        drm/msm: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()
        drm/msm/dsi: Fix return value check in msm_dsi_host_set_display_mode()
        drm: msm: Add ASoC generic hdmi audio codec support.
        drm/msm/rd: add module param to dump all bo's
        drm/msm/rd: split out snapshot_buf helper
        drm/msm: bump kernel api version
        drm/msm: deal with arbitrary # of cmd buffers
        drm/msm: wire up vmap shrinker
        drm/msm: change gem->vmap() to get/put
        drm/msm: shrinker support
        drm/msm: add put_iova() helper
        drm/msm: add madvise ioctl
        drm/msm: use mutex_lock_interruptible for submit ioctl
        dt-bindings: msm/mdp: Provide details on MDP interface ports
        ...
      d315495d
    • Archit Taneja's avatar
      drm: rcar-du: Remove i2c slave encoder interface for hdmi encoder · 1d926114
      Archit Taneja authored
      The hdmi output in rcar-du uses the i2c slave encoder interface to link
      to the adv7511 encoder chip. The kms driver creates encoder and connector
      entities that internally uses the drm_encoder_slave_funcs ops provided by
      the slave encoder driver.
      
      Change the driver such that it expects a bridge entity instead of a slave
      encoder. The hdmi connector code isn't needed anymore as we expect the
      adv7511 bridge driver to create/manage the connector.
      
      Note that the kms driver still expects a connector node for hdmi to be
      present in DT. This node has no connection to the connector created
      by the bridge driver.
      Tested-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
      1d926114
  5. 17 Jul, 2016 2 commits
  6. 16 Jul, 2016 22 commits