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] [thread-next>] [day] [month] [year] [list]
Message-ID: <202405071251.5uvKqYFh-lkp@intel.com>
Date: Tue, 7 May 2024 14:06:03 +0800
From: kernel test robot <lkp@...el.com>
To: Li Jun <lijun01@...inos.cn>, chenhuacai@...nel.org, kernel@...0n.name,
	lvjianmin@...ngson.cn, dongbiao@...ngson.cn, zhangbaoqi@...ngson.cn
Cc: oe-kbuild-all@...ts.linux.dev, lijun01@...inos.cn,
	loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] LoongArch: Update the flush cache policy

Hi Li,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.9-rc7 next-20240506]
[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/Li-Jun/LoongArch-Update-the-flush-cache-policy/20240506-172624
base:   linus/master
patch link:    https://lore.kernel.org/r/20240506092419.4109941-1-lijun01%40kylinos.cn
patch subject: [PATCH] LoongArch: Update the flush cache policy
config: loongarch-allnoconfig
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build):

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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405071251.5uvKqYFh-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/loongarch/mm/cache.c: In function 'flush_cache_last_level':
>> arch/loongarch/mm/cache.c:69:29: warning: variable 'way_size' set but not used [-Wunused-but-set-variable]
      69 |         int i, j, nr_nodes, way_size;
         |                             ^~~~~~~~


vim +/way_size +69 arch/loongarch/mm/cache.c

    65	
    66	static void flush_cache_last_level(unsigned int leaf)
    67	{
    68		u64 addr;
  > 69		int i, j, nr_nodes, way_size;
    70		struct cache_desc *cdesc = current_cpu_data.cache_leaves + leaf;
    71	
    72		nr_nodes = loongson_sysconf.nr_nodes;
    73	
    74		addr = CSR_DMW1_BASE;
    75		iocsr_write32(0x1, 0x280);
    76		way_size = cdesc->sets * cdesc->linesz;
    77		do {
    78			for (i = 0; i < (cdesc->ways * 3); i++) {
    79				for (j = 0; j < (cdesc->sets); j++) {
    80					*(volatile u32 *)addr;
    81					addr += cdesc->linesz;
    82				}
    83			}
    84			addr += 0x100000000000;
    85		} while (--nr_nodes > 0);
    86	}
    87	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

View attachment "reproduce" of type "text/plain" (602 bytes)

View attachment "config" of type "text/plain" (37339 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