From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 9968/10320] drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c:439:7: warning: variable 'sdp_stream_enable' set but not used
Date: Wed, 25 Aug 2021 22:34:49 +0800 [thread overview]
Message-ID: <202108252247.KPsHmxCI-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3497 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7636510f976d75b860848884169ba985c8f844d8
commit: 096d3f50d93fa562f4b7ce033d9fc494fda6b9ba [9968/10320] drm/amd/display: Add DP 2.0 HPO Stream Encoder
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=096d3f50d93fa562f4b7ce033d9fc494fda6b9ba
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 096d3f50d93fa562f4b7ce033d9fc494fda6b9ba
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c: In function 'dcn31_hpo_dp_stream_enc_update_dp_info_packets':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c:439:7: warning: variable 'sdp_stream_enable' set but not used [-Wunused-but-set-variable]
439 | bool sdp_stream_enable = false;
| ^~~~~~~~~~~~~~~~~
vim +/sdp_stream_enable +439 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c
432
433 static void dcn31_hpo_dp_stream_enc_update_dp_info_packets(
434 struct hpo_dp_stream_encoder *enc,
435 const struct encoder_info_frame *info_frame)
436 {
437 struct dcn31_hpo_dp_stream_encoder *enc3 = DCN3_1_HPO_DP_STREAM_ENC_FROM_HPO_STREAM_ENC(enc);
438 uint32_t dmdata_packet_enabled = 0;
> 439 bool sdp_stream_enable = false;
440
441 if (info_frame->vsc.valid) {
442 enc->vpg->funcs->update_generic_info_packet(
443 enc->vpg,
444 0, /* packetIndex */
445 &info_frame->vsc);
446 sdp_stream_enable = true;
447 }
448 if (info_frame->spd.valid) {
449 enc->vpg->funcs->update_generic_info_packet(
450 enc->vpg,
451 2, /* packetIndex */
452 &info_frame->spd);
453 sdp_stream_enable = true;
454 }
455 if (info_frame->hdrsmd.valid) {
456 enc->vpg->funcs->update_generic_info_packet(
457 enc->vpg,
458 3, /* packetIndex */
459 &info_frame->hdrsmd);
460 sdp_stream_enable = true;
461 }
462 /* enable/disable transmission of packet(s).
463 * If enabled, packet transmission begins on the next frame
464 */
465 REG_UPDATE(DP_SYM32_ENC_SDP_GSP_CONTROL0, GSP_VIDEO_CONTINUOUS_TRANSMISSION_ENABLE, info_frame->vsc.valid);
466 REG_UPDATE(DP_SYM32_ENC_SDP_GSP_CONTROL2, GSP_VIDEO_CONTINUOUS_TRANSMISSION_ENABLE, info_frame->spd.valid);
467 REG_UPDATE(DP_SYM32_ENC_SDP_GSP_CONTROL3, GSP_VIDEO_CONTINUOUS_TRANSMISSION_ENABLE, info_frame->hdrsmd.valid);
468
469 /* check if dynamic metadata packet transmission is enabled */
470 REG_GET(DP_SYM32_ENC_SDP_METADATA_PACKET_CONTROL,
471 METADATA_PACKET_ENABLE, &dmdata_packet_enabled);
472
473 /* Enable secondary data path */
474 REG_UPDATE(DP_SYM32_ENC_SDP_CONTROL,
475 SDP_STREAM_ENABLE, 1);
476 }
477
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 65192 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Fangzhi Zuo <Jerry.Zuo@amd.com>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Alex Deucher <alexander.deucher@amd.com>,
Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Subject: [linux-next:master 9968/10320] drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c:439:7: warning: variable 'sdp_stream_enable' set but not used
Date: Wed, 25 Aug 2021 22:34:49 +0800 [thread overview]
Message-ID: <202108252247.KPsHmxCI-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3419 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7636510f976d75b860848884169ba985c8f844d8
commit: 096d3f50d93fa562f4b7ce033d9fc494fda6b9ba [9968/10320] drm/amd/display: Add DP 2.0 HPO Stream Encoder
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=096d3f50d93fa562f4b7ce033d9fc494fda6b9ba
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 096d3f50d93fa562f4b7ce033d9fc494fda6b9ba
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c: In function 'dcn31_hpo_dp_stream_enc_update_dp_info_packets':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c:439:7: warning: variable 'sdp_stream_enable' set but not used [-Wunused-but-set-variable]
439 | bool sdp_stream_enable = false;
| ^~~~~~~~~~~~~~~~~
vim +/sdp_stream_enable +439 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c
432
433 static void dcn31_hpo_dp_stream_enc_update_dp_info_packets(
434 struct hpo_dp_stream_encoder *enc,
435 const struct encoder_info_frame *info_frame)
436 {
437 struct dcn31_hpo_dp_stream_encoder *enc3 = DCN3_1_HPO_DP_STREAM_ENC_FROM_HPO_STREAM_ENC(enc);
438 uint32_t dmdata_packet_enabled = 0;
> 439 bool sdp_stream_enable = false;
440
441 if (info_frame->vsc.valid) {
442 enc->vpg->funcs->update_generic_info_packet(
443 enc->vpg,
444 0, /* packetIndex */
445 &info_frame->vsc);
446 sdp_stream_enable = true;
447 }
448 if (info_frame->spd.valid) {
449 enc->vpg->funcs->update_generic_info_packet(
450 enc->vpg,
451 2, /* packetIndex */
452 &info_frame->spd);
453 sdp_stream_enable = true;
454 }
455 if (info_frame->hdrsmd.valid) {
456 enc->vpg->funcs->update_generic_info_packet(
457 enc->vpg,
458 3, /* packetIndex */
459 &info_frame->hdrsmd);
460 sdp_stream_enable = true;
461 }
462 /* enable/disable transmission of packet(s).
463 * If enabled, packet transmission begins on the next frame
464 */
465 REG_UPDATE(DP_SYM32_ENC_SDP_GSP_CONTROL0, GSP_VIDEO_CONTINUOUS_TRANSMISSION_ENABLE, info_frame->vsc.valid);
466 REG_UPDATE(DP_SYM32_ENC_SDP_GSP_CONTROL2, GSP_VIDEO_CONTINUOUS_TRANSMISSION_ENABLE, info_frame->spd.valid);
467 REG_UPDATE(DP_SYM32_ENC_SDP_GSP_CONTROL3, GSP_VIDEO_CONTINUOUS_TRANSMISSION_ENABLE, info_frame->hdrsmd.valid);
468
469 /* check if dynamic metadata packet transmission is enabled */
470 REG_GET(DP_SYM32_ENC_SDP_METADATA_PACKET_CONTROL,
471 METADATA_PACKET_ENABLE, &dmdata_packet_enabled);
472
473 /* Enable secondary data path */
474 REG_UPDATE(DP_SYM32_ENC_SDP_CONTROL,
475 SDP_STREAM_ENABLE, 1);
476 }
477
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 65192 bytes --]
next reply other threads:[~2021-08-25 14:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-25 14:34 kernel test robot [this message]
2021-08-25 14:34 ` [linux-next:master 9968/10320] drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c:439:7: warning: variable 'sdp_stream_enable' set but not used kernel test robot
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=202108252247.KPsHmxCI-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.