Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3612170pxb; Mon, 21 Feb 2022 01:48:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/XXrKMqwG4qcza2rO99jjohKv/cPQje9+PuFbX/cz7u69A/9iONViB/k30GZg89BcN1Rz X-Received: by 2002:a17:90b:3a85:b0:1b9:e3a4:dcb1 with SMTP id om5-20020a17090b3a8500b001b9e3a4dcb1mr24781992pjb.47.1645436919960; Mon, 21 Feb 2022 01:48:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645436919; cv=none; d=google.com; s=arc-20160816; b=B/cMRu1w+c1SPGLsgaTqxEfroRWOkoq6i88YrdgVnE53y/3F2aecZMpgbufFo6a1mf ZMstwH2AHZjcMF2cby01U0xTqbot1smWkUJ9r7qSeIJkV6NxA5OkTqYmTfXeAwBuRHEs 6xG3/yI7KnrBLLUmaUtZ2+H8AwMKuJUaE+smY4pbcOdv/QFtPoeAbuhZZIElUDPlFHEz DejUqj89G4ZDA4oi2YablZw/Cyn1icZF40i5RkTm6RNakYs7bntJbocQ8CMg9xMXtsUV tsJte2uEJEwdh3JFy3HoXGMZU5uFdbjhVhY/NqVyiJ29CUF9sl2TPRs3SfcKb5e+ayni TubQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VtIATk7+xivpSECmFAk8moK4vQOpB8ExAjh7PWVOEBI=; b=B67yJV/SB16gM6tHMfvbQFAMqURzbq2e1rRhp2FXsBq/gXHdYgTEM+QlZ2ukgr85nZ l6ymCc4TvJrpW9bTYdVVjCCOD0DNMf5hSENc3D+ekfD2ceRld9KGXcTBQ1eOkllzw7Op mWzdOeN7vVDsiw/N5MOP6Odt+i/DKGrfRy3bk9Rfsv9NWHdrcO2TAfyuKbSMxZjt85sm CxMbYVWLvhe6O52cJvlXhsZeyxzwOppO+ZmrOp6CLxz3vHEHi16YyPHw/w1OUIP8yDUw FevKXj1fWUsn7BuYvNyP629o09FCKvd2BdZBvKln7G+v4C50IZ+l0Q2kRKH2srSVrDiP ULLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JEvWMwjE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9si31108450plg.589.2022.02.21.01.48.26; Mon, 21 Feb 2022 01:48:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JEvWMwjE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244031AbiBTUw2 (ORCPT + 99 others); Sun, 20 Feb 2022 15:52:28 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234049AbiBTUwQ (ORCPT ); Sun, 20 Feb 2022 15:52:16 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 990235F5E; Sun, 20 Feb 2022 12:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645390314; x=1676926314; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Fc0oPIN8bo58fg7IS1/4O7tOIZiHjQPHCnNLqEDAWD0=; b=JEvWMwjEh1kyZrMSjf7Q+JIN1zX9uov5yA5+UfNFBLXodWwDWB2gUVjp 8dgUhlvnVFyiei5wAQw6Ln2fKiX0KDKCU6t3fZcjsMTkYMvFfqym6Qiay RKb1qOnbyC+sKGTEarj8uE9FcgasYZHAxZcSKLaSEHCte3H17NHkaHFK0 sLpYGwtX+1RGR5ZF/imd9WnmRtYb6EvyVJf0BXa0sXRfO5FfXcXASkWZ3 mBi59e15CAaZ2nMPrLwfkqNH9jjjp6SXggcDj3HMTrBB433oUXZVrVnNs iC4Xzrbhl/DwORsD8OIa8XoRcrB94hzrqsytqDjShIz09LVBXjOCys2mq Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10264"; a="337833714" X-IronPort-AV: E=Sophos;i="5.88,384,1635231600"; d="scan'208";a="337833714" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2022 12:51:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,384,1635231600"; d="scan'208";a="590758922" Received: from lkp-server01.sh.intel.com (HELO da3212ac2f54) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 20 Feb 2022 12:51:51 -0800 Received: from kbuild by da3212ac2f54 with local (Exim 4.92) (envelope-from ) id 1nLtBO-0000kV-Ji; Sun, 20 Feb 2022 20:51:50 +0000 Date: Mon, 21 Feb 2022 04:51:15 +0800 From: kernel test robot To: Olivier Langlois , Jens Axboe Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Pavel Begunkov , Hao Xu , io-uring , linux-kernel Subject: Re: [PATCH v1] io_uring: Add support for napi_busy_poll Message-ID: <202202210455.Gdq2HOnj-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Olivier, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.17-rc4] [cannot apply to next-20220217] [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/Olivier-Langlois/io_uring-Add-support-for-napi_busy_poll/20220220-190634 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4f12b742eb2b3a850ac8be7dc4ed52976fc6cb0b config: arm64-randconfig-r002-20220220 (https://download.01.org/0day-ci/archive/20220221/202202210455.Gdq2HOnj-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/0day-ci/linux/commit/ad36ae938f354b0cd3b38716572385f710accdb0 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Olivier-Langlois/io_uring-Add-support-for-napi_busy_poll/20220220-190634 git checkout ad36ae938f354b0cd3b38716572385f710accdb0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> fs/io_uring.c:1472:23: error: no member named 'napi_list' in 'struct io_ring_ctx' INIT_LIST_HEAD(&ctx->napi_list); ~~~ ^ 1 error generated. vim +1472 fs/io_uring.c 1413 1414 static __cold struct io_ring_ctx *io_ring_ctx_alloc(struct io_uring_params *p) 1415 { 1416 struct io_ring_ctx *ctx; 1417 int hash_bits; 1418 1419 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); 1420 if (!ctx) 1421 return NULL; 1422 1423 /* 1424 * Use 5 bits less than the max cq entries, that should give us around 1425 * 32 entries per hash list if totally full and uniformly spread. 1426 */ 1427 hash_bits = ilog2(p->cq_entries); 1428 hash_bits -= 5; 1429 if (hash_bits <= 0) 1430 hash_bits = 1; 1431 ctx->cancel_hash_bits = hash_bits; 1432 ctx->cancel_hash = kmalloc((1U << hash_bits) * sizeof(struct hlist_head), 1433 GFP_KERNEL); 1434 if (!ctx->cancel_hash) 1435 goto err; 1436 __hash_init(ctx->cancel_hash, 1U << hash_bits); 1437 1438 ctx->dummy_ubuf = kzalloc(sizeof(*ctx->dummy_ubuf), GFP_KERNEL); 1439 if (!ctx->dummy_ubuf) 1440 goto err; 1441 /* set invalid range, so io_import_fixed() fails meeting it */ 1442 ctx->dummy_ubuf->ubuf = -1UL; 1443 1444 if (percpu_ref_init(&ctx->refs, io_ring_ctx_ref_free, 1445 PERCPU_REF_ALLOW_REINIT, GFP_KERNEL)) 1446 goto err; 1447 1448 ctx->flags = p->flags; 1449 init_waitqueue_head(&ctx->sqo_sq_wait); 1450 INIT_LIST_HEAD(&ctx->sqd_list); 1451 INIT_LIST_HEAD(&ctx->cq_overflow_list); 1452 init_completion(&ctx->ref_comp); 1453 xa_init_flags(&ctx->io_buffers, XA_FLAGS_ALLOC1); 1454 xa_init_flags(&ctx->personalities, XA_FLAGS_ALLOC1); 1455 mutex_init(&ctx->uring_lock); 1456 init_waitqueue_head(&ctx->cq_wait); 1457 spin_lock_init(&ctx->completion_lock); 1458 spin_lock_init(&ctx->timeout_lock); 1459 INIT_WQ_LIST(&ctx->iopoll_list); 1460 INIT_LIST_HEAD(&ctx->defer_list); 1461 INIT_LIST_HEAD(&ctx->timeout_list); 1462 INIT_LIST_HEAD(&ctx->ltimeout_list); 1463 spin_lock_init(&ctx->rsrc_ref_lock); 1464 INIT_LIST_HEAD(&ctx->rsrc_ref_list); 1465 INIT_DELAYED_WORK(&ctx->rsrc_put_work, io_rsrc_put_work); 1466 init_llist_head(&ctx->rsrc_put_llist); 1467 INIT_LIST_HEAD(&ctx->tctx_list); 1468 ctx->submit_state.free_list.next = NULL; 1469 INIT_WQ_LIST(&ctx->locked_free_list); 1470 INIT_DELAYED_WORK(&ctx->fallback_work, io_fallback_req_func); 1471 INIT_WQ_LIST(&ctx->submit_state.compl_reqs); > 1472 INIT_LIST_HEAD(&ctx->napi_list); 1473 return ctx; 1474 err: 1475 kfree(ctx->dummy_ubuf); 1476 kfree(ctx->cancel_hash); 1477 kfree(ctx); 1478 return NULL; 1479 } 1480 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org