[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202511051843.DLYBg5h3-lkp@intel.com>
Date: Wed, 5 Nov 2025 18:27:02 +0800
From: kernel test robot <lkp@...el.com>
To: Christian Marangi <ansuelsmth@...il.com>,
Ilia Lin <ilia.lin@...nel.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Viresh Kumar <viresh.kumar@...aro.org>, linux-pm@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, Christian Marangi <ansuelsmth@...il.com>,
Dmitry Baryshkov <lumag@...nel.org>
Subject: Re: [PATCH v3 1/1] cpufreq: qcom-nvmem: add compatible fallback for
ipq806x for no SMEM
Hi Christian,
kernel test robot noticed the following build warnings:
[auto build test WARNING on rafael-pm/linux-next]
[also build test WARNING on rafael-pm/bleeding-edge linus/master v6.18-rc4 next-20251105]
[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/Christian-Marangi/cpufreq-qcom-nvmem-add-compatible-fallback-for-ipq806x-for-no-SMEM/20251104-221546
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link: https://lore.kernel.org/r/20251104140635.25965-2-ansuelsmth%40gmail.com
patch subject: [PATCH v3 1/1] cpufreq: qcom-nvmem: add compatible fallback for ipq806x for no SMEM
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20251105/202511051843.DLYBg5h3-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251105/202511051843.DLYBg5h3-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511051843.DLYBg5h3-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/cpufreq/qcom-cpufreq-nvmem.c: In function 'qcom_cpufreq_ipq8064_name_version':
>> drivers/cpufreq/qcom-cpufreq-nvmem.c:310:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
310 | msm_id = (int)match->data;
| ^
vim +310 drivers/cpufreq/qcom-cpufreq-nvmem.c
267
268 static int qcom_cpufreq_ipq8064_name_version(struct device *cpu_dev,
269 struct nvmem_cell *speedbin_nvmem,
270 char **pvs_name,
271 struct qcom_cpufreq_drv *drv)
272 {
273 int msm_id = -1, ret = 0;
274 int speed = 0, pvs = 0;
275 u8 *speedbin;
276 size_t len;
277
278 speedbin = nvmem_cell_read(speedbin_nvmem, &len);
279 if (IS_ERR(speedbin))
280 return PTR_ERR(speedbin);
281
282 if (len != 4) {
283 dev_err(cpu_dev, "Unable to read nvmem data. Defaulting to 0!\n");
284 ret = -ENODEV;
285 goto exit;
286 }
287
288 get_krait_bin_format_a(cpu_dev, &speed, &pvs, speedbin);
289
290 ret = qcom_smem_get_soc_id(&msm_id);
291 if (ret == -ENODEV) {
292 const struct of_device_id *match;
293 struct device_node *root;
294
295 root = of_find_node_by_path("/");
296 if (!root) {
297 ret = -ENODEV;
298 goto exit;
299 }
300
301 /* Fallback to compatible match with no SMEM initialized */
302 match = of_match_node(qcom_cpufreq_ipq806x_match_list, root);
303 of_node_put(root);
304 if (!match) {
305 ret = -ENODEV;
306 goto exit;
307 }
308
309 /* We found a matching device, get the msm_id from the data entry */
> 310 msm_id = (int)match->data;
311 ret = 0;
312 } else if (ret) {
313 goto exit;
314 }
315
316 switch (msm_id) {
317 case QCOM_ID_IPQ8062:
318 drv->versions = BIT(IPQ8062_VERSION);
319 break;
320 case QCOM_ID_IPQ8064:
321 case QCOM_ID_IPQ8066:
322 case QCOM_ID_IPQ8068:
323 drv->versions = BIT(IPQ8064_VERSION);
324 break;
325 case QCOM_ID_IPQ8065:
326 case QCOM_ID_IPQ8069:
327 drv->versions = BIT(IPQ8065_VERSION);
328 break;
329 default:
330 dev_err(cpu_dev,
331 "SoC ID %u is not part of IPQ8064 family, limiting to 1.0GHz!\n",
332 msm_id);
333 drv->versions = BIT(IPQ8062_VERSION);
334 break;
335 }
336
337 /* IPQ8064 speed is never fused. Only pvs values are fused. */
338 snprintf(*pvs_name, sizeof("speed0-pvsXX"), "speed0-pvs%d", pvs);
339
340 exit:
341 kfree(speedbin);
342 return ret;
343 }
344
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists