Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1162992rdb; Wed, 20 Sep 2023 01:04:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+hHrZHpwBGzWTjeVph24LE/L6qEPhAs8TGbUu9O+XUNqbk/sMIUlNxCEgBEN7tgn8kzR0 X-Received: by 2002:a17:902:ecc9:b0:1bd:c7e2:462 with SMTP id a9-20020a170902ecc900b001bdc7e20462mr1895100plh.11.1695197092113; Wed, 20 Sep 2023 01:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695197092; cv=none; d=google.com; s=arc-20160816; b=slIL27M7zuCgRyOFBvYwiUEO8Jq4q9fUDBewEwyoRJCXs17XTNWtwq9ynW/bbDUIWe tYFCADXldgnaE60VJWYt+hdJ4iNTF92xtrVE267QZIp7/BtnlIB916+0P9jSTfN1QOKW ITlo8bQFZqQHxKUJAOPHOMV4Zbb9RiTUjKyoVWFJ1EDuXwbz9MsJYZORKHmRDvVv/LTI bo4OUvyEDLBi69ECsbDCJUKLk77DzL/e5xuqlXmLyQMlHoKr9yYPeFibCa0cvvoN/ViT tFvZxJUGmHJruYJZ4i0zr+haTzgioWmNPWX0egrrwwOwb8ExZ5p/bX8HndK0/pROZaGS KJeg== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=8oP4DU5yZ8hQbHutLH7GenOzbdjOz0RGZhtpVz1Fqog=; fh=AdtdKUGqapZnPsojFZJHDVsBXTTiPqjjcz4/h+V79HQ=; b=vLRLkRkZjzcNbloAPEWg7H2/NTzJS3aFpoeIL6AHEgSCpSS2HGYkyC/uTQey2f1LIf kEwXsuxuJE6yaYcOWS0vbcAEOAax2Yks9VDJxyCbYV/wh33kJ5O0HqfPBcfLryB3JsoM IKaOUnIobmEdk1hvC6q3vWA/JJD7mFe8VkpANx9Dayvm382sKmdATOkdWwTTDrL+Izur 1MN6knOAJ1k1XFFa1JFKmwb4mCI35e9zGQPHStQ8pSn195r0eR5jJE4nOIExcSNsXlZU HaYsoyly+F7tA+k2M2f+IlBkOOq5X0eKJ+yuR4By9VzegyM3mHR8clPVj49X0CpoU+rP hczw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S4nrYfk0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id w2-20020a170902904200b001c32fe6cdf9si10771106plz.386.2023.09.20.01.04.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 01:04:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S4nrYfk0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B7B258021208; Tue, 19 Sep 2023 16:31:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233061AbjISXbs (ORCPT + 99 others); Tue, 19 Sep 2023 19:31:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjISXbr (ORCPT ); Tue, 19 Sep 2023 19:31:47 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F94983 for ; Tue, 19 Sep 2023 16:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695166299; x=1726702299; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pwViZbguo4nhMEu1V2aOKGTLkgUT5jRe0pi7fjSQmm0=; b=S4nrYfk0HJr6DW4KCa4MNnnYAe4lyoCAg+YhCXLIMDU/NW53ExHAzV1c VTD2R+wBT8/Kf8cRkW0AYGD523zEuX1nAaY/IJu/eerCEqco69ywMDJVa WKpglI9HcETwE+o4IKVwb4Jcs57NElQ0OFgXVT+PhpoIGxGJW/Dbz6Npo 6M/gFyq+st7QTrjpScwAB5mymZm21sTRDwZLWxOT7HNYiFD14dxwfukWA NUZ3wG8y8nRdG7Mji8vQ6MX60m4hziKUQLELcaQnpFKRdhqbMiWTfwImO cfpwqokZGu7/gHVBhgE8kclJxv3lbQkNFfcNk8KiHR6mMfDUsohC0MY7A Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="446554159" X-IronPort-AV: E=Sophos;i="6.02,160,1688454000"; d="scan'208";a="446554159" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 16:31:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="781481810" X-IronPort-AV: E=Sophos;i="6.02,160,1688454000"; d="scan'208";a="781481810" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 19 Sep 2023 16:31:32 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qikBm-000848-0x; Tue, 19 Sep 2023 23:31:30 +0000 Date: Wed, 20 Sep 2023 07:30:50 +0800 From: kernel test robot To: Yicong Yang , catalin.marinas@arm.com, will@kernel.org, sudeep.holla@arm.com, linux-arm-kernel@lists.infradead.org Cc: oe-kbuild-all@lists.linux.dev, gregkh@linuxfoundation.org, rafael@kernel.org, jonathan.cameron@huawei.com, prime.zeng@hisilicon.com, linuxarm@huawei.com, yangyicong@hisilicon.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arch_topology: Support SMT control on arm64 Message-ID: <202309200727.CtYl75aH-lkp@intel.com> References: <20230919123319.23785-1-yangyicong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230919123319.23785-1-yangyicong@huawei.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 19 Sep 2023 16:31:55 -0700 (PDT) Hi Yicong, kernel test robot noticed the following build errors: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on driver-core/driver-core-testing driver-core/driver-core-next driver-core/driver-core-linus linus/master v6.6-rc2 next-20230919] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yicong-Yang/arch_topology-Support-SMT-control-on-arm64/20230919-223458 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core patch link: https://lore.kernel.org/r/20230919123319.23785-1-yangyicong%40huawei.com patch subject: [PATCH] arch_topology: Support SMT control on arm64 config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20230920/202309200727.CtYl75aH-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230920/202309200727.CtYl75aH-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309200727.CtYl75aH-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/cpu.c: In function 'cpuhp_get_primary_thread_mask': kernel/cpu.c:660:16: error: 'cpu_primary_thread_mask' undeclared (first use in this function); did you mean 'cpuhp_get_primary_thread_mask'? 660 | return cpu_primary_thread_mask; | ^~~~~~~~~~~~~~~~~~~~~~~ | cpuhp_get_primary_thread_mask kernel/cpu.c:660:16: note: each undeclared identifier is reported only once for each function it appears in kernel/cpu.c: In function 'cpuhp_smt_disable': >> kernel/cpu.c:2629:23: error: implicit declaration of function 'cpu_down_maps_locked' [-Werror=implicit-function-declaration] 2629 | ret = cpu_down_maps_locked(cpu, CPUHP_OFFLINE); | ^~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/cpu_down_maps_locked +2629 kernel/cpu.c dc8d37ed304eee Arnd Bergmann 2019-12-10 2620 dc8d37ed304eee Arnd Bergmann 2019-12-10 2621 int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval) dc8d37ed304eee Arnd Bergmann 2019-12-10 2622 { dc8d37ed304eee Arnd Bergmann 2019-12-10 2623 int cpu, ret = 0; dc8d37ed304eee Arnd Bergmann 2019-12-10 2624 dc8d37ed304eee Arnd Bergmann 2019-12-10 2625 cpu_maps_update_begin(); dc8d37ed304eee Arnd Bergmann 2019-12-10 2626 for_each_online_cpu(cpu) { dc8d37ed304eee Arnd Bergmann 2019-12-10 2627 if (topology_is_primary_thread(cpu)) dc8d37ed304eee Arnd Bergmann 2019-12-10 2628 continue; dc8d37ed304eee Arnd Bergmann 2019-12-10 @2629 ret = cpu_down_maps_locked(cpu, CPUHP_OFFLINE); dc8d37ed304eee Arnd Bergmann 2019-12-10 2630 if (ret) dc8d37ed304eee Arnd Bergmann 2019-12-10 2631 break; dc8d37ed304eee Arnd Bergmann 2019-12-10 2632 /* dc8d37ed304eee Arnd Bergmann 2019-12-10 2633 * As this needs to hold the cpu maps lock it's impossible dc8d37ed304eee Arnd Bergmann 2019-12-10 2634 * to call device_offline() because that ends up calling dc8d37ed304eee Arnd Bergmann 2019-12-10 2635 * cpu_down() which takes cpu maps lock. cpu maps lock dc8d37ed304eee Arnd Bergmann 2019-12-10 2636 * needs to be held as this might race against in kernel dc8d37ed304eee Arnd Bergmann 2019-12-10 2637 * abusers of the hotplug machinery (thermal management). dc8d37ed304eee Arnd Bergmann 2019-12-10 2638 * dc8d37ed304eee Arnd Bergmann 2019-12-10 2639 * So nothing would update device:offline state. That would dc8d37ed304eee Arnd Bergmann 2019-12-10 2640 * leave the sysfs entry stale and prevent onlining after dc8d37ed304eee Arnd Bergmann 2019-12-10 2641 * smt control has been changed to 'off' again. This is dc8d37ed304eee Arnd Bergmann 2019-12-10 2642 * called under the sysfs hotplug lock, so it is properly dc8d37ed304eee Arnd Bergmann 2019-12-10 2643 * serialized against the regular offline usage. dc8d37ed304eee Arnd Bergmann 2019-12-10 2644 */ dc8d37ed304eee Arnd Bergmann 2019-12-10 2645 cpuhp_offline_cpu_device(cpu); dc8d37ed304eee Arnd Bergmann 2019-12-10 2646 } dc8d37ed304eee Arnd Bergmann 2019-12-10 2647 if (!ret) dc8d37ed304eee Arnd Bergmann 2019-12-10 2648 cpu_smt_control = ctrlval; dc8d37ed304eee Arnd Bergmann 2019-12-10 2649 cpu_maps_update_done(); dc8d37ed304eee Arnd Bergmann 2019-12-10 2650 return ret; dc8d37ed304eee Arnd Bergmann 2019-12-10 2651 } dc8d37ed304eee Arnd Bergmann 2019-12-10 2652 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki