All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Michal Wilczynski" <m.wilczynski@samsung.com>
Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v9 15/16] riscv: dts: starfive: jh7110: Update DT for display subsystem
Date: Wed, 02 Dec 2026 16:47:21 +0000	[thread overview]
Message-ID: <sashiko-outbox-246251@kernel.org> (raw)
In-Reply-To: <20261202-jh7110-clean-send-v9-15-6e546abf0ee8@samsung.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] riscv: dts: starfive: linux,cma alloc-ranges exceeds RAM on 1GB
  JH7110 boards
- [Low] riscv: dts: starfive: duplicate 24 MHz fixed-clock node xin24m
  in jh7110.dtsi
--

commit 9a9f9a950fa034a2cfc3ceea40250d8ea7116cfb
Author: Michal Wilczynski <m.wilczynski@samsung.com>

riscv: dts: starfive: jh7110: Update DT for display subsystem

This commit adds the JH7110 video output subsystem, DC8200 display
controller, HDMI controller and PHY nodes, and configures a 512 MiB CMA pool
in the common board dtsi.

> diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
> index 64de468f2c317..3eadb5732b011 100644
> --- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
> +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
> @@ -33,6 +33,27 @@ memory@40000000 {
>  		bootph-pre-ram;
>  	};
>  
> +	reserved-memory {
> +		#address-cells = <2>;
> +		#size-cells = <2>;
> +		ranges;
> +
> +		/*
> +		 * The display controller allocates its framebuffers from CMA,
> +		 * and the default pool is too small for them. Keep the pool
> +		 * inside the range the controller can address; it fits in the
> +		 * memory every VisionFive 2 variant has.
> +		 */
> +		linux,cma {
> +			compatible = "shared-dma-pool";
> +			reusable;
> +			size = <0x0 0x20000000>;
> +			alignment = <0x0 0x1000>;
> +			alloc-ranges = <0x0 0x70000000 0x0 0x20000000>;
> +			linux,cma-default;
> +		};
> +	};

[Severity: High]
Does constraining linux,cma to alloc-ranges = <0x0 0x70000000 0x0 0x20000000>
cause __reserved_mem_alloc_size() to fail with -ENOMEM on 1 GiB JH7110
boards?

jh7110-common.dtsi is also included by 1 GiB boards such as Milk-V Mars and
Milk-V Mars CM, where physical RAM at 0x40000000..0x80000000 has only
256 MiB inside 0x70000000..0x90000000.  Even on larger RAM configurations,
matching the alloc-ranges length to the 512 MiB pool size leaves no placement
slack if an initrd or firmware reservation overlaps 0x70000000..0x90000000,
causing the kernel to fall back to the small default CMA pool.  Since
vs_dc_probe() sets DMA_BIT_MASK(32), alloc-ranges can span the entire 32-bit
addressable DRAM window (<0x0 0x40000000 0x0 0xc0000000>).

[ ... ]

> diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi
> index 82ea63f715b0e..4c3ef68c16bb6 100644
> --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi
> +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi
> @@ -352,6 +346,13 @@ tdm_ext: tdm-ext-clock {
>  		#clock-cells = <0>;
>  	};
>  
> +	xin24m: xin24m-clock {
> +		compatible = "fixed-clock";
> +		#clock-cells = <0>;
> +		clock-frequency = <24000000>;
> +		clock-output-names = "xin24m";
> +	};

[Severity: Low]
Does xin24m duplicate the existing osc: oscillator node in jh7110.dtsi?

osc already represents the 24 MHz reference crystal for syscrg, stgcrg,
aoncrg, and pllclk (with its frequency set in jh7110-common.dtsi), and
neither the starfive,jh7110-inno-hdmi-phy binding nor
starfive_hdmi_phy_probe() requires the clock to be named "xin24m", so
hdmi_phy can use clocks = <&osc> directly.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-jh7110-clean-send-v9-0-6e546abf0ee8@samsung.com?part=15

  reply	other threads:[~2026-12-02 16:47 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20261202162810eucas1p23142a6a51bbc7676667bdc7641d47d59@eucas1p2.samsung.com>
2026-12-02 16:27 ` [PATCH v9 00/16] drm: starfive: jh7110: Enable display subsystem Michal Wilczynski
2026-12-02 16:27   ` Michal Wilczynski
2026-12-02 16:27   ` Michal Wilczynski
2026-12-02 16:27   ` [PATCH v9 01/16] dt-bindings: display: bridge: Add starfive,jh7110-inno-hdmi-controller Michal Wilczynski
2026-12-02 16:27     ` Michal Wilczynski
2026-12-02 16:27     ` Michal Wilczynski
2026-12-02 16:34     ` sashiko-bot
2026-12-02 16:28   ` [PATCH v9 02/16] dt-bindings: display: starfive: Add starfive,jh7110-hdmi-subsystem Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 03/16] dt-bindings: soc: starfive: Add starfive,jh7110-vout-syscon Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 04/16] dt-bindings: display: starfive: Add starfive,jh7110-vout-subsystem Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 05/16] drm/bridge: inno-hdmi: Split probe out of bind Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 06/16] drm/bridge: inno-hdmi: Use a regmap for register access Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 07/16] drm/bridge: inno-hdmi: Add .disable platform operation Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:36     ` sashiko-bot
2026-12-02 16:28   ` [PATCH v9 08/16] drm/bridge: inno-hdmi: Add .mode_valid " Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 09/16] drm/bridge: inno-hdmi: Make the PHY configuration table optional Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:39     ` sashiko-bot
2026-12-02 16:28   ` [PATCH v9 10/16] drm/bridge: inno-hdmi: Make the register clock source selectable Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 11/16] drm/bridge: inno-hdmi: Make the supported HDMI version selectable Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 12/16] soc: starfive: Add jh7110-hdmi-subsystem driver Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:43     ` sashiko-bot
2026-12-02 16:28   ` [PATCH v9 13/16] soc: starfive: Add jh7110-vout-subsystem driver Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 14/16] drm/bridge: starfive: Add JH7110 HDMI controller driver Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28   ` [PATCH v9 15/16] riscv: dts: starfive: jh7110: Update DT for display subsystem Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:47     ` sashiko-bot [this message]
2026-12-02 16:28   ` [PATCH v9 16/16] MAINTAINERS: Add StarFive JH7110 display subsystem entry Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski
2026-12-02 16:28     ` Michal Wilczynski

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=sashiko-outbox-246251@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=m.wilczynski@samsung.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@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.