CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Peng Fan <peng.fan(a)nxp.com>
CC: Jassi Brar <jaswinder.singh(a)linaro.org>
CC: Oleksij Rempel <o.rempel(a)pengutronix.de>
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4d41ead6ead97c3730bbd186a601a64828668f01
commit: 0a67003b1985c79811160af1b01aca07cd5fbc53 mailbox: imx: add SCU MU support
date: 5 months ago
:::::: branch date: 6 hours ago
:::::: commit date: 5 months ago
config: microblaze-randconfig-m031-20200828 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
drivers/mailbox/imx-mailbox.c:217 imx_mu_scu_rx() error: double unlocked
'priv->xcr_lock' (orig line 198)
Old smatch warnings:
arch/microblaze/include/asm/thread_info.h:94 current_thread_info() error: uninitialized
symbol 'sp'.
#
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0a67003b1985c79811160af1b01aca07cd5fbc53
vim +217 drivers/mailbox/imx-mailbox.c
0a67003b1985c7 Peng Fan 2020-03-19 189
0a67003b1985c7 Peng Fan 2020-03-19 190 static int imx_mu_scu_rx(struct imx_mu_priv
*priv,
0a67003b1985c7 Peng Fan 2020-03-19 191 struct imx_mu_con_priv *cp)
0a67003b1985c7 Peng Fan 2020-03-19 192 {
0a67003b1985c7 Peng Fan 2020-03-19 193 struct imx_sc_rpc_msg_max msg;
0a67003b1985c7 Peng Fan 2020-03-19 194 u32 *data = (u32 *)&msg;
0a67003b1985c7 Peng Fan 2020-03-19 195 int i, ret;
0a67003b1985c7 Peng Fan 2020-03-19 196 u32 xsr;
0a67003b1985c7 Peng Fan 2020-03-19 197
0a67003b1985c7 Peng Fan 2020-03-19 @198 imx_mu_xcr_rmw(priv, 0, IMX_MU_xCR_RIEn(0));
0a67003b1985c7 Peng Fan 2020-03-19 199 *data++ = imx_mu_read(priv,
priv->dcfg->xRR[0]);
0a67003b1985c7 Peng Fan 2020-03-19 200
0a67003b1985c7 Peng Fan 2020-03-19 201 if (msg.hdr.size > sizeof(msg)) {
0a67003b1985c7 Peng Fan 2020-03-19 202 dev_err(priv->dev, "Exceed max msg size
(%zu) on RX, got: %i\n",
0a67003b1985c7 Peng Fan 2020-03-19 203 sizeof(msg), msg.hdr.size);
0a67003b1985c7 Peng Fan 2020-03-19 204 return -EINVAL;
0a67003b1985c7 Peng Fan 2020-03-19 205 }
0a67003b1985c7 Peng Fan 2020-03-19 206
0a67003b1985c7 Peng Fan 2020-03-19 207 for (i = 1; i < msg.hdr.size; i++) {
0a67003b1985c7 Peng Fan 2020-03-19 208 ret = readl_poll_timeout(priv->base +
priv->dcfg->xSR, xsr,
0a67003b1985c7 Peng Fan 2020-03-19 209 xsr & IMX_MU_xSR_RFn(i % 4), 0, 100);
0a67003b1985c7 Peng Fan 2020-03-19 210 if (ret) {
0a67003b1985c7 Peng Fan 2020-03-19 211 dev_err(priv->dev, "timeout read idx
%d\n", i);
0a67003b1985c7 Peng Fan 2020-03-19 212 return ret;
0a67003b1985c7 Peng Fan 2020-03-19 213 }
0a67003b1985c7 Peng Fan 2020-03-19 214 *data++ = imx_mu_read(priv,
priv->dcfg->xRR[i % 4]);
0a67003b1985c7 Peng Fan 2020-03-19 215 }
0a67003b1985c7 Peng Fan 2020-03-19 216
0a67003b1985c7 Peng Fan 2020-03-19 @217 imx_mu_xcr_rmw(priv, IMX_MU_xCR_RIEn(0), 0);
0a67003b1985c7 Peng Fan 2020-03-19 218 mbox_chan_received_data(cp->chan, (void
*)&msg);
0a67003b1985c7 Peng Fan 2020-03-19 219
0a67003b1985c7 Peng Fan 2020-03-19 220 return 0;
0a67003b1985c7 Peng Fan 2020-03-19 221 }
0a67003b1985c7 Peng Fan 2020-03-19 222
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org