From: kernel test robot <lkp@intel.com>
To: David Zhang <yidong.zhang@amd.com>,
linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org,
mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com
Cc: oe-kbuild-all@lists.linux.dev,
Yidong Zhang <yidong.zhang@amd.com>,
lizhi.hou@amd.com, Nishad Saraf <nishads@amd.com>,
Prapul Krishnamurthy <prapulk@amd.com>
Subject: Re: [PATCH V1 2/3] drivers/fpga/amd: Add communication with firmware
Date: Wed, 9 Oct 2024 13:29:50 +0800 [thread overview]
Message-ID: <202410091338.c38eM1Hd-lkp@intel.com> (raw)
In-Reply-To: <20241007220128.3023169-2-yidong.zhang@amd.com>
Hi David,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on v6.12-rc2 next-20241008]
[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/David-Zhang/drivers-fpga-amd-Add-communication-with-firmware/20241008-060253
base: linus/master
patch link: https://lore.kernel.org/r/20241007220128.3023169-2-yidong.zhang%40amd.com
patch subject: [PATCH V1 2/3] drivers/fpga/amd: Add communication with firmware
config: i386-randconfig-054-20241009 (https://download.01.org/0day-ci/archive/20241009/202410091338.c38eM1Hd-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
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/202410091338.c38eM1Hd-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/fpga/amd/vmgmt-rm.c:183:2-3: Unneeded semicolon
--
>> drivers/fpga/amd/vmgmt-rm.c:498:10-17: WARNING: vzalloc should be used for buffer, instead of vmalloc/memset
vim +183 drivers/fpga/amd/vmgmt-rm.c
146
147 int rm_queue_create_cmd(struct rm_device *rdev, enum rm_queue_opcode opcode,
148 struct rm_cmd **cmd_ptr)
149 {
150 struct rm_cmd *cmd = NULL;
151 int ret, id;
152 u16 size;
153
154 if (rdev->firewall_tripped)
155 return -ENODEV;
156
157 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
158 if (!cmd)
159 return -ENOMEM;
160 cmd->rdev = rdev;
161
162 switch (opcode) {
163 case RM_QUEUE_OP_LOAD_XCLBIN:
164 fallthrough;
165 case RM_QUEUE_OP_LOAD_FW:
166 fallthrough;
167 case RM_QUEUE_OP_LOAD_APU_FW:
168 size = sizeof(struct rm_cmd_sq_bin);
169 break;
170 case RM_QUEUE_OP_GET_LOG_PAGE:
171 size = sizeof(struct rm_cmd_sq_log_page);
172 break;
173 case RM_QUEUE_OP_IDENTIFY:
174 size = 0;
175 break;
176 case RM_QUEUE_OP_VMR_CONTROL:
177 size = sizeof(struct rm_cmd_sq_ctrl);
178 break;
179 default:
180 vmgmt_err(rdev->vdev, "Invalid cmd opcode %d", opcode);
181 ret = -EINVAL;
182 goto error;
> 183 };
184
185 cmd->opcode = opcode;
186 cmd->sq_msg.hdr.opcode = FIELD_PREP(RM_CMD_SQ_HDR_OPS_MSK, opcode);
187 cmd->sq_msg.hdr.msg_size = FIELD_PREP(RM_CMD_SQ_HDR_SIZE_MSK, size);
188
189 id = ida_alloc_range(&rm_cmd_ids, RM_CMD_ID_MIN, RM_CMD_ID_MAX, GFP_KERNEL);
190 if (id < 0) {
191 vmgmt_err(rdev->vdev, "Failed to alloc cmd ID: %d", id);
192 ret = id;
193 goto error;
194 }
195 cmd->sq_msg.hdr.id = id;
196
197 init_completion(&cmd->executed);
198
199 *cmd_ptr = cmd;
200 return 0;
201 error:
202 kfree(cmd);
203 return ret;
204 }
205
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-10-09 5:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-07 22:01 [PATCH V1 1/3] drivers/fpga/amd: Add new driver for AMD Versal PCIe card David Zhang
2024-10-07 22:01 ` [PATCH V1 2/3] drivers/fpga/amd: Add communication with firmware David Zhang
2024-10-09 5:29 ` kernel test robot [this message]
2024-10-09 10:44 ` kernel test robot
2024-10-18 8:11 ` Xu Yilun
2024-10-18 17:40 ` Zhang, Yidong (David)
2024-11-12 1:29 ` Yidong Zhang
2024-10-07 22:01 ` [PATCH V1 3/3] drivers/fpga/amd: Add remote queue service APIs David Zhang
2024-10-09 7:13 ` kernel test robot
2024-10-09 9:01 ` [PATCH V1 1/3] drivers/fpga/amd: Add new driver for AMD Versal PCIe card kernel test robot
2024-10-18 6:17 ` Xu Yilun
2024-11-12 1:22 ` Yidong Zhang
2024-11-19 7:07 ` Xu Yilun
2024-11-20 6:15 ` Yidong Zhang
2024-12-23 1:53 ` Yidong Zhang
2023-03-12 18:03 ` Xu Yilun
2024-12-26 6:10 ` Yidong Zhang
2023-03-12 21:30 ` Xu Yilun
2025-01-02 5:30 ` Yidong Zhang
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=202410091338.c38eM1Hd-lkp@intel.com \
--to=lkp@intel.com \
--cc=hao.wu@intel.com \
--cc=linux-fpga@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizhi.hou@amd.com \
--cc=mdf@kernel.org \
--cc=nishads@amd.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=prapulk@amd.com \
--cc=yidong.zhang@amd.com \
--cc=yilun.xu@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).