mbox series

[v7,00/15] Add support for DP-HDMI2.1 PCON

Message ID 20201218103723.30844-1-ankit.k.nautiyal@intel.com (mailing list archive)
Headers show
Series Add support for DP-HDMI2.1 PCON | expand

Message

Nautiyal, Ankit K Dec. 18, 2020, 10:37 a.m. UTC
This patch series attempts to add support for a DP-HDMI2.1 Protocol
Convertor. The VESA spec for the HDMI2.1 PCON are proposed in Errata
E5 to DisplayPort_v2.0:
https://vesa.org/join-vesamemberships/member-downloads/?action=stamp&fileid=42299
The details are mentioned in:
VESA DP-to-HDMI PCON Specification Standalone Document
https://groups.vesa.org/wg/DP/document/15651

This series starts with adding support for FRL (Fixed Rate Link)
Training between the PCON and HDMI2.1 sink.
As per HDMI2.1 specification, a new data-channel or lane is added in
FRL mode, by repurposing the TMDS clock Channel. Through FRL, higher
bit-rate can be supported, ie. up to 12 Gbps/lane (48 Gbps over 4
lanes).

With these patches, the HDMI2.1 PCON can be configured to achieve FRL
training based on the maximum FRL rate supported by the panel, source
and the PCON.
The approach is to add the support for FRL training between PCON and
HDMI2.1 sink and gradually add other blocks for supporting higher
resolutions and other HDMI2.1 features, that can be supported by pcon
for the sources that do not natively support HDMI2.1.

This is done before the DP Link training between the source and PCON
is started. In case of FRL training is not achieved, the PCON will
work in the regular TMDS mode, without HDMI2.1 feature support.
Any interruption in FRL training between the PCON and HDMI2.1 sink is
notified through IRQ_HPD. On receiving the IRQ_HPD the concerned DPCD
registers are read and FRL training is re-attempted.

Currently, we have tested the FRL training and are able to enable 4K
display with TGL Platform + Realtek PCON RTD2173 with HDMI2.1 supporting
panel.

v2: Addressed review comments and re-organized patches as suggested in
comments on RFC patches.

v3: Addressed review comments on previous version.

v4: Added support for RGB->YCBCR conversion through PCON

v5: Addressed review comments on previous version.

v6: Fix typo in one of the patch.

v7: Rebased on latest drm-tip and addressed the review comments.

Ankit Nautiyal (11):
  drm/edid: Parse DSC1.2 cap fields from HFVSDB block
  drm/dp_helper: Add Helpers for FRL Link Training support for
    DP-HDMI2.1 PCON
  drm/dp_helper: Add support for Configuring DSC for HDMI2.1 Pcon
  drm/dp_helper: Add helpers to configure PCONs RGB-YCbCr Conversion
  drm/i915: Capture max frl rate for PCON in dfp cap structure
  drm/i915: Add support for starting FRL training for HDMI2.1 via PCON
  drm/i915: Check for FRL training before DP Link training
  drm/i915: Read DSC capabilities of the HDMI2.1 PCON encoder
  drm/i915: Add helper functions for calculating DSC parameters for
    HDMI2.1
  drm/i915/display: Configure PCON for DSC1.1 to DSC1.2 encoding
  drm/i915/display: Let PCON convert from RGB to YCbCr if it can

Swati Sharma (4):
  drm/edid: Add additional HFVSDB fields for HDMI2.1
  drm/edid: Parse MAX_FRL field from HFVSDB block
  drm/dp_helper: Add support for link failure detection
  drm/i915: Add support for enabling link status and recovery

 drivers/gpu/drm/drm_dp_helper.c               | 566 ++++++++++++++++++
 drivers/gpu/drm/drm_edid.c                    | 103 ++++
 drivers/gpu/drm/i915/display/intel_ddi.c      |   6 +-
 .../drm/i915/display/intel_display_types.h    |  10 +
 drivers/gpu/drm/i915/display/intel_dp.c       | 442 +++++++++++++-
 drivers/gpu/drm/i915/display/intel_dp.h       |   7 +-
 drivers/gpu/drm/i915/display/intel_hdmi.c     | 233 +++++++
 drivers/gpu/drm/i915/display/intel_hdmi.h     |   7 +
 include/drm/drm_connector.h                   |  49 ++
 include/drm/drm_dp_helper.h                   | 218 +++++++
 include/drm/drm_edid.h                        |  30 +
 11 files changed, 1652 insertions(+), 19 deletions(-)

Comments

Jani Nikula Dec. 22, 2020, 4:28 p.m. UTC | #1
On Fri, 18 Dec 2020, Ankit Nautiyal <ankit.k.nautiyal@intel.com> wrote:
> This patch series attempts to add support for a DP-HDMI2.1 Protocol
> Convertor. The VESA spec for the HDMI2.1 PCON are proposed in Errata
> E5 to DisplayPort_v2.0:
> https://vesa.org/join-vesamemberships/member-downloads/?action=stamp&fileid=42299
> The details are mentioned in:
> VESA DP-to-HDMI PCON Specification Standalone Document
> https://groups.vesa.org/wg/DP/document/15651

Thanks for the patches and review.

I've pushed the series to a new topic branch topic/dp-hdmi-2.1-pcon as
discussed with Maarten and Daniel a while back. I've used 'git
merge-base drm-misc/drm-misc-next drm-intel/drm-intel-next' as the base
to allow merging to both. I'll send pull requests soon, and wait for the
drm-misc-next merge before merging to i915.

BR,
Jani.



>
> This series starts with adding support for FRL (Fixed Rate Link)
> Training between the PCON and HDMI2.1 sink.
> As per HDMI2.1 specification, a new data-channel or lane is added in
> FRL mode, by repurposing the TMDS clock Channel. Through FRL, higher
> bit-rate can be supported, ie. up to 12 Gbps/lane (48 Gbps over 4
> lanes).
>
> With these patches, the HDMI2.1 PCON can be configured to achieve FRL
> training based on the maximum FRL rate supported by the panel, source
> and the PCON.
> The approach is to add the support for FRL training between PCON and
> HDMI2.1 sink and gradually add other blocks for supporting higher
> resolutions and other HDMI2.1 features, that can be supported by pcon
> for the sources that do not natively support HDMI2.1.
>
> This is done before the DP Link training between the source and PCON
> is started. In case of FRL training is not achieved, the PCON will
> work in the regular TMDS mode, without HDMI2.1 feature support.
> Any interruption in FRL training between the PCON and HDMI2.1 sink is
> notified through IRQ_HPD. On receiving the IRQ_HPD the concerned DPCD
> registers are read and FRL training is re-attempted.
>
> Currently, we have tested the FRL training and are able to enable 4K
> display with TGL Platform + Realtek PCON RTD2173 with HDMI2.1 supporting
> panel.
>
> v2: Addressed review comments and re-organized patches as suggested in
> comments on RFC patches.
>
> v3: Addressed review comments on previous version.
>
> v4: Added support for RGB->YCBCR conversion through PCON
>
> v5: Addressed review comments on previous version.
>
> v6: Fix typo in one of the patch.
>
> v7: Rebased on latest drm-tip and addressed the review comments.
>
> Ankit Nautiyal (11):
>   drm/edid: Parse DSC1.2 cap fields from HFVSDB block
>   drm/dp_helper: Add Helpers for FRL Link Training support for
>     DP-HDMI2.1 PCON
>   drm/dp_helper: Add support for Configuring DSC for HDMI2.1 Pcon
>   drm/dp_helper: Add helpers to configure PCONs RGB-YCbCr Conversion
>   drm/i915: Capture max frl rate for PCON in dfp cap structure
>   drm/i915: Add support for starting FRL training for HDMI2.1 via PCON
>   drm/i915: Check for FRL training before DP Link training
>   drm/i915: Read DSC capabilities of the HDMI2.1 PCON encoder
>   drm/i915: Add helper functions for calculating DSC parameters for
>     HDMI2.1
>   drm/i915/display: Configure PCON for DSC1.1 to DSC1.2 encoding
>   drm/i915/display: Let PCON convert from RGB to YCbCr if it can
>
> Swati Sharma (4):
>   drm/edid: Add additional HFVSDB fields for HDMI2.1
>   drm/edid: Parse MAX_FRL field from HFVSDB block
>   drm/dp_helper: Add support for link failure detection
>   drm/i915: Add support for enabling link status and recovery
>
>  drivers/gpu/drm/drm_dp_helper.c               | 566 ++++++++++++++++++
>  drivers/gpu/drm/drm_edid.c                    | 103 ++++
>  drivers/gpu/drm/i915/display/intel_ddi.c      |   6 +-
>  .../drm/i915/display/intel_display_types.h    |  10 +
>  drivers/gpu/drm/i915/display/intel_dp.c       | 442 +++++++++++++-
>  drivers/gpu/drm/i915/display/intel_dp.h       |   7 +-
>  drivers/gpu/drm/i915/display/intel_hdmi.c     | 233 +++++++
>  drivers/gpu/drm/i915/display/intel_hdmi.h     |   7 +
>  include/drm/drm_connector.h                   |  49 ++
>  include/drm/drm_dp_helper.h                   | 218 +++++++
>  include/drm/drm_edid.h                        |  30 +
>  11 files changed, 1652 insertions(+), 19 deletions(-)
Jani Nikula Dec. 22, 2020, 4:43 p.m. UTC | #2
On Fri, 18 Dec 2020, Patchwork <patchwork@emeril.freedesktop.org> wrote:
> == Series Details ==
>
> Series: Add support for DP-HDMI2.1 PCON (rev9)
> URL   : https://patchwork.freedesktop.org/series/82098/
> State : warning
>
> == Summary ==
>

