All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Horia Geantă" <horia.geanta@nxp.com>
Cc: Aymen Sghaier <aymen.sghaier@nxp.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	Stuart Yoder <stuyoder@gmail.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Roy Pledge <roy.pledge@nxp.com>,
	Will Deacon <will.deacon@arm.com>,
	linux-kernel@vger.kernel.org, Li Yang <leoyang.li@nxp.com>,
	kbuild-all@01.org, linux-crypto@vger.kernel.org,
	"David S . Miller" <davem@davemloft.net>,
	linux-arm-kernel@lists.infradead.org,
	Laurentiu Tudor <laurentiu.tudor@nxp.com>
Subject: Re: [PATCH 07/11] crypto: caam/qi2 - add DPAA2-CAAM driver
Date: Tue, 11 Sep 2018 07:25:30 +0800	[thread overview]
Message-ID: <201809110720.EN7DgKRO%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180910171550.5659-8-horia.geanta@nxp.com>

[-- Attachment #1: Type: text/plain, Size: 3487 bytes --]

Hi Horia,

I love your patch! Perhaps something to improve:

[auto build test WARNING on cryptodev/master]
[also build test WARNING on v4.19-rc3 next-20180910]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Horia-Geant/crypto-caam-add-DPAA2-DPSECI-driver/20180911-055735
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/crypto/caam/caamalg_qi2.c: In function 'dpaa2_dpseci_congestion_setup':
>> drivers/crypto/caam/caamalg_qi2.c:2463:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     cong_notif_cfg.message_ctx = (u64)priv;
                                  ^
   At top level:
   drivers/crypto/caam/caamalg_qi2.c:288:13: warning: 'split_key_sh_done' defined but not used [-Wunused-function]
    static void split_key_sh_done(void *cbk_ctx, u32 err)
                ^~~~~~~~~~~~~~~~~

vim +2463 drivers/crypto/caam/caamalg_qi2.c

  2430	
  2431	static int dpaa2_dpseci_congestion_setup(struct dpaa2_caam_priv *priv,
  2432						 u16 token)
  2433	{
  2434		struct dpseci_congestion_notification_cfg cong_notif_cfg = { 0 };
  2435		struct device *dev = priv->dev;
  2436		int err;
  2437	
  2438		/*
  2439		 * Congestion group feature supported starting with DPSECI API v5.1
  2440		 * and only when object has been created with this capability.
  2441		 */
  2442		if ((DPSECI_VER(priv->major_ver, priv->minor_ver) < DPSECI_VER(5, 1)) ||
  2443		    !(priv->dpseci_attr.options & DPSECI_OPT_HAS_CG))
  2444			return 0;
  2445	
  2446		priv->cscn_mem = kzalloc(DPAA2_CSCN_SIZE + DPAA2_CSCN_ALIGN,
  2447					 GFP_KERNEL | GFP_DMA);
  2448		if (!priv->cscn_mem)
  2449			return -ENOMEM;
  2450	
  2451		priv->cscn_mem_aligned = PTR_ALIGN(priv->cscn_mem, DPAA2_CSCN_ALIGN);
  2452		priv->cscn_dma = dma_map_single(dev, priv->cscn_mem_aligned,
  2453						DPAA2_CSCN_SIZE, DMA_FROM_DEVICE);
  2454		if (dma_mapping_error(dev, priv->cscn_dma)) {
  2455			dev_err(dev, "Error mapping CSCN memory area\n");
  2456			err = -ENOMEM;
  2457			goto err_dma_map;
  2458		}
  2459	
  2460		cong_notif_cfg.units = DPSECI_CONGESTION_UNIT_BYTES;
  2461		cong_notif_cfg.threshold_entry = DPAA2_SEC_CONG_ENTRY_THRESH;
  2462		cong_notif_cfg.threshold_exit = DPAA2_SEC_CONG_EXIT_THRESH;
> 2463		cong_notif_cfg.message_ctx = (u64)priv;
  2464		cong_notif_cfg.message_iova = priv->cscn_dma;
  2465		cong_notif_cfg.notification_mode = DPSECI_CGN_MODE_WRITE_MEM_ON_ENTER |
  2466						DPSECI_CGN_MODE_WRITE_MEM_ON_EXIT |
  2467						DPSECI_CGN_MODE_COHERENT_WRITE;
  2468	
  2469		err = dpseci_set_congestion_notification(priv->mc_io, 0, token,
  2470							 &cong_notif_cfg);
  2471		if (err) {
  2472			dev_err(dev, "dpseci_set_congestion_notification failed\n");
  2473			goto err_set_cong;
  2474		}
  2475	
  2476		return 0;
  2477	
  2478	err_set_cong:
  2479		dma_unmap_single(dev, priv->cscn_dma, DPAA2_CSCN_SIZE, DMA_FROM_DEVICE);
  2480	err_dma_map:
  2481		kfree(priv->cscn_mem);
  2482	
  2483		return err;
  2484	}
  2485	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 65152 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: lkp@intel.com (kbuild test robot)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 07/11] crypto: caam/qi2 - add DPAA2-CAAM driver
