From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [drm-drm-intel:drm-intel-gt-next 24/41] drivers/gpu/drm/i915/i915_scheduler.c:574 __i915_sched_rewind_requests() error: uninitialized symbol 'pl'.
Date: Sun, 07 Feb 2021 12:04:11 +0800 [thread overview]
Message-ID: <202102071209.cdIQWOO9-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3929 bytes --]
CC: kbuild-all(a)lists.01.org
TO: Chris Wilson <chris@chris-wilson.co.uk>
CC: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
tree: git://anongit.freedesktop.org/drm/drm-intel drm-intel-gt-next
head: 38a40d2110751bc9f5c408de992551e1ea7d11c6
commit: 3d473f1476d815ecac447677cc1d4d990f31e327 [24/41] drm/i915: Extract request rewinding from execlists
:::::: branch date: 14 hours ago
:::::: commit date: 3 days ago
config: x86_64-randconfig-m001-20210207 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/gpu/drm/i915/i915_scheduler.c:574 __i915_sched_rewind_requests() error: uninitialized symbol 'pl'.
vim +/pl +574 drivers/gpu/drm/i915/i915_scheduler.c
d353a704a6db57 Chris Wilson 2021-02-03 547
3d473f1476d815 Chris Wilson 2021-02-03 548 struct i915_request *
3d473f1476d815 Chris Wilson 2021-02-03 549 __i915_sched_rewind_requests(struct intel_engine_cs *engine)
3d473f1476d815 Chris Wilson 2021-02-03 550 {
3d473f1476d815 Chris Wilson 2021-02-03 551 struct i915_request *rq, *rn, *active = NULL;
3d473f1476d815 Chris Wilson 2021-02-03 552 struct list_head *pl;
3d473f1476d815 Chris Wilson 2021-02-03 553 int prio = I915_PRIORITY_INVALID;
3d473f1476d815 Chris Wilson 2021-02-03 554
3d473f1476d815 Chris Wilson 2021-02-03 555 lockdep_assert_held(&engine->active.lock);
3d473f1476d815 Chris Wilson 2021-02-03 556
3d473f1476d815 Chris Wilson 2021-02-03 557 list_for_each_entry_safe_reverse(rq, rn,
3d473f1476d815 Chris Wilson 2021-02-03 558 &engine->active.requests,
3d473f1476d815 Chris Wilson 2021-02-03 559 sched.link) {
3d473f1476d815 Chris Wilson 2021-02-03 560 if (__i915_request_is_complete(rq)) {
3d473f1476d815 Chris Wilson 2021-02-03 561 list_del_init(&rq->sched.link);
3d473f1476d815 Chris Wilson 2021-02-03 562 continue;
3d473f1476d815 Chris Wilson 2021-02-03 563 }
3d473f1476d815 Chris Wilson 2021-02-03 564
3d473f1476d815 Chris Wilson 2021-02-03 565 __i915_request_unsubmit(rq);
3d473f1476d815 Chris Wilson 2021-02-03 566
3d473f1476d815 Chris Wilson 2021-02-03 567 GEM_BUG_ON(rq_prio(rq) == I915_PRIORITY_INVALID);
3d473f1476d815 Chris Wilson 2021-02-03 568 if (rq_prio(rq) != prio) {
3d473f1476d815 Chris Wilson 2021-02-03 569 prio = rq_prio(rq);
3d473f1476d815 Chris Wilson 2021-02-03 570 pl = i915_sched_lookup_priolist(engine, prio);
3d473f1476d815 Chris Wilson 2021-02-03 571 }
3d473f1476d815 Chris Wilson 2021-02-03 572 GEM_BUG_ON(RB_EMPTY_ROOT(&engine->execlists.queue.rb_root));
3d473f1476d815 Chris Wilson 2021-02-03 573
3d473f1476d815 Chris Wilson 2021-02-03 @574 list_move(&rq->sched.link, pl);
3d473f1476d815 Chris Wilson 2021-02-03 575 set_bit(I915_FENCE_FLAG_PQUEUE, &rq->fence.flags);
3d473f1476d815 Chris Wilson 2021-02-03 576
3d473f1476d815 Chris Wilson 2021-02-03 577 /* Check in case we rollback so far we wrap [size/2] */
3d473f1476d815 Chris Wilson 2021-02-03 578 if (intel_ring_direction(rq->ring,
3d473f1476d815 Chris Wilson 2021-02-03 579 rq->tail,
3d473f1476d815 Chris Wilson 2021-02-03 580 rq->ring->tail + 8) > 0)
3d473f1476d815 Chris Wilson 2021-02-03 581 rq->context->lrc.desc |= CTX_DESC_FORCE_RESTORE;
3d473f1476d815 Chris Wilson 2021-02-03 582
3d473f1476d815 Chris Wilson 2021-02-03 583 active = rq;
3d473f1476d815 Chris Wilson 2021-02-03 584 }
3d473f1476d815 Chris Wilson 2021-02-03 585
3d473f1476d815 Chris Wilson 2021-02-03 586 return active;
3d473f1476d815 Chris Wilson 2021-02-03 587 }
3d473f1476d815 Chris Wilson 2021-02-03 588
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37329 bytes --]
reply other threads:[~2021-02-07 4:04 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=202102071209.cdIQWOO9-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.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 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.