From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.119.170.32 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796058324; b=gzZJ9OoMZTb7MsXYWTgISvogQrHX+Jz9d6m2pLGuw2o9hlWmPh1cohNdChdJiHeCrBzM oms+V89yA7/iKy4dfiyYnGrt0D0Y3f+acT3DAocUNVEzJzO58qNibsRmeU3ahEk+Y0Cgm 5jZyQFKfbUVc8rwyQgIZ37Z/3jhS07t1+d/usoC9HT1pWNBpclY+1Gwd8B4CvlPRFA8j/ 6UbqgGxfOVs+C2pCN4YAESlZ3BxYX9cVIZtnlQ6Cu04X0RP6b6rfN+F+Q1zLxBHM8ZUQo FVsBiomNurL4BDfzr2Dv6YW1Mu68NxXGq2h6LLrRvsEXFeZYy0hVViw+dCYtWOHZuwQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796058324; h=DMARC-Filter:Message-ID:Subject:From:To:Cc:Date:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=bWBeIzWk8QTWmSWk1YtyDOaMRZM3ZIZOF7KkrNUoeHg=; b=Hv7PzkuaZUvybweZMguj3nLLjpmbZOfmlqWX+b6Q+l98GDlcKiaAQB2X0H2Tafz4M1u2 /DaVj9cmdcJFttKbR+BnBI0nRnpnxOKdoSV8jbxaWAdd9NkRM308lbzYBKyhSxbUQTVi/ M4ubbe/AlaqGOQR65MEQ6+q8WylgMZgPOIloRa8bSfRdrJSCJi5mp1kgBikZnQESj6PF3 0wTMRa5B3gnsSnBOKz0wyRhR1HY9aYSz3w/wV/+cFfrocPVVx/asM5ZpYgOnjblro9Ygb Qv4pxi2vYKdM8OqSaD0r6KuMJoZkZY2zxvZ8sjl483uYkQVpHZ1TyCswOXa8y0lbO9A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=crapouillou.net; spf=pass smtp.mailfrom=crapouillou.net; arc=none smtp.remote-ip=185.119.170.32 Received: from aposti.net (aposti.net [185.119.170.32]) (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 E88F7606A31C; Mon, 30 Nov 2026 17:05:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E88F7606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=crapouillou.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=crapouillou.net Message-ID: Subject: Re: [PATCH v3 8/8] MIPS: Ingenic: Expand Kconfig by MACH_JZ4730 From: Paul Cercueil To: "H. Nikolaus Schaller" , Thomas Bogendoerfer , Paul Burton , =?UTF-8?Q?=E5=91=A8=E7=90=B0=E6=9D=B0=2C?= Pengpeng Hou , Takashi Iwai , Janusz Krzysztofik , David Heidelberg , Paul Boddie , "Maciej W . Rozycki" , Jiaxun Yang , Danilo Krummrich , Vinod Koul Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org Date: Mon, 30 Nov 2026 18:05:18 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Hi Nikolaus, Le samedi 28 novembre 2026 =C3=A0 18:20 +0100, H. Nikolaus Schaller a =C3= =A9crit=C2=A0: > The jz4730 is a single core SoC by Ingenic with peripherals > like LCD controller, NAND controller, Timers, PWM, GPIOs >=20 > This SoC is used in the Skytone Alpha 400 Netbook: > https://en.wikipedia.org/wiki/Skytone_Alpha-400 >=20 > Without this flag, the ingenic-pinctrl driver can not be > configured to support this SoC. >=20 > Signed-off-by: H. Nikolaus Schaller Reviewed-by: Paul Cercueil Good job. > --- >=20 > Notes: > =C2=A0=C2=A0=C2=A0 (More) support for jz4730 making use of the new MACH_J= Z4730 config > =C2=A0=C2=A0=C2=A0 flag is in the upstreaming queue. The chip is used in = the Alpha 400 > =C2=A0=C2=A0=C2=A0 netbooks. > =C2=A0=C2=A0=C2=A0=20 > =C2=A0=C2=A0=C2=A0 Changes in v3: > =C2=A0=C2=A0=C2=A0 - Assign CPU_XBURST2 to the existing XBurst II CPU pro= be case. > =C2=A0=C2=A0=C2=A0 - Hardware readings of Config1.C2 on JZ4780, X1600, X2= 000 and X2600 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 all returned zero. Without reliable docume= ntation connecting this bit > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 to MXU variants, no new MXU capability ass= umptions are introduced. > =C2=A0=C2=A0=C2=A0=20 > =C2=A0=C2=A0=C2=A0 Changes in v2: > =C2=A0=C2=A0=C2=A0 - removed the PRID_IMP_XBURST2_R2 definition and hints= for an x2100 as > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 there is no public reference > =C2=A0=C2=A0=C2=A0 - merged into single commit changing the PRID definiti= ons and code > =C2=A0=C2=A0=C2=A0 - reviewed details and rewrote commit message > =C2=A0=C2=A0=C2=A0=20 > =C2=A0=C2=A0=C2=A0 Open Issue: > =C2=A0=C2=A0=C2=A0 Olivier Louvignes pointed out that= he has > =C2=A0=C2=A0=C2=A0 simply reused the definition of the X1830 for the X160= 0. This > =C2=A0=C2=A0=C2=A0 sets c->writecombine differently (_CACHE_CACHABLE_WA) = from > =C2=A0=C2=A0=C2=A0 _CACHE_UNCACHED_ACCELERATED as we do here. > =C2=A0=C2=A0=C2=A0 Both settings appear to work but it needs expert comme= nt which > =C2=A0=C2=A0=C2=A0 is the right/better one. I guess you'll have to do benchmarks. I think _CACHE_CACHABLE_WA should alw= ays be better. Cheers, -Paul =C2=A0=C2=A0=C2=A0=20 > =C2=A0=C2=A0=C2=A0 Review: Olivier Louvignes discussed the PRID microarch= itecture > =C2=A0=C2=A0=C2=A0 interpretation and the alternative X1600 writecombine = setting. > =C2=A0=C2=A0=C2=A0 Paul Cercueil requested checking the X1600 MXU capabil= ities and > =C2=A0=C2=A0=C2=A0 noted the missing CPU DT binding. Hunter Laux suggeste= d reading > =C2=A0=C2=A0=C2=A0 CP0 Config1.C2; the hardware measurements and their li= mitations > =C2=A0=C2=A0=C2=A0 are documented above. > =C2=A0=C2=A0=C2=A0=20 > =C2=A0=C2=A0=C2=A0 Additional v3 review against v7.4-rc4: > =C2=A0=C2=A0=C2=A0 - Preserve idle, non-coherent DMA and TLB handling for= CPU_XBURST2. > =C2=A0=C2=A0=C2=A0 - Keep the XBurst I secondary cache geometry workaroun= ds unchanged. >=20 > =C2=A0arch/mips/ingenic/Kconfig | 5 +++++ > =C2=A01 file changed, 5 insertions(+) >=20 > diff --git a/arch/mips/ingenic/Kconfig b/arch/mips/ingenic/Kconfig > index ca9d40fe874f8..30e8e37cbbd86 100644 > --- a/arch/mips/ingenic/Kconfig > +++ b/arch/mips/ingenic/Kconfig > @@ -3,6 +3,7 @@ > =C2=A0config MACH_INGENIC_GENERIC > =C2=A0 bool > =C2=A0 select MACH_INGENIC > + select MACH_JZ4730 > =C2=A0 select MACH_JZ4740 > =C2=A0 select MACH_JZ4725B > =C2=A0 select MACH_JZ4750 > @@ -56,6 +57,10 @@ config MACH_JZ4725B > =C2=A0 bool > =C2=A0 select SYS_HAS_CPU_MIPS32_R1 > =C2=A0 > +config MACH_JZ4730 > + bool > + select SYS_HAS_CPU_MIPS32_R1 > + > =C2=A0config MACH_JZ4740 > =C2=A0 bool > =C2=A0 select SYS_HAS_CPU_MIPS32_R1