From: kernel test robot <lkp@intel.com>
To: Besar Wicaksono <bwicaksono@nvidia.com>,
will@kernel.org, suzuki.poulose@arm.com, robin.murphy@arm.com,
ilkka@os.amperecomputing.com
Cc: oe-kbuild-all@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org,
mark.rutland@arm.com, treding@nvidia.com, jonathanh@nvidia.com,
vsethi@nvidia.com, rwiley@nvidia.com, sdonthineni@nvidia.com,
skelley@nvidia.com, ywan@nvidia.com, mochs@nvidia.com,
nirmoyd@nvidia.com, Besar Wicaksono <bwicaksono@nvidia.com>
Subject: Re: [PATCH 6/8] perf: add NVIDIA Tegra410 CPU Memory Latency PMU
Date: Wed, 28 Jan 2026 08:40:26 +0800 [thread overview]
Message-ID: <202601280830.2IJaaITg-lkp@intel.com> (raw)
In-Reply-To: <20260126181155.2776097-7-bwicaksono@nvidia.com>
Hi Besar,
kernel test robot noticed the following build errors:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on linus/master v6.19-rc7 next-20260127]
[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/Besar-Wicaksono/perf-arm_cspmu-nvidia-Rename-doc-to-Tegra241/20260127-021604
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
patch link: https://lore.kernel.org/r/20260126181155.2776097-7-bwicaksono%40nvidia.com
patch subject: [PATCH 6/8] perf: add NVIDIA Tegra410 CPU Memory Latency PMU
config: arm64-randconfig-r113-20260128 (https://download.01.org/0day-ci/archive/20260128/202601280830.2IJaaITg-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260128/202601280830.2IJaaITg-lkp@intel.com/reproduce)
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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601280830.2IJaaITg-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/perf/nvidia_t410_cmem_latency_pmu.c:604:12: error: call to undeclared function 'acpi_device_uid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
604 | uid_str = acpi_device_uid(acpi_dev);
| ^
drivers/perf/nvidia_t410_cmem_latency_pmu.c:604:12: note: did you mean 'cpu_device_up'?
include/linux/cpu.h:119:5: note: 'cpu_device_up' declared here
119 | int cpu_device_up(struct device *dev);
| ^
>> drivers/perf/nvidia_t410_cmem_latency_pmu.c:604:10: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
604 | uid_str = acpi_device_uid(acpi_dev);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/perf/nvidia_t410_cmem_latency_pmu.c:619:29: error: call to undeclared function 'acpi_device_hid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
619 | cmem_lat_pmu->identifier = acpi_device_hid(acpi_dev);
| ^
>> drivers/perf/nvidia_t410_cmem_latency_pmu.c:619:27: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
619 | cmem_lat_pmu->identifier = acpi_device_hid(acpi_dev);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
vim +/acpi_device_uid +604 drivers/perf/nvidia_t410_cmem_latency_pmu.c
590
591 static int cmem_lat_pmu_probe(struct platform_device *pdev)
592 {
593 struct device *dev = &pdev->dev;
594 struct acpi_device *acpi_dev;
595 struct cmem_lat_pmu *cmem_lat_pmu;
596 char *name, *uid_str;
597 int ret, i;
598 u32 socket;
599
600 acpi_dev = ACPI_COMPANION(dev);
601 if (!acpi_dev)
602 return -ENODEV;
603
> 604 uid_str = acpi_device_uid(acpi_dev);
605 if (!uid_str)
606 return -ENODEV;
607
608 ret = kstrtou32(uid_str, 0, &socket);
609 if (ret)
610 return ret;
611
612 cmem_lat_pmu = devm_kzalloc(dev, sizeof(*cmem_lat_pmu), GFP_KERNEL);
613 name = devm_kasprintf(dev, GFP_KERNEL, "nvidia_cmem_latency_pmu_%u", socket);
614 if (!cmem_lat_pmu || !name)
615 return -ENOMEM;
616
617 cmem_lat_pmu->dev = dev;
618 cmem_lat_pmu->name = name;
> 619 cmem_lat_pmu->identifier = acpi_device_hid(acpi_dev);
620 platform_set_drvdata(pdev, cmem_lat_pmu);
621
622 cmem_lat_pmu->pmu = (struct pmu) {
623 .parent = &pdev->dev,
624 .task_ctx_nr = perf_invalid_context,
625 .pmu_enable = cmem_lat_pmu_enable,
626 .pmu_disable = cmem_lat_pmu_disable,
627 .event_init = cmem_lat_pmu_event_init,
628 .add = cmem_lat_pmu_add,
629 .del = cmem_lat_pmu_del,
630 .start = cmem_lat_pmu_start,
631 .stop = cmem_lat_pmu_stop,
632 .read = cmem_lat_pmu_read,
633 .attr_groups = cmem_lat_pmu_attr_groups,
634 .capabilities = PERF_PMU_CAP_NO_EXCLUDE |
635 PERF_PMU_CAP_NO_INTERRUPT,
636 };
637
638 /* Map the address of all the instances plus one for the broadcast. */
639 for (i = 0; i < NUM_INSTANCES + 1; i++) {
640 cmem_lat_pmu->base[i] = devm_platform_ioremap_resource(pdev, i);
641 if (IS_ERR(cmem_lat_pmu->base[i])) {
642 dev_err(dev, "Failed map address for instance %d\n", i);
643 return PTR_ERR(cmem_lat_pmu->base[i]);
644 }
645 }
646
647 ret = cmem_lat_pmu_get_cpus(cmem_lat_pmu, socket);
648 if (ret)
649 return ret;
650
651 ret = cpuhp_state_add_instance(cmem_lat_pmu_cpuhp_state,
652 &cmem_lat_pmu->node);
653 if (ret) {
654 dev_err(&pdev->dev, "Error %d registering hotplug\n", ret);
655 return ret;
656 }
657
658 cmem_lat_pmu_cg_ctrl(cmem_lat_pmu, CG_CTRL_ENABLE);
659 cmem_lat_pmu_ctrl(cmem_lat_pmu, CTRL_CLR);
660 cmem_lat_pmu_cg_ctrl(cmem_lat_pmu, CG_CTRL_DISABLE);
661
662 ret = perf_pmu_register(&cmem_lat_pmu->pmu, name, -1);
663 if (ret) {
664 dev_err(&pdev->dev, "Failed to register PMU: %d\n", ret);
665 cpuhp_state_remove_instance(cmem_lat_pmu_cpuhp_state,
666 &cmem_lat_pmu->node);
667 return ret;
668 }
669
670 dev_dbg(&pdev->dev, "Registered %s PMU\n", name);
671
672 return 0;
673 }
674
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-01-28 0:41 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-26 18:11 [PATCH 0/8] perf: add NVIDIA Tegra410 Uncore PMU support Besar Wicaksono
2026-01-26 18:11 ` [PATCH 1/8] perf/arm_cspmu: nvidia: Rename doc to Tegra241 Besar Wicaksono
2026-01-26 18:11 ` [PATCH 2/8] perf/arm_cspmu: nvidia: Add Tegra410 UCF PMU Besar Wicaksono
2026-01-29 22:20 ` Ilkka Koskinen
2026-01-26 18:11 ` [PATCH 3/8] perf/arm_cspmu: Add arm_cspmu_acpi_dev_get Besar Wicaksono
2026-01-29 22:23 ` Ilkka Koskinen
2026-01-26 18:11 ` [PATCH 4/8] perf/arm_cspmu: nvidia: Add Tegra410 PCIE PMU Besar Wicaksono
2026-01-28 15:56 ` kernel test robot
2026-01-29 22:34 ` Ilkka Koskinen
2026-01-26 18:11 ` [PATCH 5/8] perf/arm_cspmu: nvidia: Add Tegra410 PCIE-TGT PMU Besar Wicaksono
2026-01-29 22:40 ` Ilkka Koskinen
2026-02-10 16:01 ` Besar Wicaksono
2026-01-26 18:11 ` [PATCH 6/8] perf: add NVIDIA Tegra410 CPU Memory Latency PMU Besar Wicaksono
2026-01-28 0:40 ` kernel test robot [this message]
2026-01-30 2:09 ` Ilkka Koskinen
2026-01-26 18:11 ` [PATCH 7/8] perf: add NVIDIA Tegra410 C2C PMU Besar Wicaksono
2026-01-30 2:54 ` Ilkka Koskinen
2026-01-26 18:11 ` [PATCH 8/8] arm64: defconfig: Enable NVIDIA TEGRA410 PMU Besar Wicaksono
2026-02-08 11:18 ` Krzysztof Kozlowski
2026-02-10 16:05 ` Besar Wicaksono
2026-02-10 16:15 ` Krzysztof Kozlowski
2026-02-10 17:42 ` Besar Wicaksono
2026-02-11 6:19 ` Krzysztof Kozlowski
2026-02-11 10:36 ` Jon Hunter
2026-02-11 10:41 ` Krzysztof Kozlowski
2026-02-11 10:47 ` Jon Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202601280830.2IJaaITg-lkp@intel.com \
--to=lkp@intel.com \
--cc=bwicaksono@nvidia.com \
--cc=ilkka@os.amperecomputing.com \
--cc=jonathanh@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mochs@nvidia.com \
--cc=nirmoyd@nvidia.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robin.murphy@arm.com \
--cc=rwiley@nvidia.com \
--cc=sdonthineni@nvidia.com \
--cc=skelley@nvidia.com \
--cc=suzuki.poulose@arm.com \
--cc=treding@nvidia.com \
--cc=vsethi@nvidia.com \
--cc=will@kernel.org \
--cc=ywan@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox