From: sashiko-bot@kernel.org
To: "Jia Wang" <wangjia@ultrarisc.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org,
vkoul@kernel.org, Frank.Li@kernel.org, dmaengine@vger.kernel.org,
robh@kernel.org
Subject: Re: [PATCH v2 08/10] riscv: dts: ultrarisc: Add initial device tree for UltraRISC DP1000
Date: Mon, 07 Sep 2026 10:13:03 +0000 [thread overview]
Message-ID: <20260907101304.368E71F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260907-ultrarisc-dts-v2-8-5eb4c97477c5@ultrarisc.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The DMAC `reg` size is too small for the configured number of DMA channels, causing out-of-bounds memory accesses.
--
commit ef5ee935e58a066d2f6001b254b02cd3ebe039d4
Author: Jia Wang <wangjia@ultrarisc.com>
riscv: dts: ultrarisc: Add initial device tree for UltraRISC DP1000
Add the base device tree for the UltraRISC DP1000 SoC. It describes
eight CP100 CPU cores, their cache topology, and essential peripherals
including CLINT, PLIC, the clock controller, pinctrl, GPIO, UART, SPI,
I2C, PCIe, GMAC, and the DMA controller.
> diff --git a/arch/riscv/boot/dts/ultrarisc/dp1000.dtsi b/arch/riscv/boot/dts/ultrarisc/dp1000.dtsi
> new file mode 100644
> index 0000000000000..5c51fddaeb2bb
> --- /dev/null
> +++ b/arch/riscv/boot/dts/ultrarisc/dp1000.dtsi
[ ... ]
> + dmac: dma-controller@39000000 {
> + compatible = "ultrarisc,dp1000-axi-dma", "snps,axi-dma-1.01a";
> + reg = <0x0 0x39000000 0x0 0x400>;
> + clocks = <&clkc DP1000_CLK_SYSPLL_DIV2>,
> + <&clkc DP1000_CLK_SUBSYS>;
> + clock-names = "core-clk", "cfgr-clk";
> + #dma-cells = <1>;
> + dma-channels = <8>;
[Severity: High]
Does this reg size limit of 0x400 provide enough space for 8 DMA channels?
The Synopsys DW AXI DMA IP driver (dw-axi-dmac-platform.c) maps channel
registers starting at chip->regs + 0x100 + i * 0x100. For 8 channels, the
maximum base offset is 0x800 (channel 7).
In axi_dma_hw_init(), the driver iterates over these channels and writes to
their registers (e.g., CH_INTSTATUS_ENA at offset 0x080, hitting offset
0x880). Since the reg property defines a window of only 0x400 bytes,
accesses for channels 3 through 7 will fall completely outside the declared
memory region, leading to out-of-bounds memory accesses.
> + interrupt-parent = <&plic>;
> + interrupts = <152>, <153>, <154>, <155>,
> + <156>, <157>, <158>, <159>;
> + snps,dma-masters = <1>;
> + snps,data-width = <4>;
> + snps,block-size = <512 512 512 512 512 512 512 512>;
> + snps,priority = <0 1 2 3 4 5 6 7>;
> + snps,axi-max-burst-len = <256>;
> + };
> + };
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260907-ultrarisc-dts-v2-0-5eb4c97477c5@ultrarisc.com?part=8
next prev parent reply other threads:[~2026-09-07 10:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-07 9:54 [PATCH v2 00/10] riscv: Add device tree support for UltraRISC DP1000 Jia Wang via B4 Relay
2026-09-07 9:54 ` [PATCH v2 01/10] dt-bindings: vendor-prefixes: Add shenrongda Jia Wang via B4 Relay
2026-09-07 9:54 ` [PATCH v2 02/10] dt-bindings: riscv: cpus: Add UltraRISC CP100 compatible Jia Wang via B4 Relay
2026-09-07 9:54 ` [PATCH v2 03/10] dt-bindings: riscv: Add UltraRISC DP1000 board compatibles Jia Wang via B4 Relay
2026-09-07 9:54 ` [PATCH v2 04/10] dt-bindings: timer: Add UltraRISC DP1000 CLINT Jia Wang via B4 Relay
2026-09-07 9:54 ` [PATCH v2 05/10] spi: dt-bindings: snps,dw-apb-ssi: Add compatible for UltraRISC DP1000 SoC Jia Wang via B4 Relay
2026-09-07 17:55 ` Conor Dooley
2026-09-07 9:54 ` [PATCH v2 06/10] dt-bindings: i2c: dw: " Jia Wang via B4 Relay
2026-09-07 17:54 ` Conor Dooley
2026-09-08 9:48 ` Mika Westerberg
2026-09-09 16:54 ` Andi Shyti
2026-09-07 9:54 ` [PATCH v2 07/10] dt-bindings: dma: snps,dw-axi-dmac: Add UltraRISC DP1000 compatible Jia Wang via B4 Relay
2026-09-07 17:55 ` Conor Dooley
2026-09-07 9:54 ` [PATCH v2 08/10] riscv: dts: ultrarisc: Add initial device tree for UltraRISC DP1000 Jia Wang via B4 Relay
2026-09-07 10:13 ` sashiko-bot [this message]
2026-09-07 9:54 ` [PATCH v2 09/10] riscv: dts: ultrarisc: Add Shenzhen Rongda M0 board device tree Jia Wang via B4 Relay
2026-09-07 9:54 ` [PATCH v2 10/10] riscv: dts: ultrarisc: Add Milk-V Titan " Jia Wang via B4 Relay
2026-09-08 15:34 ` (subset) [PATCH v2 00/10] riscv: Add device tree support for UltraRISC DP1000 Mark Brown
2026-09-09 12:41 ` Vinod Koul
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=20260907101304.368E71F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@kernel.org \
--cc=wangjia@ultrarisc.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