Date: Tue, 11 Sep 2018 07:25:30 +0800	[thread overview]
Message-ID: <201809110720.EN7DgKRO%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180910171550.5659-8-horia.geanta@nxp.com>

Hi Horia,

I love your patch! Perhaps something to improve:

[auto build test WARNING on cryptodev/master]
[also build test WARNING on v4.19-rc3 next-20180910]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Horia-Geant/crypto-caam-add-DPAA2-DPSECI-driver/20180911-055735
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/crypto/caam/caamalg_qi2.c: In function 'dpaa2_dpseci_congestion_setup':
>> drivers/crypto/caam/caamalg_qi2.c:2463:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     cong_notif_cfg.message_ctx = (u64)priv;
                                  ^
   At top level:
   drivers/crypto/caam/caamalg_qi2.c:288:13: warning: 'split_key_sh_done' defined but not used [-Wunused-function]
    static void split_key_sh_done(void *cbk_ctx, u32 err)
                ^~~~~~~~~~~~~~~~~

vim +2463 drivers/crypto/caam/caamalg_qi2.c

  2430	
  2431	static int dpaa2_dpseci_congestion_setup(struct dpaa2_caam_priv *priv,
  2432						 u16 token)
  2433	{
  2434		struct dpseci_congestion_notification_cfg cong_notif_cfg = { 0 };
  2435		struct device *dev = priv->dev;
  2436		int err;
  2437	
  2438		/*
  2439		 * Congestion group feature supported starting with DPSECI API v5.1
  2440		 * and only when object has been created with this capability.
  2441		 */
  2442		if ((DPSECI_VER(priv->major_ver, priv->minor_ver) < DPSECI_VER(5, 1)) ||
  2443		    !(priv->dpseci_attr.options & DPSECI_OPT_HAS_CG))
  2444			return 0;
  2445	
  2446		priv->cscn_mem = kzalloc(DPAA2_CSCN_SIZE + DPAA2_CSCN_ALIGN,
  2447					 GFP_KERNEL | GFP_DMA);
  2448		if (!priv->cscn_mem)
  2449			return -ENOMEM;
  2450	
  2451		priv->cscn_mem_aligned = PTR_ALIGN(priv->cscn_mem, DPAA2_CSCN_ALIGN);
  2452		priv->cscn_dma = dma_map_single(dev, priv->cscn_mem_aligned,
  2453						DPAA2_CSCN_SIZE, DMA_FROM_DEVICE);
  2454		if (dma_mapping_error(dev, priv->cscn_dma)) {
  2455			dev_err(dev, "Error mapping CSCN memory area\n");
  2456			err = -ENOMEM;
  2457			goto err_dma_map;
  2458		}
  2459	
  2460		cong_notif_cfg.units = DPSECI_CONGESTION_UNIT_BYTES;
  2461		cong_notif_cfg.threshold_entry = DPAA2_SEC_CONG_ENTRY_THRESH;
  2462		cong_notif_cfg.threshold_exit = DPAA2_SEC_CONG_EXIT_THRESH;
> 2463		cong_notif_cfg.message_ctx = (u64)priv;
  2464		cong_notif_cfg.message_iova = priv->cscn_dma;
  2465		cong_notif_cfg.notification_mode = DPSECI_CGN_MODE_WRITE_MEM_ON_ENTER |
  2466						DPSECI_CGN_MODE_WRITE_MEM_ON_EXIT |
  2467						DPSECI_CGN_MODE_COHERENT_WRITE;
  2468	
  2469		err = dpseci_set_congestion_notification(priv->mc_io, 0, token,
  2470							 &cong_notif_cfg);
  2471		if (err) {
  2472			dev_err(dev, "dpseci_set_congestion_notification failed\n");
  2473			goto err_set_cong;
  2474		}
  2475	
  2476		return 0;
  2477	
  2478	err_set_cong:
  2479		dma_unmap_single(dev, priv->cscn_dma, DPAA2_CSCN_SIZE, DMA_FROM_DEVICE);
  2480	err_dma_map:
  2481		kfree(priv->cscn_mem);
  2482	
  2483		return err;
  2484	}
  2485	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 65152 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180911/8991fd0b/attachment-0001.gz>

  reply	other threads:[~2018-09-10 23:25 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-10 17:15 [PATCH 00/11] crypto: caam - add DPAA2 (DPSECI) driver Horia Geantă
2018-09-10 17:15 ` Horia Geantă
2018-09-10 17:15 ` [PATCH 01/11] bus: fsl-mc: add support for dpseci device type Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 17:15 ` [PATCH 02/11] Revert "staging: fsl-mc/dpio: remove couple of unused functions" Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 20:10   ` Li Yang
2018-09-10 20:10     ` Li Yang
2018-09-10 20:10     ` Li Yang
2018-09-10 17:15 ` [PATCH 03/11] soc: fsl: dpio: add frame list format support Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 17:15 ` [PATCH 04/11] soc: fsl: dpio: add congestion notification support Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 20:11   ` Li Yang
2018-09-10 20:11     ` Li Yang
2018-09-10 20:11     ` Li Yang
2018-09-10 17:15 ` [PATCH 05/11] crypto: caam - add DPAA2-CAAM (DPSECI) backend API Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 17:15 ` [PATCH 06/11] crypto: caam - add Queue Interface v2 error codes Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 17:15 ` [PATCH 07/11] crypto: caam/qi2 - add DPAA2-CAAM driver Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 23:25   ` kbuild test robot [this message]
2018-09-10 23:25     ` kbuild test robot
2018-09-11  5:20   ` kbuild test robot
2018-09-11  5:20     ` kbuild test robot
2018-09-11  5:20   ` [RFC PATCH] crypto: dpaa2_caam_iova_to_virt() can be static kbuild test robot
2018-09-11  5:20     ` kbuild test robot
2018-09-10 17:15 ` [PATCH 08/11] crypto: caam/qi2 - add skcipher algorithms Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 17:15 ` [PATCH 09/11] crypto: caam - export ahash shared descriptor generation Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 17:15 ` [PATCH 10/11] crypto: caam/qi2 - add support for ahash algorithms Horia Geantă
2018-09-10 17:15   ` Horia Geantă
2018-09-10 17:15 ` [PATCH 11/11] arm64: defconfig: enable CAAM crypto engine on QorIQ DPAA2 SoCs Horia Geantă
2018-09-10 17:15   ` Horia Geantă

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=201809110720.EN7DgKRO%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=aymen.sghaier@nxp.com \
    --cc=catalin.marinas@arm.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=horia.geanta@nxp.com \
    --cc=kbuild-all@01.org \
    --cc=laurentiu.tudor@nxp.com \
    --cc=leoyang.li@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roy.pledge@nxp.com \
    --cc=stuyoder@gmail.com \
    --cc=will.deacon@arm.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.