1. 17 Jan, 2016 1 commit
    • Dave Airlie's avatar
      Merge tag 'topic/drm-misc-2016-01-17' of git://anongit.freedesktop.org/drm-intel into drm-next · 28f03607
      Dave Airlie authored
      Since your main drm-next pull isn't out of the door yet I figured I might
      as well flush out drm-misc instead of delaying for 4.6. It's really just
      random stuff all over, biggest thing probably connector_mask tracking from
      Maarten.
      
      * tag 'topic/drm-misc-2016-01-17' of git://anongit.freedesktop.org/drm-intel: (24 commits)
        drm/fb_cma_helper: Remove implicit call to disable_unused_functions
        drm/sysfs: use kobj_to_dev()
        drm/i915: Init power domains early in driver load
        drm: Do not set connector->encoder in drivers
        apple-gmux: Add initial documentation
        drm: move MODULE_PARM_DESC to other file
        drm/edid: index CEA/HDMI mode tables using the VIC
        drm/atomic: Remove drm_atomic_connectors_for_crtc.
        drm/i915: Update connector_mask during readout, v2.
        drm: Remove opencoded drm_gem_object_release_handle()
        drm: Do not set outparam on error during GEM handle allocation
        drm/docs: more leftovers from the big vtable documentation pile
        drm/atomic-helper: Reject legacy flips on a disabled pipe
        drm/atomic: add connector mask to drm_crtc_state.
        drm/tegra: Use __drm_atomic_helper_reset_connector for subclassing connector state, v2.
        drm/atomic: Add __drm_atomic_helper_connector_reset, v2.
        drm/i915: Set connector_state->connector using the helper.
        drm: Use a normal idr allocation for the obj->name
        drm: Only bump object-reference count when adding first handle
        drm: Balance error path for GEM handle allocation
        ...
      28f03607
  2. 15 Jan, 2016 1 commit
  3. 13 Jan, 2016 25 commits
  4. 12 Jan, 2016 11 commits
  5. 11 Jan, 2016 2 commits
    • Stephen Rothwell's avatar
      drm/amdgpu/powerplay: include asm/div64.h for do_div() · 8a0d560f
      Stephen Rothwell authored
      Fixes: 1e4854e9 ("drm/amdgpu/powerplay: implement thermal control for tonga.")
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      8a0d560f
    • Lukas Wunner's avatar
      apple-gmux: Add initial documentation · 3d7b75fd
      Lukas Wunner authored
      Document what I've learned so far about the gmux so that we can
      collaboratively reverse-engineer its remaining unknown bits
      without everyone having to start from scratch.
      
      The DOC sections are bound together in the gpu.tmpl DocBook
      under a new vga_switcheroo "Handlers" chapter. Eventually
      this should be amended with documentation about the four other
      handlers that exist so far (nouveau v1 DSM, nouveau Optimus DSM,
      radeon ATPX, amdgpu ATPX).
      
      Requires kernel-doc with asciidoc support.
      
      The EFI variable was reverse-engineered by Bruno Bierbaumer
      <bruno@bierbaumer.net> and Andreas Heider <andreas@meetr.de>.
      
      Some of the remaining open questions:
      
      * How are vblank intervals synchronized on retinas to achieve seamless
        switching? Is the DP mux capable of this? It's not mentioned in the
        data sheets. Or is it done at the OS level, i.e. do we have to
        synchronize vblank intervals between DRM drivers? There's a signal
        coming from the panel connector and going into gmux, could this be
        the vblank signal as received by the panel to properly time the
        switch?
      
      * On retinas there's an I2C bus between gmux and the connector of the
        right I/O board, apparently leading to the Parade PS8401A HDMI
        repeater. What is this for, is it controlled via gmux registers?
        Data sheet:
        http://www.paradetech.com/products/jitter-cleaning-repeaters/ps8401/
      
      * On retinas there's an I2C bus between gmux and the LED driver.
        Pre-retinas connected the LED driver to SMBUS. Are there additional
        gmux registers on retinas to control it?
      
      * The MacPro6,1 2013 also has a gmux, the same Renesas R4F2113 as the
        retina MacBook Pro. The Mac Pro doesn't have a built-in display,
        so what is its purpose? Power control of the dual FirePro GPUs?
        Switching of the external DP/Thunderbolt ports? The iFixit teardown
        clearly shows one TI HD3SS212 DisplayPort mux on the logic board next
        to one of the three Thunderbolt controllers. However six muxes would
        be necessary to switch all six ports between GPUs. The mux is probably
        necessary for one of the display configurations allowed by Apple,
        but which one?
        https://www.ifixit.com/Teardown/Mac+Pro+Late+2013+Teardown/20778
        https://d3nevzfk7ii3be.cloudfront.net/igi/fELBTnt31QhnDsqq.huge
        https://support.apple.com/en-us/HT202801
      
      * Registers we haven't decoded yet:
        0x700 32 Bit configmap?
        0x708 32 Bit power sequence?
        0x712  8 Bit status of clock from panel on retinas?
        0x713  8 Bit dito?
        0x724 16 Bit backlight, raw value?
        0x760 32 Bit backlight
        0x764 32 Bit backlight
        0x768  8 Bit backlight
        0x76a 16 Bit backlight
        0x76c 16 Bit backlight
        0x76e 16 Bit backlight
        0x77f        edp/dp/hdmi probe? retina only.
      
      * Addition by Bruno Prémont <bonbons@linux-vserver.org>:
        "Missing is also precise knowledge as to what the gmux depends on.
        From behavioral reports, it is somehow sensitive to VGA IO/MEM
        routing (it apparently needs the routing to go to integrated GPU,
        not discrete GPU).
        When the routing is inappropriate backlight control IO just reads back
        as 0xFF (and eventually gmux IO in general does so)."
      Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
      Acked-by: default avatarDarren Hart <dvhart@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/da309e436fbeac886477d80376457b7d83ea4b2d.1452431795.git.lukas@wunner.deSigned-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      3d7b75fd