All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Eric Biggers <ebiggers@kernel.org>,
	linux-block@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	Gaurav Kashyap <quic_gaurkash@quicinc.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-fscrypt@vger.kernel.org,
	linux-mmc@vger.kernel.org, linux-scsi@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Subject: Re: [PATCH v11 6/7] soc: qcom: ice: add HWKM support to the ICE driver
Date: Sun, 9 Feb 2025 04:01:55 +0800	[thread overview]
Message-ID: <202502090302.znlTCbTa-lkp@intel.com> (raw)
In-Reply-To: <20250204060041.409950-7-ebiggers@kernel.org>

Hi Eric,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 2014c95afecee3e76ca4a56956a936e23283f05b]

url:    https://github.com/intel-lab-lkp/linux/commits/Eric-Biggers/blk-crypto-add-basic-hardware-wrapped-key-support/20250204-140702
base:   2014c95afecee3e76ca4a56956a936e23283f05b
patch link:    https://lore.kernel.org/r/20250204060041.409950-7-ebiggers%40kernel.org
patch subject: [PATCH v11 6/7] soc: qcom: ice: add HWKM support to the ICE driver
config: openrisc-randconfig-r111-20250208 (https://download.01.org/0day-ci/archive/20250209/202502090302.znlTCbTa-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250209/202502090302.znlTCbTa-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/202502090302.znlTCbTa-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/soc/qcom/ice.c:337:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] regval @@
   drivers/soc/qcom/ice.c:337:9: sparse:     expected unsigned int [usertype] value
   drivers/soc/qcom/ice.c:337:9: sparse:     got restricted __le32 [usertype] regval

vim +337 drivers/soc/qcom/ice.c

   302	
   303	static int qcom_ice_program_wrapped_key(struct qcom_ice *ice, unsigned int slot,
   304						const struct blk_crypto_key *bkey)
   305	{
   306		struct device *dev = ice->dev;
   307		union crypto_cfg cfg = {
   308			.dusize = bkey->crypto_cfg.data_unit_size / 512,
   309			.capidx = QCOM_SCM_ICE_CIPHER_AES_256_XTS,
   310			.cfge = QCOM_ICE_HWKM_CFG_ENABLE_VAL,
   311		};
   312		int err;
   313	
   314		if (!ice->use_hwkm) {
   315			dev_err_ratelimited(dev, "Got wrapped key when not using HWKM\n");
   316			return -EINVAL;
   317		}
   318		if (!ice->hwkm_init_complete) {
   319			dev_err_ratelimited(dev, "HWKM not yet initialized\n");
   320			return -EINVAL;
   321		}
   322	
   323		/* Clear CFGE before programming the key. */
   324		qcom_ice_writel(ice, 0x0, QCOM_ICE_REG_CRYPTOCFG(slot));
   325	
   326		/* Call into TrustZone to program the wrapped key using HWKM. */
   327		err = qcom_scm_ice_set_key(translate_hwkm_slot(ice, slot), bkey->bytes,
   328					   bkey->size, cfg.capidx, cfg.dusize);
   329		if (err) {
   330			dev_err_ratelimited(dev,
   331					    "qcom_scm_ice_set_key failed; err=%d, slot=%u\n",
   332					    err, slot);
   333			return err;
   334		}
   335	
   336		/* Set CFGE after programming the key. */
 > 337		qcom_ice_writel(ice, cfg.regval, QCOM_ICE_REG_CRYPTOCFG(slot));
   338		return 0;
   339	}
   340	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2025-02-08 20:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-04  6:00 [PATCH v11 0/7] Support for hardware-wrapped inline encryption keys Eric Biggers
2025-02-04  6:00 ` [PATCH v11 1/7] blk-crypto: add basic hardware-wrapped key support Eric Biggers
2025-02-04  6:00 ` [PATCH v11 2/7] blk-crypto: show supported key types in sysfs Eric Biggers
2025-02-04  6:00 ` [PATCH v11 3/7] blk-crypto: add ioctls to create and prepare hardware-wrapped keys Eric Biggers
2025-02-04  6:00 ` [PATCH v11 4/7] fscrypt: add support for " Eric Biggers
2025-02-04  6:00 ` [PATCH v11 5/7] soc: qcom: ice: make qcom_ice_program_key() take struct blk_crypto_key Eric Biggers
2025-02-09 15:50   ` Manivannan Sadhasivam
2025-02-04  6:00 ` [PATCH v11 6/7] soc: qcom: ice: add HWKM support to the ICE driver Eric Biggers
2025-02-08 20:01   ` kernel test robot [this message]
2025-02-04  6:00 ` [PATCH v11 7/7] ufs: qcom: add support for wrapped keys Eric Biggers
2025-02-10  4:44   ` Manivannan Sadhasivam
2025-02-10 16:21     ` Eric Biggers
2025-02-04 10:42 ` [PATCH v11 0/7] Support for hardware-wrapped inline encryption keys Bartosz Golaszewski
2025-02-10 16:25 ` Eric Biggers
2025-02-10 16:54 ` (subset) " Jens Axboe

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=202502090302.znlTCbTa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andersson@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=brgl@bgdev.pl \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=ebiggers@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-fscrypt@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=quic_gaurkash@quicinc.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 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.