From: Paul Cercueil <paul@crapouillou.net>
To: "H. Nikolaus Schaller" <hns@goldelico.com>,
"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
"Paul Burton" <paulburton@kernel.org>,
"周琰杰, Pengpeng Hou" <pengpeng@iscas.ac.cn>,
"Takashi Iwai" <tiwai@suse.de>,
"Janusz Krzysztofik" <jmkrzyszt@gmail.com>,
"David Heidelberg" <david@ixit.cz>,
"Paul Boddie" <paul@boddie.org.uk>,
"Maciej W . Rozycki" <macro@orcam.me.uk>,
"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
"Danilo Krummrich" <dakr@kernel.org>,
"Vinod Koul" <vkoul@kernel.org>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
letux-kernel@openphoenux.org
Subject: Re: [PATCH v3 8/8] MIPS: Ingenic: Expand Kconfig by MACH_JZ4730
Date: Mon, 30 Nov 2026 18:05:18 +0100 [thread overview]
Message-ID: <a8706b933ed64eee14bcceaccda292a7e2ddf0a2.camel@crapouillou.net> (raw)
In-Reply-To: <fb77b09fe64aab86a81aa139e3dfe30d955cc07f.1795886445.git.hns@goldelico.com>
Hi Nikolaus,
Le samedi 28 novembre 2026 à 18:20 +0100, H. Nikolaus Schaller a écrit :
> The jz4730 is a single core SoC by Ingenic with peripherals
> like LCD controller, NAND controller, Timers, PWM, GPIOs
>
> This SoC is used in the Skytone Alpha 400 Netbook:
> https://en.wikipedia.org/wiki/Skytone_Alpha-400
>
> Without this flag, the ingenic-pinctrl driver can not be
> configured to support this SoC.
>
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Good job.
> ---
>
> Notes:
> (More) support for jz4730 making use of the new MACH_JZ4730 config
> flag is in the upstreaming queue. The chip is used in the Alpha 400
> netbooks.
>
> Changes in v3:
> - Assign CPU_XBURST2 to the existing XBurst II CPU probe case.
> - Hardware readings of Config1.C2 on JZ4780, X1600, X2000 and X2600
> all returned zero. Without reliable documentation connecting this bit
> to MXU variants, no new MXU capability assumptions are introduced.
>
> Changes in v2:
> - removed the PRID_IMP_XBURST2_R2 definition and hints for an x2100 as
> there is no public reference
> - merged into single commit changing the PRID definitions and code
> - reviewed details and rewrote commit message
>
> Open Issue:
> Olivier Louvignes <olivier@mgcrea.io> pointed out that he has
> simply reused the definition of the X1830 for the X1600. This
> sets c->writecombine differently (_CACHE_CACHABLE_WA) from
> _CACHE_UNCACHED_ACCELERATED as we do here.
> Both settings appear to work but it needs expert comment which
> is the right/better one.
I guess you'll have to do benchmarks. I think _CACHE_CACHABLE_WA should always
be better.
Cheers,
-Paul
> Review: Olivier Louvignes discussed the PRID microarchitecture
> interpretation and the alternative X1600 writecombine setting.
> Paul Cercueil requested checking the X1600 MXU capabilities and
> noted the missing CPU DT binding. Hunter Laux suggested reading
> CP0 Config1.C2; the hardware measurements and their limitations
> are documented above.
>
> Additional v3 review against v7.4-rc4:
> - Preserve idle, non-coherent DMA and TLB handling for CPU_XBURST2.
> - Keep the XBurst I secondary cache geometry workarounds unchanged.
>
> arch/mips/ingenic/Kconfig | 5 +++++
> 1 file changed, 5 insertions(+)
>
> 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 @@
> config MACH_INGENIC_GENERIC
> bool
> select MACH_INGENIC
> + select MACH_JZ4730
> select MACH_JZ4740
> select MACH_JZ4725B
> select MACH_JZ4750
> @@ -56,6 +57,10 @@ config MACH_JZ4725B
> bool
> select SYS_HAS_CPU_MIPS32_R1
>
> +config MACH_JZ4730
> + bool
> + select SYS_HAS_CPU_MIPS32_R1
> +
> config MACH_JZ4740
> bool
> select SYS_HAS_CPU_MIPS32_R1
next prev parent reply other threads:[~2026-11-30 17:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 17:20 [PATCH v3 0/8] MIPS: Ingenic: Add XBurst / XBurst II infrastructure and improve overall Ingenic SoC support H. Nikolaus Schaller
2026-11-28 17:20 ` [PATCH v3 1/8] MIPS: Kconfig: Allow user selection of BUILTIN_DTB with description H. Nikolaus Schaller
2026-11-28 17:20 ` [PATCH v3 2/8] MIPS: Ingenic: Configure CONFIG_BUILTIN_DTB=y for Ingenic based devices H. Nikolaus Schaller
2026-11-30 16:47 ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 3/8] MIPS: Ingenic: Do not force BUILTIN_DTB in Kconfig H. Nikolaus Schaller
2026-11-30 16:48 ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 4/8] MIPS: Ingenic: Add a new CPU_XBURST2 type H. Nikolaus Schaller
2026-11-30 16:52 ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 5/8] MIPS: Ingenic: Update Ingenic XBurst implementation IDs H. Nikolaus Schaller
2026-11-30 16:58 ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 6/8] MIPS: generic: Add MACH_INGENIC type and compatible for X1600 and X2600 H. Nikolaus Schaller
2026-11-30 16:58 ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 7/8] MIPS: Ingenic: Expand Kconfig for X1600, X2000, and X2600 SoCs H. Nikolaus Schaller
2026-11-30 17:01 ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 8/8] MIPS: Ingenic: Expand Kconfig by MACH_JZ4730 H. Nikolaus Schaller
2026-11-30 17:05 ` Paul Cercueil [this message]
2026-11-30 19:56 ` Hunter Laux
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=a8706b933ed64eee14bcceaccda292a7e2ddf0a2.camel@crapouillou.net \
--to=paul@crapouillou.net \
--cc=dakr@kernel.org \
--cc=david@ixit.cz \
--cc=hns@goldelico.com \
--cc=jiaxun.yang@flygoat.com \
--cc=jmkrzyszt@gmail.com \
--cc=letux-kernel@openphoenux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=macro@orcam.me.uk \
--cc=paul@boddie.org.uk \
--cc=paulburton@kernel.org \
--cc=pengpeng@iscas.ac.cn \
--cc=tiwai@suse.de \
--cc=tsbogend@alpha.franken.de \
--cc=vkoul@kernel.org \
/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
all inboxes | Powered by JetHome®