Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp547299pxy; Fri, 30 Apr 2021 10:44:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyF4LTspyPHBwAWIkppB5YR/kt+Z3HXGKqofGCt89wOt2ryCKbFXifXCZrDCGR5gJboAVcQ X-Received: by 2002:a17:906:ca46:: with SMTP id jx6mr1493702ejb.434.1619804639813; Fri, 30 Apr 2021 10:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619804639; cv=none; d=google.com; s=arc-20160816; b=GAIR3K5yG3GOjBQy+DJS3N1yrFixf6Ra1MmeaJveyb6+hl4xp/aDb6TfGBh6NNoWCg B1vAUHE7kquQZVdZ1Mm2wN265WmLfPM5IlVOHCO5OfvR9vbH+WP9mRMtXq5zpPTAPn1Z SM/xQSXtE6y7IgemWIWPycWbKTCdndqGxZHYz9wIuFNEP4x0IfNq6iiHkPRuZZRexqSI F3AIeb5h1lbZb7cWvSYurDJDFJgAuFLOoUG+l77onykGpspGMoB76SzjweBuHCQR2anq ttQYuK3M32VwRdOBtecfjUw1xGW/fCyXsE+bK5MgLW7tg+uQRhAx1/wZ4tZZzE9LGaRy MQCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=m6XRCfyd1sWEB+fFN+giyD+trqUKGzlWK2yo8Go96QU=; b=0qVNO57hFn70mdDWhRzHxk5Sa6n+LhyjcaHJNx0q6o5h9tf8KZ0mTfQL/phCAU/93P JXE2sfaPWJlHnKAe+M84dE49st7gr9WdFDegRn1bUaCo3yCeCc+gpH0HgS6HqjsgdlUd T/I1KOEaeRHzMYDJUy2q0KRjgcAfL6GmItLT+1ql2B3Milz+8JCKAhU+7QTNcJ6pOGp+ G73VJov3knwYfO8tRlT/9s8PUGHCk45RmYV9jnY9fjN1xBUo7uu7K7RcAQKrW5DOdYev f5tXkMzfaDttwEh+VxAmzD76W7o0dfB5C+IMEeKo8IPecTf7LV2FBhSI8GrkBwId7282 2gYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=SLpmW4OT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c16si2550804eja.41.2021.04.30.10.43.36; Fri, 30 Apr 2021 10:43:59 -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=@ffwll.ch header.s=google header.b=SLpmW4OT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbhD3RnP (ORCPT + 99 others); Fri, 30 Apr 2021 13:43:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbhD3RnO (ORCPT ); Fri, 30 Apr 2021 13:43:14 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6702DC06174A for ; Fri, 30 Apr 2021 10:42:24 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id n2so106450051ejy.7 for ; Fri, 30 Apr 2021 10:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=m6XRCfyd1sWEB+fFN+giyD+trqUKGzlWK2yo8Go96QU=; b=SLpmW4OTB3LG+4ygGNIuhVDWx1yiktvAKSGgTwm+rDfLZSUffW5kUQrs4/QCo7rmpL 98ERI1r2BbIFBPXLoHDIkNeonzKH4XIAyoH/Yfnzo+vuXW9sOqXyC9XNIfKR23wnCXXB 2GcnNPlPHH0RaZujrIibm7QhPbiZpSlkALgCE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=m6XRCfyd1sWEB+fFN+giyD+trqUKGzlWK2yo8Go96QU=; b=gyvJZ2VdRW5m5LQm99mIh0qbL+U1pgSwIeW1j149HZDTh5ScFB7cOfi9itZiZGRhhg 2P2lzaPVQEB9qvVn0XENIT9bySCzkqEeKKQjEiQOePG0L6eYC92q24LwktEKRv6Ppu5e /jC/J1CAh/5ZmItC5uqR1HN8es1Ay33KjzFfiYsaW1vKhTDq1YcdXLrqxz5Eox/onUxK MaDRQv7U0cXx3ktNy0MiGGEEQtHGSl6fFTVu7UBC8+Rn/jOrXhpE0XscZt73CRPsXphY qi44uZv2eXhYnRX+wj4E1G3lSKdOF4G3OI6bawqJUFHfCNTN667U4W97kO+MGuINq7VL Xh4w== X-Gm-Message-State: AOAM533mRicDhyx5kKeVAFE4Ewsag9mJp5EaU77JpRikHia1FA5LEF1O qGv6aOBJVP1yqwe+J2jjIB9qsA== X-Received: by 2002:a17:907:174a:: with SMTP id lf10mr5876970ejc.433.1619804543070; Fri, 30 Apr 2021 10:42:23 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id u1sm1864523edv.90.2021.04.30.10.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 10:42:22 -0700 (PDT) Date: Fri, 30 Apr 2021 19:42:20 +0200 From: Daniel Vetter To: kernel test robot Cc: Bernard Zhao , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kbuild-all@lists.01.org Subject: Re: [PATCH] drm/i915: Use might_alloc() Message-ID: Mail-Followup-To: kernel test robot , Bernard Zhao , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kbuild-all@lists.01.org References: <20210429024211.58245-1-bernard@vivo.com> <202104300054.AZxXGIKu-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202104300054.AZxXGIKu-lkp@intel.com> X-Operating-System: Linux phenom 5.10.32scarlett+ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 12:31:27AM +0800, kernel test robot wrote: > Hi Bernard, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on drm-intel/for-linux-next] > [also build test ERROR on v5.12 next-20210429] > [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/Bernard-Zhao/drm-i915-Use-might_alloc/20210429-104516 > base: git://anongit.freedesktop.org/drm-intel for-linux-next > config: x86_64-rhel-8.3-kselftests (attached as .config) > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > reproduce (this is a W=1 build): > # https://github.com/0day-ci/linux/commit/9fbd0c1741ce06241105d753ff3432ab55f3e94a > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Bernard-Zhao/drm-i915-Use-might_alloc/20210429-104516 > git checkout 9fbd0c1741ce06241105d753ff3432ab55f3e94a > # save the attached .config to linux build tree > make W=1 W=1 ARCH=x86_64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > drivers/gpu/drm/i915/i915_sw_fence.c: In function '__i915_sw_fence_await_sw_fence': > >> drivers/gpu/drm/i915/i915_sw_fence.c:344:2: error: implicit declaration of function 'might_alloc'; did you mean 'might_lock'? [-Werror=implicit-function-declaration] > 344 | might_alloc(gfp); > | ^~~~~~~~~~~ > | might_lock > cc1: some warnings being treated as errors I think you're missing an include or something. The other patch you've done seems good, I queued that up in drm-intel-gt-next for 5.14. Thanks, Daniel > > > vim +344 drivers/gpu/drm/i915/i915_sw_fence.c > > 335 > 336 static int __i915_sw_fence_await_sw_fence(struct i915_sw_fence *fence, > 337 struct i915_sw_fence *signaler, > 338 wait_queue_entry_t *wq, gfp_t gfp) > 339 { > 340 unsigned int pending; > 341 unsigned long flags; > 342 > 343 debug_fence_assert(fence); > > 344 might_alloc(gfp); > 345 > 346 if (i915_sw_fence_done(signaler)) { > 347 i915_sw_fence_set_error_once(fence, signaler->error); > 348 return 0; > 349 } > 350 > 351 debug_fence_assert(signaler); > 352 > 353 /* The dependency graph must be acyclic. */ > 354 if (unlikely(i915_sw_fence_check_if_after(fence, signaler))) > 355 return -EINVAL; > 356 > 357 pending = I915_SW_FENCE_FLAG_FENCE; > 358 if (!wq) { > 359 wq = kmalloc(sizeof(*wq), gfp); > 360 if (!wq) { > 361 if (!gfpflags_allow_blocking(gfp)) > 362 return -ENOMEM; > 363 > 364 i915_sw_fence_wait(signaler); > 365 i915_sw_fence_set_error_once(fence, signaler->error); > 366 return 0; > 367 } > 368 > 369 pending |= I915_SW_FENCE_FLAG_ALLOC; > 370 } > 371 > 372 INIT_LIST_HEAD(&wq->entry); > 373 wq->flags = pending; > 374 wq->func = i915_sw_fence_wake; > 375 wq->private = fence; > 376 > 377 i915_sw_fence_await(fence); > 378 > 379 spin_lock_irqsave(&signaler->wait.lock, flags); > 380 if (likely(!i915_sw_fence_done(signaler))) { > 381 __add_wait_queue_entry_tail(&signaler->wait, wq); > 382 pending = 1; > 383 } else { > 384 i915_sw_fence_wake(wq, 0, signaler->error, NULL); > 385 pending = 0; > 386 } > 387 spin_unlock_irqrestore(&signaler->wait.lock, flags); > 388 > 389 return pending; > 390 } > 391 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch