* drivers/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop depends on readl() succeeding
@ 2020-11-14 19:53 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-11-14 19:53 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2973 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Samuel Holland <samuel@sholland.org>
CC: Jassi Brar <jaswinder.singh@linaro.org>
CC: Philipp Zabel <p.zabel@pengutronix.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 25831c44b0b79ac6261d36d7e777a52bdf92f239 mailbox: sun6i-msgbox: Add a new mailbox driver
date: 8 months ago
:::::: branch date: 20 hours ago
:::::: commit date: 8 months ago
config: i386-randconfig-m021-20201115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop depends on readl() succeeding
vim +156 drivers/mailbox/sun6i-msgbox.c
25831c44b0b79ac Samuel Holland 2020-02-22 138
25831c44b0b79ac Samuel Holland 2020-02-22 139 static void sun6i_msgbox_shutdown(struct mbox_chan *chan)
25831c44b0b79ac Samuel Holland 2020-02-22 140 {
25831c44b0b79ac Samuel Holland 2020-02-22 141 struct sun6i_msgbox *mbox = to_sun6i_msgbox(chan);
25831c44b0b79ac Samuel Holland 2020-02-22 142 int n = channel_number(chan);
25831c44b0b79ac Samuel Holland 2020-02-22 143
25831c44b0b79ac Samuel Holland 2020-02-22 144 if (readl(mbox->regs + CTRL_REG(n)) & CTRL_RX(n)) {
25831c44b0b79ac Samuel Holland 2020-02-22 145 /* Disable the receive IRQ. */
25831c44b0b79ac Samuel Holland 2020-02-22 146 spin_lock(&mbox->lock);
25831c44b0b79ac Samuel Holland 2020-02-22 147 writel(readl(mbox->regs + LOCAL_IRQ_EN_REG) & ~RX_IRQ(n),
25831c44b0b79ac Samuel Holland 2020-02-22 148 mbox->regs + LOCAL_IRQ_EN_REG);
25831c44b0b79ac Samuel Holland 2020-02-22 149 spin_unlock(&mbox->lock);
25831c44b0b79ac Samuel Holland 2020-02-22 150
25831c44b0b79ac Samuel Holland 2020-02-22 151 /* Attempt to flush the FIFO until the IRQ is cleared. */
25831c44b0b79ac Samuel Holland 2020-02-22 152 do {
25831c44b0b79ac Samuel Holland 2020-02-22 153 while (sun6i_msgbox_peek_data(chan))
25831c44b0b79ac Samuel Holland 2020-02-22 154 readl(mbox->regs + MSG_DATA_REG(n));
25831c44b0b79ac Samuel Holland 2020-02-22 155 writel(RX_IRQ(n), mbox->regs + LOCAL_IRQ_STAT_REG);
25831c44b0b79ac Samuel Holland 2020-02-22 @156 } while (readl(mbox->regs + LOCAL_IRQ_STAT_REG) & RX_IRQ(n));
25831c44b0b79ac Samuel Holland 2020-02-22 157 }
25831c44b0b79ac Samuel Holland 2020-02-22 158
25831c44b0b79ac Samuel Holland 2020-02-22 159 mbox_dbg(mbox, "Channel %d shutdown complete\n", n);
25831c44b0b79ac Samuel Holland 2020-02-22 160 }
25831c44b0b79ac Samuel Holland 2020-02-22 161
---
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: 44221 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* drivers/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop depends on readl() succeeding
@ 2020-10-22 9:40 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-10-22 9:40 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2973 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Samuel Holland <samuel@sholland.org>
CC: Jassi Brar <jaswinder.singh@linaro.org>
CC: Philipp Zabel <p.zabel@pengutronix.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f804b3159482eedbb4250b1e9248c308fb63b805
commit: 25831c44b0b79ac6261d36d7e777a52bdf92f239 mailbox: sun6i-msgbox: Add a new mailbox driver
date: 7 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 7 months ago
config: i386-randconfig-m021-20201022 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop depends on readl() succeeding
vim +156 drivers/mailbox/sun6i-msgbox.c
25831c44b0b79ac Samuel Holland 2020-02-22 138
25831c44b0b79ac Samuel Holland 2020-02-22 139 static void sun6i_msgbox_shutdown(struct mbox_chan *chan)
25831c44b0b79ac Samuel Holland 2020-02-22 140 {
25831c44b0b79ac Samuel Holland 2020-02-22 141 struct sun6i_msgbox *mbox = to_sun6i_msgbox(chan);
25831c44b0b79ac Samuel Holland 2020-02-22 142 int n = channel_number(chan);
25831c44b0b79ac Samuel Holland 2020-02-22 143
25831c44b0b79ac Samuel Holland 2020-02-22 144 if (readl(mbox->regs + CTRL_REG(n)) & CTRL_RX(n)) {
25831c44b0b79ac Samuel Holland 2020-02-22 145 /* Disable the receive IRQ. */
25831c44b0b79ac Samuel Holland 2020-02-22 146 spin_lock(&mbox->lock);
25831c44b0b79ac Samuel Holland 2020-02-22 147 writel(readl(mbox->regs + LOCAL_IRQ_EN_REG) & ~RX_IRQ(n),
25831c44b0b79ac Samuel Holland 2020-02-22 148 mbox->regs + LOCAL_IRQ_EN_REG);
25831c44b0b79ac Samuel Holland 2020-02-22 149 spin_unlock(&mbox->lock);
25831c44b0b79ac Samuel Holland 2020-02-22 150
25831c44b0b79ac Samuel Holland 2020-02-22 151 /* Attempt to flush the FIFO until the IRQ is cleared. */
25831c44b0b79ac Samuel Holland 2020-02-22 152 do {
25831c44b0b79ac Samuel Holland 2020-02-22 153 while (sun6i_msgbox_peek_data(chan))
25831c44b0b79ac Samuel Holland 2020-02-22 154 readl(mbox->regs + MSG_DATA_REG(n));
25831c44b0b79ac Samuel Holland 2020-02-22 155 writel(RX_IRQ(n), mbox->regs + LOCAL_IRQ_STAT_REG);
25831c44b0b79ac Samuel Holland 2020-02-22 @156 } while (readl(mbox->regs + LOCAL_IRQ_STAT_REG) & RX_IRQ(n));
25831c44b0b79ac Samuel Holland 2020-02-22 157 }
25831c44b0b79ac Samuel Holland 2020-02-22 158
25831c44b0b79ac Samuel Holland 2020-02-22 159 mbox_dbg(mbox, "Channel %d shutdown complete\n", n);
25831c44b0b79ac Samuel Holland 2020-02-22 160 }
25831c44b0b79ac Samuel Holland 2020-02-22 161
---
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: 38888 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* drivers/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop depends on readl() succeeding
@ 2020-09-12 18:05 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-09-12 18:05 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3248 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Samuel Holland <samuel@sholland.org>
CC: Jassi Brar <jaswinder.singh@linaro.org>
CC: Philipp Zabel <p.zabel@pengutronix.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 729e3d091984487f7aa1ebfabfe594e5b317ed0f
commit: 25831c44b0b79ac6261d36d7e777a52bdf92f239 mailbox: sun6i-msgbox: Add a new mailbox driver
date: 6 months ago
:::::: branch date: 21 hours ago
:::::: commit date: 6 months ago
config: parisc-randconfig-m031-20200913 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop depends on readl() succeeding
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=25831c44b0b79ac6261d36d7e777a52bdf92f239
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 25831c44b0b79ac6261d36d7e777a52bdf92f239
vim +156 drivers/mailbox/sun6i-msgbox.c
25831c44b0b79a Samuel Holland 2020-02-22 138
25831c44b0b79a Samuel Holland 2020-02-22 139 static void sun6i_msgbox_shutdown(struct mbox_chan *chan)
25831c44b0b79a Samuel Holland 2020-02-22 140 {
25831c44b0b79a Samuel Holland 2020-02-22 141 struct sun6i_msgbox *mbox = to_sun6i_msgbox(chan);
25831c44b0b79a Samuel Holland 2020-02-22 142 int n = channel_number(chan);
25831c44b0b79a Samuel Holland 2020-02-22 143
25831c44b0b79a Samuel Holland 2020-02-22 144 if (readl(mbox->regs + CTRL_REG(n)) & CTRL_RX(n)) {
25831c44b0b79a Samuel Holland 2020-02-22 145 /* Disable the receive IRQ. */
25831c44b0b79a Samuel Holland 2020-02-22 146 spin_lock(&mbox->lock);
25831c44b0b79a Samuel Holland 2020-02-22 147 writel(readl(mbox->regs + LOCAL_IRQ_EN_REG) & ~RX_IRQ(n),
25831c44b0b79a Samuel Holland 2020-02-22 148 mbox->regs + LOCAL_IRQ_EN_REG);
25831c44b0b79a Samuel Holland 2020-02-22 149 spin_unlock(&mbox->lock);
25831c44b0b79a Samuel Holland 2020-02-22 150
25831c44b0b79a Samuel Holland 2020-02-22 151 /* Attempt to flush the FIFO until the IRQ is cleared. */
25831c44b0b79a Samuel Holland 2020-02-22 152 do {
25831c44b0b79a Samuel Holland 2020-02-22 153 while (sun6i_msgbox_peek_data(chan))
25831c44b0b79a Samuel Holland 2020-02-22 154 readl(mbox->regs + MSG_DATA_REG(n));
25831c44b0b79a Samuel Holland 2020-02-22 155 writel(RX_IRQ(n), mbox->regs + LOCAL_IRQ_STAT_REG);
25831c44b0b79a Samuel Holland 2020-02-22 @156 } while (readl(mbox->regs + LOCAL_IRQ_STAT_REG) & RX_IRQ(n));
25831c44b0b79a Samuel Holland 2020-02-22 157 }
25831c44b0b79a Samuel Holland 2020-02-22 158
25831c44b0b79a Samuel Holland 2020-02-22 159 mbox_dbg(mbox, "Channel %d shutdown complete\n", n);
25831c44b0b79a Samuel Holland 2020-02-22 160 }
25831c44b0b79a Samuel Holland 2020-02-22 161
---
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: 26082 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* drivers/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop depends on readl() succeeding
@ 2020-06-29 8:42 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-06-29 8:42 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3239 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Samuel Holland <samuel@sholland.org>
CC: Jassi Brar <jaswinder.singh@linaro.org>
CC: Philipp Zabel <p.zabel@pengutronix.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68
commit: 25831c44b0b79ac6261d36d7e777a52bdf92f239 mailbox: sun6i-msgbox: Add a new mailbox driver
date: 3 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 3 months ago
config: nios2-randconfig-m031-20200629 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop depends on readl() succeeding
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=25831c44b0b79ac6261d36d7e777a52bdf92f239
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 25831c44b0b79ac6261d36d7e777a52bdf92f239
vim +156 drivers/mailbox/sun6i-msgbox.c
25831c44b0b79a Samuel Holland 2020-02-22 138
25831c44b0b79a Samuel Holland 2020-02-22 139 static void sun6i_msgbox_shutdown(struct mbox_chan *chan)
25831c44b0b79a Samuel Holland 2020-02-22 140 {
25831c44b0b79a Samuel Holland 2020-02-22 141 struct sun6i_msgbox *mbox = to_sun6i_msgbox(chan);
25831c44b0b79a Samuel Holland 2020-02-22 142 int n = channel_number(chan);
25831c44b0b79a Samuel Holland 2020-02-22 143
25831c44b0b79a Samuel Holland 2020-02-22 144 if (readl(mbox->regs + CTRL_REG(n)) & CTRL_RX(n)) {
25831c44b0b79a Samuel Holland 2020-02-22 145 /* Disable the receive IRQ. */
25831c44b0b79a Samuel Holland 2020-02-22 146 spin_lock(&mbox->lock);
25831c44b0b79a Samuel Holland 2020-02-22 147 writel(readl(mbox->regs + LOCAL_IRQ_EN_REG) & ~RX_IRQ(n),
25831c44b0b79a Samuel Holland 2020-02-22 148 mbox->regs + LOCAL_IRQ_EN_REG);
25831c44b0b79a Samuel Holland 2020-02-22 149 spin_unlock(&mbox->lock);
25831c44b0b79a Samuel Holland 2020-02-22 150
25831c44b0b79a Samuel Holland 2020-02-22 151 /* Attempt to flush the FIFO until the IRQ is cleared. */
25831c44b0b79a Samuel Holland 2020-02-22 152 do {
25831c44b0b79a Samuel Holland 2020-02-22 153 while (sun6i_msgbox_peek_data(chan))
25831c44b0b79a Samuel Holland 2020-02-22 154 readl(mbox->regs + MSG_DATA_REG(n));
25831c44b0b79a Samuel Holland 2020-02-22 155 writel(RX_IRQ(n), mbox->regs + LOCAL_IRQ_STAT_REG);
25831c44b0b79a Samuel Holland 2020-02-22 @156 } while (readl(mbox->regs + LOCAL_IRQ_STAT_REG) & RX_IRQ(n));
25831c44b0b79a Samuel Holland 2020-02-22 157 }
25831c44b0b79a Samuel Holland 2020-02-22 158
25831c44b0b79a Samuel Holland 2020-02-22 159 mbox_dbg(mbox, "Channel %d shutdown complete\n", n);
25831c44b0b79a Samuel Holland 2020-02-22 160 }
25831c44b0b79a Samuel Holland 2020-02-22 161
---
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: 29670 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-14 19:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-14 19:53 drivers/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop depends on readl() succeeding kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2020-10-22 9:40 kernel test robot
2020-09-12 18:05 kernel test robot
2020-06-29 8:42 kernel test robot
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.