Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp586281rdb; Tue, 31 Oct 2023 16:53:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHv0mSN68eOlO2lWPYptV6PV/NxPsAMQDouVTkXA6eeI+Ixd01UNX75KjprRcZeoSRyQNph X-Received: by 2002:a05:6870:9a24:b0:1e9:d25d:3cb0 with SMTP id fo36-20020a0568709a2400b001e9d25d3cb0mr17572810oab.21.1698796394954; Tue, 31 Oct 2023 16:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698796394; cv=none; d=google.com; s=arc-20160816; b=ZCq2QOaiqt6ovu+maaItUvmbDV5WFuNwwOuSwIuDfwzgQ8ZxyI4hMmKbYEY5VePOJY KS/GF5Wip2bW9jvd5O7DVqv7eSBggjmmFZZ4zrtGcn8WajRHIBnNz0Yj4HoNPDtKm3md DZ4vB0fZWzjcc5ki1o9eXkIIQ5qP6cKxVeO0dsW5epEB0polMkqMBQakxkVzg+IYGNcU lVUp546aPb8+o+bXsgfsFqzu2UNTCoOKZ7ZOf/VoSi3/3waZWlnHdv4maI1nZfDO6/y/ a940fFHpsIUPBVxRZ7wyrJiwFER8arWcZos358qjnNmn0L1bt6JPtrY3VF40nXNRGSl5 Jh6Q== 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=ie68XSDTBEzQUp+C5VHS7q/Os1RXJFrfgaW4d9ilo7w=; fh=COGJVzQH9ISAtnuhAhSS/642XzjBXIkuEcbzWaI0iis=; b=dTbHYiOhXNx0Re4HShRIUXdo2W85wmnVjJy9N7iaqo9Pis8F+ODTrzldZopP6Y/Kvz gRgbtQ3DkxHodRJ/ASjGN1lEky5csIXQPfy8poQ+R8LyEKC15MXKNfYb+AxyrAuuNOz2 RQZVcc85T9RSGg6OrG3N9ufC/blAtk85boYczrhwqFxcZFHsZpE6ljKQgbkLjkY6T7iJ FDsz747RF1AabDIa7dETwYy0LtMc+AIMXzJ6wLoOP5ZXCesRMhosE1zglkrzKj8KjFLT x/eOzf2S4ofPjcOr8bYv0+baPW8MPA9+B8mmUeKxsPgWT9cDYzhpenJ+AZ0B862AvNjX GasQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I74nJmhe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k5-20020a63ba05000000b005b9b45ba3c1si1726061pgf.563.2023.10.31.16.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 16:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I74nJmhe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id EC04C810687E; Tue, 31 Oct 2023 16:53:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376902AbjJaXxM (ORCPT + 99 others); Tue, 31 Oct 2023 19:53:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347079AbjJaXxL (ORCPT ); Tue, 31 Oct 2023 19:53:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13A4D102; Tue, 31 Oct 2023 16:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698796389; x=1730332389; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Nwhou+JHdGFmauDrW6bRTCXcXpf0oQn0xqEx4ftHcJI=; b=I74nJmhevlwUR0/jkQPpAeAWPGlzPwl6c10mKNS90mOiz8W3zJEmDgqb s7ZYYOp8rMkMP2eekoRCPTgonEL1I5EOSLwPXlsSHlzGbeZMwFQueBU0P 74n/Y/zGkcbRmLuXfuGgf/wd19EoRLxTIdupmWXoQiFs4CFm17LROKK0a B/aAqhl2A2YFa8dPeqmXpFSKUjTUCLvcaPX6sN/3t5Kvv9et3wv+6Cl1e 9AKacZvgeWPGYtVwW01GPnN9mrbkfZdNdHnuV4wsCDBhvT9TRA0ENLF69 Qpvp1TpIjoAZp16oJ9ZswH1TjVwkOQrdg0VqAviiQNEY1Gy6fJCF/fwde A==; X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="367745008" X-IronPort-AV: E=Sophos;i="6.03,266,1694761200"; d="scan'208";a="367745008" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 16:53:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="710593883" X-IronPort-AV: E=Sophos;i="6.03,266,1694761200"; d="scan'208";a="710593883" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 31 Oct 2023 16:53:03 -0700 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1qxyXd-0000T5-0L; Tue, 31 Oct 2023 23:53:01 +0000 Date: Wed, 1 Nov 2023 07:52:25 +0800 From: kernel test robot To: Zeng Heng , broonie@kernel.org, joey.gouly@arm.com, will@kernel.org, amit.kachhap@arm.com, rafael@kernel.org, catalin.marinas@arm.com, james.morse@arm.com, mark.rutland@arm.com, maz@kernel.org, viresh.kumar@linaro.org, sumitg@nvidia.com, yang@os.amperecomputing.com Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, wangxiongfeng2@huawei.com, xiexiuqi@huawei.com Subject: Re: [PATCH 2/3] cpufreq: CPPC: Keep the target core awake when reading its cpufreq rate Message-ID: <202311010726.MjF49sPn-lkp@intel.com> References: <20231025093847.3740104-3-zengheng4@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025093847.3740104-3-zengheng4@huawei.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_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 31 Oct 2023 16:53:14 -0700 (PDT) Hi Zeng, kernel test robot noticed the following build errors: [auto build test ERROR on rafael-pm/linux-next] [also build test ERROR on rafael-pm/acpi-bus arm64/for-next/core linus/master v6.6 next-20231031] [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/Zeng-Heng/arm64-cpufeature-Export-cpu_has_amu_feat/20231025-173559 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next patch link: https://lore.kernel.org/r/20231025093847.3740104-3-zengheng4%40huawei.com patch subject: [PATCH 2/3] cpufreq: CPPC: Keep the target core awake when reading its cpufreq rate config: arm64-randconfig-003-20231101 (https://download.01.org/0day-ci/archive/20231101/202311010726.MjF49sPn-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/20231101/202311010726.MjF49sPn-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/202311010726.MjF49sPn-lkp@intel.com/ All error/warnings (new ones prefixed by >>): drivers/cpufreq/cppc_cpufreq.c: In function 'cppc_get_perf_ctrs_pair': >> drivers/cpufreq/cppc_cpufreq.c:852:26: error: invalid use of undefined type 'struct fb_ctr_pair' 852 | int cpu = fb_ctrs->cpu; | ^~ drivers/cpufreq/cppc_cpufreq.c:855:47: error: invalid use of undefined type 'struct fb_ctr_pair' 855 | ret = cppc_get_perf_ctrs(cpu, &fb_ctrs->fb_ctrs_t0); | ^~ drivers/cpufreq/cppc_cpufreq.c:861:48: error: invalid use of undefined type 'struct fb_ctr_pair' 861 | return cppc_get_perf_ctrs(cpu, &fb_ctrs->fb_ctrs_t1); | ^~ drivers/cpufreq/cppc_cpufreq.c: In function 'cppc_cpufreq_get_rate': >> drivers/cpufreq/cppc_cpufreq.c:866:16: error: variable 'fb_ctrs' has initializer but incomplete type 866 | struct fb_ctr_pair fb_ctrs = { .cpu = cpu, }; | ^~~~~~~~~~~ >> drivers/cpufreq/cppc_cpufreq.c:866:41: error: 'struct fb_ctr_pair' has no member named 'cpu' 866 | struct fb_ctr_pair fb_ctrs = { .cpu = cpu, }; | ^~~ >> drivers/cpufreq/cppc_cpufreq.c:866:47: warning: excess elements in struct initializer 866 | struct fb_ctr_pair fb_ctrs = { .cpu = cpu, }; | ^~~ drivers/cpufreq/cppc_cpufreq.c:866:47: note: (near initialization for 'fb_ctrs') >> drivers/cpufreq/cppc_cpufreq.c:866:28: error: storage size of 'fb_ctrs' isn't known 866 | struct fb_ctr_pair fb_ctrs = { .cpu = cpu, }; | ^~~~~~~ >> drivers/cpufreq/cppc_cpufreq.c:866:28: warning: unused variable 'fb_ctrs' [-Wunused-variable] vim +852 drivers/cpufreq/cppc_cpufreq.c 848 849 static int cppc_get_perf_ctrs_pair(void *val) 850 { 851 struct fb_ctr_pair *fb_ctrs = val; > 852 int cpu = fb_ctrs->cpu; 853 int ret; 854 855 ret = cppc_get_perf_ctrs(cpu, &fb_ctrs->fb_ctrs_t0); 856 if (ret) 857 return ret; 858 859 udelay(2); /* 2usec delay between sampling */ 860 861 return cppc_get_perf_ctrs(cpu, &fb_ctrs->fb_ctrs_t1); 862 } 863 864 static unsigned int cppc_cpufreq_get_rate(unsigned int cpu) 865 { > 866 struct fb_ctr_pair fb_ctrs = { .cpu = cpu, }; 867 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); 868 struct cppc_cpudata *cpu_data = policy->driver_data; 869 u64 delivered_perf; 870 int ret; 871 872 cpufreq_cpu_put(policy); 873 874 if (cpu_has_amu_feat(cpu)) 875 ret = smp_call_on_cpu(cpu, cppc_get_perf_ctrs_pair, 876 &fb_ctrs, false); 877 else 878 ret = cppc_get_perf_ctrs_pair(&fb_ctrs); 879 880 if (ret) 881 return 0; 882 883 delivered_perf = cppc_perf_from_fbctrs(cpu_data, 884 &fb_ctrs.fb_ctrs_t0, 885 &fb_ctrs.fb_ctrs_t1); 886 887 return cppc_cpufreq_perf_to_khz(cpu_data, delivered_perf); 888 } 889 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki