* aspeed: Split the machine definition into individual source files
@ 2025-06-19 9:23 Cédric Le Goater
2025-06-19 14:54 ` Troy Lee
2025-06-24 23:13 ` Andrew Jeffery
0 siblings, 2 replies; 4+ messages in thread
From: Cédric Le Goater @ 2025-06-19 9:23 UTC (permalink / raw)
To: 'qemu-arm@nongnu.org', open list:All patches CC here
Cc: 'Andrew Jeffery', Joel Stanley, 'Jamin Lin',
Steven Lee, Troy Lee, Peter Maydell, Patrick Williams
Hi,
This is a follow up of a private discussion with Patrick.
Aspeed modeling started nearly 10y ago with the palmetto-bmc machine.
We now have 5 SoCs and 25 machines which are mostly defined in
in a single aspeed.c file. Multi SoC machines, fby35 and ast2700fc,
are defined in fby35.c and aspeed_ast27x0-fc.c respectively.
Since we started separating the SoCs :
hw/arm/aspeed_ast10x0.c
hw/arm/aspeed_ast2400.c
hw/arm/aspeed_ast2600.c
hw/arm/aspeed_ast27x0.c
hw/arm/aspeed_ast27x0-ssp.c
hw/arm/aspeed_ast27x0-tsp.c
We could do the same for the machines keeping an 'aspeed_ast<rev>'
prefix (and maybe avoid the 'bmc' suffix). I think this would ease
introduction of new machines. We would be able to get rid of
aspeed_eeprom.[ch] and move machine custom data in the machine source
file. Which seems cleaner.
Timing is about right for code reshuffling, still 3w before soft
freeze, no important changes inflight, but if we start doing this
conversion, we should do it for all. See the list below for the brave.
Comments ?
Thanks,
C.
* AST2400
palmetto-bmc
quanta-q71l-bmc
supermicrox11-bmc
* AST2500
ast2500-evb
romulus-bmc
sonorapass-bmc
witherspoon-bmc
yosemitev2-bmc
supermicro-x11spi-bmc
fp5280g2-bmc
g220a-bmc
tiogapass-bmc
* AST2600
ast2600-evb
qcom-dc-scm-v1-bmc
qcom-firework-bmc
rainier-bmc
fuji-bmc
bletchley-bmc
fby35-bmc (fby35.c should rename to aspeed_ast2600-fby35.c)
* AST2700
ast2700a0-evb
ast2700a1-evb
ast2700fc (aspeed_ast27x0-fc.c)
* AST1030
ast1030-evb
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: aspeed: Split the machine definition into individual source files
2025-06-19 9:23 aspeed: Split the machine definition into individual source files Cédric Le Goater
@ 2025-06-19 14:54 ` Troy Lee
2025-06-20 7:13 ` Cédric Le Goater
2025-06-24 23:13 ` Andrew Jeffery
1 sibling, 1 reply; 4+ messages in thread
From: Troy Lee @ 2025-06-19 14:54 UTC (permalink / raw)
To: Cédric Le Goater
Cc: qemu-arm@nongnu.org, open list:All patches CC here,
Andrew Jeffery, Joel Stanley, Jamin Lin, Steven Lee,
Peter Maydell, Patrick Williams
Hi,
On Thu, Jun 19, 2025 at 5:24 PM Cédric Le Goater <clg@kaod.org> wrote:
>
> Hi,
>
> This is a follow up of a private discussion with Patrick.
>
> Aspeed modeling started nearly 10y ago with the palmetto-bmc machine.
> We now have 5 SoCs and 25 machines which are mostly defined in
> in a single aspeed.c file. Multi SoC machines, fby35 and ast2700fc,
> are defined in fby35.c and aspeed_ast27x0-fc.c respectively.
>
Sounds good to me.
While we're on this subject, we have many variants of the AST27x0 SoC
and development boards in different form factors. Should we also create
separate SoC models and machine definitions for each one? Or can we
treat AST27x0 as a superset of AST2700, AST2750, AST2720, and
any future models?
Thanks,
Troy Lee
> Since we started separating the SoCs :
>
> hw/arm/aspeed_ast10x0.c
> hw/arm/aspeed_ast2400.c
> hw/arm/aspeed_ast2600.c
> hw/arm/aspeed_ast27x0.c
> hw/arm/aspeed_ast27x0-ssp.c
> hw/arm/aspeed_ast27x0-tsp.c
>
> We could do the same for the machines keeping an 'aspeed_ast<rev>'
> prefix (and maybe avoid the 'bmc' suffix). I think this would ease
> introduction of new machines. We would be able to get rid of
> aspeed_eeprom.[ch] and move machine custom data in the machine source
> file. Which seems cleaner.
>
> Timing is about right for code reshuffling, still 3w before soft
> freeze, no important changes inflight, but if we start doing this
> conversion, we should do it for all. See the list below for the brave.
>
> Comments ?
>
> Thanks,
>
> C.
>
>
>
> * AST2400
>
> palmetto-bmc
> quanta-q71l-bmc
> supermicrox11-bmc
>
> * AST2500
>
> ast2500-evb
> romulus-bmc
> sonorapass-bmc
> witherspoon-bmc
> yosemitev2-bmc
> supermicro-x11spi-bmc
> fp5280g2-bmc
> g220a-bmc
> tiogapass-bmc
>
> * AST2600
>
> ast2600-evb
> qcom-dc-scm-v1-bmc
> qcom-firework-bmc
> rainier-bmc
> fuji-bmc
> bletchley-bmc
> fby35-bmc (fby35.c should rename to aspeed_ast2600-fby35.c)
>
> * AST2700
>
> ast2700a0-evb
> ast2700a1-evb
> ast2700fc (aspeed_ast27x0-fc.c)
>
> * AST1030
>
> ast1030-evb
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: aspeed: Split the machine definition into individual source files
2025-06-19 14:54 ` Troy Lee
@ 2025-06-20 7:13 ` Cédric Le Goater
0 siblings, 0 replies; 4+ messages in thread
From: Cédric Le Goater @ 2025-06-20 7:13 UTC (permalink / raw)
To: Troy Lee
Cc: qemu-arm@nongnu.org, open list:All patches CC here,
Andrew Jeffery, Joel Stanley, Jamin Lin, Steven Lee,
Peter Maydell, Patrick Williams
On 6/19/25 16:54, Troy Lee wrote:
> Hi,
> On Thu, Jun 19, 2025 at 5:24 PM Cédric Le Goater <clg@kaod.org> wrote:
>>
>> Hi,
>>
>> This is a follow up of a private discussion with Patrick.
>>
>> Aspeed modeling started nearly 10y ago with the palmetto-bmc machine.
>> We now have 5 SoCs and 25 machines which are mostly defined in
>> in a single aspeed.c file. Multi SoC machines, fby35 and ast2700fc,
>> are defined in fby35.c and aspeed_ast27x0-fc.c respectively.
>>
>
> Sounds good to me.
>
> While we're on this subject, we have many variants of the AST27x0 SoC
> and development boards in different form factors. Should we also create
> separate SoC models and machine definitions for each one? Or can we
> treat AST27x0 as a superset of AST2700, AST2750, AST2720, and
> any future models?
I think keeping models for the AST27x0 SoC family in the same
source file is fine for now. We have introduced aspeed_ast27x0-ssp.c
and aspeed_ast27x0-tsp.c but these are service processor and are using
Cortex-M4 processors.
Thanks,
C.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: aspeed: Split the machine definition into individual source files
2025-06-19 9:23 aspeed: Split the machine definition into individual source files Cédric Le Goater
2025-06-19 14:54 ` Troy Lee
@ 2025-06-24 23:13 ` Andrew Jeffery
1 sibling, 0 replies; 4+ messages in thread
From: Andrew Jeffery @ 2025-06-24 23:13 UTC (permalink / raw)
To: Cédric Le Goater, 'qemu-arm@nongnu.org',
open list:All patches CC here
Cc: Joel Stanley, 'Jamin Lin', Steven Lee, Troy Lee,
Peter Maydell, Patrick Williams
On Thu, 2025-06-19 at 11:23 +0200, Cédric Le Goater wrote:
> Hi,
>
> This is a follow up of a private discussion with Patrick.
>
> Aspeed modeling started nearly 10y ago with the palmetto-bmc machine.
> We now have 5 SoCs and 25 machines which are mostly defined in
> in a single aspeed.c file. Multi SoC machines, fby35 and ast2700fc,
> are defined in fby35.c and aspeed_ast27x0-fc.c respectively.
>
> Since we started separating the SoCs :
>
> hw/arm/aspeed_ast10x0.c
> hw/arm/aspeed_ast2400.c
> hw/arm/aspeed_ast2600.c
> hw/arm/aspeed_ast27x0.c
> hw/arm/aspeed_ast27x0-ssp.c
> hw/arm/aspeed_ast27x0-tsp.c
>
> We could do the same for the machines keeping an 'aspeed_ast<rev>'
> prefix (and maybe avoid the 'bmc' suffix). I think this would ease
> introduction of new machines. We would be able to get rid of
> aspeed_eeprom.[ch] and move machine custom data in the machine source
> file. Which seems cleaner.
>
> Timing is about right for code reshuffling, still 3w before soft
> freeze, no important changes inflight, but if we start doing this
> conversion, we should do it for all. See the list below for the
> brave.
My involvement has dropped off quite a bit, but for what it's worth,
this seems sensible to me :)
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-06-24 23:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19 9:23 aspeed: Split the machine definition into individual source files Cédric Le Goater
2025-06-19 14:54 ` Troy Lee
2025-06-20 7:13 ` Cédric Le Goater
2025-06-24 23:13 ` Andrew Jeffery
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).