Content-Type: multipart/mixed; boundary="===============6207002358118134548==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH] perf/x86/rapl: fix AMD event handling Date: Thu, 06 Jan 2022 08:19:54 +0800 Message-ID: <202201060859.rVh6PW5V-lkp@intel.com> In-Reply-To: <20220105185659.643355-1-eranian@google.com> List-Id: --===============6207002358118134548== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Stephane, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/perf/core] [also build test WARNING on tip/master linux/master linus/master v5.16-rc8 = next-20220105] [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] url: https://github.com/0day-ci/linux/commits/Stephane-Eranian/perf-x86-= rapl-fix-AMD-event-handling/20220106-025808 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git a9f4a6e= 92b3b319296fb078da2615f618f6cd80c config: i386-randconfig-s002-20220105 (https://download.01.org/0day-ci/arch= ive/20220106/202201060859.rVh6PW5V-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/0day-ci/linux/commit/3c196dc3aa384eb70492fdb07= 371de164e98e238 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Stephane-Eranian/perf-x86-rapl-fix= -AMD-event-handling/20220106-025808 git checkout 3c196dc3aa384eb70492fdb07371de164e98e238 # save the config file to linux build tree mkdir build_dir make W=3D1 C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3D= build_dir ARCH=3Di386 SHELL=3D/bin/bash arch/x86/events/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> arch/x86/events/rapl.c:540:59: sparse: sparse: Using plain integer as NU= LL pointer arch/x86/events/rapl.c:542:59: sparse: sparse: Using plain integer as NU= LL pointer arch/x86/events/rapl.c:543:59: sparse: sparse: Using plain integer as NU= LL pointer arch/x86/events/rapl.c:544:59: sparse: sparse: Using plain integer as NU= LL pointer vim +540 arch/x86/events/rapl.c 533 = 534 /* 535 * Force to PERF_RAPL_MAX size due to: 536 * - perf_msr_probe(PERF_RAPL_MAX) 537 * - want to use same event codes across both architectures 538 */ 539 static struct perf_msr amd_rapl_msrs[] =3D { > 540 [PERF_RAPL_PP0] =3D { 0, &rapl_events_cores_group, 0, false, 0 }, 541 [PERF_RAPL_PKG] =3D { MSR_AMD_PKG_ENERGY_STATUS, &rapl_events_pkg= _group, test_msr, false, RAPL_MSR_MASK }, 542 [PERF_RAPL_RAM] =3D { 0, &rapl_events_ram_group, 0, false, 0 }, 543 [PERF_RAPL_PP1] =3D { 0, &rapl_events_gpu_group, 0, false, 0 }, 544 [PERF_RAPL_PSYS] =3D { 0, &rapl_events_psys_group, 0, false, 0 }, 545 }; 546 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6207002358118134548==--