mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christian Marangi <ansuelsmth@gmail.com>,
	Ilia Lin <ilia.lin@kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Viresh Kumar <viresh.kumar@linaro.org>,
	linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
	Christian Marangi <ansuelsmth@gmail.com>,
	Dmitry Baryshkov <lumag@kernel.org>
Subject: Re: [PATCH v3 1/1] cpufreq: qcom-nvmem: add compatible fallback for ipq806x for no SMEM
Date: Wed, 5 Nov 2025 18:27:02 +0800	[thread overview]
Message-ID: <202511051843.DLYBg5h3-lkp@intel.com> (raw)
In-Reply-To: <20251104140635.25965-2-ansuelsmth@gmail.com>

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@intel.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

      parent reply	other threads:[~2025-11-05 10:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-04 14:06 [PATCH v3 0/1] cpufreq: qcom: handle ipq806x with " Christian Marangi
2025-11-04 14:06 ` [PATCH v3 1/1] cpufreq: qcom-nvmem: add compatible fallback for ipq806x for " Christian Marangi
2025-11-04 14:15   ` Konrad Dybcio
2025-11-05  8:05   ` Krzysztof Kozlowski
2025-11-05  9:12     ` Konrad Dybcio
2025-11-05  9:28       ` Krzysztof Kozlowski
2025-11-05 10:27   ` kernel test robot [this message]

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=202511051843.DLYBg5h3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ansuelsmth@gmail.com \
    --cc=ilia.lin@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rafael@kernel.org \
    --cc=viresh.kumar@linaro.org \
    /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

all inboxes | Powered by JetHome®