[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202008210824.4KoXeJKc%lkp@intel.com>
Date: Fri, 21 Aug 2020 08:03:27 +0800
From: kernel test robot <lkp@...el.com>
To: Michal Simek <monstr@...str.eu>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>,
Stefan Asserhall <stefan.asserhall@...inx.com>
Subject: drivers/scsi/qedi/qedi_fw.c:1064:45: sparse: sparse: incorrect type
in assignment (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: da2968ff879b9e74688cdc658f646971991d2c56
commit: 06e85c7e9a1c1356038936566fc23f7c0d363b96 asm-generic: fix unistd_32.h generation format
date: 5 months ago
config: parisc-randconfig-s032-20200820 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout 06e85c7e9a1c1356038936566fc23f7c0d363b96
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
drivers/scsi/qedi/qedi_fw.c:284:35: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:287:37: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qedi/qedi_fw.c:324:13: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] idx @@ got restricted __le16 [usertype] rqe_opaque @@
drivers/scsi/qedi/qedi_fw.c:324:13: sparse: expected unsigned short [usertype] idx
drivers/scsi/qedi/qedi_fw.c:324:13: sparse: got restricted __le16 [usertype] rqe_opaque
drivers/scsi/qedi/qedi_fw.c:360:13: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] idx @@ got restricted __le16 [usertype] rqe_opaque @@
drivers/scsi/qedi/qedi_fw.c:360:13: sparse: expected unsigned short [usertype] idx
drivers/scsi/qedi/qedi_fw.c:360:13: sparse: got restricted __le16 [usertype] rqe_opaque
drivers/scsi/qedi/qedi_fw.c:378:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] opaque @@ got restricted __le32 [usertype] @@
drivers/scsi/qedi/qedi_fw.c:378:41: sparse: expected restricted __le16 [usertype] opaque
drivers/scsi/qedi/qedi_fw.c:378:41: sparse: got restricted __le32 [usertype]
drivers/scsi/qedi/qedi_fw.c:421:29: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qedi/qedi_fw.c:428:26: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:429:26: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:430:23: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:431:20: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:447:28: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qedi/qedi_fw.c:492:32: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qedi/qedi_fw.c:508:18: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:508:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __be32 [usertype] @@
drivers/scsi/qedi/qedi_fw.c:508:16: sparse: expected unsigned int
drivers/scsi/qedi/qedi_fw.c:508:16: sparse: got restricted __be32 [usertype]
drivers/scsi/qedi/qedi_fw.c:509:18: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:509:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __be32 [usertype] @@
drivers/scsi/qedi/qedi_fw.c:509:16: sparse: expected unsigned int
drivers/scsi/qedi/qedi_fw.c:509:16: sparse: got restricted __be32 [usertype]
drivers/scsi/qedi/qedi_fw.c:511:31: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:512:31: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:513:28: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:518:28: sparse: sparse: cast from restricted __le16
drivers/scsi/qedi/qedi_fw.c:519:28: sparse: sparse: cast from restricted __le16
drivers/scsi/qedi/qedi_fw.c:520:28: sparse: sparse: cast from restricted __le16
drivers/scsi/qedi/qedi_fw.c:543:29: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qedi/qedi_fw.c:558:9: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qedi/qedi_fw.c:558:9: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qedi/qedi_fw.c:558:9: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qedi/qedi_fw.c:560:26: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:561:26: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:562:23: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:585:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] iscsi_cid @@ got restricted __le16 [usertype] conn_id @@
drivers/scsi/qedi/qedi_fw.c:585:20: sparse: expected unsigned int [usertype] iscsi_cid
drivers/scsi/qedi/qedi_fw.c:585:20: sparse: got restricted __le16 [usertype] conn_id
drivers/scsi/qedi/qedi_fw.c:625:26: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:626:26: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:627:20: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qedi/qedi_fw.c:631:31: sparse: sparse: cast from restricted __le32
drivers/scsi/qedi/qedi_fw.c:634:38: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qedi/qedi_fw.c:739:28: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] proto_itt @@ got restricted __le16 [usertype] itid @@
drivers/scsi/qedi/qedi_fw.c:739:28: sparse: expected unsigned int [usertype] proto_itt
drivers/scsi/qedi/qedi_fw.c:739:28: sparse: got restricted __le16 [usertype] itid
drivers/scsi/qedi/qedi_fw.c:751:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] iscsi_cid @@ got restricted __le16 [usertype] conn_id @@
drivers/scsi/qedi/qedi_fw.c:751:19: sparse: expected unsigned int [usertype] iscsi_cid
drivers/scsi/qedi/qedi_fw.c:751:19: sparse: got restricted __le16 [usertype] conn_id
drivers/scsi/qedi/qedi_fw.c:809:25: sparse: sparse: cast to restricted itt_t
drivers/scsi/qedi/qedi_fw.c:828:45: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int [usertype] tid @@ got restricted __le16 [usertype] itid @@
drivers/scsi/qedi/qedi_fw.c:828:45: sparse: expected unsigned int [usertype] tid
drivers/scsi/qedi/qedi_fw.c:828:45: sparse: got restricted __le16 [usertype] itid
drivers/scsi/qedi/qedi_fw.c:849:57: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int idx @@ got restricted __le16 [usertype] itid @@
drivers/scsi/qedi/qedi_fw.c:849:57: sparse: expected int idx
drivers/scsi/qedi/qedi_fw.c:849:57: sparse: got restricted __le16 [usertype] itid
drivers/scsi/qedi/qedi_fw.c:852:45: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int [usertype] tid @@ got restricted __le16 [usertype] itid @@
drivers/scsi/qedi/qedi_fw.c:852:45: sparse: expected unsigned int [usertype] tid
drivers/scsi/qedi/qedi_fw.c:852:45: sparse: got restricted __le16 [usertype] itid
drivers/scsi/qedi/qedi_fw.c:890:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] iscsi_cid @@ got restricted __le16 [usertype] conn_id @@
drivers/scsi/qedi/qedi_fw.c:890:20: sparse: expected unsigned int [usertype] iscsi_cid
drivers/scsi/qedi/qedi_fw.c:890:20: sparse: got restricted __le16 [usertype] conn_id
drivers/scsi/qedi/qedi_fw.c:921:50: sparse: sparse: cast from restricted itt_t
drivers/scsi/qedi/qedi_fw.c:921:40: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qedi/qedi_fw.c:926:48: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qedi/qedi_fw.c:925:49: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] itid @@ got unsigned int @@
drivers/scsi/qedi/qedi_fw.c:925:49: sparse: expected restricted __le16 [usertype] itid
drivers/scsi/qedi/qedi_fw.c:925:49: sparse: got unsigned int
drivers/scsi/qedi/qedi_fw.c:975:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] sq_prod @@ got unsigned short [usertype] fw_sq_prod_idx @@
drivers/scsi/qedi/qedi_fw.c:975:23: sparse: expected restricted __le16 [assigned] [usertype] sq_prod
drivers/scsi/qedi/qedi_fw.c:975:23: sparse: got unsigned short [usertype] fw_sq_prod_idx
drivers/scsi/qedi/qedi_fw.c:1048:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] isid_tabc @@ got unsigned int @@
drivers/scsi/qedi/qedi_fw.c:1048:40: sparse: expected restricted __le32 [addressable] [assigned] [usertype] isid_tabc
drivers/scsi/qedi/qedi_fw.c:1048:40: sparse: got unsigned int
drivers/scsi/qedi/qedi_fw.c:1049:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] isid_d @@ got unsigned short @@
drivers/scsi/qedi/qedi_fw.c:1049:37: sparse: expected restricted __le16 [addressable] [assigned] [usertype] isid_d
drivers/scsi/qedi/qedi_fw.c:1049:37: sparse: got unsigned short
drivers/scsi/qedi/qedi_fw.c:1051:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] tsih @@ got restricted __be16 [usertype] tsih @@
drivers/scsi/qedi/qedi_fw.c:1051:35: sparse: expected restricted __le16 [addressable] [assigned] [usertype] tsih
drivers/scsi/qedi/qedi_fw.c:1051:35: sparse: got restricted __be16 [usertype] tsih
drivers/scsi/qedi/qedi_fw.c:1052:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] hdr_second_dword @@ got int @@
drivers/scsi/qedi/qedi_fw.c:1052:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] hdr_second_dword
drivers/scsi/qedi/qedi_fw.c:1052:47: sparse: got int
drivers/scsi/qedi/qedi_fw.c:1055:36: sparse: sparse: cast to restricted itt_t
drivers/scsi/qedi/qedi_fw.c:1055:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] itt @@ got unsigned int [usertype] @@
drivers/scsi/qedi/qedi_fw.c:1055:34: sparse: expected restricted __le32 [addressable] [assigned] [usertype] itt
drivers/scsi/qedi/qedi_fw.c:1055:34: sparse: got unsigned int [usertype]
drivers/scsi/qedi/qedi_fw.c:1056:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] cid @@ got unsigned int [usertype] iscsi_conn_id @@
drivers/scsi/qedi/qedi_fw.c:1056:34: sparse: expected restricted __le16 [addressable] [assigned] [usertype] cid
drivers/scsi/qedi/qedi_fw.c:1056:34: sparse: got unsigned int [usertype] iscsi_conn_id
drivers/scsi/qedi/qedi_fw.c:1057:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] cmd_sn @@ got unsigned int [usertype] @@
drivers/scsi/qedi/qedi_fw.c:1057:37: sparse: expected restricted __le32 [addressable] [assigned] [usertype] cmd_sn
drivers/scsi/qedi/qedi_fw.c:1057:37: sparse: got unsigned int [usertype]
drivers/scsi/qedi/qedi_fw.c:1058:42: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] exp_stat_sn @@ got unsigned int [usertype] @@
drivers/scsi/qedi/qedi_fw.c:1058:42: sparse: expected restricted __le32 [addressable] [assigned] [usertype] exp_stat_sn
drivers/scsi/qedi/qedi_fw.c:1058:42: sparse: got unsigned int [usertype]
>> drivers/scsi/qedi/qedi_fw.c:1064:45: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] lo @@ got unsigned int [usertype] @@
>> drivers/scsi/qedi/qedi_fw.c:1064:45: sparse: expected restricted __le32 [addressable] [assigned] [usertype] lo
drivers/scsi/qedi/qedi_fw.c:1064:45: sparse: got unsigned int [usertype]
drivers/scsi/qedi/qedi_fw.c:1066:45: sparse: sparse: too many warnings
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=06e85c7e9a1c1356038936566fc23f7c0d363b96
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 06e85c7e9a1c1356038936566fc23f7c0d363b96
vim +1064 drivers/scsi/qedi/qedi_fw.c
be086e7c53f1fac Mintz, Yuval 2017-03-11 1005
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1006 int qedi_send_iscsi_login(struct qedi_conn *qedi_conn,
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1007 struct iscsi_task *task)
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1008 {
be086e7c53f1fac Mintz, Yuval 2017-03-11 1009 struct iscsi_login_req_hdr login_req_pdu_header;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1010 struct scsi_sgl_task_params tx_sgl_task_params;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1011 struct scsi_sgl_task_params rx_sgl_task_params;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1012 struct iscsi_task_params task_params;
21dd79e82f00b29 Tomer Tayar 2017-12-27 1013 struct e4_iscsi_task_context *fw_task_ctx;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1014 struct qedi_ctx *qedi = qedi_conn->qedi;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1015 struct iscsi_login_req *login_hdr;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1016 struct scsi_sge *resp_sge = NULL;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1017 struct qedi_cmd *qedi_cmd;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1018 struct qedi_endpoint *ep;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1019 s16 tid = 0;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1020 u16 sq_idx = 0;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1021 int rval = 0;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1022
be086e7c53f1fac Mintz, Yuval 2017-03-11 1023 resp_sge = (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1024 qedi_cmd = (struct qedi_cmd *)task->dd_data;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1025 ep = qedi_conn->ep;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1026 login_hdr = (struct iscsi_login_req *)task->hdr;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1027
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1028 tid = qedi_get_task_idx(qedi);
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1029 if (tid == -1)
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1030 return -ENOMEM;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1031
be086e7c53f1fac Mintz, Yuval 2017-03-11 1032 fw_task_ctx =
21dd79e82f00b29 Tomer Tayar 2017-12-27 1033 (struct e4_iscsi_task_context *)qedi_get_task_mem(&qedi->tasks,
21dd79e82f00b29 Tomer Tayar 2017-12-27 1034 tid);
21dd79e82f00b29 Tomer Tayar 2017-12-27 1035 memset(fw_task_ctx, 0, sizeof(struct e4_iscsi_task_context));
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1036
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1037 qedi_cmd->task_id = tid;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1038
be086e7c53f1fac Mintz, Yuval 2017-03-11 1039 memset(&task_params, 0, sizeof(task_params));
be086e7c53f1fac Mintz, Yuval 2017-03-11 1040 memset(&login_req_pdu_header, 0, sizeof(login_req_pdu_header));
be086e7c53f1fac Mintz, Yuval 2017-03-11 1041 memset(&tx_sgl_task_params, 0, sizeof(tx_sgl_task_params));
be086e7c53f1fac Mintz, Yuval 2017-03-11 1042 memset(&rx_sgl_task_params, 0, sizeof(rx_sgl_task_params));
be086e7c53f1fac Mintz, Yuval 2017-03-11 1043 /* Update header info */
be086e7c53f1fac Mintz, Yuval 2017-03-11 1044 login_req_pdu_header.opcode = login_hdr->opcode;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1045 login_req_pdu_header.version_min = login_hdr->min_version;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1046 login_req_pdu_header.version_max = login_hdr->max_version;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1047 login_req_pdu_header.flags_attr = login_hdr->flags;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1048 login_req_pdu_header.isid_tabc = swab32p((u32 *)login_hdr->isid);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1049 login_req_pdu_header.isid_d = swab16p((u16 *)&login_hdr->isid[4]);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1050
be086e7c53f1fac Mintz, Yuval 2017-03-11 1051 login_req_pdu_header.tsih = login_hdr->tsih;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1052 login_req_pdu_header.hdr_second_dword = ntoh24(login_hdr->dlength);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1053
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1054 qedi_update_itt_map(qedi, tid, task->itt, qedi_cmd);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1055 login_req_pdu_header.itt = qedi_set_itt(tid, get_itt(task->itt));
be086e7c53f1fac Mintz, Yuval 2017-03-11 1056 login_req_pdu_header.cid = qedi_conn->iscsi_conn_id;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1057 login_req_pdu_header.cmd_sn = be32_to_cpu(login_hdr->cmdsn);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1058 login_req_pdu_header.exp_stat_sn = be32_to_cpu(login_hdr->exp_statsn);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1059 login_req_pdu_header.exp_stat_sn = 0;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1060
be086e7c53f1fac Mintz, Yuval 2017-03-11 1061 /* Fill tx AHS and rx buffer */
be086e7c53f1fac Mintz, Yuval 2017-03-11 1062 tx_sgl_task_params.sgl =
be086e7c53f1fac Mintz, Yuval 2017-03-11 1063 (struct scsi_sge *)qedi_conn->gen_pdu.req_bd_tbl;
be086e7c53f1fac Mintz, Yuval 2017-03-11 @1064 tx_sgl_task_params.sgl_phys_addr.lo =
be086e7c53f1fac Mintz, Yuval 2017-03-11 1065 (u32)(qedi_conn->gen_pdu.req_dma_addr);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1066 tx_sgl_task_params.sgl_phys_addr.hi =
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1067 (u32)((u64)qedi_conn->gen_pdu.req_dma_addr >> 32);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1068 tx_sgl_task_params.total_buffer_size = ntoh24(login_hdr->dlength);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1069 tx_sgl_task_params.num_sges = 1;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1070
be086e7c53f1fac Mintz, Yuval 2017-03-11 1071 rx_sgl_task_params.sgl =
be086e7c53f1fac Mintz, Yuval 2017-03-11 1072 (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1073 rx_sgl_task_params.sgl_phys_addr.lo =
be086e7c53f1fac Mintz, Yuval 2017-03-11 1074 (u32)(qedi_conn->gen_pdu.resp_dma_addr);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1075 rx_sgl_task_params.sgl_phys_addr.hi =
be086e7c53f1fac Mintz, Yuval 2017-03-11 1076 (u32)((u64)qedi_conn->gen_pdu.resp_dma_addr >> 32);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1077 rx_sgl_task_params.total_buffer_size = resp_sge->sge_len;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1078 rx_sgl_task_params.num_sges = 1;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1079
be086e7c53f1fac Mintz, Yuval 2017-03-11 1080 /* Fill fw input params */
be086e7c53f1fac Mintz, Yuval 2017-03-11 1081 task_params.context = fw_task_ctx;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1082 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1083 task_params.itid = tid;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1084 task_params.cq_rss_number = 0;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1085 task_params.tx_io_size = ntoh24(login_hdr->dlength);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1086 task_params.rx_io_size = resp_sge->sge_len;
be086e7c53f1fac Mintz, Yuval 2017-03-11 1087
be086e7c53f1fac Mintz, Yuval 2017-03-11 1088 sq_idx = qedi_get_wqe_idx(qedi_conn);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1089 task_params.sqe = &ep->sq[sq_idx];
be086e7c53f1fac Mintz, Yuval 2017-03-11 1090
be086e7c53f1fac Mintz, Yuval 2017-03-11 1091 memset(task_params.sqe, 0, sizeof(struct iscsi_wqe));
be086e7c53f1fac Mintz, Yuval 2017-03-11 1092 rval = init_initiator_login_request_task(&task_params,
be086e7c53f1fac Mintz, Yuval 2017-03-11 1093 &login_req_pdu_header,
be086e7c53f1fac Mintz, Yuval 2017-03-11 1094 &tx_sgl_task_params,
be086e7c53f1fac Mintz, Yuval 2017-03-11 1095 &rx_sgl_task_params);
be086e7c53f1fac Mintz, Yuval 2017-03-11 1096 if (rval)
be086e7c53f1fac Mintz, Yuval 2017-03-11 1097 return -1;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1098
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1099 spin_lock(&qedi_conn->list_lock);
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1100 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list);
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1101 qedi_cmd->io_cmd_in_list = true;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1102 qedi_conn->active_cmd_count++;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1103 spin_unlock(&qedi_conn->list_lock);
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1104
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1105 qedi_ring_doorbell(qedi_conn);
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1106 return 0;
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1107 }
ace7f46ba5fde72 Manish Rangankar 2016-12-01 1108
:::::: The code at line 1064 was first introduced by commit
:::::: be086e7c53f1fac51eed14523b28f2214b548dd2 qed*: Utilize Firmware 8.15.3.0
:::::: TO: Mintz, Yuval <Yuval.Mintz@...ium.com>
:::::: CC: David S. Miller <davem@...emloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (33719 bytes)
Powered by blists - more mailing lists