Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2699172pxf; Sun, 4 Apr 2021 10:51:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw00Wt3+bFOUg5n2j49Awe4lKjV2ft0PLBSHiqruQskPI82wYPNcPhJA+KY6XoUaqC1JEht X-Received: by 2002:a17:906:e0d6:: with SMTP id gl22mr24428767ejb.444.1617558676108; Sun, 04 Apr 2021 10:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617558676; cv=none; d=google.com; s=arc-20160816; b=cSfabjN9ifVhv8aCjGS70ZyUcUnbMjeKlB1hBxPSfBcucFwc+fbL3fr4XlTYL4ZjNZ 7bDbWqwlmUXnImUsB843GhvHspiKVOqhVTR3CA5bp6TFfKbwTctcNNw0BD1p7QbQZopi n8VjUzylwdBzNjthbFeDTS7ZaPp/dkbr7ufV/03lOd7mE25Q9KYTF8Yp++jScPlGs+1T PdLm4XPpDCS2m4GzQh4ueKCiYDIWX/BGC/MF1GRRoa5E4eWEmVXZXU8szrU+dtGLI1IN yuH2tsXaTZP9b9G13WTAXPM4z5MUFII4Ro6/Tgi1XXsvCDi4SluLMC580xkJDWvCdGY0 LSnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xtS4t+nQto3HTF/gGAoZaki1HLvMbnu+fb1pzmfFsTk=; b=ab1NYs71JPU4mpSl0xkymKdKFK9BAWZZUX7oZj17hPGLO73ZRCnUOBlMsAy+jqyr1R RVCjurkb8ku3slHjCdYOfV4i40RYbWrPmQSNuyD0Xv+OXAzIkDZu84iUvblj+4mN+McS jCEWshHOoz1hQNRwST1+h+BQZmauq0bXUnCDikW0Tep1uRG7BHJJiVMWBu/WCOALkPCG dyVqk9XUsFX0Af/YVyVhusYhCAbGN9Ik5OLfeECvhTD0k60yr5kD4mVt0onwI3XxOodq o1Wyn+t6ei2oE3CjzUJReEYacDkZk8jYvY/DgeXHJj796aCM3Rsene1WU7c8m8lJ/GUb VNQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gxuY/Ho+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si229397ejy.108.2021.04.04.10.50.53; Sun, 04 Apr 2021 10:51:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gxuY/Ho+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230494AbhDDRuc (ORCPT + 99 others); Sun, 4 Apr 2021 13:50:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbhDDRub (ORCPT ); Sun, 4 Apr 2021 13:50:31 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB5C4C061756 for ; Sun, 4 Apr 2021 10:50:26 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id d10so1938278pgf.12 for ; Sun, 04 Apr 2021 10:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xtS4t+nQto3HTF/gGAoZaki1HLvMbnu+fb1pzmfFsTk=; b=gxuY/Ho+fio8UKkm58hhbutA59hrxcwYogTlDgzFAFZBfDofrmoEF3NJFjIZBoxvzX 7pB+el5Hl38VT0jd2lPfV8qb4eojStdphvaO/NWYF96uFtTwTRdIWCJoEXzXOHRuohMf 2zYpVNQFHBOMoKhxh6GPjf9TORowZE2t5kPo5l9IxK+6wEZuXgiqOLftYs0a0GiVH2rt AlK1rloVQTghbTpP/4/p6RUY1d/iItnPJnzXBaCiooEB0VP0nUxZ2eHbPqLeimrGXRlK bP5cjdI9PZJoNZdZQaYpfFl4ImTlrfFsTfZaYRhjgluITBTcfI+IUy16YOlt6bLAOUBi 3V+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xtS4t+nQto3HTF/gGAoZaki1HLvMbnu+fb1pzmfFsTk=; b=jLYnueXGM6+qF8CwjwONRtE5bAKHKzUIpLfI5wIRoZjomfUp/IacFxW3b4xabmX9oQ ChTndDc87UPCyoo9j9BA9O5f/aAvv+DW7FyiuPM5qD6kuuG9rywGAfpXS8T+MPFvAyfI 0iFk0WwkO4f16cXjvIE3nt9Qiz78NgqCDm6//1YK24ZqitDH6KDJ/SDqDkkdOXD/tOKF XxjuImm5PUH7VNykZfg2uvHRfWoyVWxsnSuLx1+hoKc6Dff0nSeDAzYDPVfo4/+Mi5CE vWc+dcWdJidyWXgxEWjW2+n9l5uC8ZOHkzpoUber3TAFkKuNZ/rxtJsUuS4l+kDqcu3p DbpQ== X-Gm-Message-State: AOAM533OufVVenQ5699JlQDc/INLNAcrD1PjTmrpyhNdwBgLwT08LJOY OsaOhWy5HUERXjKPH+WKkv17tek09r+hxqj43uA= X-Received: by 2002:a63:e5d:: with SMTP id 29mr19863954pgo.450.1617558624758; Sun, 04 Apr 2021 10:50:24 -0700 (PDT) MIME-Version: 1.0 References: <202104042357.O0wCwDE8-lkp@intel.com> In-Reply-To: <202104042357.O0wCwDE8-lkp@intel.com> From: Sumera Priyadarsini Date: Sun, 4 Apr 2021 23:20:13 +0530 Message-ID: Subject: Re: [PATCH V3 1/2] drm/vkms: Refactor vkms_composer_worker() to prep for virtual_hw mode To: kernel test robot Cc: Melissa Wen , kbuild-all@lists.01.org, Rodrigo Siqueira , Haneen Mohammed , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 4, 2021 at 9:19 PM kernel test robot wrote: > > Hi Sumera, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on v5.12-rc5 next-20210401] > [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] > > url: https://github.com/0day-ci/linux/commits/Sumera-Priyadarsini/Add-virtual-hardware-module/20210404-211300 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2023a53bdf41b7646b1d384b6816af06309f73a5 > config: mips-randconfig-r025-20210404 (attached as .config) > compiler: mipsel-linux-gcc (GCC) 9.3.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/0day-ci/linux/commit/4bd5c27357dd86b6099f3f28db5db722ceeed582 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Sumera-Priyadarsini/Add-virtual-hardware-module/20210404-211300 > git checkout 4bd5c27357dd86b6099f3f28db5db722ceeed582 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > drivers/gpu/drm/vkms/vkms_composer.c: In function 'vkms_composer_worker': > >> drivers/gpu/drm/vkms/vkms_composer.c:226:20: warning: variable 'wb_pending' set but not used [-Wunused-but-set-variable] > 226 | bool crc_pending, wb_pending; > | ^~~~~~~~~~ > > > vim +/wb_pending +226 drivers/gpu/drm/vkms/vkms_composer.c > > 4bd5c27357dd86 drivers/gpu/drm/vkms/vkms_composer.c Sumera Priyadarsini 2021-04-04 209 > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 210 /** > a4e7e98e90ebd9 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2019-06-25 211 * vkms_composer_worker - ordered work_struct to compute CRC > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 212 * > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 213 * @work: work_struct > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 214 * > a4e7e98e90ebd9 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2019-06-25 215 * Work handler for composing and computing CRCs. work_struct scheduled in > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 216 * an ordered workqueue that's periodically scheduled to run by > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 217 * _vblank_handle() and flushed at vkms_atomic_crtc_destroy_state(). > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 218 */ > a4e7e98e90ebd9 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2019-06-25 219 void vkms_composer_worker(struct work_struct *work) > 6c234fe37c5762 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-08-02 220 { > 6c234fe37c5762 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-08-02 221 struct vkms_crtc_state *crtc_state = container_of(work, > 6c234fe37c5762 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-08-02 222 struct vkms_crtc_state, > a4e7e98e90ebd9 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2019-06-25 223 composer_work); > 6c234fe37c5762 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-08-02 224 struct drm_crtc *crtc = crtc_state->base.crtc; > 6c234fe37c5762 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-08-02 225 struct vkms_output *out = drm_crtc_to_vkms_output(crtc); > dbd9d80c1b2e03 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2020-08-30 @226 bool crc_pending, wb_pending; > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 227 u64 frame_start, frame_end; > 4bd5c27357dd86 drivers/gpu/drm/vkms/vkms_composer.c Sumera Priyadarsini 2021-04-04 228 u32 crc32 = 0; > 953025763d1421 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2020-08-30 229 int ret; > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 230 > a4e7e98e90ebd9 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2019-06-25 231 spin_lock_irq(&out->composer_lock); > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 232 frame_start = crtc_state->frame_start; > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 233 frame_end = crtc_state->frame_end; > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 234 crc_pending = crtc_state->crc_pending; > dbd9d80c1b2e03 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2020-08-30 235 wb_pending = crtc_state->wb_pending; > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 236 crtc_state->frame_start = 0; > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 237 crtc_state->frame_end = 0; > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 238 crtc_state->crc_pending = false; > a4e7e98e90ebd9 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2019-06-25 239 spin_unlock_irq(&out->composer_lock); > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 240 > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 241 /* > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 242 * We raced with the vblank hrtimer and previous work already computed > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 243 * the crc, nothing to do. > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 244 */ > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 245 if (!crc_pending) > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 246 return; > 6c234fe37c5762 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-08-02 247 > 4bd5c27357dd86 drivers/gpu/drm/vkms/vkms_composer.c Sumera Priyadarsini 2021-04-04 248 ret = vkms_composer_common(crtc_state, out, crtc_state->wb_pending, &crc32); > 4bd5c27357dd86 drivers/gpu/drm/vkms/vkms_composer.c Sumera Priyadarsini 2021-04-04 249 if (ret == -EINVAL) > 953025763d1421 drivers/gpu/drm/vkms/vkms_composer.c Rodrigo Siqueira 2020-08-30 250 return; > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 251 /* > 18d0952a838ba5 drivers/gpu/drm/vkms/vkms_crc.c Daniel Vetter 2019-06-07 252 * The worker can fall behind the vblank hrtimer, make sure we catch up. > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 253 */ > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 254 while (frame_start <= frame_end) > 0ca33adb91c0a9 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-09-04 255 drm_crtc_add_crc_entry(crtc, true, frame_start++, &crc32); > 6c234fe37c5762 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-08-02 256 } > 6c234fe37c5762 drivers/gpu/drm/vkms/vkms_crc.c Haneen Mohammed 2018-08-02 257 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org This error seems to have creeped in again. I am not sure why I didn't get any warning for this. I will submit a revised patch, sorry for the noise. :/