From: kernel test robot <lkp@intel.com>
To: Sandipan Das <sandipan.das@amd.com>,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
x86@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, peterz@infradead.org,
mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com,
alexander.shishkin@linux.intel.com, jolsa@kernel.org,
namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com,
tglx@linutronix.de, bp@alien8.de, dave.hansen@linux.intel.com,
hpa@zytor.com, eranian@google.com, ananth.narayan@amd.com,
ravi.bangoria@amd.com, santosh.shukla@amd.com,
sandipan.das@amd.com
Subject: Re: [PATCH v2 2/6] perf/x86/amd/uncore: Move discovery and registration
Date: Mon, 9 Oct 2023 20:36:16 +0800 [thread overview]
Message-ID: <202310092019.yMh3nlyD-lkp@intel.com> (raw)
In-Reply-To: <e6c447e48872fcab8452e0dd81b1c9cb09f39eb4.1696425185.git.sandipan.das@amd.com>
Hi Sandipan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tip/perf/core]
[also build test WARNING on perf-tools/perf-tools acme/perf/core linus/master v6.6-rc5 next-20231009]
[cannot apply to perf-tools-next/perf-tools-next]
[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/Sandipan-Das/perf-x86-amd-uncore-Move-discovery-and-registration/20231006-005053
base: tip/perf/core
patch link: https://lore.kernel.org/r/e6c447e48872fcab8452e0dd81b1c9cb09f39eb4.1696425185.git.sandipan.das%40amd.com
patch subject: [PATCH v2 2/6] perf/x86/amd/uncore: Move discovery and registration
config: i386-randconfig-061-20231009 (https://download.01.org/0day-ci/archive/20231009/202310092019.yMh3nlyD-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231009/202310092019.yMh3nlyD-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310092019.yMh3nlyD-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> arch/x86/events/amd/uncore.c:601:10: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@
arch/x86/events/amd/uncore.c:601:10: sparse: expected void const [noderef] __percpu *__vpp_verify
arch/x86/events/amd/uncore.c:601:10: sparse: got union amd_uncore_info *
arch/x86/events/amd/uncore.c:730:10: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@
arch/x86/events/amd/uncore.c:730:10: sparse: expected void const [noderef] __percpu *__vpp_verify
arch/x86/events/amd/uncore.c:730:10: sparse: got union amd_uncore_info *
>> arch/x86/events/amd/uncore.c:847:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected union amd_uncore_info *[noderef] info @@ got union amd_uncore_info [noderef] __percpu * @@
arch/x86/events/amd/uncore.c:847:30: sparse: expected union amd_uncore_info *[noderef] info
arch/x86/events/amd/uncore.c:847:30: sparse: got union amd_uncore_info [noderef] __percpu *
>> arch/x86/events/amd/uncore.c:881:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __percpu *__pdata @@ got union amd_uncore_info *[noderef] info @@
arch/x86/events/amd/uncore.c:881:43: sparse: expected void [noderef] __percpu *__pdata
arch/x86/events/amd/uncore.c:881:43: sparse: got union amd_uncore_info *[noderef] info
arch/x86/events/amd/uncore.c:904:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __percpu *__pdata @@ got union amd_uncore_info *[noderef] info @@
arch/x86/events/amd/uncore.c:904:35: sparse: expected void [noderef] __percpu *__pdata
arch/x86/events/amd/uncore.c:904:35: sparse: got union amd_uncore_info *[noderef] info
arch/x86/events/amd/uncore.c:358:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@
arch/x86/events/amd/uncore.c:358:39: sparse: expected void const [noderef] __percpu *__vpp_verify
arch/x86/events/amd/uncore.c:358:39: sparse: got union amd_uncore_info *
>> arch/x86/events/amd/uncore.c:358:39: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:358:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@
arch/x86/events/amd/uncore.c:358:39: sparse: expected void const [noderef] __percpu *__vpp_verify
arch/x86/events/amd/uncore.c:358:39: sparse: got union amd_uncore_info *
>> arch/x86/events/amd/uncore.c:358:39: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:601:10: sparse: sparse: dereference of noderef expression
>> arch/x86/events/amd/uncore.c:593:31: sparse: sparse: invalid access past the end of 'info' (4 8)
arch/x86/events/amd/uncore.c:598:48: sparse: sparse: invalid access past the end of 'info' (4 8)
arch/x86/events/amd/uncore.c:365:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@
arch/x86/events/amd/uncore.c:365:39: sparse: expected void const [noderef] __percpu *__vpp_verify
arch/x86/events/amd/uncore.c:365:39: sparse: got union amd_uncore_info *
arch/x86/events/amd/uncore.c:365:39: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:730:10: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:724:31: sparse: sparse: invalid access past the end of 'info' (4 8)
arch/x86/events/amd/uncore.c:365:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@
arch/x86/events/amd/uncore.c:365:39: sparse: expected void const [noderef] __percpu *__vpp_verify
arch/x86/events/amd/uncore.c:365:39: sparse: got union amd_uncore_info *
arch/x86/events/amd/uncore.c:365:39: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:848:22: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:880:21: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:881:37: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:882:25: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:901:22: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:904:29: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:905:17: sparse: sparse: dereference of noderef expression
vim +601 arch/x86/events/amd/uncore.c
582
583 static
584 void amd_uncore_df_ctx_scan(struct amd_uncore *uncore, unsigned int cpu)
585 {
586 union cpuid_0x80000022_ebx ebx;
587 union amd_uncore_info info;
588
589 if (!boot_cpu_has(X86_FEATURE_PERFCTR_NB))
590 return;
591
592 info.split.aux_data = 0;
> 593 info.split.num_pmcs = NUM_COUNTERS_NB;
594 info.split.cid = topology_die_id(cpu);
595
596 if (pmu_version >= 2) {
597 ebx.full = cpuid_ebx(EXT_PERFMON_DEBUG_FEATURES);
598 info.split.num_pmcs = ebx.split.num_df_pmc;
599 }
600
> 601 *per_cpu_ptr(uncore->info, cpu) = info;
602 }
603
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-10-09 12:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 5:23 [PATCH v2 0/6] perf/x86/amd: Add memory controller events Sandipan Das
2023-10-05 5:23 ` [PATCH v2 1/6] perf/x86/amd/uncore: Refactor uncore management Sandipan Das
2023-10-05 5:23 ` [PATCH v2 2/6] perf/x86/amd/uncore: Move discovery and registration Sandipan Das
2023-10-09 12:36 ` kernel test robot [this message]
2023-10-05 5:23 ` [PATCH v2 3/6] perf/x86/amd/uncore: Use rdmsr if rdpmc is unavailable Sandipan Das
2023-10-05 5:23 ` [PATCH v2 4/6] perf/x86/amd/uncore: Add group exclusivity Sandipan Das
2023-10-05 5:23 ` [PATCH v2 5/6] perf/x86/amd/uncore: Add memory controller support Sandipan Das
2023-10-05 5:23 ` [PATCH v2 6/6] perf vendor events amd: Add Zen 4 memory controller events Sandipan Das
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202310092019.yMh3nlyD-lkp@intel.com \
--to=lkp@intel.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=ananth.narayan@amd.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=eranian@google.com \
--cc=hpa@zytor.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peterz@infradead.org \
--cc=ravi.bangoria@amd.com \
--cc=sandipan.das@amd.com \
--cc=santosh.shukla@amd.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®