From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33C80C5DF94 for ; Mon, 24 Aug 2026 12:07:42 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wyTSg-00024e-JO; Mon, 24 Aug 2026 08:07:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <163wangjack@gmail.com>) id 1wyTSb-00023e-6Z for qemu-arm@nongnu.org; Mon, 24 Aug 2026 08:07:29 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <163wangjack@gmail.com>) id 1wyTSZ-0003tP-6R for qemu-arm@nongnu.org; Mon, 24 Aug 2026 08:07:28 -0400 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-8487214ad2bso4465147b3a.1 for ; Mon, 24 Aug 2026 05:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787573245; x=1788178045; darn=nongnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:content-type :message-id:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=sMCjqzSGHDt+RHNQnbw8IsTbs/06Ev3KfBlOsRd8qbo=; b=Syx7SEMWYDejFdcyzn60eIdXNLoKJZkYPtaxXUuXShQOTfxihZDzUrP9Yk2ZAbbn3U 4uvFKqLNQ1VqAXY+Xd385ijRSUqqdEm+LIWkaGf62M9zhghhShrGRj4KNFZ/kB5MpfYw mgrVHtEQTIkLxDhN6kmc/IYceji5Nnwjd4TEjMN5dPhYc/Nw1JlKyevP2fGyn/IyYfev IYWyDiMOCnfHCQcXs8pDrXthWw06Nqk5rELEXrwsTYEYB4dICNxV6iSJZ+Yd2RStblVd 1lFEGdUT6yXV3GgPH89AW/uGCmXIdlAK/kyJLVURQzzxmeq4A7pf61RRaBroOPsQJ2Oi WEzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787573245; x=1788178045; h=references:to:cc:in-reply-to:date:subject:mime-version:content-type :message-id:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=sMCjqzSGHDt+RHNQnbw8IsTbs/06Ev3KfBlOsRd8qbo=; b=oOwIx5iDj97RR3g59Jns30D81/qDQSrDzvEBb+DsST+GwGE3Y8yABwfmpEUtMnMNuQ rnj5sS1M+lwim2dUVlbjiuqlZInLbPeLQMLWiT5OXpuX+f2nJho3oIIBecuYGQNxJMqx UBClV/xCN2lMFxz2M5+G+R40kDUcpfa8U2pt13BDGLo1Ge1tfPQZO0nKkubvonqX3YAb iPegmOxOKpd5EdGi6Qq859bRU+o6OZCtdiWWU9NCz3NQLEecRaDgSrff/myVFrxiYMm7 At2qxAjccEdoTvGDlVcy3zc2Gp1KCXBRbj1lOybFJIljqS567W/F7SNPqJc0datcVHW7 Bdrw== X-Forwarded-Encrypted: i=1; AHgh+Rr+ckloRcCKDR6V9BN+p/etbJeSqp6xxFxieiOiApe7B5b+Y4/jaOpd2m4xl4DP1Io0ZhKtzzAKSA==@nongnu.org X-Gm-Message-State: AFuF++m9rnY8dwGXPrNoVf6HgmNRwMjL4V4LlyUasw55F1i/mPWjGJg8 /Pm4NTu7qjm0MOiddDldtABUfC5LuHISgdzvJfomWdjJMVTYbhFOEBOzFTHGfFh0CSA= X-Gm-Gg: AR+sD12npBPs50hPSnVW5ucoDmkVNBYYLDoPWgxHcyZ/29B2BwH6AqJwDMDP3qgmmyy zgfeGB+R/k0CJESS6uMsz6oNwsLXMhH8KUb8h2J4aRKtySo9tr1h2l1NG7iJNEhm4aSCMFqYX8X jkuLnS0nxy1OBoB08MqIVISVrP/bcycI3+f8ldNS+jwgDNKbCoX2wTyKkR2P4NNFRDN2iA6Rl02 Vi7Fc1o2FwrDZfFHco0uQfSUUX3StwL2sLnBcalKGCZ1mePavLVP9c6hQCARJwIgiweJSTDo2jc UdNPA7TKy6RZwfD+QUYydtC1QZngADlIRBYTBTrpeIYY56mbKymIM1gPU7qV9Rv5Wdcq3l+HGV3 ltYKGlg5ywVhcrrfGwN/FuLpSMROJE7ica8hdreAH9EfwSqhXrnC2SlpY1YzUA0OWSugm9TyhgE JnWrg23lq4RlFG0vId0ximS29gUVzKVoEyfRXAqmomZaW/qI2dpDlVgRoPJW5jEiq49Rm0 X-Received: by 2002:a05:6a00:32c4:b0:848:4faa:480b with SMTP id d2e1a72fcca58-851fa01061bmr43609591b3a.12.1787573245215; Mon, 24 Aug 2026 05:07:25 -0700 (PDT) Received: from smtpclient.apple ([117.55.237.216]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8520ef07a12sm1920789b3a.16.2026.08.24.05.07.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2026 05:07:24 -0700 (PDT) From: Jack Wang <163wangjack@gmail.com> Message-Id: <3B4705C2-B85A-4A27-96F9-C1AB5B304139@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_DF3AE4CD-F231-4070-AF05-B6488B5BDF6B" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [PATCH v1 4/5] hw/arm: Add Axiado SoC AX3005 Date: Mon, 24 Aug 2026 20:07:09 +0800 In-Reply-To: <64edab19-b14b-4b9b-902b-a72f742faeae@axiado.com> Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, qemu-arm@nongnu.org To: kchiu@axiado.com References: <64edab19-b14b-4b9b-902b-a72f742faeae@axiado.com> X-Mailer: Apple Mail (2.3864.600.51.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=163wangjack@gmail.com; helo=mail-pf1-x433.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_STARTS_WITH_NUMS=0.738, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org --Apple-Mail=_DF3AE4CD-F231-4070-AF05-B6488B5BDF6B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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=E2=80=99. If = you want to reproduce the mistake,commands below will help you ../qemu/configure --target-list=3Daarch64-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=E2=80=9D}'{"execute":"quit=E2=80=9D= }=E2=80=99 | 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=20 > On Mon, 24 Aug 2026 09:50:09 +0800, Kuan-Jui Chiu = wrote: > Hi Jack >=20 > Thanks for the test, could you share how you built and what the = command=20 > was you used to test? >=20 > I did not see this issue on my side, maybe I missed something >=20 > B.R. > Howard >=20 > Jack Wang =E6=96=BC 2026/8/23 =E4=B8=8B=E5=8D=88 06:33 =E5=AF=AB=E9=81=93= : >=20 >=20 >> On Sun, 23 Aug 2026 18:33:01 +0800, Jack Wang <163wangjack@gmail.com = > wrote: >> Hi Kuan-Jui >>=20 >> I tested this series with ax3005-evb machine,the initialization did = not complete. >> The process showed it repeatedly executing in 'ax3005_init' >>=20 >>> +static const TypeInfo ax3005_soc_types[] =3D { >>> + { >>> + .name =3D TYPE_AX3005_SOC, >>> + .parent =3D TYPE_SYS_BUS_DEVICE, >>> + .instance_size =3D sizeof(Ax3005SoCState), >>> + .instance_init =3D ax3005_init, >>> + .class_init =3D ax3005_class_init, >>> + } >>> +}; >>=20 >> You add instance_size here but forget to add class_size. Then qemu = defaultly use SysBusDeviceClass=E2=80=99s class_size cause of father-son = relationship. >>=20 >>> +typedef struct Ax3005SoCClass { >>> + SysBusDeviceClass parent; >>> + >>> + uint32_t num_cpus; >>> +} Ax3005SoCClass; >>=20 >> 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. >>=20 >> Best regards :) >> Jack Wang --Apple-Mail=_DF3AE4CD-F231-4070-AF05-B6488B5BDF6B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
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=E2=80=99. If you want to reproduce the mistake,commands = below will help you

../qemu/configure = --target-list=3Daarch64-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=E2=80=9D}'{"execute":"quit=E2=80=9D= }=E2=80=99 | 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 =E6=96=BC 2026/8/23 = =E4=B8=8B=E5=8D=88 06:33 =E5=AF=AB=E9=81=93:



On Sun, 23 Aug 2026 18:33:01 +0800, = Jack Wang <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[] =3D {
+ =    {
+        .name =           =3D = TYPE_AX3005_SOC,
+        .parent =         =3D = TYPE_SYS_BUS_DEVICE,
+ =        .instance_size  =3D = sizeof(Ax3005SoCState),
+ =        .instance_init  =3D = ax3005_init,
+        .class_init =     =3D ax3005_class_init,
+ =    }
+};

You add instance_size = here but forget to add class_size. Then qemu defaultly use = SysBusDeviceClass=E2=80=99s 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
= --Apple-Mail=_DF3AE4CD-F231-4070-AF05-B6488B5BDF6B--