Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp9587imn; Thu, 28 Jul 2022 20:04:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR5zy2T1OabAjcd40ZeQXf6FpIAxz0CTBRcW7S3z8FOLwaxRb1E/9U1uKVe+ERgzPe+MMC+X X-Received: by 2002:a17:902:7c05:b0:16d:2c63:da90 with SMTP id x5-20020a1709027c0500b0016d2c63da90mr1830216pll.27.1659063890907; Thu, 28 Jul 2022 20:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659063890; cv=none; d=google.com; s=arc-20160816; b=h8IzaY/BSu4+YbwLxPX+li1vTv87KtnwLhowyapVasEerCd81lDJS69YJ3CM+pzjod X65Bkhvh+ODzIKUypnBNonTKOI1W5ij9KlhY2bT6fVfcgG2TWzMsRTkNMhxKuq8DuigG U0p/lMeHHlOwxPsWdHjge6nCx0SPGSYFYJxwgznErxN3dm4vkRDwd/CDTDncXGkb1swn Grz8+WBxWh8P6C+ACsd4kFhl0gdsxTZ3ZNwW0nbjemvfFtSmZ2P3V0Z5di1vBH95eWPz uVj8U7XA7YNxDG8osQ7jS/b1tmwfZUEjISHICN+ZCaiE4YVLtxCN88b0K7SvX5sOEObU N3EA== 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=mu2ebttJTxGGvp85hKJfDrb7Hf4AxeOFFIGpi2C6Yes=; b=r9wGcb56bv6RVqksEOjAWbkJvP6BJ5ZkJkHqmWWpf29/EbGEXvzWH1rP3s4ZG2v7wY Vhj2Q32tkORSMhOgfs77bBqTGj+llMDuW+BkzZdih9WilX04cEepVdQ8+6qFOE8UX1hR NnTQJbXyfl9sek1EfzboQXw3KTbP9p+ifJkZEKWLdT2/W7CxYvKkeV+Bn5SjOmD+iatl GsHb2SvF6D+5lD/FzUBCN/Vkeq3KmFAvIoQn6zj+T+wTmOjhZ0RciSnmG8SPzZu5LG7j q1t8snW+YdsOLFIwHkG8kMu7PwtHuUGW+JVJIH1F3VsutZ0zkQ4x0S435Nkduta2MLhv ryYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CHy+eMlB; 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 v135-20020a63618d000000b00407d7650523si2864864pgb.455.2022.07.28.20.04.34; Thu, 28 Jul 2022 20:04:50 -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=CHy+eMlB; 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 S233755AbiG2C4Q (ORCPT + 99 others); Thu, 28 Jul 2022 22:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbiG2C4P (ORCPT ); Thu, 28 Jul 2022 22:56:15 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F752982E; Thu, 28 Jul 2022 19:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659063374; x=1690599374; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=E/Uyyb+h/AV7J/aT5ZRju9JhnFkYi1/BQWx3o8jvrNM=; b=CHy+eMlBZ2HLixmxZxTNQre6NLs4+n7NdhvTzuPTgHDxpt8YuchK6st7 NDhAimrU6rvws5LlsxUrvizEvif2iwjnlA714zTJD1jF0w2/Bh+OHJ5S6 JziKmHyk8SWvQvxiEax+7F2KLC9OxASTi2tUPNoXGWuL+bUO1qD1B6bEs GFdkdh1APLRqe9I7ewaiuVVb7BpHxxstgtLHxaKUYWMKxDkDOP4e1Wf4B YZ9t3ShNo6IhkDbWHgRQmEDwXDpLPROTnAH9ho0e5pHH2N2IR9nEXvKiA GAd14ytAdJ3YkIpROUIcbgxG6o119I7HdkWi+brQ0Q7e915HT4ltPuoEZ g==; X-IronPort-AV: E=McAfee;i="6400,9594,10422"; a="268440538" X-IronPort-AV: E=Sophos;i="5.93,200,1654585200"; d="scan'208";a="268440538" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2022 19:56:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,200,1654585200"; d="scan'208";a="928578998" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 28 Jul 2022 19:56:11 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oHGAd-000Ay1-05; Fri, 29 Jul 2022 02:56:11 +0000 Date: Fri, 29 Jul 2022 10:55:12 +0800 From: kernel test robot To: Jeremy Linton , linux-pm@vger.kernel.org Cc: kbuild-all@lists.01.org, rafael@kernel.org, lenb@kernel.org, viresh.kumar@linaro.org, robert.moore@intel.com, devel@acpica.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Jeremy Linton Subject: Re: [PATCH] ACPI: CPPC: Disable FIE if registers in PCC regions Message-ID: <202207291003.Wk3c06eH-lkp@intel.com> References: <20220726145948.2194684-1-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220726145948.2194684-1-jeremy.linton@arm.com> X-Spam-Status: No, score=-4.9 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_PASS,SPF_NONE 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 Jeremy, Thank you for the patch! Yet something to improve: [auto build test ERROR on rafael-pm/linux-next] [also build test ERROR on linus/master v5.19-rc8 next-20220728] [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/Jeremy-Linton/ACPI-CPPC-Disable-FIE-if-registers-in-PCC-regions/20220726-230217 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220729/202207291003.Wk3c06eH-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/a4dd80cfc857eef429f60e999bdc9479179d495e git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jeremy-Linton/ACPI-CPPC-Disable-FIE-if-registers-in-PCC-regions/20220726-230217 git checkout a4dd80cfc857eef429f60e999bdc9479179d495e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from drivers/cpufreq/acpi-cpufreq.c:29: >> include/acpi/cppc_acpi.h:177:12: warning: no previous prototype for 'cppc_perf_ctrs_in_pcc' [-Wmissing-prototypes] 177 | extern int cppc_perf_ctrs_in_pcc(void) | ^~~~~~~~~~~~~~~~~~~~~ -- ld: drivers/cpufreq/intel_pstate.o: in function `cppc_perf_ctrs_in_pcc': >> include/acpi/cppc_acpi.h:178: multiple definition of `cppc_perf_ctrs_in_pcc'; drivers/cpufreq/acpi-cpufreq.o:include/acpi/cppc_acpi.h:178: first defined here vim +178 include/acpi/cppc_acpi.h 135 136 #ifdef CONFIG_ACPI_CPPC_LIB 137 extern int cppc_get_desired_perf(int cpunum, u64 *desired_perf); 138 extern int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf); 139 extern int cppc_get_perf_ctrs(int cpu, struct cppc_perf_fb_ctrs *perf_fb_ctrs); 140 extern int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls); 141 extern int cppc_set_enable(int cpu, bool enable); 142 extern int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps); 143 extern int cppc_perf_ctrs_in_pcc(void); 144 extern bool acpi_cpc_valid(void); 145 extern bool cppc_allow_fast_switch(void); 146 extern int acpi_get_psd_map(unsigned int cpu, struct cppc_cpudata *cpu_data); 147 extern unsigned int cppc_get_transition_latency(int cpu); 148 extern bool cpc_ffh_supported(void); 149 extern bool cpc_supported_by_cpu(void); 150 extern int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val); 151 extern int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val); 152 #else /* !CONFIG_ACPI_CPPC_LIB */ 153 static inline int cppc_get_desired_perf(int cpunum, u64 *desired_perf) 154 { 155 return -ENOTSUPP; 156 } 157 static inline int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf) 158 { 159 return -ENOTSUPP; 160 } 161 static inline int cppc_get_perf_ctrs(int cpu, struct cppc_perf_fb_ctrs *perf_fb_ctrs) 162 { 163 return -ENOTSUPP; 164 } 165 static inline int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls) 166 { 167 return -ENOTSUPP; 168 } 169 static inline int cppc_set_enable(int cpu, bool enable) 170 { 171 return -ENOTSUPP; 172 } 173 static inline int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps) 174 { 175 return -ENOTSUPP; 176 } > 177 extern int cppc_perf_ctrs_in_pcc(void) > 178 { 179 return false; 180 } 181 static inline bool acpi_cpc_valid(void) 182 { 183 return false; 184 } 185 static inline bool cppc_allow_fast_switch(void) 186 { 187 return false; 188 } 189 static inline unsigned int cppc_get_transition_latency(int cpu) 190 { 191 return CPUFREQ_ETERNAL; 192 } 193 static inline bool cpc_ffh_supported(void) 194 { 195 return false; 196 } 197 static inline int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val) 198 { 199 return -ENOTSUPP; 200 } 201 static inline int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) 202 { 203 return -ENOTSUPP; 204 } 205 #endif /* !CONFIG_ACPI_CPPC_LIB */ 206 -- 0-DAY CI Kernel Test Service https://01.org/lkp