From: kernel test robot <lkp@intel.com>
To: Rob Clark <robdclark@chromium.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Sean Paul <sean@chromium.org>
Subject: drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:817 dpu_crtc_enable() error: uninitialized symbol 'request_bandwidth'.
Date: Tue, 11 Aug 2020 20:15:40 +0800 [thread overview]
Message-ID: <202008112038.SiPkJfWU%lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2020-08-11 12:17 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=202008112038.SiPkJfWU%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robdclark@chromium.org \
--cc=sean@chromium.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 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).