linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:817 dpu_crtc_enable() error: uninitialized symbol 'request_bandwidth'.
@ 2020-08-11 12:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-11 12:15 UTC (permalink / raw)
  To: Rob Clark; +Cc: kbuild-all, linux-kernel, Sean Paul

[-- Attachment #1: Type: text/plain, Size: 2305 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   00e4db51259a5f936fec1424b884f029479d3981
commit: 241b507c166fef3e461e5daf562d8e41aa41bf15 drm/msm/dpu: fix "frame done" timeouts
date:   11 months ago
config: arm64-randconfig-m031-20200811 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

smatch warnings:
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:817 dpu_crtc_enable() error: uninitialized symbol 'request_bandwidth'.

vim +/request_bandwidth +817 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c

   786	
   787	static void dpu_crtc_enable(struct drm_crtc *crtc,
   788			struct drm_crtc_state *old_crtc_state)
   789	{
   790		struct dpu_crtc *dpu_crtc;
   791		struct drm_encoder *encoder;
   792		struct msm_drm_private *priv;
   793		bool request_bandwidth;
   794	
   795		if (!crtc || !crtc->dev || !crtc->dev->dev_private) {
   796			DPU_ERROR("invalid crtc\n");
   797			return;
   798		}
   799		priv = crtc->dev->dev_private;
   800	
   801		pm_runtime_get_sync(crtc->dev->dev);
   802	
   803		DRM_DEBUG_KMS("crtc%d\n", crtc->base.id);
   804		dpu_crtc = to_dpu_crtc(crtc);
   805	
   806		drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask) {
   807			/* in video mode, we hold an extra bandwidth reference
   808			 * as we cannot drop bandwidth at frame-done if any
   809			 * crtc is being used in video mode.
   810			 */
   811			if (dpu_encoder_get_intf_mode(encoder) == INTF_MODE_VIDEO)
   812				request_bandwidth = true;
   813			dpu_encoder_register_frame_event_callback(encoder,
   814					dpu_crtc_frame_event_cb, (void *)crtc);
   815		}
   816	
 > 817		if (request_bandwidth)
   818			atomic_inc(&_dpu_crtc_get_kms(crtc)->bandwidth_ref);
   819	
   820		trace_dpu_crtc_enable(DRMID(crtc), true, dpu_crtc);
   821		dpu_crtc->enabled = true;
   822	
   823		drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask)
   824			dpu_encoder_assign_crtc(encoder, crtc);
   825	
   826		/* Enable/restore vblank irq handling */
   827		drm_crtc_vblank_on(crtc);
   828	}
   829	

---
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: 33586 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-11 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 12:15 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:817 dpu_crtc_enable() error: uninitialized symbol 'request_bandwidth' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).