1. 24 Aug, 2018 2 commits
    • Paulo Zanoni's avatar
      drm/i915: WARN() if we can't lookup_power_well() · 99da0b35
      Paulo Zanoni authored
      None of the current lookup_power_well() callers are actually checking
      for NULL return values, they all just use the pointer right away.  The
      first idea was to replace these theoretical segfaults with a BUG()
      since this would at least make our code a little more explicit to the
      reader. It was suggested that just converting the BUG() to a WARN()
      and returning any power well would probably be better since it would
      still keep the system running while at the same time exposing the
      driver bug.
      
      We can only hit this NULL/BUG()/WARN() condition if we try to lookup a
      power well that isn't defined on a given platform. If that ever
      happens, we have to fix our code, making it lookup the correct power
      well. Because of this, I don't think it's worth trying to implement
      error checking in every caller. Improving our CI system will be a
      better use of our time once a bug is found in the wild.
      
      v2: Avoid the BUG() with a WARN() return a random PW (Michal).
      
      Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
      Cc: Imre Deak <imre.deak@intel.com>
      Reviewed-by: default avatarImre Deak <imre.deak@intel.com>
      Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180820233139.11936-2-paulo.r.zanoni@intel.com
      99da0b35
    • Paulo Zanoni's avatar
      drm/i915/icl: implement the tc/legacy HPD {dis,}connect flows · 39d1e234
      Paulo Zanoni authored
      Unlike the other ports, TC ports are not available to use as soon as
      we get a hotplug. The TC PHYs can be shared between multiple
      controllers: display, USB, etc. As a result, handshaking through FIA
      is required around connect and disconnect to cleanly transfer
      ownership with the controller and set the type-C power state.
      
      This patch implements the flow sequences described by our
      specification. We opt to grab ownership of the ports as soon as we get
      the hotplugs in order to simplify the interactions and avoid surprises
      in the user space side. We may consider changing this in the future,
      once we improve our testing capabilities on this area.
      
      v2:
       * This unifies the DP and HDMI patches so we can discuss everything
         at once so people looking at random single patches can actually
         understand the direction.
       * I found out the spec was updated a while ago. There's a small
         difference in the connect flow and the patch was updated for that.
       * Our spec also now gives a good explanation on what is really
         happening. As a result, comments were added.
       * Add some more comments as requested by Rodrigo (Rodrigo).
      v3:
       * Downgrade a DRM_ERROR that shouldn't ever happen but we can't act
         on in case it does (Chris).
      
      BSpec: 21750, 4250.
      Cc: Animesh Manna <animesh.manna@intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180801173441.9789-1-paulo.r.zanoni@intel.com
      39d1e234
  2. 23 Aug, 2018 2 commits
  3. 22 Aug, 2018 7 commits
  4. 21 Aug, 2018 1 commit
  5. 20 Aug, 2018 5 commits
  6. 17 Aug, 2018 1 commit
  7. 16 Aug, 2018 7 commits
  8. 15 Aug, 2018 4 commits
  9. 14 Aug, 2018 3 commits
  10. 13 Aug, 2018 5 commits
  11. 10 Aug, 2018 3 commits