From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796230043; b=EPvIhJDJ9nFYXDrdF6U3exMrOgR9Qc0Mf1CAhy3WSNWe3S9FKBQZSxlj4u6XowEwUAzU bT3QedeIA4kCfcZKmYWTtMOf/2sOMuY5vNZYboWpuSIl4FwM2sJ7oeUDjef3uajSHn62m Ggw3i0f44rsAmexXxmIZIe/rQzMhmZSl6VojOy1NF4BQua59G7mUUrqPHV1LD1BMmLrea r/W7ZCIo2sMIFiliodh0qMeaInhIFGyNVciDbCxiBhN5JulWtfeVlXqKzM5W25tSGorNh IZoEntxwJX2SFBNQzX1dHWegWDJ6SVGGNO6k/7xoIQzG/RgMwbl08E2a+EsFOFiJonA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796230043; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=SdI29mibQQGk2IL2KStNejzxgeXcMxLi5hVKCQNwG3c=; b=ImrzShZwukAADriBfED1QVE0No4RzsuWYkfzfWqumQAFglhNIRFweHVhz8MdPL6VXaI9 H09X6Rk6j7cAU0HoOE5Azw/8eLT5I/CvSw7o3pGH4ixW2f2yxJnoYVFFfQ8ZoKTfAW8zt 4W/+DEIneGmPHTaWS910gObFBbRdGLHH7xACZg7LwjNTOQN5GpazmvLSXaGz61iI4wYUf 3+4LBXf0cVBMOWtMpTXhHH4Hprzy70vxW1yPMlMrbdDj0jSSX2SZ0tBwC5yKe5dTJ/jvV HtQbmK+q4VsDKimd72kGSJkwuzCviNtmTdF2A5OrmFg4e2dqgQmim1aBPSuuoQtzlMQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="S/0k/8FE"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDED6606A325 for ; Wed, 2 Dec 2026 16:47:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=S/0k/8FE Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B1D51F0089F; Wed, 2 Dec 2026 16:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796230042; bh=SdI29mibQQGk2IL2KStNejzxgeXcMxLi5hVKCQNwG3c=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=S/0k/8FEGmBvPorCG78AdxpS1YE4sS4HS0XPu7E5bZcwl/cZYyJ9o3MeecGDZ/0Gq j7hPXHneWsjqEJa7OHxIC2pMZMMToNIK+Sby6hOgR79pnhIxLtzduvNtRKh8ybSeyj qoFxtemPo5LZBRK9Z32wfh+lQzp+91bx2XiXaB61vQMscUeAbsRz6zvXo1TSZfPQtv NnaceT1G3k63AxlC1kgNzEtVUDDd2BeAgOCxaOMlLnqx1owPZo4ge1I0iUwrpGjk2j D/ZbhMThXy42+cae+07uzcNrYcDgz6TfRyz7KGKx2eCA0uf9v1uhYOH+22GsR0qkKl d873jK2G+1ZvQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v9 15/16] riscv: dts: starfive: jh7110: Update DT for display subsystem Reply-To: sashiko-reviews@lists.linux.dev To: "Michal Wilczynski" Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261202-jh7110-clean-send-v9-15-6e546abf0ee8@samsung.com> References: <20261202-jh7110-clean-send-v9-0-6e546abf0ee8@samsung.com> <20261202-jh7110-clean-send-v9-15-6e546abf0ee8@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 16:47:21 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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; > }; > =20 > + reserved-memory { > + #address-cells =3D <2>; > + #size-cells =3D <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 =3D "shared-dma-pool"; > + reusable; > + size =3D <0x0 0x20000000>; > + alignment =3D <0x0 0x1000>; > + alloc-ranges =3D <0x0 0x70000000 0x0 0x20000000>; > + linux,cma-default; > + }; > + }; [Severity: High] Does constraining linux,cma to alloc-ranges =3D <0x0 0x70000000 0x0 0x20000= 000> 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 placeme= nt 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/d= ts/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 =3D <0>; > }; > =20 > + xin24m: xin24m-clock { > + compatible =3D "fixed-clock"; > + #clock-cells =3D <0>; > + clock-frequency =3D <24000000>; > + clock-output-names =3D "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 =3D <&osc> directly. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-jh7110-cle= an-send-v9-0-6e546abf0ee8@samsung.com?part=3D15