All -

I've fixed most of the checkpatch warnings (save for LONG_LINE and
BIT_MACRO that we don't care so much about) while applying. It's not
something I normally do, and I really don't want to find these when the
series is at v7 and the same warnings have been there since September
and I keep being pinged about merging.

Keeping the driver nice and clean is your job too, not just mine.

BR,
Jani.


> $ dim checkpatch origin/drm-tip
> 26eb0c2f2ee1 drm/edid: Add additional HFVSDB fields for HDMI2.1
> -:61: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-by: Sharma, Swati2 <swati2.sharma@intel.com>'
>
> total: 0 errors, 1 warnings, 0 checks, 36 lines checked
> 13ffe829d77e drm/edid: Parse MAX_FRL field from HFVSDB block
> -:73: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
> #73: FILE: drivers/gpu/drm/drm_edid.c:4948:
> +		drm_get_max_frl_rate(max_frl_rate, &hdmi->max_lanes,
> +				&hdmi->max_frl_rate_per_lane);
>
> -:95: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-by: Sharma, Swati2 <swati2.sharma@intel.com>'
>
> total: 0 errors, 1 warnings, 1 checks, 68 lines checked
> 89853c019e04 drm/edid: Parse DSC1.2 cap fields from HFVSDB block
> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
> #51: FILE: drivers/gpu/drm/drm_edid.c:4969:
> +			drm_get_max_frl_rate(dsc_max_frl_rate, &hdmi_dsc->max_lanes,
> +					&hdmi_dsc->max_frl_rate_per_lane);
>
> -:52: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
> #52: FILE: drivers/gpu/drm/drm_edid.c:4970:
> +			hdmi_dsc->total_chunk_kbytes = hf_vsdb[13] & DRM_EDID_DSC_TOTAL_CHUNK_KBYTES;
>
> total: 0 errors, 1 warnings, 1 checks, 125 lines checked
> 5120b1727391 drm/dp_helper: Add Helpers for FRL Link Training support for DP-HDMI2.1 PCON
> c68914ce7b67 drm/dp_helper: Add support for link failure detection
> -:112: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
> #112: FILE: include/drm/drm_dp_helper.h:2055:
> +void drm_dp_pcon_hdmi_frl_link_error_count(struct drm_dp_aux *aux,
> +					  struct drm_connector *connector);
>
> total: 0 errors, 0 warnings, 1 checks, 76 lines checked
> 2f4d3c12ee27 drm/dp_helper: Add support for Configuring DSC for HDMI2.1 Pcon
> -:15: WARNING:TYPO_SPELLING: 'Convertor' may be misspelled - perhaps 'Converter'?
> #15: 
> v3: Only setting the DSC bits for the Protocol Convertor control
>
> -:165: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
> #165: FILE: drivers/gpu/drm/drm_dp_helper.c:3037:
> + * */
>
> -:185: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
> #185: FILE: drivers/gpu/drm/drm_dp_helper.c:3057:
> + * */
>
> -:210: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
> #210: FILE: drivers/gpu/drm/drm_dp_helper.c:3082:
> + * */
>
> total: 0 errors, 4 warnings, 0 checks, 343 lines checked
> d1464a87a5a8 drm/dp_helper: Add helpers to configure PCONs RGB-YCbCr Conversion
> -:18: WARNING:TYPO_SPELLING: 'accomodate' may be misspelled - perhaps 'accommodate'?
> #18: 
> -Modified the color-conversion cap helper function, to accomodate
>
> total: 0 errors, 1 warnings, 0 checks, 106 lines checked
> 29e16a799211 drm/i915: Capture max frl rate for PCON in dfp cap structure
> -:13: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
> #13: 
> -tweaked the comparison of target bw and pcon frl bw to avoid roundup errors.
>
> total: 0 errors, 1 warnings, 0 checks, 60 lines checked
> 0f68d7283295 drm/i915: Add support for starting FRL training for HDMI2.1 via PCON
> -:86: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
> #86: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4005:
> +{
> +
>
> -:147: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
> #147: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4066:
> +	wait_for(is_active = drm_dp_pcon_is_frl_ready(&intel_dp->aux) == true, TIMEOUT_FRL_READY_MS);
>
> -:166: WARNING:LONG_LINE: line length of 112 exceeds 100 columns
> #166: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4085:
> +	wait_for(is_active = drm_dp_pcon_hdmi_link_active(&intel_dp->aux) == true, TIMEOUT_HDMI_LINK_ACTIVE_MS);
>
> -:172: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
> +	if (DP_PCON_HDMI_MODE_FRL != drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
>
> -:172: WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
> +	if (DP_PCON_HDMI_MODE_FRL != drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
>
> -:176: WARNING:LONG_LINE: line length of 109 exceeds 100 columns
> #176: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4095:
> +	drm_dbg(&i915->drm, "MAX_FRL_MASK = %u, FRL_TRAINED_MASK = %u\n", max_frl_bw_mask, frl_trained_mask);
>
> total: 0 errors, 5 warnings, 1 checks, 194 lines checked
> 3793f5252161 drm/i915: Check for FRL training before DP Link training
> 126578f6fe39 drm/i915: Add support for enabling link status and recovery
> -:54: WARNING:LONG_LINE: line length of 107 exceeds 100 columns
> #54: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6031:
> +		drm_dp_pcon_hdmi_frl_link_error_count(&intel_dp->aux, &intel_dp->attached_connector->base);
>
> total: 0 errors, 1 warnings, 0 checks, 83 lines checked
> ca5d8df43ceb drm/i915: Read DSC capabilities of the HDMI2.1 PCON encoder
> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
> #51: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4000:
> +	if (drm_dp_dpcd_read(&intel_dp->aux, DP_PCON_DSC_ENCODER,
> +				     intel_dp->pcon_dsc_dpcd,
>
> -:57: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
> #57: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4006:
> +	drm_dbg_kms(&i915->drm, "PCON ENCODER DSC DPCD: %*ph\n",
> +		   (int)sizeof(intel_dp->pcon_dsc_dpcd), intel_dp->pcon_dsc_dpcd);
>
> total: 0 errors, 0 warnings, 2 checks, 39 lines checked
> 35f69a655bad drm/i915: Add helper functions for calculating DSC parameters for HDMI2.1
> -:57: WARNING:TYPO_SPELLING: 'capabilites' may be misspelled - perhaps 'capabilities'?
> #57: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3458:
> + * and dsc decoder capabilites
>
> -:143: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
> #143: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3544:
> +		if (min_slices <= 1 && src_max_slices >= 1 && hdmi_max_slices >= 1)
> +		       target_slices = 1;
>
> -:145: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
> #145: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3546:
> +		else if (min_slices <= 2 && src_max_slices >= 2 && hdmi_max_slices >= 2)
> +		       target_slices = 2;
>
> -:147: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
> #147: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3548:
> +		else if (min_slices <= 4 && src_max_slices >= 4 && hdmi_max_slices >= 4)
> +		       target_slices = 4;
>
> -:149: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
> #149: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3550:
> +		else if (min_slices <= 8 && src_max_slices >= 8 && hdmi_max_slices >= 8)
> +		       target_slices = 8;
>
> -:151: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
> #151: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3552:
> +		else if (min_slices <= 12 && src_max_slices >= 12 && hdmi_max_slices >= 12)
> +		       target_slices = 12;
>
> -:153: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
> #153: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3554:
> +		else if (min_slices <= 16 && src_max_slices >= 16 && hdmi_max_slices >= 16)
> +		       target_slices = 16;
>
> total: 0 errors, 7 warnings, 0 checks, 248 lines checked
> 34ee9dfdadfd drm/i915/display: Configure PCON for DSC1.1 to DSC1.2 encoding
> -:75: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
> #75: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4171:
> +{
> +
>
> -:92: CHECK:LINE_SPACING: Please don't use multiple blank lines
> #92: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4188:
> +
> +
>
> -:155: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
> #155: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4251:
> +	bits_per_pixel = intel_dp_pcon_dsc_enc_bpp(intel_dp, crtc_state,
> +						  num_slices, slice_width);
>
> total: 0 errors, 0 warnings, 3 checks, 157 lines checked
> d739034947bb drm/i915/display: Let PCON convert from RGB to YCbCr if it can
> -:104: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
> #104: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4368:
> +								   DP_DS_HDMI_BT2020_RGB_YCBCR_CONV);
>
> -:156: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
> #156: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6922:
> +	rgb_to_ycbcr = drm_dp_downstream_rgb_to_ycbcr_conversion(intel_dp->dpcd,
> +							intel_dp->downstream_ports,
>
> total: 0 errors, 1 warnings, 1 checks, 152 lines checked
>
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Nautiyal, Ankit K Dec. 23, 2020, 5:56 a.m. UTC | #3
Hi Jani,

I apologize to miss these checkpatch errors. I mistakenly used some 
older version of checkpatch script and couldn't get these.

Nevertheless I should have taken care of the warnings from the 
patchwork. I fully understand that onus is on the submitter of the 
series to fix all such warnings and checks, and I take full 
responsibility of this mistake.

Thank you for fixing these issues this time, and I assure you that I 
will take care in future and make sure that the checkpatch warnings are 
addressed.

Once again I apologize for the fault.

Thanks & Regards,

Ankit


On 12/22/2020 10:13 PM, Jani Nikula wrote:
> On Fri, 18 Dec 2020, Patchwork <patchwork@emeril.freedesktop.org> wrote:
>> == Series Details ==
>>
>> Series: Add support for DP-HDMI2.1 PCON (rev9)
>> URL   : https://patchwork.freedesktop.org/series/82098/
>> State : warning
>>
>> == Summary ==
>>
> All -
>
> I've fixed most of the checkpatch warnings (save for LONG_LINE and
> BIT_MACRO that we don't care so much about) while applying. It's not
> something I normally do, and I really don't want to find these when the
> series is at v7 and the same warnings have been there since September
> and I keep being pinged about merging.
>
> Keeping the driver nice and clean is your job too, not just mine.
>
> BR,
> Jani.
>
>
>> $ dim checkpatch origin/drm-tip
>> 26eb0c2f2ee1 drm/edid: Add additional HFVSDB fields for HDMI2.1
>> -:61: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-by: Sharma, Swati2 <swati2.sharma@intel.com>'
>>
>> total: 0 errors, 1 warnings, 0 checks, 36 lines checked
>> 13ffe829d77e drm/edid: Parse MAX_FRL field from HFVSDB block
>> -:73: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
>> #73: FILE: drivers/gpu/drm/drm_edid.c:4948:
>> +		drm_get_max_frl_rate(max_frl_rate, &hdmi->max_lanes,
>> +				&hdmi->max_frl_rate_per_lane);
>>
>> -:95: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-by: Sharma, Swati2 <swati2.sharma@intel.com>'
>>
>> total: 0 errors, 1 warnings, 1 checks, 68 lines checked
>> 89853c019e04 drm/edid: Parse DSC1.2 cap fields from HFVSDB block
>> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
>> #51: FILE: drivers/gpu/drm/drm_edid.c:4969:
>> +			drm_get_max_frl_rate(dsc_max_frl_rate, &hdmi_dsc->max_lanes,
>> +					&hdmi_dsc->max_frl_rate_per_lane);
>>
>> -:52: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>> #52: FILE: drivers/gpu/drm/drm_edid.c:4970:
>> +			hdmi_dsc->total_chunk_kbytes = hf_vsdb[13] & DRM_EDID_DSC_TOTAL_CHUNK_KBYTES;
>>
>> total: 0 errors, 1 warnings, 1 checks, 125 lines checked
>> 5120b1727391 drm/dp_helper: Add Helpers for FRL Link Training support for DP-HDMI2.1 PCON
>> c68914ce7b67 drm/dp_helper: Add support for link failure detection
>> -:112: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
>> #112: FILE: include/drm/drm_dp_helper.h:2055:
>> +void drm_dp_pcon_hdmi_frl_link_error_count(struct drm_dp_aux *aux,
>> +					  struct drm_connector *connector);
>>
>> total: 0 errors, 0 warnings, 1 checks, 76 lines checked
>> 2f4d3c12ee27 drm/dp_helper: Add support for Configuring DSC for HDMI2.1 Pcon
>> -:15: WARNING:TYPO_SPELLING: 'Convertor' may be misspelled - perhaps 'Converter'?
>> #15:
>> v3: Only setting the DSC bits for the Protocol Convertor control
>>
>> -:165: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
>> #165: FILE: drivers/gpu/drm/drm_dp_helper.c:3037:
>> + * */
>>
>> -:185: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
>> #185: FILE: drivers/gpu/drm/drm_dp_helper.c:3057:
>> + * */
>>
>> -:210: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
>> #210: FILE: drivers/gpu/drm/drm_dp_helper.c:3082:
>> + * */
>>
>> total: 0 errors, 4 warnings, 0 checks, 343 lines checked
>> d1464a87a5a8 drm/dp_helper: Add helpers to configure PCONs RGB-YCbCr Conversion
>> -:18: WARNING:TYPO_SPELLING: 'accomodate' may be misspelled - perhaps 'accommodate'?
>> #18:
>> -Modified the color-conversion cap helper function, to accomodate
>>
>> total: 0 errors, 1 warnings, 0 checks, 106 lines checked
>> 29e16a799211 drm/i915: Capture max frl rate for PCON in dfp cap structure
>> -:13: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
>> #13:
>> -tweaked the comparison of target bw and pcon frl bw to avoid roundup errors.
>>
>> total: 0 errors, 1 warnings, 0 checks, 60 lines checked
>> 0f68d7283295 drm/i915: Add support for starting FRL training for HDMI2.1 via PCON
>> -:86: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
>> #86: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4005:
>> +{
>> +
>>
>> -:147: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>> #147: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4066:
>> +	wait_for(is_active = drm_dp_pcon_is_frl_ready(&intel_dp->aux) == true, TIMEOUT_FRL_READY_MS);
>>
>> -:166: WARNING:LONG_LINE: line length of 112 exceeds 100 columns
>> #166: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4085:
>> +	wait_for(is_active = drm_dp_pcon_hdmi_link_active(&intel_dp->aux) == true, TIMEOUT_HDMI_LINK_ACTIVE_MS);
>>
>> -:172: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
>> +	if (DP_PCON_HDMI_MODE_FRL != drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
>>
>> -:172: WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
>> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
>> +	if (DP_PCON_HDMI_MODE_FRL != drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
>>
>> -:176: WARNING:LONG_LINE: line length of 109 exceeds 100 columns
>> #176: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4095:
>> +	drm_dbg(&i915->drm, "MAX_FRL_MASK = %u, FRL_TRAINED_MASK = %u\n", max_frl_bw_mask, frl_trained_mask);
>>
>> total: 0 errors, 5 warnings, 1 checks, 194 lines checked
>> 3793f5252161 drm/i915: Check for FRL training before DP Link training
>> 126578f6fe39 drm/i915: Add support for enabling link status and recovery
>> -:54: WARNING:LONG_LINE: line length of 107 exceeds 100 columns
>> #54: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6031:
>> +		drm_dp_pcon_hdmi_frl_link_error_count(&intel_dp->aux, &intel_dp->attached_connector->base);
>>
>> total: 0 errors, 1 warnings, 0 checks, 83 lines checked
>> ca5d8df43ceb drm/i915: Read DSC capabilities of the HDMI2.1 PCON encoder
>> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
>> #51: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4000:
>> +	if (drm_dp_dpcd_read(&intel_dp->aux, DP_PCON_DSC_ENCODER,
>> +				     intel_dp->pcon_dsc_dpcd,
>>
>> -:57: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
>> #57: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4006:
>> +	drm_dbg_kms(&i915->drm, "PCON ENCODER DSC DPCD: %*ph\n",
>> +		   (int)sizeof(intel_dp->pcon_dsc_dpcd), intel_dp->pcon_dsc_dpcd);
>>
>> total: 0 errors, 0 warnings, 2 checks, 39 lines checked
>> 35f69a655bad drm/i915: Add helper functions for calculating DSC parameters for HDMI2.1
>> -:57: WARNING:TYPO_SPELLING: 'capabilites' may be misspelled - perhaps 'capabilities'?
>> #57: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3458:
>> + * and dsc decoder capabilites
>>
>> -:143: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
>> #143: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3544:
>> +		if (min_slices <= 1 && src_max_slices >= 1 && hdmi_max_slices >= 1)
>> +		       target_slices = 1;
>>
>> -:145: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
>> #145: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3546:
>> +		else if (min_slices <= 2 && src_max_slices >= 2 && hdmi_max_slices >= 2)
>> +		       target_slices = 2;
>>
>> -:147: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
>> #147: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3548:
>> +		else if (min_slices <= 4 && src_max_slices >= 4 && hdmi_max_slices >= 4)
>> +		       target_slices = 4;
>>
>> -:149: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
>> #149: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3550:
>> +		else if (min_slices <= 8 && src_max_slices >= 8 && hdmi_max_slices >= 8)
>> +		       target_slices = 8;
>>
>> -:151: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
>> #151: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3552:
>> +		else if (min_slices <= 12 && src_max_slices >= 12 && hdmi_max_slices >= 12)
>> +		       target_slices = 12;
>>
>> -:153: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
>> #153: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3554:
>> +		else if (min_slices <= 16 && src_max_slices >= 16 && hdmi_max_slices >= 16)
>> +		       target_slices = 16;
>>
>> total: 0 errors, 7 warnings, 0 checks, 248 lines checked
>> 34ee9dfdadfd drm/i915/display: Configure PCON for DSC1.1 to DSC1.2 encoding
>> -:75: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
>> #75: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4171:
>> +{
>> +
>>
>> -:92: CHECK:LINE_SPACING: Please don't use multiple blank lines
>> #92: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4188:
>> +
>> +
>>
>> -:155: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
>> #155: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4251:
>> +	bits_per_pixel = intel_dp_pcon_dsc_enc_bpp(intel_dp, crtc_state,
>> +						  num_slices, slice_width);
>>
>> total: 0 errors, 0 warnings, 3 checks, 157 lines checked
>> d739034947bb drm/i915/display: Let PCON convert from RGB to YCbCr if it can
>> -:104: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>> #104: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4368:
>> +								   DP_DS_HDMI_BT2020_RGB_YCBCR_CONV);
>>
>> -:156: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
>> #156: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6922:
>> +	rgb_to_ycbcr = drm_dp_downstream_rgb_to_ycbcr_conversion(intel_dp->dpcd,
>> +							intel_dp->downstream_ports,
>>
>> total: 0 errors, 1 warnings, 1 checks, 152 lines checked
>>
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Shankar, Uma Dec. 23, 2020, 6:54 a.m. UTC | #4
> -----Original Message-----
> From: Nautiyal, Ankit K <ankit.k.nautiyal@intel.com>
> Sent: Wednesday, December 23, 2020 11:27 AM
> To: Jani Nikula <jani.nikula@linux.intel.com>; Sharma, Swati2
> <swati2.sharma@intel.com>; Shankar, Uma <uma.shankar@intel.com>
> Cc: intel-gfx@lists.freedesktop.org
> Subject: Re: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add support for DP-
> HDMI2.1 PCON (rev9)
> 
> Hi Jani,
> 
> I apologize to miss these checkpatch errors. I mistakenly used some older version
> of checkpatch script and couldn't get these.
> 
> Nevertheless I should have taken care of the warnings from the patchwork. I fully
> understand that onus is on the submitter of the series to fix all such warnings
> and checks, and I take full responsibility of this mistake.
> 
> Thank you for fixing these issues this time, and I assure you that I will take care
> in future and make sure that the checkpatch warnings are addressed.
> 
> Once again I apologize for the fault.

I also should have checked this, will be more careful to ensure this remains the top item
in the checklist along with CI results.

Regards,
Uma Shankar
> 
> Thanks & Regards,
> 
> Ankit
> 
> 
> On 12/22/2020 10:13 PM, Jani Nikula wrote:
> > On Fri, 18 Dec 2020, Patchwork <patchwork@emeril.freedesktop.org> wrote:
> >> == Series Details ==
> >>
> >> Series: Add support for DP-HDMI2.1 PCON (rev9)
> >> URL   : https://patchwork.freedesktop.org/series/82098/
> >> State : warning
> >>
> >> == Summary ==
> >>
> > All -
> >
> > I've fixed most of the checkpatch warnings (save for LONG_LINE and
> > BIT_MACRO that we don't care so much about) while applying. It's not
> > something I normally do, and I really don't want to find these when
> > the series is at v7 and the same warnings have been there since
> > September and I keep being pinged about merging.
> >
> > Keeping the driver nice and clean is your job too, not just mine.
> >
> > BR,
> > Jani.
> >
> >
> >> $ dim checkpatch origin/drm-tip
> >> 26eb0c2f2ee1 drm/edid: Add additional HFVSDB fields for HDMI2.1
> >> -:61: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email
> name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-
> by: Sharma, Swati2 <swati2.sharma@intel.com>'
> >>
> >> total: 0 errors, 1 warnings, 0 checks, 36 lines checked 13ffe829d77e
> >> drm/edid: Parse MAX_FRL field from HFVSDB block
> >> -:73: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
> >> parenthesis
> >> #73: FILE: drivers/gpu/drm/drm_edid.c:4948:
> >> +		drm_get_max_frl_rate(max_frl_rate, &hdmi->max_lanes,
> >> +				&hdmi->max_frl_rate_per_lane);
> >>
> >> -:95: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email
> name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-
> by: Sharma, Swati2 <swati2.sharma@intel.com>'
> >>
> >> total: 0 errors, 1 warnings, 1 checks, 68 lines checked
> >> 89853c019e04 drm/edid: Parse DSC1.2 cap fields from HFVSDB block
> >> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
> >> parenthesis
> >> #51: FILE: drivers/gpu/drm/drm_edid.c:4969:
> >> +			drm_get_max_frl_rate(dsc_max_frl_rate, &hdmi_dsc-
> >max_lanes,
> >> +					&hdmi_dsc->max_frl_rate_per_lane);
> >>
> >> -:52: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
> >> #52: FILE: drivers/gpu/drm/drm_edid.c:4970:
> >> +			hdmi_dsc->total_chunk_kbytes = hf_vsdb[13] &
> >> +DRM_EDID_DSC_TOTAL_CHUNK_KBYTES;
> >>
> >> total: 0 errors, 1 warnings, 1 checks, 125 lines checked
> >> 5120b1727391 drm/dp_helper: Add Helpers for FRL Link Training support
> >> for DP-HDMI2.1 PCON
> >> c68914ce7b67 drm/dp_helper: Add support for link failure detection
> >> -:112: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
> >> parenthesis
> >> #112: FILE: include/drm/drm_dp_helper.h:2055:
> >> +void drm_dp_pcon_hdmi_frl_link_error_count(struct drm_dp_aux *aux,
> >> +					  struct drm_connector *connector);
> >>
> >> total: 0 errors, 0 warnings, 1 checks, 76 lines checked
> >> 2f4d3c12ee27 drm/dp_helper: Add support for Configuring DSC for
> >> HDMI2.1 Pcon
> >> -:15: WARNING:TYPO_SPELLING: 'Convertor' may be misspelled - perhaps
> 'Converter'?
> >> #15:
> >> v3: Only setting the DSC bits for the Protocol Convertor control
> >>
> >> -:165: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */
> >> on a separate line
> >> #165: FILE: drivers/gpu/drm/drm_dp_helper.c:3037:
> >> + * */
> >>
> >> -:185: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */
> >> on a separate line
> >> #185: FILE: drivers/gpu/drm/drm_dp_helper.c:3057:
> >> + * */
> >>
> >> -:210: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */
> >> on a separate line
> >> #210: FILE: drivers/gpu/drm/drm_dp_helper.c:3082:
> >> + * */
> >>
> >> total: 0 errors, 4 warnings, 0 checks, 343 lines checked
> >> d1464a87a5a8 drm/dp_helper: Add helpers to configure PCONs RGB-YCbCr
> >> Conversion
> >> -:18: WARNING:TYPO_SPELLING: 'accomodate' may be misspelled - perhaps
> 'accommodate'?
> >> #18:
> >> -Modified the color-conversion cap helper function, to accomodate
> >>
> >> total: 0 errors, 1 warnings, 0 checks, 106 lines checked
> >> 29e16a799211 drm/i915: Capture max frl rate for PCON in dfp cap
> >> structure
> >> -:13: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit
> >> description (prefer a maximum 75 chars per line)
> >> #13:
> >> -tweaked the comparison of target bw and pcon frl bw to avoid roundup
> errors.
> >>
> >> total: 0 errors, 1 warnings, 0 checks, 60 lines checked
> >> 0f68d7283295 drm/i915: Add support for starting FRL training for
> >> HDMI2.1 via PCON
> >> -:86: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
> >> #86: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4005:
> >> +{
> >> +
> >>
> >> -:147: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
> >> #147: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4066:
> >> +	wait_for(is_active = drm_dp_pcon_is_frl_ready(&intel_dp->aux) ==
> >> +true, TIMEOUT_FRL_READY_MS);
> >>
> >> -:166: WARNING:LONG_LINE: line length of 112 exceeds 100 columns
> >> #166: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4085:
> >> +	wait_for(is_active = drm_dp_pcon_hdmi_link_active(&intel_dp->aux)
> >> +== true, TIMEOUT_HDMI_LINK_ACTIVE_MS);
> >>
> >> -:172: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
> >> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
> >> +	if (DP_PCON_HDMI_MODE_FRL !=
> >> +drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
> >>
> >> -:172: WARNING:CONSTANT_COMPARISON: Comparisons should place the
> >> constant on the right side of the test
> >> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
> >> +	if (DP_PCON_HDMI_MODE_FRL !=
> >> +drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
> >>
> >> -:176: WARNING:LONG_LINE: line length of 109 exceeds 100 columns
> >> #176: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4095:
> >> +	drm_dbg(&i915->drm, "MAX_FRL_MASK = %u, FRL_TRAINED_MASK =
> %u\n",
> >> +max_frl_bw_mask, frl_trained_mask);
> >>
> >> total: 0 errors, 5 warnings, 1 checks, 194 lines checked
> >> 3793f5252161 drm/i915: Check for FRL training before DP Link training
> >> 126578f6fe39 drm/i915: Add support for enabling link status and
> >> recovery
> >> -:54: WARNING:LONG_LINE: line length of 107 exceeds 100 columns
> >> #54: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6031:
> >> +		drm_dp_pcon_hdmi_frl_link_error_count(&intel_dp->aux,
> >> +&intel_dp->attached_connector->base);
> >>
> >> total: 0 errors, 1 warnings, 0 checks, 83 lines checked ca5d8df43ceb
> >> drm/i915: Read DSC capabilities of the HDMI2.1 PCON encoder
> >> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
> >> parenthesis
> >> #51: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4000:
> >> +	if (drm_dp_dpcd_read(&intel_dp->aux, DP_PCON_DSC_ENCODER,
> >> +				     intel_dp->pcon_dsc_dpcd,
> >>
> >> -:57: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
> >> parenthesis
> >> #57: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4006:
> >> +	drm_dbg_kms(&i915->drm, "PCON ENCODER DSC DPCD: %*ph\n",
> >> +		   (int)sizeof(intel_dp->pcon_dsc_dpcd), intel_dp-
> >pcon_dsc_dpcd);
> >>
> >> total: 0 errors, 0 warnings, 2 checks, 39 lines checked 35f69a655bad
> >> drm/i915: Add helper functions for calculating DSC parameters for
> >> HDMI2.1
> >> -:57: WARNING:TYPO_SPELLING: 'capabilites' may be misspelled - perhaps
> 'capabilities'?
> >> #57: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3458:
> >> + * and dsc decoder capabilites
> >>
> >> -:143: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
> >> conditional statements (16, 23)
> >> #143: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3544:
> >> +		if (min_slices <= 1 && src_max_slices >= 1 && hdmi_max_slices
> >= 1)
> >> +		       target_slices = 1;
> >>
> >> -:145: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
> >> conditional statements (16, 23)
> >> #145: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3546:
> >> +		else if (min_slices <= 2 && src_max_slices >= 2 &&
> hdmi_max_slices >= 2)
> >> +		       target_slices = 2;
> >>
> >> -:147: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
> >> conditional statements (16, 23)
> >> #147: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3548:
> >> +		else if (min_slices <= 4 && src_max_slices >= 4 &&
> hdmi_max_slices >= 4)
> >> +		       target_slices = 4;
> >>
> >> -:149: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
> >> conditional statements (16, 23)
> >> #149: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3550:
> >> +		else if (min_slices <= 8 && src_max_slices >= 8 &&
> hdmi_max_slices >= 8)
> >> +		       target_slices = 8;
> >>
> >> -:151: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
> >> conditional statements (16, 23)
> >> #151: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3552:
> >> +		else if (min_slices <= 12 && src_max_slices >= 12 &&
> hdmi_max_slices >= 12)
> >> +		       target_slices = 12;
> >>
> >> -:153: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
> >> conditional statements (16, 23)
> >> #153: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3554:
> >> +		else if (min_slices <= 16 && src_max_slices >= 16 &&
> hdmi_max_slices >= 16)
> >> +		       target_slices = 16;
> >>
> >> total: 0 errors, 7 warnings, 0 checks, 248 lines checked 34ee9dfdadfd
> >> drm/i915/display: Configure PCON for DSC1.1 to DSC1.2 encoding
> >> -:75: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
> >> #75: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4171:
> >> +{
> >> +
> >>
> >> -:92: CHECK:LINE_SPACING: Please don't use multiple blank lines
> >> #92: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4188:
> >> +
> >> +
> >>
> >> -:155: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
> >> parenthesis
> >> #155: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4251:
> >> +	bits_per_pixel = intel_dp_pcon_dsc_enc_bpp(intel_dp, crtc_state,
> >> +						  num_slices, slice_width);
> >>
> >> total: 0 errors, 0 warnings, 3 checks, 157 lines checked d739034947bb
> >> drm/i915/display: Let PCON convert from RGB to YCbCr if it can
> >> -:104: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
> >> #104: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4368:
> >> +
> DP_DS_HDMI_BT2020_RGB_YCBCR_CONV);
> >>
> >> -:156: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
> >> parenthesis
> >> #156: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6922:
> >> +	rgb_to_ycbcr = drm_dp_downstream_rgb_to_ycbcr_conversion(intel_dp-
> >dpcd,
> >> +							intel_dp-
> >downstream_ports,
> >>
> >> total: 0 errors, 1 warnings, 1 checks, 152 lines checked
> >>
> >>
> >> _______________________________________________
> >> Intel-gfx mailing list
> >> Intel-gfx@lists.freedesktop.org
> >> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Sharma, Swati2 Dec. 23, 2020, 7:08 a.m. UTC | #5
On 23-Dec-20 12:24 PM, Shankar, Uma wrote:
> 
> 
>> -----Original Message-----
>> From: Nautiyal, Ankit K <ankit.k.nautiyal@intel.com>
>> Sent: Wednesday, December 23, 2020 11:27 AM
>> To: Jani Nikula <jani.nikula@linux.intel.com>; Sharma, Swati2
>> <swati2.sharma@intel.com>; Shankar, Uma <uma.shankar@intel.com>
>> Cc: intel-gfx@lists.freedesktop.org
>> Subject: Re: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add support for DP-
>> HDMI2.1 PCON (rev9)
>>
>> Hi Jani,
>>
>> I apologize to miss these checkpatch errors. I mistakenly used some older version
>> of checkpatch script and couldn't get these.
>>
>> Nevertheless I should have taken care of the warnings from the patchwork. I fully
>> understand that onus is on the submitter of the series to fix all such warnings
>> and checks, and I take full responsibility of this mistake.
>>
>> Thank you for fixing these issues this time, and I assure you that I will take care
>> in future and make sure that the checkpatch warnings are addressed.
>>
>> Once again I apologize for the fault.
> 
> I also should have checked this, will be more careful to ensure this remains the top item
> in the checklist along with CI results.
> 
> Regards,
> Uma Shankar

Apologies from my side too.

Thanks and Regards,
Swati
>>
>> Thanks & Regards,
>>
>> Ankit
>>
>>
>> On 12/22/2020 10:13 PM, Jani Nikula wrote:
>>> On Fri, 18 Dec 2020, Patchwork <patchwork@emeril.freedesktop.org> wrote:
>>>> == Series Details ==
>>>>
>>>> Series: Add support for DP-HDMI2.1 PCON (rev9)
>>>> URL   : https://patchwork.freedesktop.org/series/82098/
>>>> State : warning
>>>>
>>>> == Summary ==
>>>>
>>> All -
>>>
>>> I've fixed most of the checkpatch warnings (save for LONG_LINE and
>>> BIT_MACRO that we don't care so much about) while applying. It's not
>>> something I normally do, and I really don't want to find these when
>>> the series is at v7 and the same warnings have been there since
>>> September and I keep being pinged about merging.
>>>
>>> Keeping the driver nice and clean is your job too, not just mine.
>>>
>>> BR,
>>> Jani.
>>>
>>>
>>>> $ dim checkpatch origin/drm-tip
>>>> 26eb0c2f2ee1 drm/edid: Add additional HFVSDB fields for HDMI2.1
>>>> -:61: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email
>> name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-
>> by: Sharma, Swati2 <swati2.sharma@intel.com>'
>>>>
>>>> total: 0 errors, 1 warnings, 0 checks, 36 lines checked 13ffe829d77e
>>>> drm/edid: Parse MAX_FRL field from HFVSDB block
>>>> -:73: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>> parenthesis
>>>> #73: FILE: drivers/gpu/drm/drm_edid.c:4948:
>>>> +		drm_get_max_frl_rate(max_frl_rate, &hdmi->max_lanes,
>>>> +				&hdmi->max_frl_rate_per_lane);
>>>>
>>>> -:95: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email
>> name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-
>> by: Sharma, Swati2 <swati2.sharma@intel.com>'
>>>>
>>>> total: 0 errors, 1 warnings, 1 checks, 68 lines checked
>>>> 89853c019e04 drm/edid: Parse DSC1.2 cap fields from HFVSDB block
>>>> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>> parenthesis
>>>> #51: FILE: drivers/gpu/drm/drm_edid.c:4969:
>>>> +			drm_get_max_frl_rate(dsc_max_frl_rate, &hdmi_dsc-
>>> max_lanes,
>>>> +					&hdmi_dsc->max_frl_rate_per_lane);
>>>>
>>>> -:52: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>>>> #52: FILE: drivers/gpu/drm/drm_edid.c:4970:
>>>> +			hdmi_dsc->total_chunk_kbytes = hf_vsdb[13] &
>>>> +DRM_EDID_DSC_TOTAL_CHUNK_KBYTES;
>>>>
>>>> total: 0 errors, 1 warnings, 1 checks, 125 lines checked
>>>> 5120b1727391 drm/dp_helper: Add Helpers for FRL Link Training support
>>>> for DP-HDMI2.1 PCON
>>>> c68914ce7b67 drm/dp_helper: Add support for link failure detection
>>>> -:112: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>> parenthesis
>>>> #112: FILE: include/drm/drm_dp_helper.h:2055:
>>>> +void drm_dp_pcon_hdmi_frl_link_error_count(struct drm_dp_aux *aux,
>>>> +					  struct drm_connector *connector);
>>>>
>>>> total: 0 errors, 0 warnings, 1 checks, 76 lines checked
>>>> 2f4d3c12ee27 drm/dp_helper: Add support for Configuring DSC for
>>>> HDMI2.1 Pcon
>>>> -:15: WARNING:TYPO_SPELLING: 'Convertor' may be misspelled - perhaps
>> 'Converter'?
>>>> #15:
>>>> v3: Only setting the DSC bits for the Protocol Convertor control
>>>>
>>>> -:165: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */
>>>> on a separate line
>>>> #165: FILE: drivers/gpu/drm/drm_dp_helper.c:3037:
>>>> + * */
>>>>
>>>> -:185: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */
>>>> on a separate line
>>>> #185: FILE: drivers/gpu/drm/drm_dp_helper.c:3057:
>>>> + * */
>>>>
>>>> -:210: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */
>>>> on a separate line
>>>> #210: FILE: drivers/gpu/drm/drm_dp_helper.c:3082:
>>>> + * */
>>>>
>>>> total: 0 errors, 4 warnings, 0 checks, 343 lines checked
>>>> d1464a87a5a8 drm/dp_helper: Add helpers to configure PCONs RGB-YCbCr
>>>> Conversion
>>>> -:18: WARNING:TYPO_SPELLING: 'accomodate' may be misspelled - perhaps
>> 'accommodate'?
>>>> #18:
>>>> -Modified the color-conversion cap helper function, to accomodate
>>>>
>>>> total: 0 errors, 1 warnings, 0 checks, 106 lines checked
>>>> 29e16a799211 drm/i915: Capture max frl rate for PCON in dfp cap
>>>> structure
>>>> -:13: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit
>>>> description (prefer a maximum 75 chars per line)
>>>> #13:
>>>> -tweaked the comparison of target bw and pcon frl bw to avoid roundup
>> errors.
>>>>
>>>> total: 0 errors, 1 warnings, 0 checks, 60 lines checked
>>>> 0f68d7283295 drm/i915: Add support for starting FRL training for
>>>> HDMI2.1 via PCON
>>>> -:86: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
>>>> #86: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4005:
>>>> +{
>>>> +
>>>>
>>>> -:147: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>>>> #147: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4066:
>>>> +	wait_for(is_active = drm_dp_pcon_is_frl_ready(&intel_dp->aux) ==
>>>> +true, TIMEOUT_FRL_READY_MS);
>>>>
>>>> -:166: WARNING:LONG_LINE: line length of 112 exceeds 100 columns
>>>> #166: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4085:
>>>> +	wait_for(is_active = drm_dp_pcon_hdmi_link_active(&intel_dp->aux)
>>>> +== true, TIMEOUT_HDMI_LINK_ACTIVE_MS);
>>>>
>>>> -:172: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>>>> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
>>>> +	if (DP_PCON_HDMI_MODE_FRL !=
>>>> +drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
>>>>
>>>> -:172: WARNING:CONSTANT_COMPARISON: Comparisons should place the
>>>> constant on the right side of the test
>>>> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
>>>> +	if (DP_PCON_HDMI_MODE_FRL !=
>>>> +drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
>>>>
>>>> -:176: WARNING:LONG_LINE: line length of 109 exceeds 100 columns
>>>> #176: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4095:
>>>> +	drm_dbg(&i915->drm, "MAX_FRL_MASK = %u, FRL_TRAINED_MASK =
>> %u\n",
>>>> +max_frl_bw_mask, frl_trained_mask);
>>>>
>>>> total: 0 errors, 5 warnings, 1 checks, 194 lines checked
>>>> 3793f5252161 drm/i915: Check for FRL training before DP Link training
>>>> 126578f6fe39 drm/i915: Add support for enabling link status and
>>>> recovery
>>>> -:54: WARNING:LONG_LINE: line length of 107 exceeds 100 columns
>>>> #54: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6031:
>>>> +		drm_dp_pcon_hdmi_frl_link_error_count(&intel_dp->aux,
>>>> +&intel_dp->attached_connector->base);
>>>>
>>>> total: 0 errors, 1 warnings, 0 checks, 83 lines checked ca5d8df43ceb
>>>> drm/i915: Read DSC capabilities of the HDMI2.1 PCON encoder
>>>> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>> parenthesis
>>>> #51: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4000:
>>>> +	if (drm_dp_dpcd_read(&intel_dp->aux, DP_PCON_DSC_ENCODER,
>>>> +				     intel_dp->pcon_dsc_dpcd,
>>>>
>>>> -:57: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>> parenthesis
>>>> #57: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4006:
>>>> +	drm_dbg_kms(&i915->drm, "PCON ENCODER DSC DPCD: %*ph\n",
>>>> +		   (int)sizeof(intel_dp->pcon_dsc_dpcd), intel_dp-
>>> pcon_dsc_dpcd);
>>>>
>>>> total: 0 errors, 0 warnings, 2 checks, 39 lines checked 35f69a655bad
>>>> drm/i915: Add helper functions for calculating DSC parameters for
>>>> HDMI2.1
>>>> -:57: WARNING:TYPO_SPELLING: 'capabilites' may be misspelled - perhaps
>> 'capabilities'?
>>>> #57: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3458:
>>>> + * and dsc decoder capabilites
>>>>
>>>> -:143: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>> conditional statements (16, 23)
>>>> #143: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3544:
>>>> +		if (min_slices <= 1 && src_max_slices >= 1 && hdmi_max_slices
>>> = 1)
>>>> +		       target_slices = 1;
>>>>
>>>> -:145: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>> conditional statements (16, 23)
>>>> #145: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3546:
>>>> +		else if (min_slices <= 2 && src_max_slices >= 2 &&
>> hdmi_max_slices >= 2)
>>>> +		       target_slices = 2;
>>>>
>>>> -:147: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>> conditional statements (16, 23)
>>>> #147: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3548:
>>>> +		else if (min_slices <= 4 && src_max_slices >= 4 &&
>> hdmi_max_slices >= 4)
>>>> +		       target_slices = 4;
>>>>
>>>> -:149: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>> conditional statements (16, 23)
>>>> #149: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3550:
>>>> +		else if (min_slices <= 8 && src_max_slices >= 8 &&
>> hdmi_max_slices >= 8)
>>>> +		       target_slices = 8;
>>>>
>>>> -:151: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>> conditional statements (16, 23)
>>>> #151: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3552:
>>>> +		else if (min_slices <= 12 && src_max_slices >= 12 &&
>> hdmi_max_slices >= 12)
>>>> +		       target_slices = 12;
>>>>
>>>> -:153: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>> conditional statements (16, 23)
>>>> #153: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3554:
>>>> +		else if (min_slices <= 16 && src_max_slices >= 16 &&
>> hdmi_max_slices >= 16)
>>>> +		       target_slices = 16;
>>>>
>>>> total: 0 errors, 7 warnings, 0 checks, 248 lines checked 34ee9dfdadfd
>>>> drm/i915/display: Configure PCON for DSC1.1 to DSC1.2 encoding
>>>> -:75: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
>>>> #75: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4171:
>>>> +{
>>>> +
>>>>
>>>> -:92: CHECK:LINE_SPACING: Please don't use multiple blank lines
>>>> #92: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4188:
>>>> +
>>>> +
>>>>
>>>> -:155: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>> parenthesis
>>>> #155: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4251:
>>>> +	bits_per_pixel = intel_dp_pcon_dsc_enc_bpp(intel_dp, crtc_state,
>>>> +						  num_slices, slice_width);
>>>>
>>>> total: 0 errors, 0 warnings, 3 checks, 157 lines checked d739034947bb
>>>> drm/i915/display: Let PCON convert from RGB to YCbCr if it can
>>>> -:104: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>>>> #104: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4368:
>>>> +
>> DP_DS_HDMI_BT2020_RGB_YCBCR_CONV);
>>>>
>>>> -:156: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>> parenthesis
>>>> #156: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6922:
>>>> +	rgb_to_ycbcr = drm_dp_downstream_rgb_to_ycbcr_conversion(intel_dp-
>>> dpcd,
>>>> +							intel_dp-
>>> downstream_ports,
>>>>
>>>> total: 0 errors, 1 warnings, 1 checks, 152 lines checked
>>>>
>>>>
>>>> _______________________________________________
>>>> Intel-gfx mailing list
>>>> Intel-gfx@lists.freedesktop.org
>>>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula Dec. 23, 2020, 9:18 a.m. UTC | #6
On Wed, 23 Dec 2020, "Sharma, Swati2" <swati2.sharma@intel.com> wrote:
> On 23-Dec-20 12:24 PM, Shankar, Uma wrote:
>> 
>> 
>>> -----Original Message-----
>>> From: Nautiyal, Ankit K <ankit.k.nautiyal@intel.com>
>>> Sent: Wednesday, December 23, 2020 11:27 AM
>>> To: Jani Nikula <jani.nikula@linux.intel.com>; Sharma, Swati2
>>> <swati2.sharma@intel.com>; Shankar, Uma <uma.shankar@intel.com>
>>> Cc: intel-gfx@lists.freedesktop.org
>>> Subject: Re: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add support for DP-
>>> HDMI2.1 PCON (rev9)
>>>
>>> Hi Jani,
>>>
>>> I apologize to miss these checkpatch errors. I mistakenly used some older version
>>> of checkpatch script and couldn't get these.
>>>
>>> Nevertheless I should have taken care of the warnings from the patchwork. I fully
>>> understand that onus is on the submitter of the series to fix all such warnings
>>> and checks, and I take full responsibility of this mistake.
>>>
>>> Thank you for fixing these issues this time, and I assure you that I will take care
>>> in future and make sure that the checkpatch warnings are addressed.
>>>
>>> Once again I apologize for the fault.
>> 
>> I also should have checked this, will be more careful to ensure this remains the top item
>> in the checklist along with CI results.
>> 
>> Regards,
>> Uma Shankar
>
> Apologies from my side too.
>
> Thanks and Regards,
> Swati

Hey -

Don't worry about it. I mean, do pay attention going forward, but don't
worry about it. ;)

Also, please consider using 'dim checkpatch' as a helper for checking
the commits in a branch. It'll use checkpatch from the kernel repo
directly, and it'll pass useful parameters to checkpatch. One of them is
--strict, which you may have missed.

For example, to check the HEAD commit:

$ dim checkpatch

Five topmost commits in your current branch:

$ dim checkpatch HEAD~5

Additionally use the "drm-intel" profile to filter out some of the more
noisy warnings we don't care so much about (*): 

$ dim checkpatch HEAD~5 drm-intel


HTH,
Jani.


(*) --max-line-length=100 --ignore=BIT_MACRO,SPLIT_STRING,LONG_LINE_STRING,BOOL_MEMBER


>>>
>>> Thanks & Regards,
>>>
>>> Ankit
>>>
>>>
>>> On 12/22/2020 10:13 PM, Jani Nikula wrote:
>>>> On Fri, 18 Dec 2020, Patchwork <patchwork@emeril.freedesktop.org> wrote:
>>>>> == Series Details ==
>>>>>
>>>>> Series: Add support for DP-HDMI2.1 PCON (rev9)
>>>>> URL   : https://patchwork.freedesktop.org/series/82098/
>>>>> State : warning
>>>>>
>>>>> == Summary ==
>>>>>
>>>> All -
>>>>
>>>> I've fixed most of the checkpatch warnings (save for LONG_LINE and
>>>> BIT_MACRO that we don't care so much about) while applying. It's not
>>>> something I normally do, and I really don't want to find these when
>>>> the series is at v7 and the same warnings have been there since
>>>> September and I keep being pinged about merging.
>>>>
>>>> Keeping the driver nice and clean is your job too, not just mine.
>>>>
>>>> BR,
>>>> Jani.
>>>>
>>>>
>>>>> $ dim checkpatch origin/drm-tip
>>>>> 26eb0c2f2ee1 drm/edid: Add additional HFVSDB fields for HDMI2.1
>>>>> -:61: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email
>>> name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-
>>> by: Sharma, Swati2 <swati2.sharma@intel.com>'
>>>>>
>>>>> total: 0 errors, 1 warnings, 0 checks, 36 lines checked 13ffe829d77e
>>>>> drm/edid: Parse MAX_FRL field from HFVSDB block
>>>>> -:73: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>>> parenthesis
>>>>> #73: FILE: drivers/gpu/drm/drm_edid.c:4948:
>>>>> +		drm_get_max_frl_rate(max_frl_rate, &hdmi->max_lanes,
>>>>> +				&hdmi->max_frl_rate_per_lane);
>>>>>
>>>>> -:95: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email
>>> name mismatch: 'From: Swati Sharma <swati2.sharma@intel.com>' != 'Signed-off-
>>> by: Sharma, Swati2 <swati2.sharma@intel.com>'
>>>>>
>>>>> total: 0 errors, 1 warnings, 1 checks, 68 lines checked
>>>>> 89853c019e04 drm/edid: Parse DSC1.2 cap fields from HFVSDB block
>>>>> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>>> parenthesis
>>>>> #51: FILE: drivers/gpu/drm/drm_edid.c:4969:
>>>>> +			drm_get_max_frl_rate(dsc_max_frl_rate, &hdmi_dsc-
>>>> max_lanes,
>>>>> +					&hdmi_dsc->max_frl_rate_per_lane);
>>>>>
>>>>> -:52: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>>>>> #52: FILE: drivers/gpu/drm/drm_edid.c:4970:
>>>>> +			hdmi_dsc->total_chunk_kbytes = hf_vsdb[13] &
>>>>> +DRM_EDID_DSC_TOTAL_CHUNK_KBYTES;
>>>>>
>>>>> total: 0 errors, 1 warnings, 1 checks, 125 lines checked
>>>>> 5120b1727391 drm/dp_helper: Add Helpers for FRL Link Training support
>>>>> for DP-HDMI2.1 PCON
>>>>> c68914ce7b67 drm/dp_helper: Add support for link failure detection
>>>>> -:112: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>>> parenthesis
>>>>> #112: FILE: include/drm/drm_dp_helper.h:2055:
>>>>> +void drm_dp_pcon_hdmi_frl_link_error_count(struct drm_dp_aux *aux,
>>>>> +					  struct drm_connector *connector);
>>>>>
>>>>> total: 0 errors, 0 warnings, 1 checks, 76 lines checked
>>>>> 2f4d3c12ee27 drm/dp_helper: Add support for Configuring DSC for
>>>>> HDMI2.1 Pcon
>>>>> -:15: WARNING:TYPO_SPELLING: 'Convertor' may be misspelled - perhaps
>>> 'Converter'?
>>>>> #15:
>>>>> v3: Only setting the DSC bits for the Protocol Convertor control
>>>>>
>>>>> -:165: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */
>>>>> on a separate line
>>>>> #165: FILE: drivers/gpu/drm/drm_dp_helper.c:3037:
>>>>> + * */
>>>>>
>>>>> -:185: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */
>>>>> on a separate line
>>>>> #185: FILE: drivers/gpu/drm/drm_dp_helper.c:3057:
>>>>> + * */
>>>>>
>>>>> -:210: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */
>>>>> on a separate line
>>>>> #210: FILE: drivers/gpu/drm/drm_dp_helper.c:3082:
>>>>> + * */
>>>>>
>>>>> total: 0 errors, 4 warnings, 0 checks, 343 lines checked
>>>>> d1464a87a5a8 drm/dp_helper: Add helpers to configure PCONs RGB-YCbCr
>>>>> Conversion
>>>>> -:18: WARNING:TYPO_SPELLING: 'accomodate' may be misspelled - perhaps
>>> 'accommodate'?
>>>>> #18:
>>>>> -Modified the color-conversion cap helper function, to accomodate
>>>>>
>>>>> total: 0 errors, 1 warnings, 0 checks, 106 lines checked
>>>>> 29e16a799211 drm/i915: Capture max frl rate for PCON in dfp cap
>>>>> structure
>>>>> -:13: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit
>>>>> description (prefer a maximum 75 chars per line)
>>>>> #13:
>>>>> -tweaked the comparison of target bw and pcon frl bw to avoid roundup
>>> errors.
>>>>>
>>>>> total: 0 errors, 1 warnings, 0 checks, 60 lines checked
>>>>> 0f68d7283295 drm/i915: Add support for starting FRL training for
>>>>> HDMI2.1 via PCON
>>>>> -:86: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
>>>>> #86: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4005:
>>>>> +{
>>>>> +
>>>>>
>>>>> -:147: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>>>>> #147: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4066:
>>>>> +	wait_for(is_active = drm_dp_pcon_is_frl_ready(&intel_dp->aux) ==
>>>>> +true, TIMEOUT_FRL_READY_MS);
>>>>>
>>>>> -:166: WARNING:LONG_LINE: line length of 112 exceeds 100 columns
>>>>> #166: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4085:
>>>>> +	wait_for(is_active = drm_dp_pcon_hdmi_link_active(&intel_dp->aux)
>>>>> +== true, TIMEOUT_HDMI_LINK_ACTIVE_MS);
>>>>>
>>>>> -:172: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>>>>> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
>>>>> +	if (DP_PCON_HDMI_MODE_FRL !=
>>>>> +drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
>>>>>
>>>>> -:172: WARNING:CONSTANT_COMPARISON: Comparisons should place the
>>>>> constant on the right side of the test
>>>>> #172: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4091:
>>>>> +	if (DP_PCON_HDMI_MODE_FRL !=
>>>>> +drm_dp_pcon_hdmi_link_mode(&intel_dp->aux, &frl_trained_mask)) {
>>>>>
>>>>> -:176: WARNING:LONG_LINE: line length of 109 exceeds 100 columns
>>>>> #176: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4095:
>>>>> +	drm_dbg(&i915->drm, "MAX_FRL_MASK = %u, FRL_TRAINED_MASK =
>>> %u\n",
>>>>> +max_frl_bw_mask, frl_trained_mask);
>>>>>
>>>>> total: 0 errors, 5 warnings, 1 checks, 194 lines checked
>>>>> 3793f5252161 drm/i915: Check for FRL training before DP Link training
>>>>> 126578f6fe39 drm/i915: Add support for enabling link status and
>>>>> recovery
>>>>> -:54: WARNING:LONG_LINE: line length of 107 exceeds 100 columns
>>>>> #54: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6031:
>>>>> +		drm_dp_pcon_hdmi_frl_link_error_count(&intel_dp->aux,
>>>>> +&intel_dp->attached_connector->base);
>>>>>
>>>>> total: 0 errors, 1 warnings, 0 checks, 83 lines checked ca5d8df43ceb
>>>>> drm/i915: Read DSC capabilities of the HDMI2.1 PCON encoder
>>>>> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>>> parenthesis
>>>>> #51: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4000:
>>>>> +	if (drm_dp_dpcd_read(&intel_dp->aux, DP_PCON_DSC_ENCODER,
>>>>> +				     intel_dp->pcon_dsc_dpcd,
>>>>>
>>>>> -:57: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>>> parenthesis
>>>>> #57: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4006:
>>>>> +	drm_dbg_kms(&i915->drm, "PCON ENCODER DSC DPCD: %*ph\n",
>>>>> +		   (int)sizeof(intel_dp->pcon_dsc_dpcd), intel_dp-
>>>> pcon_dsc_dpcd);
>>>>>
>>>>> total: 0 errors, 0 warnings, 2 checks, 39 lines checked 35f69a655bad
>>>>> drm/i915: Add helper functions for calculating DSC parameters for
>>>>> HDMI2.1
>>>>> -:57: WARNING:TYPO_SPELLING: 'capabilites' may be misspelled - perhaps
>>> 'capabilities'?
>>>>> #57: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3458:
>>>>> + * and dsc decoder capabilites
>>>>>
>>>>> -:143: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>>> conditional statements (16, 23)
>>>>> #143: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3544:
>>>>> +		if (min_slices <= 1 && src_max_slices >= 1 && hdmi_max_slices
>>>> = 1)
>>>>> +		       target_slices = 1;
>>>>>
>>>>> -:145: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>>> conditional statements (16, 23)
>>>>> #145: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3546:
>>>>> +		else if (min_slices <= 2 && src_max_slices >= 2 &&
>>> hdmi_max_slices >= 2)
>>>>> +		       target_slices = 2;
>>>>>
>>>>> -:147: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>>> conditional statements (16, 23)
>>>>> #147: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3548:
>>>>> +		else if (min_slices <= 4 && src_max_slices >= 4 &&
>>> hdmi_max_slices >= 4)
>>>>> +		       target_slices = 4;
>>>>>
>>>>> -:149: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>>> conditional statements (16, 23)
>>>>> #149: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3550:
>>>>> +		else if (min_slices <= 8 && src_max_slices >= 8 &&
>>> hdmi_max_slices >= 8)
>>>>> +		       target_slices = 8;
>>>>>
>>>>> -:151: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>>> conditional statements (16, 23)
>>>>> #151: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3552:
>>>>> +		else if (min_slices <= 12 && src_max_slices >= 12 &&
>>> hdmi_max_slices >= 12)
>>>>> +		       target_slices = 12;
>>>>>
>>>>> -:153: WARNING:SUSPECT_CODE_INDENT: suspect code indent for
>>>>> conditional statements (16, 23)
>>>>> #153: FILE: drivers/gpu/drm/i915/display/intel_hdmi.c:3554:
>>>>> +		else if (min_slices <= 16 && src_max_slices >= 16 &&
>>> hdmi_max_slices >= 16)
>>>>> +		       target_slices = 16;
>>>>>
>>>>> total: 0 errors, 7 warnings, 0 checks, 248 lines checked 34ee9dfdadfd
>>>>> drm/i915/display: Configure PCON for DSC1.1 to DSC1.2 encoding
>>>>> -:75: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
>>>>> #75: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4171:
>>>>> +{
>>>>> +
>>>>>
>>>>> -:92: CHECK:LINE_SPACING: Please don't use multiple blank lines
>>>>> #92: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4188:
>>>>> +
>>>>> +
>>>>>
>>>>> -:155: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>>> parenthesis
>>>>> #155: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4251:
>>>>> +	bits_per_pixel = intel_dp_pcon_dsc_enc_bpp(intel_dp, crtc_state,
>>>>> +						  num_slices, slice_width);
>>>>>
>>>>> total: 0 errors, 0 warnings, 3 checks, 157 lines checked d739034947bb
>>>>> drm/i915/display: Let PCON convert from RGB to YCbCr if it can
>>>>> -:104: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
>>>>> #104: FILE: drivers/gpu/drm/i915/display/intel_dp.c:4368:
>>>>> +
>>> DP_DS_HDMI_BT2020_RGB_YCBCR_CONV);
>>>>>
>>>>> -:156: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>>>> parenthesis
>>>>> #156: FILE: drivers/gpu/drm/i915/display/intel_dp.c:6922:
>>>>> +	rgb_to_ycbcr = drm_dp_downstream_rgb_to_ycbcr_conversion(intel_dp-
>>>> dpcd,
>>>>> +							intel_dp-
>>>> downstream_ports,
>>>>>
>>>>> total: 0 errors, 1 warnings, 1 checks, 152 lines checked
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Intel-gfx mailing list
>>>>> Intel-gfx@lists.freedesktop.org
>>>>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx