From: kernel test robot <lkp@intel.com>
To: Animesh Manna <animesh.manna@intel.com>, intel-gfx@lists.freedesktop.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [Intel-gfx] [PATCH v4 4/6] drm/i915/panelreplay: Initializaton and compute config for panel replay
Date: Sat, 26 Aug 2023 10:05:36 +0800 [thread overview]
Message-ID: <202308260901.MphIjr2l-lkp@intel.com> (raw)
In-Reply-To: <20230824040952.186407-5-animesh.manna@intel.com>
Hi Animesh,
kernel test robot noticed the following build warnings:
[auto build test WARNING on drm-tip/drm-tip]
url: https://github.com/intel-lab-lkp/linux/commits/Animesh-Manna/drm-panelreplay-dpcd-register-definition-for-panelreplay/20230824-122224
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
patch link: https://lore.kernel.org/r/20230824040952.186407-5-animesh.manna%40intel.com
patch subject: [Intel-gfx] [PATCH v4 4/6] drm/i915/panelreplay: Initializaton and compute config for panel replay
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230826/202308260901.MphIjr2l-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230826/202308260901.MphIjr2l-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/202308260901.MphIjr2l-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/display/intel_dp.c:3776:27: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
if (vsc->revision != 0x5 || vsc->revision != 0x7)
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +3776 drivers/gpu/drm/i915/display/intel_dp.c
3751
3752 static ssize_t intel_dp_vsc_sdp_pack(const struct drm_dp_vsc_sdp *vsc,
3753 struct dp_sdp *sdp, size_t size)
3754 {
3755 size_t length = sizeof(struct dp_sdp);
3756
3757 if (size < length)
3758 return -ENOSPC;
3759
3760 memset(sdp, 0, size);
3761
3762 /*
3763 * Prepare VSC Header for SU as per DP 1.4a spec, Table 2-119
3764 * VSC SDP Header Bytes
3765 */
3766 sdp->sdp_header.HB0 = 0; /* Secondary-Data Packet ID = 0 */
3767 sdp->sdp_header.HB1 = vsc->sdp_type; /* Secondary-data Packet Type */
3768 sdp->sdp_header.HB2 = vsc->revision; /* Revision Number */
3769 sdp->sdp_header.HB3 = vsc->length; /* Number of Valid Data Bytes */
3770
3771 /*
3772 * Other than revision 0x5 which supports Pixel Encoding/Colorimetry
3773 * Format as per DP 1.4a spec, revision 0x7 also supports Pixel
3774 * Encoding/Colorimetry Format as per DP 2.0 spec.
3775 */
> 3776 if (vsc->revision != 0x5 || vsc->revision != 0x7)
3777 goto out;
3778
3779 /* VSC SDP Payload for DB16 through DB18 */
3780 /* Pixel Encoding and Colorimetry Formats */
3781 sdp->db[16] = (vsc->pixelformat & 0xf) << 4; /* DB16[7:4] */
3782 sdp->db[16] |= vsc->colorimetry & 0xf; /* DB16[3:0] */
3783
3784 switch (vsc->bpc) {
3785 case 6:
3786 /* 6bpc: 0x0 */
3787 break;
3788 case 8:
3789 sdp->db[17] = 0x1; /* DB17[3:0] */
3790 break;
3791 case 10:
3792 sdp->db[17] = 0x2;
3793 break;
3794 case 12:
3795 sdp->db[17] = 0x3;
3796 break;
3797 case 16:
3798 sdp->db[17] = 0x4;
3799 break;
3800 default:
3801 MISSING_CASE(vsc->bpc);
3802 break;
3803 }
3804 /* Dynamic Range and Component Bit Depth */
3805 if (vsc->dynamic_range == DP_DYNAMIC_RANGE_CTA)
3806 sdp->db[17] |= 0x80; /* DB17[7] */
3807
3808 /* Content Type */
3809 sdp->db[18] = vsc->content_type & 0x7;
3810
3811 out:
3812 return length;
3813 }
3814
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-08-26 2:06 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 4:09 [Intel-gfx] [PATCH v4 0/6] Panel replay phase1 implementation Animesh Manna
2023-08-24 4:09 ` [Intel-gfx] [PATCH v4 1/6] drm/panelreplay: dpcd register definition for panelreplay Animesh Manna
2023-08-24 11:29 ` Jani Nikula
2023-08-25 8:02 ` Manna, Animesh
2023-08-24 4:09 ` [Intel-gfx] [PATCH v4 2/6] drm/i915/panelreplay: Added HAS_PANEL_REPLAY() macro Animesh Manna
2023-08-24 11:20 ` Hogander, Jouni
2023-08-25 7:59 ` Manna, Animesh
2023-08-24 4:09 ` [Intel-gfx] [PATCH v4 3/6] drm/i915/psr: Move psr specific dpcd init into own function Animesh Manna
2023-08-24 4:09 ` [Intel-gfx] [PATCH v4 4/6] drm/i915/panelreplay: Initializaton and compute config for panel replay Animesh Manna
2023-08-24 11:35 ` Jani Nikula
2023-08-25 8:35 ` Manna, Animesh
2023-08-26 2:05 ` kernel test robot [this message]
2023-08-24 4:09 ` [Intel-gfx] [PATCH v4 5/6] drm/i915/panelreplay: Enable panel replay dpcd initialization for DP Animesh Manna
2023-08-24 4:09 ` [Intel-gfx] [PATCH v4 6/6] drm/i915/panelreplay: enable/disable panel replay Animesh Manna
2023-08-24 11:25 ` Hogander, Jouni
2023-08-25 8:01 ` Manna, Animesh
2023-08-24 5:05 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Panel replay phase1 implementation (rev6) Patchwork
2023-08-24 5:05 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-08-24 5:20 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-08-24 12:30 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " 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=202308260901.MphIjr2l-lkp@intel.com \
--to=lkp@intel.com \
--cc=animesh.manna@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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.