* [ammarfaizi2-block:palmer/linux/riscv-pmu 13/15] drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
@ 2022-03-22 8:23 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-03-22 8:23 UTC (permalink / raw)
To: Atish Patra
Cc: llvm, kbuild-all, GNU/Weeb Mailing List, linux-kernel,
Palmer Dabbelt, linux-doc
tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-pmu
head: 33363c336516e4beb9dd7e8265b369ff96d07dcb
commit: 4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98 [13/15] RISC-V: Add sscofpmf extension support
config: riscv-randconfig-r042-20220320 (https://download.01.org/0day-ci/archive/20220322/[email protected]/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 85e9b2687a13d1908aa86d1b89c5ce398a06cd39)
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://github.com/ammarfaizi2/linux-block/commit/4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-pmu
git checkout 4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/perf/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
drivers/perf/riscv_pmu_sbi.c:42: warning: cannot understand function prototype: 'union sbi_pmu_ctr_info *pmu_ctr_list; '
>> drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* This function starts all the used counters in two step approach.
vim +498 drivers/perf/riscv_pmu_sbi.c
496
497 /**
> 498 * This function starts all the used counters in two step approach.
499 * Any counter that did not overflow can be start in a single step
500 * while the overflowed counters need to be started with updated initialization
501 * value.
502 */
503 static inline void pmu_sbi_start_overflow_mask(struct riscv_pmu *pmu,
504 unsigned long ctr_ovf_mask)
505 {
506 int idx = 0;
507 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events);
508 struct perf_event *event;
509 unsigned long flag = SBI_PMU_START_FLAG_SET_INIT_VALUE;
510 unsigned long ctr_start_mask = 0;
511 uint64_t max_period;
512 struct hw_perf_event *hwc;
513 u64 init_val = 0;
514
515 ctr_start_mask = cpu_hw_evt->used_hw_ctrs[0] & ~ctr_ovf_mask;
516
517 /* Start all the counters that did not overflow in a single shot */
518 sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, 0, ctr_start_mask,
519 0, 0, 0, 0);
520
521 /* Reinitialize and start all the counter that overflowed */
522 while (ctr_ovf_mask) {
523 if (ctr_ovf_mask & 0x01) {
524 event = cpu_hw_evt->events[idx];
525 hwc = &event->hw;
526 max_period = riscv_pmu_ctr_get_width_mask(event);
527 init_val = local64_read(&hwc->prev_count) & max_period;
528 sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, idx, 1,
529 flag, init_val, 0, 0);
530 }
531 ctr_ovf_mask = ctr_ovf_mask >> 1;
532 idx++;
533 }
534 }
535
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ammarfaizi2-block:palmer/linux/riscv-pmu 13/15] drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
@ 2022-03-22 13:24 kernel test robot
2022-03-22 22:06 ` Palmer Dabbelt
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2022-03-22 13:24 UTC (permalink / raw)
To: Atish Patra
Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel, Palmer Dabbelt,
linux-doc
tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-pmu
head: 33363c336516e4beb9dd7e8265b369ff96d07dcb
commit: 4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98 [13/15] RISC-V: Add sscofpmf extension support
config: riscv-randconfig-r006-20220320 (https://download.01.org/0day-ci/archive/20220322/[email protected]/config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
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
# https://github.com/ammarfaizi2/linux-block/commit/4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-pmu
git checkout 4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash drivers/perf/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
drivers/perf/riscv_pmu_sbi.c:42: warning: cannot understand function prototype: 'union sbi_pmu_ctr_info *pmu_ctr_list; '
>> drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* This function starts all the used counters in two step approach.
vim +498 drivers/perf/riscv_pmu_sbi.c
496
497 /**
> 498 * This function starts all the used counters in two step approach.
499 * Any counter that did not overflow can be start in a single step
500 * while the overflowed counters need to be started with updated initialization
501 * value.
502 */
503 static inline void pmu_sbi_start_overflow_mask(struct riscv_pmu *pmu,
504 unsigned long ctr_ovf_mask)
505 {
506 int idx = 0;
507 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events);
508 struct perf_event *event;
509 unsigned long flag = SBI_PMU_START_FLAG_SET_INIT_VALUE;
510 unsigned long ctr_start_mask = 0;
511 uint64_t max_period;
512 struct hw_perf_event *hwc;
513 u64 init_val = 0;
514
515 ctr_start_mask = cpu_hw_evt->used_hw_ctrs[0] & ~ctr_ovf_mask;
516
517 /* Start all the counters that did not overflow in a single shot */
518 sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, 0, ctr_start_mask,
519 0, 0, 0, 0);
520
521 /* Reinitialize and start all the counter that overflowed */
522 while (ctr_ovf_mask) {
523 if (ctr_ovf_mask & 0x01) {
524 event = cpu_hw_evt->events[idx];
525 hwc = &event->hw;
526 max_period = riscv_pmu_ctr_get_width_mask(event);
527 init_val = local64_read(&hwc->prev_count) & max_period;
528 sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, idx, 1,
529 flag, init_val, 0, 0);
530 }
531 ctr_ovf_mask = ctr_ovf_mask >> 1;
532 idx++;
533 }
534 }
535
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ammarfaizi2-block:palmer/linux/riscv-pmu 13/15] drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
2022-03-22 13:24 [ammarfaizi2-block:palmer/linux/riscv-pmu 13/15] drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst kernel test robot
@ 2022-03-22 22:06 ` Palmer Dabbelt
2022-03-23 12:18 ` Bagas Sanjaya
0 siblings, 1 reply; 4+ messages in thread
From: Palmer Dabbelt @ 2022-03-22 22:06 UTC (permalink / raw)
To: Atish Patra; +Cc: lkp, kbuild-all, gwml, linux-kernel, linux-doc
On Tue, 22 Mar 2022 06:24:04 PDT (-0700), [email protected] wrote:
> tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-pmu
> head: 33363c336516e4beb9dd7e8265b369ff96d07dcb
> commit: 4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98 [13/15] RISC-V: Add sscofpmf extension support
> config: riscv-randconfig-r006-20220320 (https://download.01.org/0day-ci/archive/20220322/[email protected]/config)
> compiler: riscv64-linux-gcc (GCC) 11.2.0
> 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
> # https://github.com/ammarfaizi2/linux-block/commit/4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98
> git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
> git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-pmu
> git checkout 4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98
> # save the config file to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash drivers/perf/
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <[email protected]>
>
> All warnings (new ones prefixed by >>):
>
> drivers/perf/riscv_pmu_sbi.c:42: warning: cannot understand function prototype: 'union sbi_pmu_ctr_info *pmu_ctr_list; '
Looks like that's just fallout from the ** comments.
>>> drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
I sent a fix for this one, there were a handful of them. Sorry I missed
that.
> * This function starts all the used counters in two step approach.
>
>
> vim +498 drivers/perf/riscv_pmu_sbi.c
>
> 496
> 497 /**
> > 498 * This function starts all the used counters in two step approach.
> 499 * Any counter that did not overflow can be start in a single step
> 500 * while the overflowed counters need to be started with updated initialization
> 501 * value.
> 502 */
> 503 static inline void pmu_sbi_start_overflow_mask(struct riscv_pmu *pmu,
> 504 unsigned long ctr_ovf_mask)
> 505 {
> 506 int idx = 0;
> 507 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events);
> 508 struct perf_event *event;
> 509 unsigned long flag = SBI_PMU_START_FLAG_SET_INIT_VALUE;
> 510 unsigned long ctr_start_mask = 0;
> 511 uint64_t max_period;
> 512 struct hw_perf_event *hwc;
> 513 u64 init_val = 0;
> 514
> 515 ctr_start_mask = cpu_hw_evt->used_hw_ctrs[0] & ~ctr_ovf_mask;
> 516
> 517 /* Start all the counters that did not overflow in a single shot */
> 518 sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, 0, ctr_start_mask,
> 519 0, 0, 0, 0);
> 520
> 521 /* Reinitialize and start all the counter that overflowed */
> 522 while (ctr_ovf_mask) {
> 523 if (ctr_ovf_mask & 0x01) {
> 524 event = cpu_hw_evt->events[idx];
> 525 hwc = &event->hw;
> 526 max_period = riscv_pmu_ctr_get_width_mask(event);
> 527 init_val = local64_read(&hwc->prev_count) & max_period;
> 528 sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, idx, 1,
> 529 flag, init_val, 0, 0);
> 530 }
> 531 ctr_ovf_mask = ctr_ovf_mask >> 1;
> 532 idx++;
> 533 }
> 534 }
> 535
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ammarfaizi2-block:palmer/linux/riscv-pmu 13/15] drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
2022-03-22 22:06 ` Palmer Dabbelt
@ 2022-03-23 12:18 ` Bagas Sanjaya
0 siblings, 0 replies; 4+ messages in thread
From: Bagas Sanjaya @ 2022-03-23 12:18 UTC (permalink / raw)
To: Palmer Dabbelt, Atish Patra
Cc: lkp, kbuild-all, gwml, linux-kernel, linux-doc
On 23/03/22 05.06, Palmer Dabbelt wrote:
>> All warnings (new ones prefixed by >>):
>>
>> drivers/perf/riscv_pmu_sbi.c:42: warning: cannot understand function prototype: 'union sbi_pmu_ctr_info *pmu_ctr_list; '
>
> Looks like that's just fallout from the ** comments.
>
>>>> drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
>
> I sent a fix for this one, there were a handful of them. Sorry I missed that.
>
I have already sent the fix for vcpu_sbi.c at [1], but forgot to
Cc: [email protected] (I put it on To: instead), can you please pick it up?
[1]: https://lore.kernel.org/linux-doc/[email protected]/
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-23 12:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-22 13:24 [ammarfaizi2-block:palmer/linux/riscv-pmu 13/15] drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst kernel test robot
2022-03-22 22:06 ` Palmer Dabbelt
2022-03-23 12:18 ` Bagas Sanjaya
-- strict thread matches above, loose matches on Subject: below --
2022-03-22 8:23 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox