From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6548DCDB46E for ; Thu, 12 Oct 2023 16:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VJvHT9ZNuPegDarwuvEe78yndEMBRjAtyV5A9U3XBag=; b=n6bB6vI6jRQOK3 Jvh+UKy2r+0/vFN7hWAESFwwLIY2Ij6hbOwykXUz6cL8gCYAwPb//GE35mJs5EVA6YZ3UsniJ9JVH Q9ypI7GaxYQ8KudF3OtLxWTzl8uj8RlVol5L48I31uI4KZXDa168MIBC07bBov0hGtsMFASLxlY3X bTPzS6TpLh9n0z42DaUO3Ej5hlq/U8HrpDszh7MlMsJzNm3YbEQTR2Giezr29XlGlk9i27CWunDpa DrA8kQ8AQBCB61oZdeE/bLdOP/QHmhbsaAME6APeTDbWcHZkdILTPdfIxxfwZPVCLvFbYS28QZjyQ TeY8EluELhM2NfwQPOmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqyH7-001N7R-2K; Thu, 12 Oct 2023 16:11:01 +0000 Received: from mgamail.intel.com ([198.175.65.9]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqyH2-001N3f-1y for linux-arm-kernel@lists.infradead.org; Thu, 12 Oct 2023 16:11:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697127057; x=1728663057; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rUIqZNtAabQKBDuJXS2VUBqGOWhmWzfuxhDcYhaypzM=; b=Qz+6Lnt2BeG9G2mQzfvGpB5ezJlyFGciobakZt5fgyIte01L4epkdKCA Brd4F9IvRUBUOVY8haLEI9+ByGMTWllCRg6UBp4iSx4LsU8hbkJmwAALm PeSn4VRDeT8eugaSklgMzbBzADj6OyVCzWwuKldGP+H6xkD+JDV7jres4 QGTNQsFbI52DdOEwTgY1qoj+dzcRxBctayk8UrEOF4XpSp0/n0OmSobnh HmMKvFJJlMJjM5hOheI2nSaMf+aYlKN1kvZ4mqegRPzL46XLTbEKDj0Hr 2D8wJx3PtzlWZCuhADjcYihefxrRNmB9hjUfEKJSJOypNm2QEGDaj5PA9 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="3564377" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="3564377" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 09:10:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="758088083" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="758088083" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by fmsmga007.fm.intel.com with ESMTP; 12 Oct 2023 09:10:43 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qqyGn-0003cF-1Y; Thu, 12 Oct 2023 16:10:41 +0000 Date: Fri, 13 Oct 2023 00:10:30 +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, dietmar.eggemann@arm.com, 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 v2] arch_topology: Support SMT control on arm64 Message-ID: <202310122334.INC9SFga-lkp@intel.com> References: <20231010115335.13862-1-yangyicong@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231010115335.13862-1-yangyicong@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231012_091056_721495_8F190DF7 X-CRM114-Status: GOOD ( 14.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 soc/for-next linus/master v6.6-rc5 next-20231012] [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/20231010-195926 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core patch link: https://lore.kernel.org/r/20231010115335.13862-1-yangyicong%40huawei.com patch subject: [PATCH v2] arch_topology: Support SMT control on arm64 config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20231012/202310122334.INC9SFga-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/20231012/202310122334.INC9SFga-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/202310122334.INC9SFga-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/cpu.c: In function 'cpuhp_smt_disable': >> kernel/cpu.c:2687:23: error: implicit declaration of function 'cpu_down_maps_locked' [-Werror=implicit-function-declaration] 2687 | ret = cpu_down_maps_locked(cpu, CPUHP_OFFLINE); | ^~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/cpu_down_maps_locked +2687 kernel/cpu.c dc8d37ed304eee Arnd Bergmann 2019-12-10 2672 dc8d37ed304eee Arnd Bergmann 2019-12-10 2673 int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval) dc8d37ed304eee Arnd Bergmann 2019-12-10 2674 { dc8d37ed304eee Arnd Bergmann 2019-12-10 2675 int cpu, ret = 0; dc8d37ed304eee Arnd Bergmann 2019-12-10 2676 dc8d37ed304eee Arnd Bergmann 2019-12-10 2677 cpu_maps_update_begin(); dc8d37ed304eee Arnd Bergmann 2019-12-10 2678 for_each_online_cpu(cpu) { dc8d37ed304eee Arnd Bergmann 2019-12-10 2679 if (topology_is_primary_thread(cpu)) dc8d37ed304eee Arnd Bergmann 2019-12-10 2680 continue; 38253464bc821d Michael Ellerman 2023-07-05 2681 /* 38253464bc821d Michael Ellerman 2023-07-05 2682 * Disable can be called with CPU_SMT_ENABLED when changing 38253464bc821d Michael Ellerman 2023-07-05 2683 * from a higher to lower number of SMT threads per core. 38253464bc821d Michael Ellerman 2023-07-05 2684 */ 38253464bc821d Michael Ellerman 2023-07-05 2685 if (ctrlval == CPU_SMT_ENABLED && cpu_smt_thread_allowed(cpu)) 38253464bc821d Michael Ellerman 2023-07-05 2686 continue; dc8d37ed304eee Arnd Bergmann 2019-12-10 @2687 ret = cpu_down_maps_locked(cpu, CPUHP_OFFLINE); dc8d37ed304eee Arnd Bergmann 2019-12-10 2688 if (ret) dc8d37ed304eee Arnd Bergmann 2019-12-10 2689 break; dc8d37ed304eee Arnd Bergmann 2019-12-10 2690 /* dc8d37ed304eee Arnd Bergmann 2019-12-10 2691 * As this needs to hold the cpu maps lock it's impossible dc8d37ed304eee Arnd Bergmann 2019-12-10 2692 * to call device_offline() because that ends up calling dc8d37ed304eee Arnd Bergmann 2019-12-10 2693 * cpu_down() which takes cpu maps lock. cpu maps lock dc8d37ed304eee Arnd Bergmann 2019-12-10 2694 * needs to be held as this might race against in kernel dc8d37ed304eee Arnd Bergmann 2019-12-10 2695 * abusers of the hotplug machinery (thermal management). dc8d37ed304eee Arnd Bergmann 2019-12-10 2696 * dc8d37ed304eee Arnd Bergmann 2019-12-10 2697 * So nothing would update device:offline state. That would dc8d37ed304eee Arnd Bergmann 2019-12-10 2698 * leave the sysfs entry stale and prevent onlining after dc8d37ed304eee Arnd Bergmann 2019-12-10 2699 * smt control has been changed to 'off' again. This is dc8d37ed304eee Arnd Bergmann 2019-12-10 2700 * called under the sysfs hotplug lock, so it is properly dc8d37ed304eee Arnd Bergmann 2019-12-10 2701 * serialized against the regular offline usage. dc8d37ed304eee Arnd Bergmann 2019-12-10 2702 */ dc8d37ed304eee Arnd Bergmann 2019-12-10 2703 cpuhp_offline_cpu_device(cpu); dc8d37ed304eee Arnd Bergmann 2019-12-10 2704 } dc8d37ed304eee Arnd Bergmann 2019-12-10 2705 if (!ret) dc8d37ed304eee Arnd Bergmann 2019-12-10 2706 cpu_smt_control = ctrlval; dc8d37ed304eee Arnd Bergmann 2019-12-10 2707 cpu_maps_update_done(); dc8d37ed304eee Arnd Bergmann 2019-12-10 2708 return ret; dc8d37ed304eee Arnd Bergmann 2019-12-10 2709 } dc8d37ed304eee Arnd Bergmann 2019-12-10 2710 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel