1. 22 5月, 2018 4 次提交
  2. 20 5月, 2018 1 次提交
  3. 18 5月, 2018 22 次提交
  4. 17 5月, 2018 4 次提交
    • S
      i915: content-type property for HDMI connector · 6553b123
      Stanislav Lisovskiy 提交于
      Added encoding of drm content_type property from drm_connector_state
      within AVI infoframe in order to properly handle external HDMI TV
      content-type setting.
      
      This requires also manipulationg ITC bit, as stated in
      HDMI spec.
      
      v2:
       * Moved helper function which attaches content type property
         to the drm core, as was suggested.
         Removed redundant connector state initialization.
      
      v3:
       * Removed caps in drm_content_type_enum_list.
         After some discussion it turned out that HDMI Spec 1.4
         was wrongly assuming that IT Content(itc) bit doesn't affect
         Content type states, however itc bit needs to be manupulated
         as well. In order to not expose additional property for itc,
         for sake of simplicity it was decided to bind those together
         in same "content type" property.
      
      v4:
       * Added it_content checking in intel_digital_connector_atomic_check.
         Fixed documentation for new content type enum.
      
      v5:
       * Moved patch revision's description to commit messages.
      
      v6:
       * Minor naming fix for the content type enumeration string.
      
      v7:
       * Fix parameter name for documentation and parameter alignment
         in order not to get warning. Added Content Type description to
         new HDMI connector properties section.
      
      v8:
       * Thrown away unneeded numbers from HDMI content-type property
         description. Switch to strings desription instead of plain
         definitions.
      
      v9:
       * Moved away hdmi specific content-type enum from
         drm_connector_state. Content type property should probably not
         be bound to any specific connector interface in
         drm_connector_state.
         Same probably should be done to hdmi_picture_aspect_ration enum
         which is also contained in drm_connector_state. Added special
         helper function to get derive hdmi specific relevant infoframe
         fields.
      
      v10:
       * Added usage description to HDMI properties kernel doc.
      
      v11:
       * Created centralized function for filling HDMI AVI infoframe, based
         on correspondent DRM property value.
      Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180515135928.31092-3-stanislav.lisovskiy@intel.com
      [vsyrjala: clean up checkpatch multiple blank lines warnings]
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      6553b123
    • S
      drm: content-type property for HDMI connector · 50525c33
      Stanislav Lisovskiy 提交于
      Added content_type property to drm_connector_state
      in order to properly handle external HDMI TV content-type setting.
      
      v2:
       * Moved helper function which attaches content type property
         to the drm core, as was suggested.
         Removed redundant connector state initialization.
      
      v3:
       * Removed caps in drm_content_type_enum_list.
         After some discussion it turned out that HDMI Spec 1.4
         was wrongly assuming that IT Content(itc) bit doesn't affect
         Content type states, however itc bit needs to be manupulated
         as well. In order to not expose additional property for itc,
         for sake of simplicity it was decided to bind those together
         in same "content type" property.
      
      v4:
       * Added it_content checking in intel_digital_connector_atomic_check.
         Fixed documentation for new content type enum.
      
      v5:
       * Moved patch revision's description to commit messages.
      
      v6:
       * Minor naming fix for the content type enumeration string.
      
      v7:
       * Fix parameter name for documentation and parameter alignment
         in order not to get warning. Added Content Type description to
         new HDMI connector properties section.
      
      v8:
       * Thrown away unneeded numbers from HDMI content-type property
         description. Switch to strings desription instead of plain
         definitions.
      
      v9:
       * Moved away hdmi specific content-type enum from
         drm_connector_state. Content type property should probably not
         be bound to any specific connector interface in
         drm_connector_state.
         Same probably should be done to hdmi_picture_aspect_ration enum
         which is also contained in drm_connector_state. Added special
         helper function to get derive hdmi specific relevant infoframe
         fields.
      
      v10:
       * Added usage description to HDMI properties kernel doc.
      
      v11:
       * Created centralized function for filling HDMI AVI infoframe, based
         on correspondent DRM property value.
      Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180515135928.31092-2-stanislav.lisovskiy@intel.com
      [vsyrjala: clean up checkpatch multiple blank lines warnings]
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      50525c33
    • P
      5d435b46
    • M
      drm/vc4: plane: Expand the lower bits by repeating the higher bits · 3257ec79
      Maxime Ripard 提交于
      The vc4 HVS uses an internal RGB888 representation of the frames, and will
      by default expand formats using a lower depth using zeros.
      
      This causes an issue when we try to use other compositing software such as
      pixman that fill the missing bits by repeating the higher significant bits.
      As such, we can't check the display output in a reliable way by doing a
      software composition and an hardware one and compare both.
      
      To prevent this, force the same behaviour so that we can do such things.
      Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180517133759.25626-1-maxime.ripard@bootlin.com
      3257ec79
  5. 15 5月, 2018 2 次提交
  6. 14 5月, 2018 3 次提交
  7. 12 5月, 2018 1 次提交
  8. 11 5月, 2018 3 次提交
    • S
      drm: Add and handle new aspect ratios in DRM layer · 900aa8ad
      Shashank Sharma 提交于
      HDMI 2.0/CEA-861-F introduces two new aspect ratios:
      - 64:27
      - 256:135
      
      This patch:
      -  Adds new DRM flags for to represent these new aspect ratios.
      -  Adds new cases to handle these aspect ratios while converting
      from user->kernel mode or vise versa.
      
      This patch was once reviewed and merged, and later reverted due
      to lack of DRM client protection, while adding aspect ratio bits
      in user modes. This is a re-spin of the series, with DRM client
      cap protection.
      
      The previous series can be found here:
      https://pw-emeril.freedesktop.org/series/10850/Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Reviewed-by: Sean Paul <seanpaul@chromium.org> (V2)
      Reviewed-by: Jose Abreu <Jose.Abreu@synopsys.com> (V2)
      
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: Jose Abreu <Jose.Abreu@synopsys.com>
      Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
      
      V3: rebase
      V4: rebase
      V5: corrected the macro name for an aspect ratio, in a switch case.
      V6: rebase
      V7: rebase
      V8: rebase
      V9: rebase
      V10: rebase
      V11: rebase
      V12: rebase
      V13: rebase
      V14: rebase
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1525777785-9740-11-git-send-email-ankit.k.nautiyal@intel.com
      900aa8ad
    • S
      drm: Add aspect ratio parsing in DRM layer · 222ec161
      Shashank Sharma 提交于
      Current DRM layer functions don't parse aspect ratio information
      while converting a user mode->kernel mode or vice versa. This
      causes modeset to pick mode with wrong aspect ratio, eventually
      causing failures in HDMI compliance test cases, due to wrong VIC.
      
      This patch adds aspect ratio information in DRM's mode conversion
      and mode comparision functions, to make sure kernel picks mode
      with right aspect ratio (as per the VIC).
      
      Background:
      This patch was once reviewed and merged, and later reverted due to
      lack of DRM cap protection. This is a re-spin of this patch, this
      time with DRM cap protection, to avoid aspect ratio information, when
      the client doesn't request for it.
      
      Review link: https://pw-emeril.freedesktop.org/patch/104068/
      Background discussion: https://patchwork.kernel.org/patch/9379057/Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NLin, Jia <lin.a.jia@intel.com>
      Signed-off-by: NAkashdeep Sharma <akashdeep.sharma@intel.com>
      Reviewed-by: Jim Bride <jim.bride@linux.intel.com> (V2)
      Reviewed-by: Jose Abreu <Jose.Abreu@synopsys.com> (V4)
      
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Cc: Jim Bride <jim.bride@linux.intel.com>
      Cc: Jose Abreu <Jose.Abreu@synopsys.com>
      Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
      
      V3: modified the aspect-ratio check in drm_mode_equal as per new flags
          provided by Ville. https://patchwork.freedesktop.org/patch/188043/
      V4: rebase
      V5: rebase
      V6: As recommended by Ville, avoided matching of aspect-ratio in
          drm_fb_helper, while trying to find a common mode among connectors
          for the target clone mode.
      V7: rebase
      V8: rebase
      V9: rebase
      V10: rebase
      V11: rebase
      V12: rebase
      V13: rebase
      V14: rebase
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1525777785-9740-10-git-send-email-ankit.k.nautiyal@intel.com
      222ec161
    • A
      drm: Expose modes with aspect ratio, only if requested · c3ff0cdb
      Ankit Nautiyal 提交于
      We parse the EDID and add all the modes in the connector's modelist.
      This adds CEA modes with aspect ratio information too, regardless of
      whether user space requested this information or not.
      
      This patch:
      -prunes the modes with aspect-ratio information, from the
       drm_mode_get_connector modelist supplied to the user, if the
       user-space has not set the aspect ratio DRM client cap. However if
       such a mode is unique in the list, it is kept in the list, with
       aspect-ratio flags reset.
      -prepares a list of exposed modes, which is used to find unique modes
       if aspect-ratio is not allowed.
      -adds a new list_head 'exposed_head' in drm_mode_display, to traverse
       the list of exposed modes.
      
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Cc: Shashank Sharma <shashank.sharma@intel.com>
      Cc: Jose Abreu <jose.abreu@synopsys.com>
      Signed-off-by: NAnkit Nautiyal <ankit.k.nautiyal@intel.com>
      
      V3: As suggested by Ville, modified the mechanism of pruning of modes
          with aspect-ratio, if the aspect-ratio is not supported. Instead
          of straight away pruning such a mode, the mode is retained with
          aspect ratio bits set to zero, provided it is unique.
      V4: rebase
      V5: Addressed review comments from Ville:
          -used a pointer to store last valid mode.
          -avoided, modifying of picture_aspect_ratio in kernel mode,
           instead only flags bits of user mode are reset (if aspect-ratio
           is not supported).
      V6: As suggested by Ville, corrected the mode pruning logic and
          elaborated the mode pruning logic and the assumptions taken.
      V7: rebase
      V8: rebase
      V9: rebase
      V10: rebase
      V11: Fixed the issue caused in kms_3d test, and enhanced the pruning
           logic to correctly identify and prune modes with aspect-ratio,
           if aspect-ratio cap is not set.
      V12: As suggested by Ville, added another list_head in
           drm_mode_display to traverse the list of exposed modes and
           avoided duplication of modes.
      V13: Minor modifications, as suggested by Ville.
      v14: As suggested by Daniel Vetter and Ville Syrjala, corrected the
           pruning logic to avoid any dependency in the order of mode with
           aspect-ratio.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1525777785-9740-9-git-send-email-ankit.k.nautiyal@intel.com
      c3ff0cdb