[Freedreno] [PATCH v2 10/14] drm/msm/dpu: use dpu_perf_cfg in DPU core_perf code
kernel test robot
lkp at intel.com
Thu Jul 6 00:13:57 UTC 2023
Hi Dmitry,
kernel test robot noticed the following build warnings:
[auto build test WARNING on drm-misc/drm-misc-next]
[also build test WARNING on linus/master v6.4 next-20230705]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Dmitry-Baryshkov/drm-msm-dpu-drop-enum-dpu_core_perf_data_bus_id/20230704-230618
base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link: https://lore.kernel.org/r/20230704150354.159882-11-dmitry.baryshkov%40linaro.org
patch subject: [PATCH v2 10/14] drm/msm/dpu: use dpu_perf_cfg in DPU core_perf code
config: arm-defconfig (https://download.01.org/0day-ci/archive/20230706/202307060717.Jqn298i0-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce: (https://download.01.org/0day-ci/archive/20230706/202307060717.Jqn298i0-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307060717.Jqn298i0-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:251:25: warning: variable 'kms' is uninitialized when used here [-Wuninitialized]
if (atomic_dec_return(&kms->bandwidth_ref) > 0)
^~~
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:242:21: note: initialize the variable 'kms' to silence this warning
struct dpu_kms *kms;
^
= NULL
1 warning generated.
vim +/kms +251 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 230
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 231 /**
2785fd47959003 Lee Jones 2020-11-23 232 * dpu_core_perf_crtc_release_bw() - request zero bandwidth
2785fd47959003 Lee Jones 2020-11-23 233 * @crtc: pointer to a crtc
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 234 *
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 235 * Function checks a state variable for the crtc, if all pending commit
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 236 * requests are done, meaning no more bandwidth is needed, release
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 237 * bandwidth request.
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 238 */
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 239 void dpu_core_perf_crtc_release_bw(struct drm_crtc *crtc)
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 240 {
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 241 struct dpu_crtc *dpu_crtc;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 242 struct dpu_kms *kms;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 243
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 244 if (!crtc) {
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 245 DPU_ERROR("invalid crtc\n");
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 246 return;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 247 }
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 248
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 249 dpu_crtc = to_dpu_crtc(crtc);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 250
241b507c166fef Rob Clark 2019-08-20 @251 if (atomic_dec_return(&kms->bandwidth_ref) > 0)
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 252 return;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 253
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 254 /* Release the bandwidth */
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 255 if (kms->perf.enable_bw_release) {
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 256 trace_dpu_cmd_release_bw(crtc->base.id);
5b702d787b47e1 Stephen Boyd 2021-04-30 257 DRM_DEBUG_ATOMIC("Release BW crtc=%d\n", crtc->base.id);
cb88482e2570f6 Jayant Shekhar 2019-06-18 258 dpu_crtc->cur_perf.bw_ctl = 0;
cb88482e2570f6 Jayant Shekhar 2019-06-18 259 _dpu_core_perf_crtc_update_bus(kms, crtc);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 260 }
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 261 }
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 262
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Freedreno
mailing list