lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 14 Aug 2018 07:37:40 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Janakarajan Natarajan <Janakarajan.Natarajan@....com>
Cc:     kbuild-all@...org, x86@...nel.org, linux-kernel@...r.kernel.org,
        Thomas Gleixner <tglx@...utronix.de>,
        Ingo Molnar <mingo@...hat.com>,
        "H . Peter Anvin" <hpa@...or.com>,
        Peter Zijlstra <peterz@...radead.org>,
        Arnaldo Carvalho de Melo <acme@...nel.org>,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        Jiri Olsa <jolsa@...hat.com>,
        Namhyung Kim <namhyung@...nel.org>,
        Borislav Petkov <bp@...e.de>,
        Suravee Suthikulpanit <suravee.suthikulpanit@....com>,
        Janakarajan Natarajan <Janakarajan.Natarajan@....com>
Subject: Re: [PATCH] perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3
 Cache perf events

Hi Janakarajan,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tip/perf/core]
[also build test WARNING on v4.18 next-20180813]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Janakarajan-Natarajan/perf-x86-amd-uncore-Set-ThreadMask-and-SliceMask-for-L3-Cache-perf-events/20180814-064324
config: i386-randconfig-x002-201832 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/linux/perf_event.h:25:0,
                    from arch/x86//events/amd/uncore.c:11:
   arch/x86//events/amd/uncore.c: In function 'amd_uncore_event_init':
>> arch/x86/include/asm/perf_event.h:51:11: warning: left shift count >= width of type [-Wshift-count-overflow]
     ((0xFUL) << AMD64_L3_SLICE_SHIFT)
              ^
>> arch/x86//events/amd/uncore.c:218:19: note: in expansion of macro 'AMD64_L3_SLICE_MASK'
      hwc->config |= (AMD64_L3_SLICE_MASK | AMD64_L3_THREAD_MASK);
                      ^~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/perf_event.h:55:12: warning: left shift count >= width of type [-Wshift-count-overflow]
     ((0xFFUL) << AMD64_L3_THREAD_SHIFT)
               ^
>> arch/x86//events/amd/uncore.c:218:41: note: in expansion of macro 'AMD64_L3_THREAD_MASK'
      hwc->config |= (AMD64_L3_SLICE_MASK | AMD64_L3_THREAD_MASK);
                                            ^~~~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/perf_event.h:25:0,
                    from arch/x86/events/amd/uncore.c:11:
   arch/x86/events/amd/uncore.c: In function 'amd_uncore_event_init':
>> arch/x86/include/asm/perf_event.h:51:11: warning: left shift count >= width of type [-Wshift-count-overflow]
     ((0xFUL) << AMD64_L3_SLICE_SHIFT)
              ^
   arch/x86/events/amd/uncore.c:218:19: note: in expansion of macro 'AMD64_L3_SLICE_MASK'
      hwc->config |= (AMD64_L3_SLICE_MASK | AMD64_L3_THREAD_MASK);
                      ^~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/perf_event.h:55:12: warning: left shift count >= width of type [-Wshift-count-overflow]
     ((0xFFUL) << AMD64_L3_THREAD_SHIFT)
               ^
   arch/x86/events/amd/uncore.c:218:41: note: in expansion of macro 'AMD64_L3_THREAD_MASK'
      hwc->config |= (AMD64_L3_SLICE_MASK | AMD64_L3_THREAD_MASK);
                                            ^~~~~~~~~~~~~~~~~~~~

vim +51 arch/x86/include/asm/perf_event.h

    39	
    40	#define AMD64_EVENTSEL_INT_CORE_SEL_SHIFT		37
    41	#define AMD64_EVENTSEL_INT_CORE_SEL_MASK		\
    42		(0xFULL << AMD64_EVENTSEL_INT_CORE_SEL_SHIFT)
    43	
    44	#define AMD64_EVENTSEL_EVENT	\
    45		(ARCH_PERFMON_EVENTSEL_EVENT | (0x0FULL << 32))
    46	#define INTEL_ARCH_EVENT_MASK	\
    47		(ARCH_PERFMON_EVENTSEL_UMASK | ARCH_PERFMON_EVENTSEL_EVENT)
    48	
    49	#define AMD64_L3_SLICE_SHIFT				48
    50	#define AMD64_L3_SLICE_MASK				\
  > 51		((0xFUL) << AMD64_L3_SLICE_SHIFT)
    52	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (31747 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