Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp18317pxb; Wed, 6 Apr 2022 20:22:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCAaN3qdvBQndfA+6WvRHAVncP1IOWnn+20ddJMjmRcAKnDXETzy6GeouG/AY3NtwCh3as X-Received: by 2002:a17:902:e403:b0:156:ab93:2094 with SMTP id m3-20020a170902e40300b00156ab932094mr11665101ple.104.1649301774050; Wed, 06 Apr 2022 20:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649301774; cv=none; d=google.com; s=arc-20160816; b=NUU/hqSPg13QHSrElkzRgIwgMXk+ys103w2HHnNQlt/eRvm9Be375ZgUWtRjogUqTT 6Fpe4Iup+j4lKeKkLAKwt4ZVKE6KuM25BGx/oQ4TjP2A3yqt8wd/xOaXeq5Zu3qh0G+h NxcK50MfYCWO31C653QORi02Yk9QC9o8mXybwZbFR2cBF1stilZ5v8qJmeZW5ofY37KU yCvvz/8JmjqDrCYlNthDD+XoC4608g3E/EGFrmYUBaT3zm2ZifLBsVUG4i0iAklYOs0V yK2hsBxysb2pKVlOBJgFKtdD2cpBGmS1r8mvLrWS5E96dBrxmKbuJ5eSXNhvoPQS1Yji JWHQ== 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=FoKFs4wxEA1vM+kFp7PBkBTWWfwJwYwA3qrOcvRFUJ4=; b=nlLhzYKhv42amw+ETohvd7EfFPRd9nUhniDPk/OI6T0Ab+qNOuGTcRimHpGUyy+5u8 DrKvJAVHDHZ2oZBxOy/rxwpuazl1OrNXnsNZ8H4P6pz/XQc76nzG87WnT302NL2hukdT 4u4Aj2Z3xaYNe79kZHIS0qsIsSjJ/KjS9sMtwipVPZdOuCNBVsdtCFH5TuFvGfEpa0Fc PR4jrxtv/dg8i1UjE8m7o+amVMcIUii7IkZkQR+/BnAzgEEG6iES4Tkm9K94aFYdt6Tg rvWWv+IjGMspTvGzzwvEM0uDHVMySQJm6gIayBUeq2YkWXmsLvM/1W37lL2ovMLjAOtZ q8HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DgYPMOc5; 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 k1-20020a633d01000000b003816043eeeasi17930252pga.223.2022.04.06.20.22.39; Wed, 06 Apr 2022 20:22:54 -0700 (PDT) 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=DgYPMOc5; 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 S231927AbiDGCIg (ORCPT + 99 others); Wed, 6 Apr 2022 22:08:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiDGCIf (ORCPT ); Wed, 6 Apr 2022 22:08:35 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 909FDECC48; Wed, 6 Apr 2022 19:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649297196; x=1680833196; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dQrnEJaSMkZbyuRDxzwznPl1VKPOiEnuTwnVLSNQtLg=; b=DgYPMOc5wuc/rcUh8UiLCrHXCQiWLvpwcLDBoqwApYamonDq7dhCQLBA 5UN/psvMQsDF0yOC1by6LX66s3xfaw0N9X7YrBjxJ5nioKKRhOkmKMBLO HaC+2LhTW3fGSRplgfnYei8THvZHAeiOpqRmt6VXXkRHRV0O8jO3RjH0V +fJ1ZanFpMiOB9arHYEkGy1BzOj1wsMcbqT2g9o/H+i90uDmREh8tiLnF MDOZdSyVwt9lWwwtl1whMiU43b9YwLUhPuiesWtQPmF1ehFGvdSwqTafp nnLmXtfs/m759C6RGGG4pn2GIRmslVmFnJfFONy84n2IzwZlOT+DXarZa A==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="241799404" X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="241799404" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 19:06:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="658861171" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 06 Apr 2022 19:06:33 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1ncHXc-0004yZ-MW; Thu, 07 Apr 2022 02:06:32 +0000 Date: Thu, 7 Apr 2022 10:06:01 +0800 From: kernel test robot To: Juergen Gross , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Juergen Gross , Boris Ostrovsky , Stefano Stabellini , stable@vger.kernel.org, Marek =?iso-8859-1?Q?Marczykowski-G=F3recki?= Subject: Re: [PATCH] xen/balloon: fix page onlining when populating new zone Message-ID: <202204070950.mzGBYW2q-lkp@intel.com> References: <20220406133229.15979-1-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406133229.15979-1-jgross@suse.com> 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,URIBL_BLOCKED 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 Juergen, I love your patch! Perhaps something to improve: [auto build test WARNING on xen-tip/linux-next] [also build test WARNING on linus/master linux/master v5.18-rc1 next-20220406] [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/intel-lab-lkp/linux/commits/Juergen-Gross/xen-balloon-fix-page-onlining-when-populating-new-zone/20220407-000935 base: https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next config: arm64-randconfig-r036-20220406 (https://download.01.org/0day-ci/archive/20220407/202204070950.mzGBYW2q-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566) 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/intel-lab-lkp/linux/commit/b3deb59d5386ade4fb227038f202a9bdb8ade4ab git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Juergen-Gross/xen-balloon-fix-page-onlining-when-populating-new-zone/20220407-000935 git checkout b3deb59d5386ade4fb227038f202a9bdb8ade4ab # 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 drivers/media/platform/ drivers/xen/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/xen/balloon.c:518:10: error: implicit declaration of function 'alloc_page_for_balloon' [-Werror,-Wimplicit-function-declaration] page = alloc_page_for_balloon(gfp); ^ >> drivers/xen/balloon.c:518:8: warning: incompatible integer to pointer conversion assigning to 'struct page *' from 'int' [-Wint-conversion] page = alloc_page_for_balloon(gfp); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/xen/balloon.c:545:3: error: implicit declaration of function 'add_page_to_balloon' [-Werror,-Wimplicit-function-declaration] add_page_to_balloon(page); ^ 1 warning and 2 errors generated. vim +518 drivers/xen/balloon.c 505 506 static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) 507 { 508 enum bp_state state = BP_DONE; 509 unsigned long i; 510 struct page *page, *tmp; 511 int ret; 512 LIST_HEAD(pages); 513 514 if (nr_pages > ARRAY_SIZE(frame_list)) 515 nr_pages = ARRAY_SIZE(frame_list); 516 517 for (i = 0; i < nr_pages; i++) { > 518 page = alloc_page_for_balloon(gfp); 519 if (page == NULL) { 520 nr_pages = i; 521 state = BP_EAGAIN; 522 break; 523 } 524 list_add(&page->lru, &pages); 525 } 526 527 /* 528 * Ensure that ballooned highmem pages don't have kmaps. 529 * 530 * Do this before changing the p2m as kmap_flush_unused() 531 * reads PTEs to obtain pages (and hence needs the original 532 * p2m entry). 533 */ 534 kmap_flush_unused(); 535 536 /* 537 * Setup the frame, update direct mapping, invalidate P2M, 538 * and add to balloon. 539 */ 540 i = 0; 541 list_for_each_entry_safe(page, tmp, &pages, lru) { 542 frame_list[i++] = xen_page_to_gfn(page); 543 544 list_del(&page->lru); 545 add_page_to_balloon(page); 546 } 547 548 flush_tlb_all(); 549 550 ret = xenmem_reservation_decrease(nr_pages, frame_list); 551 BUG_ON(ret != nr_pages); 552 553 balloon_stats.current_pages -= nr_pages; 554 555 return state; 556 } 557 -- 0-DAY CI Kernel Test Service https://01.org/lkp