From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Shankar, Uma" <uma.shankar@intel.com>,
Patchwork <patchwork@emeril.freedesktop.org>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: ✗ Fi.CI.CHECKPATCH: warning for Add HDR Metadata Parsing and handling in DRM layer (rev5)
Date: Mon, 11 Mar 2019 16:12:23 +0200 [thread overview]
Message-ID: <871s3dlcu0.fsf@intel.com> (raw)
In-Reply-To: <E7C9878FBA1C6D42A1CA3F62AEB6945F81F82686@BGSMSX104.gar.corp.intel.com>
On Mon, 11 Mar 2019, "Shankar, Uma" <uma.shankar@intel.com> wrote:
>>-----Original Message-----
>>From: Jani Nikula [mailto:jani.nikula@linux.intel.com]
>>Sent: Monday, March 11, 2019 7:25 PM
>>To: Patchwork <patchwork@emeril.freedesktop.org>; Shankar, Uma
>><uma.shankar@intel.com>
>>Cc: intel-gfx@lists.freedesktop.org
>>Subject: Re: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add HDR Metadata Parsing
>>and handling in DRM layer (rev5)
>>
>>On Mon, 11 Mar 2019, Patchwork <patchwork@emeril.freedesktop.org> wrote:
>>> == Series Details ==
>>>
>>> Series: Add HDR Metadata Parsing and handling in DRM layer (rev5)
>>> URL : https://patchwork.freedesktop.org/series/25091/
>>> State : warning
>>>
>>> == Summary ==
>>>
>>> $ dim checkpatch origin/drm-tip
>>> b2d03105049d drm: Add HDR source metadata property
>>> fe440823e535 drm: Parse HDR metadata info from EDID
>>> -:59: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
>>> #59: FILE: drivers/gpu/drm/drm_edid.c:3839:
>>> +{
>>> +
>>>
>>> -:65: CHECK:BRACES: Blank lines aren't necessary before a close brace '}'
>>> #65: FILE: drivers/gpu/drm/drm_edid.c:3845:
>>> +
>>> +}
>>>
>>> -:69: CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
>>> #69: FILE: drivers/gpu/drm/drm_edid.c:3849:
>>> +{
>>> +
>>>
>>> -:77: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t'
>>> #77: FILE: drivers/gpu/drm/drm_edid.c:3857:
>>> + uint16_t len;
>>>
>>> total: 0 errors, 0 warnings, 4 checks, 76 lines checked
>>> 5ef8cb0e93e9 drm: Parse Colorimetry data block from EDID
>>> -:51: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t'
>>> #51: FILE: drivers/gpu/drm/drm_edid.c:3842:
>>> + uint16_t len;
>>>
>>> -:58: CHECK:LINE_SPACING: Please don't use multiple blank lines
>>> #58: FILE: drivers/gpu/drm/drm_edid.c:3849:
>>> +
>>> +
>>>
>>> total: 0 errors, 0 warnings, 2 checks, 53 lines checked aa78bb330fcc
>>> drm/i915: Attach HDR metadata property to connector
>>> -:24: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>> parenthesis
>>> #24: FILE: drivers/gpu/drm/i915/intel_hdmi.c:2723:
>>> + drm_object_attach_property(&connector->base,
>>> + connector->dev->mode_config.hdr_output_metadata_property, 0);
>>>
>>> total: 0 errors, 0 warnings, 1 checks, 8 lines checked 98de918105db
>>> drm: Implement HDR output metadata set and get property handling
>>> -:52: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>> parenthesis
>>> #52: FILE: drivers/gpu/drm/drm_atomic_uapi.c:741:
>>> + ret = drm_atomic_replace_property_blob_from_id(dev,
>>> + &state->hdr_output_metadata_blob_ptr,
>>>
>>> total: 0 errors, 0 warnings, 1 checks, 39 lines checked
>>> 149de61e2c39 drm: Enable HDR infoframe support
>>> -:65: CHECK:LINE_SPACING: Please don't use multiple blank lines
>>> #65: FILE: drivers/gpu/drm/drm_edid.c:4944:
>>> +
>>> +
>>>
>>> -:94: CHECK:LINE_SPACING: Please don't use multiple blank lines
>>> #94: FILE: drivers/gpu/drm/drm_edid.c:4973:
>>> +
>>> +
>>>
>>> -:232: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>> parenthesis
>>> #232: FILE: drivers/video/hdmi.c:1392:
>>> + hdmi_infoframe_log_header(level, dev,
>>> + (struct hdmi_any_infoframe *)frame);
>>>
>>> -:245: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>> parenthesis
>>> #245: FILE: drivers/video/hdmi.c:1405:
>>> + hdmi_log("max_mastering_display_luminance: %d\n",
>>> + frame->max_mastering_display_luminance);
>>>
>>> -:247: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>> parenthesis
>>> #247: FILE: drivers/video/hdmi.c:1407:
>>> + hdmi_log("min_mastering_display_luminance: %d\n",
>>> + frame->min_mastering_display_luminance);
>>>
>>> -:304: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t'
>>> #304: FILE: include/linux/hdmi.h:196:
>>> + uint16_t x, y;
>>>
>>> -:307: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t'
>>> #307: FILE: include/linux/hdmi.h:199:
>>> + uint16_t x, y;
>>>
>>> -:309: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t'
>>> #309: FILE: include/linux/hdmi.h:201:
>>> + uint16_t max_mastering_display_luminance;
>>>
>>> -:310: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t'
>>> #310: FILE: include/linux/hdmi.h:202:
>>> + uint16_t min_mastering_display_luminance;
>>>
>>> -:311: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t'
>>> #311: FILE: include/linux/hdmi.h:203:
>>> + uint16_t max_fall;
>>>
>>> -:312: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t'
>>> #312: FILE: include/linux/hdmi.h:204:
>>> + uint16_t max_cll;
>>>
>>> -:313: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u16' over 'uint16_t'
>>> #313: FILE: include/linux/hdmi.h:205:
>>> + uint16_t min_cll;
>>>
>>> total: 0 errors, 0 warnings, 12 checks, 279 lines checked
>>> c65e9f436e86 drm/i915: Write HDR infoframe and send to panel
>>> -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>> parenthesis
>>> #51: FILE: drivers/gpu/drm/i915/intel_hdmi.c:783:
>>> +intel_hdmi_compute_drm_infoframe(struct intel_encoder *encoder,
>>> + struct intel_crtc_state *crtc_state,
>>>
>>> total: 0 errors, 0 warnings, 1 checks, 64 lines checked dd6bc359799a
>>> drm/i915: [DO NOT MERGE] hack for glk board outputs 96858c0b173a
>>> drm/i915: Add HLG EOTF
>>> 2d2578db31c3 drm/i915: Enable infoframes on GLK+ for HDR
>>> -:49: WARNING:LONG_LINE: line over 100 characters
>>> #49: FILE: drivers/gpu/drm/i915/i915_reg.h:8155:
>>> +#define GLK_TVIDEO_DIP_DRM_DATA(trans, i) _MMIO_TRANS2(trans,
>>_GLK_VIDEO_DIP_DRM_DATA_A + (i) * 4)
>>
>>I think all of the warnings except this one are valid.
>
> Yes Jani, The local patchwork (which comes default with scripts in kernel) didn't had the issues. So local
> checkpatch scan looked clean.
You'll need to pass in the --strict option to checkpatch.pl for some of
the checks.
BR,
Jani.
>
> Will fix these in next version.
>
> Thanks & Regards,
> Uma Shankar
>
>>BR,
>>Jani.
>>
>>>
>>> total: 0 errors, 1 warnings, 0 checks, 76 lines checked b8f04b68ec8f
>>> drm/i915:Enabled Modeset when HDR Infoframe changes
>>> -:57: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>> parenthesis
>>> #57: FILE: drivers/gpu/drm/i915/intel_hdmi.c:796:
>>> + if (!conn_state->hdr_output_metadata_blob_ptr ||
>>> + conn_state->hdr_output_metadata_blob_ptr->length == 0)
>>>
>>> total: 0 errors, 0 warnings, 1 checks, 37 lines checked 3d5cb1bb27ca
>>> drm/i915: Set Infoframe for non modeset case for HDR
>>> -:35: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open
>>> parenthesis
>>> #35: FILE: drivers/gpu/drm/i915/intel_ddi.c:3586:
>>> + if ((INTEL_GEN(dev_priv) >= 10 || IS_GEMINILAKE(dev_priv)) &&
>>> + conn_state->hdr_metadata_changed)
>>>
>>> total: 0 errors, 0 warnings, 1 checks, 25 lines checked
>>> 2c84b2fe5c71 video/hdmi: Add const variants for drm infoframe
>>>
>>> _______________________________________________
>>> Intel-gfx mailing list
>>> Intel-gfx@lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
>>
>>--
>>Jani Nikula, Intel Open Source Graphics Center
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-03-11 14:10 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-11 3:57 [v5 00/13] Add HDR Metadata Parsing and handling in DRM layer Uma Shankar
2019-03-11 3:45 ` ✗ Fi.CI.CHECKPATCH: warning for Add HDR Metadata Parsing and handling in DRM layer (rev5) Patchwork
2019-03-11 13:54 ` Jani Nikula
2019-03-11 13:56 ` Shankar, Uma
2019-03-11 14:12 ` Jani Nikula [this message]
2019-03-11 15:11 ` Shankar, Uma
2019-03-11 3:57 ` [v5 01/13] drm: Add HDR source metadata property Uma Shankar
2019-03-15 7:08 ` Sharma, Shashank
2019-03-20 6:21 ` Shankar, Uma
2019-03-11 3:57 ` [v5 02/13] drm: Parse HDR metadata info from EDID Uma Shankar
2019-03-15 7:26 ` Sharma, Shashank
2019-03-20 6:37 ` Shankar, Uma
2019-03-11 3:57 ` [v5 03/13] drm: Parse Colorimetry data block " Uma Shankar
2019-03-15 7:30 ` Sharma, Shashank
2019-03-20 7:17 ` Shankar, Uma
2019-03-20 8:15 ` Sharma, Shashank
2019-03-20 8:58 ` Shankar, Uma
2019-03-11 3:57 ` [v5 04/13] drm/i915: Attach HDR metadata property to connector Uma Shankar
2019-03-15 7:36 ` Sharma, Shashank
2019-03-20 7:58 ` Shankar, Uma
2019-03-11 3:57 ` [v5 05/13] drm: Implement HDR output metadata set and get property handling Uma Shankar
2019-03-11 3:57 ` [v5 06/13] drm: Enable HDR infoframe support Uma Shankar
2019-03-15 8:23 ` Sharma, Shashank
2019-03-20 9:24 ` Shankar, Uma
2019-03-11 3:57 ` [v5 07/13] drm/i915: Write HDR infoframe and send to panel Uma Shankar
2019-03-15 11:07 ` Sharma, Shashank
2019-03-20 9:46 ` Shankar, Uma
2019-03-11 3:57 ` [v5 08/13] drm/i915: [DO NOT MERGE] hack for glk board outputs Uma Shankar
2019-03-11 3:58 ` [v5 09/13] drm/i915: Add HLG EOTF Uma Shankar
2019-03-15 11:09 ` Sharma, Shashank
2019-03-11 3:58 ` [v5 10/13] drm/i915: Enable infoframes on GLK+ for HDR Uma Shankar
2019-03-11 3:58 ` [v5 11/13] drm/i915:Enabled Modeset when HDR Infoframe changes Uma Shankar
2019-03-11 3:58 ` [v5 12/13] drm/i915: Set Infoframe for non modeset case for HDR Uma Shankar
2019-03-11 3:58 ` [v5 13/13] video/hdmi: Add const variants for drm infoframe Uma Shankar
2019-03-11 4:10 ` ✗ Fi.CI.BAT: failure for Add HDR Metadata Parsing and handling in DRM layer (rev5) Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871s3dlcu0.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=patchwork@emeril.freedesktop.org \
--cc=uma.shankar@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.