From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [fustini:b4/ssqosid-cbqri-rqsc 15/19] arch/riscv/kernel/qos/qos_resctrl.c:40:2: error: implicit declaration of function 'iowrite64'; did you mean 'iowrite32'?
Date: Sat, 11 Apr 2026 01:41:09 +0800 [thread overview]
Message-ID: <202604110127.A9TP1tkS-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "only suspicious fbc files changed"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Drew Fustini <fustini@kernel.org>
CC: Adrien Ricciardi <aricciardi@baylibre.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/fustini/linux.git b4/ssqosid-cbqri-rqsc
head: 11e30be7cbd915592685a3e18bcf53f4ff0c94f7
commit: bfd6a2f1cb6b4fd665530e33c5452f95040e86e6 [15/19] RISC-V: QoS: add to build when CONFIG_RISCV_ISA_SSQOSID set
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: riscv-randconfig-001-20260410 (https://download.01.org/0day-ci/archive/20260411/202604110127.A9TP1tkS-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260411/202604110127.A9TP1tkS-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/r/202604110127.A9TP1tkS-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/riscv/kernel/qos/qos_resctrl.c: In function 'cbqri_set_cbm':
>> arch/riscv/kernel/qos/qos_resctrl.c:40:2: error: implicit declaration of function 'iowrite64'; did you mean 'iowrite32'? [-Werror=implicit-function-declaration]
iowrite64(cbm, ctrl->base + reg_offset);
^~~~~~~~~
iowrite32
arch/riscv/kernel/qos/qos_resctrl.c: In function 'cbqri_set_rbwb':
>> arch/riscv/kernel/qos/qos_resctrl.c:50:8: error: implicit declaration of function 'ioread64'; did you mean 'ioread32'? [-Werror=implicit-function-declaration]
reg = ioread64(ctrl->base + reg_offset);
^~~~~~~~
ioread32
In file included from <command-line>:
arch/riscv/kernel/qos/qos_resctrl.c: In function 'cbqri_wait_busy_flag':
include/linux/bits.h:48:20: warning: left shift count >= width of type [-Wshift-count-overflow]
(type_max(t) << (l) & \
^~
include/linux/compiler_types.h:686:9: note: in definition of macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
include/linux/compiler_types.h:706:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:79:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(__bf_cast_unsigned(mask, mask) > \
^~~~~~~~~~~~~~~~
include/linux/bitfield.h:79:19: note: in expansion of macro '__bf_cast_unsigned'
BUILD_BUG_ON_MSG(__bf_cast_unsigned(mask, mask) > \
^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:177:3: note: in expansion of macro '__BF_FIELD_CHECK_REG'
__BF_FIELD_CHECK_REG(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:75:10: note: in expansion of macro 'FIELD_GET'
busy = FIELD_GET(CBQRI_CONTROL_REGISTERS_BUSY_MASK, reg);
^~~~~~~~~
include/linux/bits.h:51:24: note: in expansion of macro 'GENMASK_TYPE'
#define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
^~~~~~~~~~~~
arch/riscv/kernel/qos/internal.h:41:46: note: in expansion of macro 'GENMASK'
#define CBQRI_CONTROL_REGISTERS_BUSY_MASK GENMASK(39, 39)
^~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:75:20: note: in expansion of macro 'CBQRI_CONTROL_REGISTERS_BUSY_MASK'
busy = FIELD_GET(CBQRI_CONTROL_REGISTERS_BUSY_MASK, reg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bits.h:49:20: warning: right shift count >= width of type [-Wshift-count-overflow]
type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
^~
include/linux/compiler_types.h:686:9: note: in definition of macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
include/linux/compiler_types.h:706:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:79:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(__bf_cast_unsigned(mask, mask) > \
^~~~~~~~~~~~~~~~
include/linux/bitfield.h:79:19: note: in expansion of macro '__bf_cast_unsigned'
BUILD_BUG_ON_MSG(__bf_cast_unsigned(mask, mask) > \
^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:177:3: note: in expansion of macro '__BF_FIELD_CHECK_REG'
__BF_FIELD_CHECK_REG(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:75:10: note: in expansion of macro 'FIELD_GET'
busy = FIELD_GET(CBQRI_CONTROL_REGISTERS_BUSY_MASK, reg);
^~~~~~~~~
include/linux/bits.h:51:24: note: in expansion of macro 'GENMASK_TYPE'
#define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
^~~~~~~~~~~~
arch/riscv/kernel/qos/internal.h:41:46: note: in expansion of macro 'GENMASK'
#define CBQRI_CONTROL_REGISTERS_BUSY_MASK GENMASK(39, 39)
^~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:75:20: note: in expansion of macro 'CBQRI_CONTROL_REGISTERS_BUSY_MASK'
busy = FIELD_GET(CBQRI_CONTROL_REGISTERS_BUSY_MASK, reg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bits.h:48:20: warning: left shift count >= width of type [-Wshift-count-overflow]
(type_max(t) << (l) & \
^~
include/linux/compiler_types.h:686:9: note: in definition of macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
include/linux/compiler_types.h:706:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:67:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \
^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:3: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
__BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:3: note: in expansion of macro '__FIELD_GET'
__FIELD_GET(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:75:10: note: in expansion of macro 'FIELD_GET'
busy = FIELD_GET(CBQRI_CONTROL_REGISTERS_BUSY_MASK, reg);
^~~~~~~~~
include/linux/bits.h:51:24: note: in expansion of macro 'GENMASK_TYPE'
#define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
^~~~~~~~~~~~
arch/riscv/kernel/qos/internal.h:41:46: note: in expansion of macro 'GENMASK'
#define CBQRI_CONTROL_REGISTERS_BUSY_MASK GENMASK(39, 39)
--
__BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:3: note: in expansion of macro '__FIELD_GET'
__FIELD_GET(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:19: note: in expansion of macro 'FIELD_GET'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~
In file included from arch/riscv/kernel/qos/internal.h:5,
from arch/riscv/kernel/qos/qos_resctrl.c:15:
include/linux/bits.h:48:20: warning: left shift count >= width of type [-Wshift-count-overflow]
(type_max(t) << (l) & \
^~
include/linux/bitfield.h:98:28: note: in definition of macro '__FIELD_GET'
(typeof(mask))(((reg) & (mask)) >> __bf_shf(mask)); \
^~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:19: note: in expansion of macro 'FIELD_GET'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~
include/linux/bits.h:51:24: note: in expansion of macro 'GENMASK_TYPE'
#define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
^~~~~~~~~~~~
arch/riscv/kernel/qos/internal.h:33:45: note: in expansion of macro 'GENMASK'
#define CBQRI_BC_CAPABILITIES_MRBWB_MASK GENMASK(47, 32)
^~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:29: note: in expansion of macro 'CBQRI_BC_CAPABILITIES_MRBWB_MASK'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bits.h:49:20: warning: right shift count >= width of type [-Wshift-count-overflow]
type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
^~
include/linux/bitfield.h:98:28: note: in definition of macro '__FIELD_GET'
(typeof(mask))(((reg) & (mask)) >> __bf_shf(mask)); \
^~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:19: note: in expansion of macro 'FIELD_GET'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~
include/linux/bits.h:51:24: note: in expansion of macro 'GENMASK_TYPE'
#define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
^~~~~~~~~~~~
arch/riscv/kernel/qos/internal.h:33:45: note: in expansion of macro 'GENMASK'
#define CBQRI_BC_CAPABILITIES_MRBWB_MASK GENMASK(47, 32)
^~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:29: note: in expansion of macro 'CBQRI_BC_CAPABILITIES_MRBWB_MASK'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bits.h:48:20: warning: left shift count >= width of type [-Wshift-count-overflow]
(type_max(t) << (l) & \
^~
include/linux/bitfield.h:47:38: note: in definition of macro '__bf_shf'
#define __bf_shf(x) (__builtin_ffsll(x) - 1)
^
include/linux/bitfield.h:178:3: note: in expansion of macro '__FIELD_GET'
__FIELD_GET(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:19: note: in expansion of macro 'FIELD_GET'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~
include/linux/bits.h:51:24: note: in expansion of macro 'GENMASK_TYPE'
#define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
^~~~~~~~~~~~
arch/riscv/kernel/qos/internal.h:33:45: note: in expansion of macro 'GENMASK'
#define CBQRI_BC_CAPABILITIES_MRBWB_MASK GENMASK(47, 32)
^~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:29: note: in expansion of macro 'CBQRI_BC_CAPABILITIES_MRBWB_MASK'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bits.h:49:20: warning: right shift count >= width of type [-Wshift-count-overflow]
type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
^~
include/linux/bitfield.h:47:38: note: in definition of macro '__bf_shf'
#define __bf_shf(x) (__builtin_ffsll(x) - 1)
^
include/linux/bitfield.h:178:3: note: in expansion of macro '__FIELD_GET'
__FIELD_GET(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:19: note: in expansion of macro 'FIELD_GET'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~
include/linux/bits.h:51:24: note: in expansion of macro 'GENMASK_TYPE'
#define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
^~~~~~~~~~~~
arch/riscv/kernel/qos/internal.h:33:45: note: in expansion of macro 'GENMASK'
#define CBQRI_BC_CAPABILITIES_MRBWB_MASK GENMASK(47, 32)
^~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:29: note: in expansion of macro 'CBQRI_BC_CAPABILITIES_MRBWB_MASK'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:98:35: warning: right shift count is negative [-Wshift-count-negative]
(typeof(mask))(((reg) & (mask)) >> __bf_shf(mask)); \
^~
include/linux/bitfield.h:178:3: note: in expansion of macro '__FIELD_GET'
__FIELD_GET(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:385:19: note: in expansion of macro 'FIELD_GET'
ctrl->bc.mrbwb = FIELD_GET(CBQRI_BC_CAPABILITIES_MRBWB_MASK, reg);
^~~~~~~~~
In file included from <command-line>:
In function 'cbqri_wait_busy_flag.part.4',
inlined from 'cbqri_wait_busy_flag' at arch/riscv/kernel/qos/qos_resctrl.c:67:12:
>> include/linux/compiler_types.h:706:38: error: call to '__compiletime_assert_222' declared with attribute error: FIELD_GET: mask is zero
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:687:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler_types.h:706:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:69:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:3: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
__BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:3: note: in expansion of macro '__FIELD_GET'
__FIELD_GET(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:75:10: note: in expansion of macro 'FIELD_GET'
busy = FIELD_GET(CBQRI_CONTROL_REGISTERS_BUSY_MASK, reg);
^~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c: In function 'cbqri_cc_alloc_op':
include/linux/compiler_types.h:706:38: error: call to '__compiletime_assert_247' declared with attribute error: FIELD_GET: mask is zero
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:687:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler_types.h:706:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:69:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:3: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
__BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:3: note: in expansion of macro '__FIELD_GET'
__FIELD_GET(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:125:11: note: in expansion of macro 'FIELD_GET'
status = FIELD_GET(CBQRI_CONTROL_REGISTERS_STATUS_MASK, reg);
^~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c: In function 'cbqri_bc_alloc_op':
include/linux/compiler_types.h:706:38: error: call to '__compiletime_assert_262' declared with attribute error: FIELD_GET: mask is zero
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:687:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler_types.h:706:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:69:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:3: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
__BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:3: note: in expansion of macro '__FIELD_GET'
__FIELD_GET(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:198:11: note: in expansion of macro 'FIELD_GET'
status = FIELD_GET(CBQRI_CONTROL_REGISTERS_STATUS_MASK, reg);
^~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c: In function 'cbqri_probe_feature.isra.7.constprop':
include/linux/compiler_types.h:706:38: error: call to '__compiletime_assert_272' declared with attribute error: FIELD_GET: mask is zero
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:687:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler_types.h:706:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:69:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:3: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
__BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:3: note: in expansion of macro '__FIELD_GET'
__FIELD_GET(_mask, _reg, "FIELD_GET: "); \
^~~~~~~~~~~
arch/riscv/kernel/qos/qos_resctrl.c:269:12: note: in expansion of macro 'FIELD_GET'
*status = FIELD_GET(CBQRI_CONTROL_REGISTERS_STATUS_MASK, reg);
^~~~~~~~~
In function 'cbqri_probe_bc',
inlined from 'cbqri_probe_controller' at arch/riscv/kernel/qos/qos_resctrl.c:476:9,
vim +40 arch/riscv/kernel/qos/qos_resctrl.c
f059ca8e1b4643 Drew Fustini 2026-04-06 33
f059ca8e1b4643 Drew Fustini 2026-04-06 34 /* Set capacity block mask (cc_block_mask) */
f059ca8e1b4643 Drew Fustini 2026-04-06 35 static void cbqri_set_cbm(struct cbqri_controller *ctrl, u64 cbm)
f059ca8e1b4643 Drew Fustini 2026-04-06 36 {
f059ca8e1b4643 Drew Fustini 2026-04-06 37 int reg_offset;
f059ca8e1b4643 Drew Fustini 2026-04-06 38
f059ca8e1b4643 Drew Fustini 2026-04-06 39 reg_offset = CBQRI_CC_BLOCK_MASK_OFF;
f059ca8e1b4643 Drew Fustini 2026-04-06 @40 iowrite64(cbm, ctrl->base + reg_offset);
f059ca8e1b4643 Drew Fustini 2026-04-06 41 }
f059ca8e1b4643 Drew Fustini 2026-04-06 42
f059ca8e1b4643 Drew Fustini 2026-04-06 43 /* Set the Rbwb (reserved bandwidth blocks) field in bc_bw_alloc */
f059ca8e1b4643 Drew Fustini 2026-04-06 44 static void cbqri_set_rbwb(struct cbqri_controller *ctrl, u64 rbwb)
f059ca8e1b4643 Drew Fustini 2026-04-06 45 {
f059ca8e1b4643 Drew Fustini 2026-04-06 46 int reg_offset;
f059ca8e1b4643 Drew Fustini 2026-04-06 47 u64 reg;
f059ca8e1b4643 Drew Fustini 2026-04-06 48
f059ca8e1b4643 Drew Fustini 2026-04-06 49 reg_offset = CBQRI_BC_BW_ALLOC_OFF;
f059ca8e1b4643 Drew Fustini 2026-04-06 @50 reg = ioread64(ctrl->base + reg_offset);
f059ca8e1b4643 Drew Fustini 2026-04-06 51 reg &= ~CBQRI_CONTROL_REGISTERS_RBWB_MASK;
f059ca8e1b4643 Drew Fustini 2026-04-06 52 reg |= FIELD_PREP(CBQRI_CONTROL_REGISTERS_RBWB_MASK, rbwb);
f059ca8e1b4643 Drew Fustini 2026-04-06 53 iowrite64(reg, ctrl->base + reg_offset);
f059ca8e1b4643 Drew Fustini 2026-04-06 54 }
f059ca8e1b4643 Drew Fustini 2026-04-06 55
:::::: The code at line 40 was first introduced by commit
:::::: f059ca8e1b46435bda65e41248ff09ca7330c7f1 RISC-V: QoS: add CBQRI hardware interface
:::::: TO: Drew Fustini <fustini@kernel.org>
:::::: CC: Drew Fustini <fustini@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-10 17:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202604110127.A9TP1tkS-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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 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.