From: kernel test robot <lkp@intel.com>
To: Oleksandr Ocheretnyi <oocheret@cisco.com>, linux@roeck-us.net
Cc: oe-kbuild-all@lists.linux.dev, jdelvare@suse.de,
linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org,
mika.westerberg@linux.intel.com, oocheret@cisco.com,
wim@linux-watchdog.org, wsa@kernel.org,
xe-linux-external@cisco.com
Subject: Re: [PATCH v2] iTCO_wdt: mask NMI_NOW bit for update_no_reboot_bit() call
Date: Fri, 13 Sep 2024 13:29:14 +0800 [thread overview]
Message-ID: <202409131302.oGABipcM-lkp@intel.com> (raw)
In-Reply-To: <20240912141931.2447826-1-oocheret@cisco.com>
Hi Oleksandr,
kernel test robot noticed the following build warnings:
[auto build test WARNING on westeri-thunderbolt/next]
[also build test WARNING on linus/master v6.11-rc7 next-20240912]
[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/Oleksandr-Ocheretnyi/iTCO_wdt-mask-NMI_NOW-bit-for-update_no_reboot_bit-call/20240912-222231
base: https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git next
patch link: https://lore.kernel.org/r/20240912141931.2447826-1-oocheret%40cisco.com
patch subject: [PATCH v2] iTCO_wdt: mask NMI_NOW bit for update_no_reboot_bit() call
config: i386-buildonly-randconfig-003-20240913 (https://download.01.org/0day-ci/archive/20240913/202409131302.oGABipcM-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240913/202409131302.oGABipcM-lkp@intel.com/reproduce)
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/202409131302.oGABipcM-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/watchdog/iTCO_wdt.c: In function 'update_no_reboot_bit_cnt':
>> drivers/watchdog/iTCO_wdt.c:226:33: warning: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '4294967039' to '65279' [-Woverflow]
226 | u16 val, newval, mask = (~NMI_NOW);
| ^
vim +226 drivers/watchdog/iTCO_wdt.c
222
223 static int update_no_reboot_bit_cnt(void *priv, bool set)
224 {
225 struct iTCO_wdt_private *p = priv;
> 226 u16 val, newval, mask = (~NMI_NOW);
227
228 /* writing back 1b1 to NMI_NOW of TCO1_CNT register
229 * causes NMI_NOW bit inversion what consequently does
230 * not allow to perform the register's value comparison
231 * properly.
232 *
233 * NMI_NOW bit masking for TCO1_CNT register values
234 * helps to avoid possible NMI_NOW bit inversions on
235 * following write operation.
236 */
237 val = inw(TCO1_CNT(p)) & mask;
238 if (set)
239 val |= BIT(0);
240 else
241 val &= ~BIT(0);
242 outw(val, TCO1_CNT(p));
243 newval = inw(TCO1_CNT(p)) & mask;
244
245 /* make sure the update is successful */
246 return val != newval ? -EIO : 0;
247 }
248
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-09-13 5:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-26 7:53 [PATCH v1] iTCO_wdt: ignore NMI_NOW bit on register comparison Oleksandr Ocheretnyi
2024-08-26 11:18 ` Mika Westerberg
2024-08-26 15:12 ` Guenter Roeck
2024-08-26 15:15 ` Guenter Roeck
2024-08-26 15:41 ` Guenter Roeck
2024-09-12 14:19 ` [PATCH v2] iTCO_wdt: mask NMI_NOW bit for update_no_reboot_bit() call Oleksandr Ocheretnyi
2024-09-12 21:15 ` Guenter Roeck
2024-09-12 21:15 ` Guenter Roeck
2024-09-13 19:14 ` [PATCH v3] " Oleksandr Ocheretnyi
2024-09-17 1:09 ` Guenter Roeck
2024-10-07 15:57 ` Oleksandr Ocheretnyi
2024-10-08 16:33 ` Mika Westerberg
2024-09-13 5:29 ` kernel test robot [this message]
2024-09-13 7:58 ` [PATCH v2] " kernel test robot
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=202409131302.oGABipcM-lkp@intel.com \
--to=lkp@intel.com \
--cc=jdelvare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mika.westerberg@linux.intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oocheret@cisco.com \
--cc=wim@linux-watchdog.org \
--cc=wsa@kernel.org \
--cc=xe-linux-external@cisco.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