From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>,
QEMU devel <qemu-devel@nongnu.org>
Subject: Re: [PATCH 0/5] hw/mips: Proper multi core support
Date: Mon, 28 Jul 2025 17:52:27 +0200 [thread overview]
Message-ID: <187caaa6-ddc4-4e20-8c51-60bd7f254311@linaro.org> (raw)
In-Reply-To: <632e091b-9af7-4363-8ce6-73cb6bde41b4@app.fastmail.com>
On 15/7/25 21:08, Jiaxun Yang wrote:
>
>
> 在2024年5月6日周一 下午4:31,Jiaxun Yang写道:
>> Hi all,
>>
>> This series implemented propper multiple core support for MIPS
>> CPS systsm.
>
> Ping :-)
>
> This is a really long outstanding series, I just want to get some
> review before respin.
Tagged for review, sorry I missed it...
>
> Thanks
> Jiaxun
>
>>
>> Previously all CPUs are being implemented as a smt thread in a
>> single core. Now it respects topology supplied in QEMU args.
>>
>> To test:
>> Build a latest kernel with 64r6el_defconfig (tested on 6.6,
>> next-20240506).
>>
>> Then run:
>> ```
>> qemu-system-mips64el -M boston -cpu I6500 -kernel ~/linux-next/vmlinux
>> -smp 4,cores=2,threads=2 -append "console=ttyS0,115200" -nographic
>> ```
>> In dmesg of guest kernel:
>> ```
>> [ 0.000000] VP topology {2,2} total 4
>> ...
>> [ 0.085190] smp: Bringing up secondary CPUs ...
>> [ 0.090219] Primary instruction cache 64kB, VIPT, 4-way, linesize 64
>> bytes.
>> [ 0.095461] Primary data cache 64kB, 4-way, PIPT, no aliases,
>> linesize 64 bytes
>> [ 0.096658] CPU1 revision is: 0001b000 (MIPS I6500)
>> [ 0.096718] FPU revision is: 20f30300
>> [ 0.124711] Synchronize counters for CPU 1: done.
>> [ 0.940979] Primary instruction cache 64kB, VIPT, 4-way, linesize 64
>> bytes.
>> [ 0.941041] Primary data cache 64kB, 4-way, PIPT, no aliases,
>> linesize 64 bytes
>> [ 0.941256] CPU2 revision is: 0001b000 (MIPS I6500)
>> [ 0.941289] FPU revision is: 20f30300
>> [ 0.965322] Synchronize counters for CPU 2: done.
>> [ 1.260937] Primary instruction cache 64kB, VIPT, 4-way, linesize 64
>> bytes.
>> [ 1.261001] Primary data cache 64kB, 4-way, PIPT, no aliases,
>> linesize 64 bytes
>> [ 1.261172] CPU3 revision is: 0001b000 (MIPS I6500)
>> [ 1.261209] FPU revision is: 20f30300
>> [ 1.285390] Synchronize counters for CPU 3: done.
>> [ 1.346985] smp: Brought up 1 node, 4 CPUs
>> ```
>>
>> Please review.
>>
>> Thanks
>>
>> To: qemu-devel@nongnu.org
>> Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
>>
>> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
>> ---
>> Jiaxun Yang (5):
>> target/mips: Make globalnumber a CPU property
>> hw/msic/mips_cmgcr: Implement multicore functions
>> hw/msic/mips_cpc: Implement multi core support
>> hw/mips/cps: Implement multi core support
>> hw/mips/boston: Implement multi core support
>>
>> hw/mips/boston.c | 37 +++++++++-
>> hw/mips/cps.c | 66 ++++++++++-------
>> hw/misc/mips_cmgcr.c | 168 +++++++++++++++++++++++++++++++++++--------
>> hw/misc/mips_cpc.c | 97 ++++++++++++++++++-------
>> include/hw/mips/cps.h | 1 +
>> include/hw/misc/mips_cmgcr.h | 87 +++++++++++++++++++---
>> include/hw/misc/mips_cpc.h | 15 +++-
>> target/mips/cpu.c | 16 ++++-
>> target/mips/cpu.h | 10 ++-
>> target/mips/sysemu/machine.c | 5 +-
>> 10 files changed, 403 insertions(+), 99 deletions(-)
>> ---
>> base-commit: 248f6f62df073a3b4158fd0093863ab885feabb5
>> change-id: 20240506-mips-smp-9af9e71ad8c2
>>
>> Best regards,
>> --
>> Jiaxun Yang <jiaxun.yang@flygoat.com>
>
prev parent reply other threads:[~2025-07-28 15:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 15:31 [PATCH 0/5] hw/mips: Proper multi core support Jiaxun Yang
2024-05-06 15:31 ` [PATCH 1/5] target/mips: Make globalnumber a CPU property Jiaxun Yang
2024-05-06 15:31 ` [PATCH 2/5] hw/msic/mips_cmgcr: Implement multicore functions Jiaxun Yang
2024-05-06 15:31 ` [PATCH 3/5] hw/msic/mips_cpc: Implement multi core support Jiaxun Yang
2024-05-06 15:31 ` [PATCH 4/5] hw/mips/cps: " Jiaxun Yang
2024-05-06 15:31 ` [PATCH 5/5] hw/mips/boston: " Jiaxun Yang
2025-07-15 19:08 ` [PATCH 0/5] hw/mips: Proper " Jiaxun Yang
2025-07-28 15:52 ` Philippe Mathieu-Daudé [this message]
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=187caaa6-ddc4-4e20-8c51-60bd7f254311@linaro.org \
--to=philmd@linaro.org \
--cc=jiaxun.yang@flygoat.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).