* [linux-next:master 6256/7172] arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
@ 2022-09-14 11:37 kernel test robot
2022-09-14 12:27 ` Conor.Dooley
0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2022-09-14 11:37 UTC (permalink / raw)
To: Palmer Dabbelt
Cc: llvm, kbuild-all, Linux Memory Management List, Conor Dooley
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f117c01187301a087412bd6697fcf5463cb427d8
commit: 8f7e001e0325de63a42f23342ac3b8139150c5cf [6256/7172] RISC-V: Clean up the Zicbom block size probing
config: riscv-randconfig-r042-20220914 (https://download.01.org/0day-ci/archive/20220914/202209141913.Nxzv3hwM-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8f7e001e0325de63a42f23342ac3b8139150c5cf
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 8f7e001e0325de63a42f23342ac3b8139150c5cf
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/errata/thead/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
riscv_cbom_block_size = L1_CACHE_BYTES;
^
1 error generated.
vim +/riscv_cbom_block_size +40 arch/riscv/errata/thead/errata.c
29
30 static bool errata_probe_cmo(unsigned int stage,
31 unsigned long arch_id, unsigned long impid)
32 {
33 #ifdef CONFIG_ERRATA_THEAD_CMO
34 if (arch_id != 0 || impid != 0)
35 return false;
36
37 if (stage == RISCV_ALTERNATIVES_EARLY_BOOT)
38 return false;
39
> 40 riscv_cbom_block_size = L1_CACHE_BYTES;
41 riscv_noncoherent_supported();
42 return true;
43 #else
44 return false;
45 #endif
46 }
47
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-next:master 6256/7172] arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
2022-09-14 11:37 [linux-next:master 6256/7172] arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size' kernel test robot
@ 2022-09-14 12:27 ` Conor.Dooley
0 siblings, 0 replies; 5+ messages in thread
From: Conor.Dooley @ 2022-09-14 12:27 UTC (permalink / raw)
To: lkp, palmer, heiko; +Cc: llvm, kbuild-all, linux-mm
@Heiko is this the same issue that LKP previously complained about
that you have a fix for, or should I sent a fix for it tonight?
On 14/09/2022 12:37, kernel test robot wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: f117c01187301a087412bd6697fcf5463cb427d8
> commit: 8f7e001e0325de63a42f23342ac3b8139150c5cf [6256/7172] RISC-V: Clean up the Zicbom block size probing
> config: riscv-randconfig-r042-20220914 (https://download.01.org/0day-ci/archive/20220914/202209141913.Nxzv3hwM-lkp@intel.com/config)
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # install riscv cross compiling tool for clang build
> # apt-get install binutils-riscv64-linux-gnu
> # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8f7e001e0325de63a42f23342ac3b8139150c5cf
> git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> git fetch --no-tags linux-next master
> git checkout 8f7e001e0325de63a42f23342ac3b8139150c5cf
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/errata/thead/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>>> arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
> riscv_cbom_block_size = L1_CACHE_BYTES;
> ^
> 1 error generated.
>
>
> vim +/riscv_cbom_block_size +40 arch/riscv/errata/thead/errata.c
>
> 29
> 30 static bool errata_probe_cmo(unsigned int stage,
> 31 unsigned long arch_id, unsigned long impid)
> 32 {
> 33 #ifdef CONFIG_ERRATA_THEAD_CMO
> 34 if (arch_id != 0 || impid != 0)
> 35 return false;
> 36
> 37 if (stage == RISCV_ALTERNATIVES_EARLY_BOOT)
> 38 return false;
> 39
> > 40 riscv_cbom_block_size = L1_CACHE_BYTES;
> 41 riscv_noncoherent_supported();
> 42 return true;
> 43 #else
> 44 return false;
> 45 #endif
> 46 }
> 47
>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-next:master 6256/7172] arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
@ 2022-09-14 12:27 ` Conor.Dooley
0 siblings, 0 replies; 5+ messages in thread
From: Conor.Dooley @ 2022-09-14 12:27 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2870 bytes --]
@Heiko is this the same issue that LKP previously complained about
that you have a fix for, or should I sent a fix for it tonight?
On 14/09/2022 12:37, kernel test robot wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: f117c01187301a087412bd6697fcf5463cb427d8
> commit: 8f7e001e0325de63a42f23342ac3b8139150c5cf [6256/7172] RISC-V: Clean up the Zicbom block size probing
> config: riscv-randconfig-r042-20220914 (https://download.01.org/0day-ci/archive/20220914/202209141913.Nxzv3hwM-lkp(a)intel.com/config)
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # install riscv cross compiling tool for clang build
> # apt-get install binutils-riscv64-linux-gnu
> # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8f7e001e0325de63a42f23342ac3b8139150c5cf
> git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> git fetch --no-tags linux-next master
> git checkout 8f7e001e0325de63a42f23342ac3b8139150c5cf
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/errata/thead/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>>> arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
> riscv_cbom_block_size = L1_CACHE_BYTES;
> ^
> 1 error generated.
>
>
> vim +/riscv_cbom_block_size +40 arch/riscv/errata/thead/errata.c
>
> 29
> 30 static bool errata_probe_cmo(unsigned int stage,
> 31 unsigned long arch_id, unsigned long impid)
> 32 {
> 33 #ifdef CONFIG_ERRATA_THEAD_CMO
> 34 if (arch_id != 0 || impid != 0)
> 35 return false;
> 36
> 37 if (stage == RISCV_ALTERNATIVES_EARLY_BOOT)
> 38 return false;
> 39
> > 40 riscv_cbom_block_size = L1_CACHE_BYTES;
> 41 riscv_noncoherent_supported();
> 42 return true;
> 43 #else
> 44 return false;
> 45 #endif
> 46 }
> 47
>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-next:master 6256/7172] arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
2022-09-14 12:27 ` Conor.Dooley
@ 2022-09-14 14:38 ` Heiko Stuebner
-1 siblings, 0 replies; 5+ messages in thread
From: Heiko Stuebner @ 2022-09-14 14:38 UTC (permalink / raw)
To: lkp, palmer, Conor.Dooley; +Cc: llvm, kbuild-all, linux-mm
Hi Conor,
Am Mittwoch, 14. September 2022, 14:27:19 CEST schrieb Conor.Dooley@microchip.com:
> @Heiko is this the same issue that LKP previously complained about
> that you have a fix for, or should I sent a fix for it tonight?
this one is new, but the cause is similar (building t-head cache ops but not
zicbom cache ops).
I've just sent a patch to move the definition to the more generic block in
cacheflush.h
Heiko
> On 14/09/2022 12:37, kernel test robot wrote:
> > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head: f117c01187301a087412bd6697fcf5463cb427d8
> > commit: 8f7e001e0325de63a42f23342ac3b8139150c5cf [6256/7172] RISC-V: Clean up the Zicbom block size probing
> > config: riscv-randconfig-r042-20220914 (https://download.01.org/0day-ci/archive/20220914/202209141913.Nxzv3hwM-lkp@intel.com/config)
> > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
> > reproduce (this is a W=1 build):
> > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> > chmod +x ~/bin/make.cross
> > # install riscv cross compiling tool for clang build
> > # apt-get install binutils-riscv64-linux-gnu
> > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8f7e001e0325de63a42f23342ac3b8139150c5cf
> > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> > git fetch --no-tags linux-next master
> > git checkout 8f7e001e0325de63a42f23342ac3b8139150c5cf
> > # save the config file
> > mkdir build_dir && cp config build_dir/.config
> > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/errata/thead/
> >
> > If you fix the issue, kindly add following tag where applicable
> > Reported-by: kernel test robot <lkp@intel.com>
> >
> > All errors (new ones prefixed by >>):
> >
> >>> arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
> > riscv_cbom_block_size = L1_CACHE_BYTES;
> > ^
> > 1 error generated.
> >
> >
> > vim +/riscv_cbom_block_size +40 arch/riscv/errata/thead/errata.c
> >
> > 29
> > 30 static bool errata_probe_cmo(unsigned int stage,
> > 31 unsigned long arch_id, unsigned long impid)
> > 32 {
> > 33 #ifdef CONFIG_ERRATA_THEAD_CMO
> > 34 if (arch_id != 0 || impid != 0)
> > 35 return false;
> > 36
> > 37 if (stage == RISCV_ALTERNATIVES_EARLY_BOOT)
> > 38 return false;
> > 39
> > > 40 riscv_cbom_block_size = L1_CACHE_BYTES;
> > 41 riscv_noncoherent_supported();
> > 42 return true;
> > 43 #else
> > 44 return false;
> > 45 #endif
> > 46 }
> > 47
> >
> > --
> > 0-DAY CI Kernel Test Service
> > https://01.org/lkp
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-next:master 6256/7172] arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
@ 2022-09-14 14:38 ` Heiko Stuebner
0 siblings, 0 replies; 5+ messages in thread
From: Heiko Stuebner @ 2022-09-14 14:38 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3302 bytes --]
Hi Conor,
Am Mittwoch, 14. September 2022, 14:27:19 CEST schrieb Conor.Dooley(a)microchip.com:
> @Heiko is this the same issue that LKP previously complained about
> that you have a fix for, or should I sent a fix for it tonight?
this one is new, but the cause is similar (building t-head cache ops but not
zicbom cache ops).
I've just sent a patch to move the definition to the more generic block in
cacheflush.h
Heiko
> On 14/09/2022 12:37, kernel test robot wrote:
> > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head: f117c01187301a087412bd6697fcf5463cb427d8
> > commit: 8f7e001e0325de63a42f23342ac3b8139150c5cf [6256/7172] RISC-V: Clean up the Zicbom block size probing
> > config: riscv-randconfig-r042-20220914 (https://download.01.org/0day-ci/archive/20220914/202209141913.Nxzv3hwM-lkp(a)intel.com/config)
> > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
> > reproduce (this is a W=1 build):
> > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> > chmod +x ~/bin/make.cross
> > # install riscv cross compiling tool for clang build
> > # apt-get install binutils-riscv64-linux-gnu
> > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8f7e001e0325de63a42f23342ac3b8139150c5cf
> > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> > git fetch --no-tags linux-next master
> > git checkout 8f7e001e0325de63a42f23342ac3b8139150c5cf
> > # save the config file
> > mkdir build_dir && cp config build_dir/.config
> > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/errata/thead/
> >
> > If you fix the issue, kindly add following tag where applicable
> > Reported-by: kernel test robot <lkp@intel.com>
> >
> > All errors (new ones prefixed by >>):
> >
> >>> arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
> > riscv_cbom_block_size = L1_CACHE_BYTES;
> > ^
> > 1 error generated.
> >
> >
> > vim +/riscv_cbom_block_size +40 arch/riscv/errata/thead/errata.c
> >
> > 29
> > 30 static bool errata_probe_cmo(unsigned int stage,
> > 31 unsigned long arch_id, unsigned long impid)
> > 32 {
> > 33 #ifdef CONFIG_ERRATA_THEAD_CMO
> > 34 if (arch_id != 0 || impid != 0)
> > 35 return false;
> > 36
> > 37 if (stage == RISCV_ALTERNATIVES_EARLY_BOOT)
> > 38 return false;
> > 39
> > > 40 riscv_cbom_block_size = L1_CACHE_BYTES;
> > 41 riscv_noncoherent_supported();
> > 42 return true;
> > 43 #else
> > 44 return false;
> > 45 #endif
> > 46 }
> > 47
> >
> > --
> > 0-DAY CI Kernel Test Service
> > https://01.org/lkp
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-09-14 14:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 11:37 [linux-next:master 6256/7172] arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size' kernel test robot
2022-09-14 12:27 ` Conor.Dooley
2022-09-14 12:27 ` Conor.Dooley
2022-09-14 14:38 ` Heiko Stuebner
2022-09-14 14:38 ` Heiko Stuebner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.