Skip to content

[PW_SID:1129940] irqchip/riscv-imsic: Use GENMASK for base address masks#2311

Open
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1129940
Open

[PW_SID:1129940] irqchip/riscv-imsic: Use GENMASK for base address masks#2311
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1129940

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1129940 applied to workflow__riscv__fixes

Name: irqchip/riscv-imsic: Use GENMASK for base address masks
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1129940
Version: 1

Linux RISC-V bot and others added 2 commits July 15, 2026 17:25
The IMSIC DT binding allows riscv,guest-index-bits up to 7 and
riscv,hart-index-bits up to 15. On RV32, guest-index-bits=7 and
hart-index-bits=13, together with the 12-bit IMSIC page offset, is a
binding-valid layout that consumes a 32-bit low-address mask.

The parser accepts this equality case because it rejects only values
larger than the remaining bit budget. The base address canonicalization
then builds the low-address mask with BIT(sum) - 1. When sum is 32 on
RV32, that expression shifts an unsigned long by its full width.

Keep the legal equality layout and express the mask with GENMASK(sum - 1,
0) instead. The existing parser bounds guarantee that sum - 1 is below
BITS_PER_LONG at both mask sites.

Fixes: 21a8f8a ("irqchip: Add RISC-V incoming MSI controller early driver")
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 141.92 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1455.70 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1716.55 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.35 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.80 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.84 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 89.49 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
kdoc
Desc: Detects for kdoc errors
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
module-param
Desc: Detect module_param changes
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-imsic: Use GENMASK for base address masks"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.32 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch from 8ca72ef to 60e0882 Compare July 19, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants