All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Wang <163wangjack@gmail.com>
To: kchiu@axiado.com
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, qemu-arm@nongnu.org
Subject: Re: [PATCH v1 4/5] hw/arm: Add Axiado SoC AX3005
Date: Mon, 24 Aug 2026 20:07:09 +0800	[thread overview]
Message-ID: <3B4705C2-B85A-4A27-96F9-C1AB5B304139@gmail.com> (raw)
In-Reply-To: <64edab19-b14b-4b9b-902b-a72f742faeae@axiado.com>

[-- Attachment #1: Type: text/plain, Size: 2621 bytes --]


Hi Kuan_Jui

Sorry that my previous message was not clear enough.The build is not hang,but the machine initialization did not return of ax3005-evb. This is the reason why I said 'initialization did not complete’. If you want to reproduce the mistake,commands below will help you

../qemu/configure --target-list=aarch64-softmmu --enable-debug --enable-werror --disable-rust

ninja qemu-system-aarch64

After the build completes, start the emulator with:

printf '%s\n''{"execute":"qmp_capabilities"}' '{"execute":"query-status"}' '{"execute":"query-memory-size-summary”}'{"execute":"quit”}’ | build/qemu-system-aarch64 -M ax3005-evb -m 2G -display none -serial none -qmp stdio -S

QEMU printed the QMP greeting, but no response to the`qmp_capabilities` command was received. The process did not complete machine initialization and remained in the initialization path around `ax3005_init()`

And i noticed that you deliver new version. Cheer for this,maybe we could discuss more in new series.

Best regards : )
Jack Wang 
> On Mon, 24 Aug 2026 09:50:09 +0800, Kuan-Jui Chiu <kchiu@axiado.com> wrote:
> Hi Jack
> 
> Thanks for the test, could you share how you built and what the command 
> was you used to test?
> 
> I did not see this issue on my side, maybe I missed something
> 
> B.R.
> Howard
> 
> Jack Wang 於 2026/8/23 下午 06:33 寫道:
> 
> 

>> On Sun, 23 Aug 2026 18:33:01 +0800, Jack Wang <163wangjack@gmail.com <mailto:163wangjack@gmail.com>> wrote:
>> Hi Kuan-Jui
>> 
>> I tested this series with ax3005-evb machine,the initialization did not complete.
>> The process showed it repeatedly executing in 'ax3005_init'
>> 
>>> +static const TypeInfo ax3005_soc_types[] = {
>>> +    {
>>> +        .name           = TYPE_AX3005_SOC,
>>> +        .parent         = TYPE_SYS_BUS_DEVICE,
>>> +        .instance_size  = sizeof(Ax3005SoCState),
>>> +        .instance_init  = ax3005_init,
>>> +        .class_init     = ax3005_class_init,
>>> +    }
>>> +};
>> 
>> You add instance_size here but forget to add class_size. Then qemu defaultly use SysBusDeviceClass’s class_size cause of father-son relationship.
>> 
>>> +typedef struct Ax3005SoCClass {
>>> +    SysBusDeviceClass   parent;
>>> +
>>> +    uint32_t            num_cpus;
>>> +} Ax3005SoCClass;
>> 
>> Here your struct apparently extend SysBusDeviceClass field. I think it is the way why previous repeating behavior.After add class_size locally and rebuild the the machine completed initialization and responded to QMP commands successfully.
>> 
>> Best regards :)
>> Jack Wang

[-- Attachment #2: Type: text/html, Size: 17116 bytes --]

  reply	other threads:[~2026-08-24 12:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-20 10:21 [PATCH v1 0/5] Add Axiado SoC AX3005 and EVB Kuan-Jui Chiu
2026-08-20 10:21 ` [PATCH v1 1/5] hw/sd/axiado_sdhci: Add header guard Kuan-Jui Chiu
2026-08-20 10:21 ` [PATCH v1 2/5] hw/arm: Rename ax3000-boards as axiado-boards Kuan-Jui Chiu
2026-08-20 10:21 ` [PATCH v1 3/5] hw/arm/ax3000: Specify SoC name in header and variable Kuan-Jui Chiu
2026-08-20 10:21 ` [PATCH v1 4/5] hw/arm: Add Axiado SoC AX3005 Kuan-Jui Chiu
2026-08-23 10:33   ` Jack Wang
2026-08-24  1:50     ` Kuan-Jui Chiu
2026-08-24 12:07       ` Jack Wang [this message]
2026-08-20 10:21 ` [PATCH v1 5/5] hw/arm: Add Axiado Ax3005 EVB Kuan-Jui Chiu

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=3B4705C2-B85A-4A27-96F9-C1AB5B304139@gmail.com \
    --to=163wangjack@gmail.com \
    --cc=kchiu@axiado.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --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 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.