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 E26D7C87FCB for ; Wed, 6 Aug 2025 13:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=t8FbjT4GSlSw8W6nievZxeSNjRWFdwLvZQgZyjz2Zzo=; b=mgaDdrkmDem6jIQw+871hgOS98 sosz5Oho2lJ2ZZ3FhxXoIzt3UN9/F7G86n49pxhRihAOSkwUjb93XBB4dMhESKRKCFPejNm7sxNb/ CgFOv/uWeG0ozi+MG7eQ9dH2GZPyUYdcMbhHvb4SxPqwOQz2mOfPgBa62QFa7RnMpzyIvpFhxVdXx D+GlOMTY/cL2neokVzJtqQkMJwY0OB9XLIGPvFF6YVAOzYyu6TgIoNrmNZ1Sopn7DMyh5P4D7IkL/ hmLWDV6jvxkTzqAeZ5OuCE7fxlCrJBjpmxedeENMKlMk6xFq1EauM1qSC19wBNczYiwGtwKFdxCOg BC/HEuxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ujedC-0000000FMHx-3kqa; Wed, 06 Aug 2025 13:56:38 +0000 Received: from mgamail.intel.com ([198.175.65.10]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1ujeSn-0000000FKcC-1ctI for linux-arm-kernel@lists.infradead.org; Wed, 06 Aug 2025 13:45:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1754487954; x=1786023954; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=W9p7lNlR9UDJHq46lD4UdctIx+KlNLY66BAzzSRyZyk=; b=Z3vKgT379rjgBfzfHMvbP3ka1gBHWf0j5nhWFYss6a/EQlgrLr5Wt38A 0K+jROMKApgBMitzneSQ/hukDxFWi+LbMSaWebxge/XiPETBueh4bThkI xoylnjUtPOP5P61La9+1EcoWACjNrju1HDlmv3DFq07DYuLnLfNmbHM0Y VUsY85ZNm72QPjdw1l81SoElvcA18c9Ch9qkB/xJixmMI54F63ZjKyjlz nglLdcH2WEc76WA33FWfmfopdQh9CqYc2XT6mbDT9mMpNtiPC6j1OqAEH Qofva434r3nlZh8toNv7ELex6KiAfLGBdsGyar2s/AZTesVo+Z+rYFXZc A==; X-CSE-ConnectionGUID: VuSE1HUnS3KjwT75J9wlCQ== X-CSE-MsgGUID: euseIvPCRDmhBu5ZhFxavw== X-IronPort-AV: E=McAfee;i="6800,10657,11514"; a="74264609" X-IronPort-AV: E=Sophos;i="6.17,268,1747724400"; d="scan'208";a="74264609" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2025 06:45:53 -0700 X-CSE-ConnectionGUID: pGuvjIo4SRy6fG1YYkdKKw== X-CSE-MsgGUID: bC/BIyiKTGusgbhlEwx5lw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,268,1747724400"; d="scan'208";a="164791072" Received: from lkp-server02.sh.intel.com (HELO 4ea60e6ab079) ([10.239.97.151]) by orviesa007.jf.intel.com with ESMTP; 06 Aug 2025 06:45:47 -0700 Received: from kbuild by 4ea60e6ab079 with local (Exim 4.96) (envelope-from ) id 1ujeSc-0001ji-0N; Wed, 06 Aug 2025 13:45:43 +0000 Date: Wed, 6 Aug 2025 21:45:27 +0800 From: kernel test robot To: Lifeng Zheng , catalin.marinas@arm.com, will@kernel.org, rafael@kernel.org, viresh.kumar@linaro.org, beata.michalska@arm.com, sudeep.holla@arm.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, jonathan.cameron@huawei.com, vincent.guittot@linaro.org, yangyicong@hisilicon.com, zhanjie9@hisilicon.com, lihuisong@huawei.com, yubowen8@huawei.com, linhongye@h-partners.com, zhenglifeng1@huawei.com Subject: Re: [PATCH v3 3/3] arm64: topology: Setup AMU FIE for online CPUs only Message-ID: <202508062127.qvRnTPvH-lkp@intel.com> References: <20250805093330.3715444-4-zhenglifeng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250805093330.3715444-4-zhenglifeng1@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250806_064553_497513_A25E8734 X-CRM114-Status: GOOD ( 15.31 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Lifeng, kernel test robot noticed the following build errors: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on rafael-pm/linux-next rafael-pm/bleeding-edge arm/for-next arm/fixes kvmarm/next soc/for-next linus/master v6.16 next-20250806] [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/Lifeng-Zheng/arm64-topology-Set-scale-freq-source-only-for-the-CPUs-that-have-not-been-set-before/20250806-101537 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core patch link: https://lore.kernel.org/r/20250805093330.3715444-4-zhenglifeng1%40huawei.com patch subject: [PATCH v3 3/3] arm64: topology: Setup AMU FIE for online CPUs only config: arm64-randconfig-002-20250806 (https://download.01.org/0day-ci/archive/20250806/202508062127.qvRnTPvH-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 7b8dea265e72c3037b6b1e54d5ab51b7e14f328b) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250806/202508062127.qvRnTPvH-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/202508062127.qvRnTPvH-lkp@intel.com/ All errors (new ones prefixed by >>): >> arch/arm64/kernel/topology.c:409:34: error: call to undeclared function 'cpufreq_cpu_get_raw_no_check'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 409 | struct cpufreq_policy *policy = cpufreq_cpu_get_raw_no_check(cpu); | ^ arch/arm64/kernel/topology.c:409:34: note: did you mean 'cpufreq_cpu_get_raw'? include/linux/cpufreq.h:212:38: note: 'cpufreq_cpu_get_raw' declared here 212 | static inline struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) | ^ >> arch/arm64/kernel/topology.c:409:25: error: incompatible integer to pointer conversion initializing 'struct cpufreq_policy *' with an expression of type 'int' [-Wint-conversion] 409 | struct cpufreq_policy *policy = cpufreq_cpu_get_raw_no_check(cpu); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. vim +/cpufreq_cpu_get_raw_no_check +409 arch/arm64/kernel/topology.c 406 407 static int cpuhp_topology_online(unsigned int cpu) 408 { > 409 struct cpufreq_policy *policy = cpufreq_cpu_get_raw_no_check(cpu); 410 411 /* 412 * If the online CPUs are not all AMU FIE CPUs or the new one is already 413 * an AMU FIE one, no need to set it. 414 */ 415 if (!policy || !cpumask_available(amu_fie_cpus) || 416 !cpumask_subset(policy->cpus, amu_fie_cpus) || 417 cpumask_test_cpu(cpu, amu_fie_cpus)) 418 return 0; 419 420 /* 421 * If the new online CPU cannot pass this check, all the CPUs related to 422 * the same policy should be clear from amu_fie_cpus mask, otherwise they 423 * may use different source of the freq scale. 424 */ 425 if (!freq_counters_valid(cpu)) { 426 topology_clear_scale_freq_source(SCALE_FREQ_SOURCE_ARCH, 427 policy->related_cpus); 428 cpumask_andnot(amu_fie_cpus, amu_fie_cpus, policy->related_cpus); 429 return 0; 430 } 431 432 cpumask_set_cpu(cpu, amu_fie_cpus); 433 434 topology_set_scale_freq_source(&amu_sfd, cpumask_of(cpu)); 435 436 pr_debug("CPU[%u]: counter will be used for FIE.", cpu); 437 438 return 0; 439 } 440 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki