All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v4 24/27] qedn: Add support of NVME ICReq & ICResp
Date: Fri, 30 Apr 2021 08:01:04 +0800	[thread overview]
Message-ID: <202104300736.zEBHrd6B-lkp@intel.com> (raw)
In-Reply-To: <20210429190926.5086-25-smalin@marvell.com>

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

Hi Shai,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on ipvs/master]
[also build test WARNING on hch-configfs/for-next linus/master v5.12 next-20210429]
[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]

url:    https://github.com/0day-ci/linux/commits/Shai-Malin/NVMeTCP-Offload-ULP-and-QEDN-Device-Driver/20210430-032713
base:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git master
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/8ebe84a1626c4a95151693a49798b1316cb5af62
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Shai-Malin/NVMeTCP-Offload-ULP-and-QEDN-Device-Driver/20210430-032713
        git checkout 8ebe84a1626c4a95151693a49798b1316cb5af62
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/nvme/hw/qedn/qedn_conn.c:103:5: warning: no previous prototype for 'qedn_fill_ep_addr4' [-Wmissing-prototypes]
     103 | int qedn_fill_ep_addr4(struct qedn_endpoint *ep,
         |     ^~~~~~~~~~~~~~~~~~
   drivers/nvme/hw/qedn/qedn_conn.c:119:5: warning: no previous prototype for 'qedn_fill_ep_addr6' [-Wmissing-prototypes]
     119 | int qedn_fill_ep_addr6(struct qedn_endpoint *ep,
         |     ^~~~~~~~~~~~~~~~~~
   drivers/nvme/hw/qedn/qedn_conn.c: In function 'qedn_fetch_tcp_port':
   drivers/nvme/hw/qedn/qedn_conn.c:361:20: warning: variable 'qctrl' set but not used [-Wunused-but-set-variable]
     361 |  struct qedn_ctrl *qctrl;
         |                    ^~~~~
   In file included from include/linux/swab.h:5,
                    from include/uapi/linux/byteorder/big_endian.h:13,
                    from include/linux/byteorder/big_endian.h:5,
                    from arch/mips/include/uapi/asm/byteorder.h:13,
                    from arch/mips/include/asm/bitops.h:20,
                    from include/linux/bitops.h:32,
                    from include/linux/kernel.h:11,
                    from drivers/nvme/hw/qedn/qedn_conn.c:9:
   drivers/nvme/hw/qedn/qedn_conn.c: In function 'qedn_send_icreq':
>> drivers/nvme/hw/qedn/qedn_conn.c:484:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     484 |  task_params.opq.lo = cpu_to_le32(((u64)(qedn_task)) & 0xffffffff);
         |                                    ^
   include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32'
     115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
         |                                                      ^
   include/linux/byteorder/generic.h:88:21: note: in expansion of macro '__cpu_to_le32'
      88 | #define cpu_to_le32 __cpu_to_le32
         |                     ^~~~~~~~~~~~~
   drivers/nvme/hw/qedn/qedn_conn.c:484:23: note: in expansion of macro 'cpu_to_le32'
     484 |  task_params.opq.lo = cpu_to_le32(((u64)(qedn_task)) & 0xffffffff);
         |                       ^~~~~~~~~~~
   drivers/nvme/hw/qedn/qedn_conn.c:485:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     485 |  task_params.opq.hi = cpu_to_le32(((u64)(qedn_task)) >> 32);
         |                                    ^
   include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32'
     115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
         |                                                      ^
   include/linux/byteorder/generic.h:88:21: note: in expansion of macro '__cpu_to_le32'
      88 | #define cpu_to_le32 __cpu_to_le32
         |                     ^~~~~~~~~~~~~
   drivers/nvme/hw/qedn/qedn_conn.c:485:23: note: in expansion of macro 'cpu_to_le32'
     485 |  task_params.opq.hi = cpu_to_le32(((u64)(qedn_task)) >> 32);
         |                       ^~~~~~~~~~~
   drivers/nvme/hw/qedn/qedn_conn.c: At top level:
   drivers/nvme/hw/qedn/qedn_conn.c:767:6: warning: no previous prototype for 'qedn_destroy_connection' [-Wmissing-prototypes]
     767 | void qedn_destroy_connection(struct qedn_conn_ctx *conn_ctx)
         |      ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/nvme/hw/qedn/qedn_conn.c: In function 'qedn_sp_wq_handler':
   drivers/nvme/hw/qedn/qedn_conn.c:788:19: warning: variable 'qedn' set but not used [-Wunused-but-set-variable]
     788 |  struct qedn_ctx *qedn;
         |                   ^~~~
   At top level:
   drivers/nvme/hw/qedn/qedn_conn.c:18:27: warning: 'qedn_conn_state_str' defined but not used [-Wunused-const-variable=]
      18 | static const char * const qedn_conn_state_str[] = {
         |                           ^~~~~~~~~~~~~~~~~~~


vim +484 drivers/nvme/hw/qedn/qedn_conn.c

   448	
   449	static int qedn_send_icreq(struct qedn_conn_ctx *conn_ctx)
   450	{
   451		struct nvmetcp_init_conn_req_hdr *icreq_ptr = NULL;
   452		struct storage_sgl_task_params *sgl_task_params;
   453		struct nvmetcp_task_params task_params;
   454		struct qedn_task_ctx *qedn_task = NULL;
   455		struct nvme_tcp_icreq_pdu icreq;
   456		struct nvmetcp_wqe *chain_sqe;
   457		struct nvmetcp_wqe local_sqe;
   458	
   459		qedn_task = qedn_get_task_from_pool_insist(conn_ctx, QEDN_ICREQ_CCCID);
   460		if (!qedn_task)
   461			return -EINVAL;
   462	
   463		memset(&icreq, 0, sizeof(icreq));
   464		memset(&local_sqe, 0, sizeof(local_sqe));
   465	
   466		/* Initialize ICReq */
   467		icreq.hdr.type = nvme_tcp_icreq;
   468		icreq.hdr.hlen = sizeof(icreq);
   469		icreq.hdr.pdo = 0;
   470		icreq.hdr.plen = cpu_to_le32(icreq.hdr.hlen);
   471		icreq.pfv = cpu_to_le16(conn_ctx->required_params.pfv);
   472		icreq.maxr2t = cpu_to_le32(conn_ctx->required_params.maxr2t);
   473		icreq.hpda = conn_ctx->required_params.hpda;
   474		if (conn_ctx->required_params.hdr_digest)
   475			icreq.digest |= NVME_TCP_HDR_DIGEST_ENABLE;
   476		if (conn_ctx->required_params.data_digest)
   477			icreq.digest |= NVME_TCP_DATA_DIGEST_ENABLE;
   478	
   479		qedn_swap_bytes((u32 *)&icreq,
   480				(sizeof(icreq) - QEDN_ICREQ_FW_PAYLOAD) /
   481				 sizeof(u32));
   482	
   483		/* Initialize task params */
 > 484		task_params.opq.lo = cpu_to_le32(((u64)(qedn_task)) & 0xffffffff);
   485		task_params.opq.hi = cpu_to_le32(((u64)(qedn_task)) >> 32);
   486		task_params.context = qedn_task->fw_task_ctx;
   487		task_params.sqe = &local_sqe;
   488		task_params.conn_icid = (u16)conn_ctx->conn_handle;
   489		task_params.itid = qedn_task->itid;
   490		task_params.cq_rss_number = conn_ctx->default_cq;
   491		task_params.tx_io_size = QEDN_ICREQ_FW_PAYLOAD;
   492		task_params.rx_io_size = 0; /* Rx doesn't use SGL for icresp */
   493	
   494		/* Init SGE for ICReq padding */
   495		sgl_task_params = &qedn_task->sgl_task_params;
   496		sgl_task_params->total_buffer_size = task_params.tx_io_size;
   497		sgl_task_params->small_mid_sge = false;
   498		sgl_task_params->num_sges = 1;
   499		memcpy(sgl_task_params->sgl, &conn_ctx->icreq_pad->sge,
   500		       sizeof(conn_ctx->icreq_pad->sge));
   501		icreq_ptr = (struct nvmetcp_init_conn_req_hdr *)&icreq;
   502	
   503		qed_ops->init_icreq_exchange(&task_params, icreq_ptr, sgl_task_params,  NULL);
   504	
   505		qedn_set_con_state(conn_ctx, CONN_STATE_WAIT_FOR_IC_COMP);
   506		atomic_inc(&conn_ctx->num_active_fw_tasks);
   507	
   508		/* spin_lock - doorbell is accessed  both Rx flow and response flow */
   509		spin_lock(&conn_ctx->ep.doorbell_lock);
   510		chain_sqe = qed_chain_produce(&conn_ctx->ep.fw_sq_chain);
   511		memcpy(chain_sqe, &local_sqe, sizeof(local_sqe));
   512		qedn_ring_doorbell(conn_ctx);
   513		spin_unlock(&conn_ctx->ep.doorbell_lock);
   514	
   515		return 0;
   516	}
   517	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

  reply	other threads:[~2021-04-30  0:01 UTC|newest]

Thread overview: 178+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29 19:08 [RFC PATCH v4 00/27] NVMeTCP Offload ULP and QEDN Device Driver Shai Malin
2021-04-29 19:08 ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 01/27] qed: Add NVMeTCP Offload PF Level FW and HW HSI Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-01 16:50   ` Hannes Reinecke
2021-05-01 16:50     ` Hannes Reinecke
2021-05-03 15:23     ` Shai Malin
2021-05-03 15:23       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 02/27] qed: Add NVMeTCP Offload Connection " Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-01 17:28   ` Hannes Reinecke
2021-05-01 17:28     ` Hannes Reinecke
2021-05-03 15:25     ` Shai Malin
2021-05-03 15:25       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 03/27] qed: Add qed-NVMeTCP personality Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:11   ` Hannes Reinecke
2021-05-02 11:11     ` Hannes Reinecke
2021-05-03 15:26     ` Shai Malin
2021-05-03 15:26       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 04/27] qed: Add support of HW filter block Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-04-29 23:37   ` kernel test robot
2021-05-02 11:13   ` Hannes Reinecke
2021-05-02 11:13     ` Hannes Reinecke
2021-05-03 15:27     ` Shai Malin
2021-05-03 15:27       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 05/27] qed: Add NVMeTCP Offload IO Level FW and HW HSI Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:22   ` Hannes Reinecke
2021-05-02 11:22     ` Hannes Reinecke
2021-05-04 16:25     ` Shai Malin
2021-05-04 16:25       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 06/27] qed: Add NVMeTCP Offload IO Level FW Initializations Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:24   ` Hannes Reinecke
2021-05-02 11:24     ` Hannes Reinecke
2021-05-04 16:28     ` Shai Malin
2021-05-04 16:28       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 07/27] qed: Add IP services APIs support Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:26   ` Hannes Reinecke
2021-05-02 11:26     ` Hannes Reinecke
2021-05-03 15:44     ` Shai Malin
2021-05-03 15:44       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 08/27] nvme-tcp-offload: Add nvme-tcp-offload - NVMeTCP HW offload ULP Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-04-29 22:22   ` kernel test robot
2021-04-29 22:22   ` [RFC PATCH] nvme-tcp-offload: nvme_tcp_ofld_report_queue_err() can be static kernel test robot
2021-05-01 12:18   ` [RFC PATCH v4 08/27] nvme-tcp-offload: Add nvme-tcp-offload - NVMeTCP HW offload ULP Hannes Reinecke
2021-05-01 12:18     ` Hannes Reinecke
2021-05-03 15:46     ` Shai Malin
2021-05-03 15:46       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 09/27] nvme-fabrics: Move NVMF_ALLOWED_OPTS and NVMF_REQUIRED_OPTS definitions Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-01 12:19   ` Hannes Reinecke
2021-05-01 12:19     ` Hannes Reinecke
2021-05-03 15:50     ` Shai Malin
2021-05-03 15:50       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 10/27] nvme-tcp-offload: Add device scan implementation Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-04-29 23:11   ` kernel test robot
2021-04-29 23:11   ` [RFC PATCH] nvme-tcp-offload: nvme_tcp_ofld_lookup_dev can be static kernel test robot
2021-04-30  3:01   ` [RFC PATCH v4 10/27] nvme-tcp-offload: Add device scan implementation kernel test robot
2021-04-30  4:09   ` kernel test robot
2021-05-01 12:25   ` Hannes Reinecke
2021-05-01 12:25     ` Hannes Reinecke
2021-05-05 17:52     ` Shai Malin
2021-05-05 17:52       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 11/27] nvme-tcp-offload: Add controller level implementation Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-01 16:27   ` Hannes Reinecke
2021-04-29 19:09 ` [RFC PATCH v4 12/27] nvme-tcp-offload: Add controller level error recovery implementation Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-01 16:29   ` Hannes Reinecke
2021-05-01 16:29     ` Hannes Reinecke
2021-05-03 15:52     ` Shai Malin
2021-05-03 15:52       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 13/27] nvme-tcp-offload: Add queue level implementation Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-01 16:36   ` Hannes Reinecke
2021-05-01 16:36     ` Hannes Reinecke
2021-05-03 15:56     ` Shai Malin
2021-05-03 15:56       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 14/27] nvme-tcp-offload: Add IO " Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-04-30  4:34   ` kernel test robot
2021-04-30  5:51   ` kernel test robot
2021-05-01 16:38   ` Hannes Reinecke
2021-05-01 16:38     ` Hannes Reinecke
2021-05-04 16:34     ` Shai Malin
2021-05-04 16:34       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 15/27] nvme-tcp-offload: Add Timeout and ASYNC Support Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-01 16:45   ` Hannes Reinecke
2021-05-01 16:45     ` Hannes Reinecke
2021-05-04 16:49     ` Shai Malin
2021-05-04 16:49       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 16/27] qedn: Add qedn - Marvell's NVMeTCP HW offload vendor driver Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:27   ` Hannes Reinecke
2021-05-02 11:27     ` Hannes Reinecke
2021-05-04 16:52     ` Shai Malin
2021-05-04 16:52       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 17/27] qedn: Add qedn probe Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-04-30  1:02   ` kernel test robot
2021-05-02 11:28   ` Hannes Reinecke
2021-05-02 11:28     ` Hannes Reinecke
2021-05-08 11:01     ` Shai Malin
2021-05-08 11:01       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 18/27] qedn: Add qedn_claim_dev API support Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:29   ` Hannes Reinecke
2021-05-02 11:29     ` Hannes Reinecke
2021-05-07 13:57     ` Shai Malin
2021-05-07 13:57       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 19/27] qedn: Add IRQ and fast-path resources initializations Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:32   ` Hannes Reinecke
2021-05-02 11:32     ` Hannes Reinecke
2021-05-05 17:54     ` Shai Malin
2021-05-05 17:54       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 20/27] qedn: Add connection-level slowpath functionality Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:37   ` Hannes Reinecke
2021-05-02 11:37     ` Hannes Reinecke
2021-05-05 17:56     ` Shai Malin
2021-05-05 17:56       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 21/27] qedn: Add support of configuring HW filter block Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:38   ` Hannes Reinecke
2021-05-02 11:38     ` Hannes Reinecke
2021-05-05 17:57     ` Shai Malin
2021-05-05 17:57       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 22/27] qedn: Add IO level nvme_req and fw_cq workqueues Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-04-29 23:03   ` kernel test robot
2021-05-02 11:42   ` Hannes Reinecke
2021-05-02 11:42     ` Hannes Reinecke
2021-05-07 13:56     ` Shai Malin
2021-05-07 13:56       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 23/27] qedn: Add support of Task and SGL Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:48   ` Hannes Reinecke
2021-05-02 11:48     ` Hannes Reinecke
2021-05-07 14:00     ` Shai Malin
2021-05-07 14:00       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 24/27] qedn: Add support of NVME ICReq & ICResp Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-04-30  0:01   ` kernel test robot [this message]
2021-05-02 11:53   ` Hannes Reinecke
2021-05-02 11:53     ` Hannes Reinecke
2021-05-05 18:01     ` Shai Malin
2021-05-05 18:01       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 25/27] qedn: Add IO level fastpath functionality Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-04-30  0:52   ` kernel test robot
2021-05-02 11:54   ` Hannes Reinecke
2021-05-02 11:54     ` Hannes Reinecke
2021-05-05 18:04     ` Shai Malin
2021-05-05 18:04       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 26/27] qedn: Add Connection and IO level recovery flows Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:57   ` Hannes Reinecke
2021-05-02 11:57     ` Hannes Reinecke
2021-05-05 18:06     ` Shai Malin
2021-05-05 18:06       ` Shai Malin
2021-04-29 19:09 ` [RFC PATCH v4 27/27] qedn: Add support of ASYNC Shai Malin
2021-04-29 19:09   ` Shai Malin
2021-05-02 11:59   ` Hannes Reinecke
2021-05-02 11:59     ` Hannes Reinecke
2021-05-05 18:08     ` Shai Malin
2021-05-05 18:08       ` Shai Malin
2021-05-01 16:47 ` [RFC PATCH v4 00/27] NVMeTCP Offload ULP and QEDN Device Driver Hannes Reinecke
2021-05-01 16:47   ` Hannes Reinecke
2021-05-03 15:13   ` Shai Malin
2021-05-03 15:13     ` Shai Malin

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=202104300736.zEBHrd6B-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.