All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Animesh Manna <animesh.manna@intel.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Arun R Murthy <arun.r.murthy@intel.com>
Subject: [linux-next:master 806/1493] drivers/gpu/drm/i915/display/intel_psr.c:1322 _psr_compute_config() warn: always true condition '(entry_setup_frames >= 0) => (0-255 >= 0)'
Date: Thu, 16 Nov 2023 00:35:56 +0800	[thread overview]
Message-ID: <202311160000.dwlz2mPL-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   bc962b35b139dd52319e6fc0f4bab00593bf38c9
commit: b8cf5b5d266ec20e1ab90f38c8d779c669c2d219 [806/1493] drm/i915/panelreplay: Initializaton and compute config for panel replay
config: i386-randconfig-141-20231115 (https://download.01.org/0day-ci/archive/20231116/202311160000.dwlz2mPL-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231116/202311160000.dwlz2mPL-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/202311160000.dwlz2mPL-lkp@intel.com/

New smatch warnings:
drivers/gpu/drm/i915/display/intel_psr.c:1322 _psr_compute_config() warn: always true condition '(entry_setup_frames >= 0) => (0-255 >= 0)'

Old smatch warnings:
drivers/gpu/drm/i915/display/intel_psr.c:976 tgl_dc3co_exitline_compute_config() warn: ignoring unreachable code.
drivers/gpu/drm/i915/display/intel_psr.c:1141 intel_psr_entry_setup_frames() warn: signedness bug returning '(-62)'
drivers/gpu/drm/i915/display/intel_psr.c:1156 intel_psr_entry_setup_frames() warn: signedness bug returning '(-62)'
drivers/gpu/drm/i915/display/intel_psr.c:2921 intel_psr_short_pulse() error: uninitialized symbol 'error_status'.
drivers/gpu/drm/i915/display/intel_psr.c:2926 intel_psr_short_pulse() error: uninitialized symbol 'error_status'.
drivers/gpu/drm/i915/display/intel_psr.c:3278 i915_psr_sink_status_show() error: uninitialized symbol 'error_status'.

vim +1322 drivers/gpu/drm/i915/display/intel_psr.c

  1302	
  1303	static bool _psr_compute_config(struct intel_dp *intel_dp,
  1304					struct intel_crtc_state *crtc_state)
  1305	{
  1306		struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
  1307		const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;
  1308		u8 entry_setup_frames;
  1309	
  1310		/*
  1311		 * Current PSR panels don't work reliably with VRR enabled
  1312		 * So if VRR is enabled, do not enable PSR.
  1313		 */
  1314		if (crtc_state->vrr.enable)
  1315			return false;
  1316	
  1317		if (!CAN_PSR(intel_dp))
  1318			return false;
  1319	
  1320		entry_setup_frames = intel_psr_entry_setup_frames(intel_dp, adjusted_mode);
  1321	
> 1322		if (entry_setup_frames >= 0) {
  1323			intel_dp->psr.entry_setup_frames = entry_setup_frames;
  1324		} else {
  1325			drm_dbg_kms(&dev_priv->drm,
  1326				    "PSR condition failed: PSR setup timing not met\n");
  1327			return false;
  1328		}
  1329	
  1330		return true;
  1331	}
  1332	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2023-11-15 16:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202311160000.dwlz2mPL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=animesh.manna@intel.com \
    --cc=arun.r.murthy@intel.com \
    --cc=linux-mm@kvack.org \
    --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.