1. 29 10月, 2018 1 次提交
  2. 24 10月, 2018 3 次提交
  3. 18 10月, 2018 1 次提交
  4. 17 10月, 2018 3 次提交
  5. 16 10月, 2018 1 次提交
  6. 15 10月, 2018 7 次提交
    • S
      drm/i915: Add YCBCR 4:2:0/4:4:4 support for LSPCON · 668b6c17
      Shashank Sharma 提交于
      LSPCON chips can generate YCBCR outputs, if asked nicely :).
      
      In order to generate YCBCR 4:2:0 outputs, a source must:
      - send YCBCR 4:4:4 signals to LSPCON
      - program color space as 4:2:0 in AVI infoframes
      
      Whereas for YCBCR 4:4:4 outputs, the source must:
      - send YCBCR 4:4:4 signals to LSPCON
      - program color space as 4:4:4 in AVI infoframes
      
      So for both 4:2:0 as well as 4:4:4 outputs, we are driving the
      pipe for YCBCR 4:4:4 output, but AVI infoframe's color space
      information indicates LSPCON FW to start scaling down from YCBCR
      4:4:4 and generate YCBCR 4:2:0 output. As the scaling is done by
      LSPCON device, we need not to reserve a scaler for 4:2:0 outputs.
      
      V2: rebase
      V3: Addressed review comments from Ville
          - add enum crtc_output_format instead of bool ycbcr420
          - use crtc_output_format=4:4:4 for modeset of LSPCON 4:2:0 output
            cases in this way we will have YCBCR 4:4:4 framework ready (except
            the ABI part)
      V4: Added r-b from Maarten (for v3)
          Addressed review comments from Ville:
          - Do not add a non-atomic state variable to determine lspcon output.
            Instead add bool in CRTC state to indicate lspcon based scaling.
      V5: Addressed review comments from Ville:
          - Change the state bool name from external scaling to something more
            relavent.
          - Keep the info and adjusted_mode structures const.
          - use crtc_state instead of pipe_config.
          - Push all the config change into lspcon_ycbcr420_config function.
      V6: Rebase, small changes to accommodate changes in patch 2.
      V7: Fixed checkpatch warnings for alignment
      V8: Rebase
      
          PS: Ignored following warnings to match the current formatting:
          drm/i915: Add YCBCR 4:2:0/4:4:4 support for LSPCON
           -:53: CHECK:SPACING: spaces preferred around that '<<' (ctx:VxV)
          #53: FILE: drivers/gpu/drm/i915/i915_reg.h:8721:
          +#define  TRANS_MSA_SAMPLING_444        (2<<1)
                                                ^
          -:54: CHECK:SPACING: spaces preferred around that '<<' (ctx:VxV)
          #54: FILE: drivers/gpu/drm/i915/i915_reg.h:8722:
          +#define  TRANS_MSA_CLRSP_YCBCR         (2<<3)
      V9: Rebase
      V10: Rebase
      V11: Rebase
      
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1539325394-20788-8-git-send-email-shashank.sharma@intel.com
      668b6c17
    • S
      drm/i915: Write AVI infoframes for MCA LSPCON · 7cbf19fd
      Shashank Sharma 提交于
      LSPCON is a DP branch device, so LSPCON vendors define
      specific methods to pass AVI infoframes to the the chip.
      This patch adds:
      - a generic wrapper function for writing AVI infoframes for
        all LSPCON devices.
      - a vendor specific function to wrire AVI infoframes into
        MCA LSPCON devices.
      
      V2: Rebase
      V3: Added r-b from Maarten
      V4: Rebase
      V5: Rebase
      V6: Rebase
      V7: Fixed checkpatch warnings for alignment
      V8: Rebase
      V9: Added the retry logic, with 50ms incremental delays while
          writing AVI IF
      V10: Changed the return value check
      V11: Fixed checkpatch warning
      V12: Rebase
      
      Cc: Imre Deak <imre.deak@intel.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1539325394-20788-6-git-send-email-shashank.sharma@intel.com
      7cbf19fd
    • S
      drm/i915: Add AVI infoframe support for LSPCON · 06c812d7
      Shashank Sharma 提交于
      In order to pass AVI infoframes to LSPCON devices, a source has to
      write them in a vendor recommended method and location.
      
      This patch series:
      - adds generic LSPCON infoframe setup functions.
      - registers these functions into existing AVI infoframe framework.
      - triggers these functions from modeset sequence.
      
      Next patches in the series will add vendor specific code.
      
      V2: Added new parameter to align with new definition of
          drm_hdmi_avi_infoframe_quant_range
      V3: Added r-b from Maarten (for V2)
          Added new parameter output_format in struct lspcon to accommodate
          Ville's review comments on last patch of the series
      V4: Addressed Ville's review comment
          - Do not add output_format in LSPCON state, as its non-atomic. Add
            this into CRTC state (added in a later patch).
      V5: Rebase
      V6: Rebase
      V7: Rebase
      V8: Rebase
      V9: Rebase
      V10: Rebase
      V11: Accommodated rebasing changes in intel_git_port fptrs (set_infoframes and infoframe_enabled)
      
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Cc: Imre Deak <imre.deak@linux.intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1539325394-20788-5-git-send-email-shashank.sharma@intel.com
      06c812d7
    • S
      drm/i915: Check LSPCON vendor OUI · 96e35598
      Shashank Sharma 提交于
      Intel LSPCON chip is provided by 2 vendors:
      - Megachips America (MCA)
      - Parade technologies (Parade tech)
      
      Its important to know the vendor of this chip, as the address to
      write AVI infoframes is different for those two.
      
      This patch reads the vendor OUI signature, and marks into LSPCON
      encoder structure for future usages.
      
      This patch also does a small re-arrangement of the code, by moving
      lspcon mode change into probe function.
      
      V2: Use dp->desc for OUI detection, dont add a helper for this
          (Ville)
      V3: Rebase, Added r-b from Maarten
      V4: Rebase
      V5: Rebase
      V6: Rebase
      V7: Rebase
      V8: Rebase
      V9: Rebase
      V10: Rebase
      
      Cc: Imre Deak <imre.deak@intel.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: NLankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1539325394-20788-4-git-send-email-shashank.sharma@intel.com
      96e35598
    • S
      drm/i915: Add CRTC output format YCBCR 4:4:4 · 8c79f844
      Shashank Sharma 提交于
      This patch adds support for YCBCR 4:4:4 CRTC output format.
      To do this, this patch extends the existing YCBCR 4:2:0
      framework by:
      - Adding new parameter in for YCBCR 4:4:4 enum crtc_iutput_format.
      - Adding case for YCBCR 4:4:4 in while setting AVI infoframes.
      - Adding necessary checks in modeset sequence.
      
      V3: Added this patch in the series
      V4: Added r-b from Maarten (for v3)
          Addressed review comment from Ville:
          Do not use (config->output_format > CRTC_OUTPUT_RGB)
      V5: Rebase
      V6: Rebase and small change, to accommodate changes in patch 2
      V7: Fixed checkpatch alignment warnings
      V8: Rebase
      V9: Rebase
      V10: Rebase
      V11: Addressed review comment from Ville
           Missing output_format_str[INTEL_OUTPUT_FORMAT_YCBCR444]
           Added Ville's R-B.
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1539325394-20788-3-git-send-email-shashank.sharma@intel.com
      8c79f844
    • S
      drm/i915: Add CRTC output format YCBCR 4:2:0 · 33b7f3ee
      Shashank Sharma 提交于
      Currently, we are using a bool in CRTC state (state->ycbcr420),
      to indicate modeset, that the output format is YCBCR 4:2:0. Now in
      order to support other YCBCR formats, we will need more such flags.
      
      This patch adds a new enum parameter for YCBCR 4:2:0 outputs, in the
      CRTC output formats and then plugs it during the modeset.
      
      V3: Added this patch in the series, to address review comments from
          second patchset.
      V4: Added r-b from Maarten (on v3)
          Addressed review comments from Ville:
              - Change the enum name to intel_output_format.
              - Start the enum value (INVALID) from 0 instaed of 1.
              - Set the crtc's output_format to RGB in encoder's compute_config.
      V5: Broke previous patch 1 into two parts,
          - first patch to add CRTC output format in general
          - second patch (this one) to add YCBCR 4:2:0 output
            format specifically.
          - Use ARRAY_SIZE(format_str) for output format validity check (Ville)
      V6: Added a separate function to calculate crtc_state->output_format, and
          calling it from various get_config function (Fix CI build warning)
      V7: Fixed checkpatch warnings for alignment
      V8: Rebase
      V9: Rebase
      V10: Rebase
      V11: Addressed review comments from Ville:
      	- Change check for CRTC output format from > ARRAY_SIZE to >= ARRAY_SIZE.
      	- Check for values < INTEL_OUTPUT_FORMAT_RGB is unnecessary.
      	- No need to get CRTC YCBCR config, for pre-BDW functions.
          Added Ville's r-b.
      
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Reviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1539325394-20788-2-git-send-email-shashank.sharma@intel.com
      33b7f3ee
    • S
      drm/i915: Introduce CRTC output format · d9facae6
      Shashank Sharma 提交于
      This patch adds an enum "intel_output_format" to represent
      the output format of a particular CRTC. This enum will be
      used to produce a RGB/YCBCR4:4:4/YCBCR4:2:0 output format
      during the atomic modeset calculations.
      
      V5:
      - Created this separate patch to introduce and init output_format.
      - Initialize parameters of output_format_str respectively (Jani N).
      - Call it intel_output_format than crtc_output_format(Ville).
      - Set output format in pipe_config for every encoder (Ville).
      - Get rid of extra DRM_DEBUG_KMS during get_pipe_config (Ville)
      
      V6: Rebase
      V7: Fixed alignment warnings (checkpatch)
      V8: Another check[atch warning for alignment
      V9: Rebase
      V10: Rebase on top of DSI restructure
      V11: Addressed review comment from Ville
      	- Set CRTC format for pre-HSW get_pipe_config() function too.
           Added Ville's R-B
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1539325394-20788-1-git-send-email-shashank.sharma@intel.com
      d9facae6
  7. 10 10月, 2018 3 次提交
  8. 09 10月, 2018 1 次提交
  9. 08 10月, 2018 2 次提交
  10. 02 10月, 2018 1 次提交
  11. 28 9月, 2018 1 次提交
  12. 27 9月, 2018 1 次提交
  13. 26 9月, 2018 1 次提交
  14. 22 9月, 2018 1 次提交
  15. 12 9月, 2018 10 次提交
  16. 29 8月, 2018 1 次提交
  17. 28 8月, 2018 1 次提交
  18. 23 8月, 2018 1 次提交