From: kernel test robot <lkp@intel.com>
To: Hermes Wu via B4 Relay <devnull+Hermes.wu.ite.com.tw@kernel.org>,
Andrzej Hajda <andrzej.hajda@intel.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Robert Foss <rfoss@kernel.org>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Pet.Weng@ite.com.tw, Kenneth.Hung@ite.com.tw,
Hermes Wu <Hermes.Wu@ite.com.tw>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] drm/bridge: Add ITE IT6162 MIPI DSI to HDMI bridge driver
Date: Mon, 9 Mar 2026 23:23:58 +0800 [thread overview]
Message-ID: <202603092305.W1fFHKL5-lkp@intel.com> (raw)
In-Reply-To: <20260309-upstream-6162-v2-2-debdb6c88030@ite.com.tw>
Hi Hermes,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 2622649ad6cdbb3e77bfafc8c0fe686090b77f70]
url: https://github.com/intel-lab-lkp/linux/commits/Hermes-Wu-via-B4-Relay/dt-bindings-display-bridge-Add-ITE-IT6162-MIPI-DSI-to-HDMI-bridge/20260309-174457
base: 2622649ad6cdbb3e77bfafc8c0fe686090b77f70
patch link: https://lore.kernel.org/r/20260309-upstream-6162-v2-2-debdb6c88030%40ite.com.tw
patch subject: [PATCH v2 2/2] drm/bridge: Add ITE IT6162 MIPI DSI to HDMI bridge driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260309/202603092305.W1fFHKL5-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260309/202603092305.W1fFHKL5-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603092305.W1fFHKL5-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/bridge/ite-it6162.c:728:7: warning: variable 'cp_status' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
728 | if (it6162->hdcp_sts != hdcp_sts ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
729 | it6162->hdcp_sts == NO_HDCP_STATE) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/ite-it6162.c:759:57: note: uninitialized use occurs here
759 | drm_hdcp_update_content_protection(it6162->connector, cp_status);
| ^~~~~~~~~
drivers/gpu/drm/bridge/ite-it6162.c:728:3: note: remove the 'if' if its condition is always true
728 | if (it6162->hdcp_sts != hdcp_sts ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
729 | it6162->hdcp_sts == NO_HDCP_STATE) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/ite-it6162.c:703:15: note: initialize the variable 'cp_status' to silence this warning
703 | u64 cp_status;
| ^
| = 0
1 warning generated.
vim +728 drivers/gpu/drm/bridge/ite-it6162.c
695
696 static void it6162_hdcp_handler(struct it6162 *it6162)
697 {
698 struct regmap *regmap = it6162->regmap;
699 unsigned int tx_status, sink_cap;
700 enum hdcp_state hdcp_sts;
701 struct it6162_hdcp_cfg *hdcp_cfg = &it6162->hdcp_cfg;
702 u8 hdcp_ver;
703 u64 cp_status;
704
705 if (hdcp_cfg->hdcp_version == NO_HDCP || !it6162->en_hdcp) {
706 drm_dbg(it6162->drm, "HDCP not enabled, skip hdcp check");
707 return;
708 }
709
710 regmap_read(regmap, OFFSET_TX_STATUS, &tx_status);
711 regmap_read(regmap, OFFSET_SINK_CAP, &sink_cap);
712
713 drm_dbg(it6162->drm, "Tx status %x", tx_status);
714 drm_dbg(it6162->drm, "SINK capability %x", sink_cap);
715
716 if (!GET_TX_VIDEO_STATUS(tx_status)) {
717 drm_dbg(it6162->drm, "video not stable, skip hdcp check");
718 return;
719 }
720
721 hdcp_sts = GET_TX_HDCP_STATUS(tx_status);
722 hdcp_ver = GET_SINK_CAP_HDCP_VER(sink_cap);
723 drm_dbg(it6162->drm, "hdcp status: %x->%x, version: %x-%x",
724 it6162->hdcp_sts, hdcp_sts,
725 it6162->hdcp_version, hdcp_ver);
726
727 if (it6162->hdcp_version != NO_HDCP) {
> 728 if (it6162->hdcp_sts != hdcp_sts ||
729 it6162->hdcp_sts == NO_HDCP_STATE) {
730 it6162->hdcp_sts = hdcp_sts;
731 cp_status = DRM_MODE_CONTENT_PROTECTION_DESIRED;
732 switch (hdcp_sts) {
733 case AUTH_DONE:
734 drm_dbg(it6162->drm, "HDCP AUTH DONE");
735 it6162_update_hdcp(it6162);
736 cp_status = DRM_MODE_CONTENT_PROTECTION_ENABLED;
737 break;
738 case AUTH_FAIL:
739 drm_dbg(it6162->drm, "HDCP AUTH FAIL");
740 if (hdcp_ver == HDCP_23) {
741 drm_dbg(it6162->drm,
742 "HDCP 2.3 auth fail, change to HDCP 1.4");
743 it6162_tx_hdcp_setup(it6162,
744 HDCP_14,
745 true);
746 } else {
747 it6162_tx_hdcp_disable(it6162);
748 }
749
750 break;
751 default:
752 drm_dbg(it6162->drm, "HDCP NO AUTH");
753 it6162_tx_hdcp_setup(it6162,
754 it6162->hdcp_version,
755 true);
756 break;
757 }
758 }
759 drm_hdcp_update_content_protection(it6162->connector, cp_status);
760 }
761 }
762
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-03-09 15:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 9:42 [PATCH v2 0/2] Add ITE IT6162 MIPI DSI to HDMI bridge driver Hermes Wu
2026-03-09 9:42 ` Hermes Wu via B4 Relay
2026-03-09 9:42 ` [PATCH v2 1/2] dt-bindings: display: bridge: Add ITE IT6162 MIPI DSI to HDMI bridge Hermes Wu
2026-03-09 9:42 ` Hermes Wu via B4 Relay
2026-03-09 10:30 ` Rob Herring (Arm)
2026-03-10 8:08 ` Krzysztof Kozlowski
2026-03-10 8:57 ` Hermes.Wu
2026-03-10 9:33 ` Krzysztof Kozlowski
2026-03-09 9:42 ` [PATCH v2 2/2] drm/bridge: Add ITE IT6162 MIPI DSI to HDMI bridge driver Hermes Wu
2026-03-09 9:42 ` Hermes Wu via B4 Relay
2026-03-09 15:23 ` kernel test robot [this message]
2026-03-09 22:26 ` kernel test robot
2026-03-10 8:18 ` Krzysztof Kozlowski
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=202603092305.W1fFHKL5-lkp@intel.com \
--to=lkp@intel.com \
--cc=Hermes.Wu@ite.com.tw \
--cc=Kenneth.Hung@ite.com.tw \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=Pet.Weng@ite.com.tw \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=devnull+Hermes.wu.ite.com.tw@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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.