From: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
To: "Jamin Lin" <jamin_lin@aspeedtech.com>,
"Cédric Le Goater" <clg@kaod.org>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Steven Lee" <steven_lee@aspeedtech.com>,
"Troy Lee" <leetroy@gmail.com>,
"Kane Chen" <kane_chen@aspeedtech.com>,
"Andrew Jeffery" <andrew@codeconstruct.com.au>,
"Joel Stanley" <joel@jms.id.au>,
"open list:ASPEED BMCs" <qemu-arm@nongnu.org>,
"open list:All patches CC here" <qemu-devel@nongnu.org>
Cc: Troy Lee <troy_lee@aspeedtech.com>
Subject: Re: [PATCH v1 01/11] hw/arm/aspeed_ast2400: Use unimp array and table for unimplemented devices
Date: Wed, 30 Sep 2026 09:37:42 +0200 [thread overview]
Message-ID: <941d7bb6-3205-44cf-8d76-ffbb322a6f4e@oss.qualcomm.com> (raw)
In-Reply-To: <20260930072501.2612119-2-jamin_lin@aspeedtech.com>
On 2026-09-30 9:25, Jamin Lin wrote:
> Before this change, each unimplemented device needed its own field in
> AspeedSoCState. This made the variable names confusing. For example,
> AspeedSoCState has "udc" as an unimplemented device, but
> Aspeed2600SoCState also has "udc" as the real UDC model.
>
> Add an "unimp" array in AspeedSoCState for all unimplemented devices,
> and add an AspeedUnimpDevice table to describe them. This makes the
> code easier to maintain and read. Convert AST2400/AST2500 to use them.
>
> No functional change.
>
> Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
> ---
> include/hw/arm/aspeed_soc.h | 9 +++++++++
> hw/arm/aspeed_ast2400.c | 33 +++++++++++++++++++--------------
> 2 files changed, 28 insertions(+), 14 deletions(-)
>
> diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h
> index 38226d9b80..a9ef4b3550 100644
> --- a/include/hw/arm/aspeed_soc.h
> +++ b/include/hw/arm/aspeed_soc.h
> @@ -64,6 +64,14 @@
> #define ASPEED_INTC_NUM 2
> #define ASPEED_IOEXP_NUM 2
> #define ASPEED_SRAM_NUM 2
> +#define ASPEED_UNIMP_NUM 10
> +
> +typedef struct AspeedUnimpDevice {
> + const char *qom_name;
> + const char *region_name;
> + int memmap_idx;
> + uint64_t size;
> +} AspeedUnimpDevice;
Note to Peter: I really think keeping duplicating the
UnimplementedDeviceConfig structure is a basic software
development antipattern. Could you reconsider your objection?
Otherwise,
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
next prev parent reply other threads:[~2026-09-30 7:38 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 7:25 [PATCH v1 00/11] hw/arm/aspeed: Use unimp array and table for unimplemented devices Jamin Lin
2026-09-30 7:25 ` [PATCH v1 01/11] hw/arm/aspeed_ast2400: " Jamin Lin
2026-09-30 7:37 ` Philippe Mathieu-Daudé [this message]
2026-09-30 11:50 ` Cédric Le Goater
2026-09-30 12:16 ` Philippe Mathieu-Daudé
2026-10-01 7:41 ` Cédric Le Goater
2026-10-01 11:51 ` Jamin Lin
2026-10-01 12:07 ` Cédric Le Goater
2026-10-02 9:02 ` Jamin Lin
2026-10-07 15:07 ` Philippe Mathieu-Daudé
2026-09-30 7:25 ` [PATCH v1 02/11] hw/arm/aspeed_ast2600: " Jamin Lin
2026-09-30 7:38 ` Philippe Mathieu-Daudé
2026-09-30 7:25 ` [PATCH v1 03/11] hw/arm/aspeed_ast27x0: " Jamin Lin
2026-09-30 7:43 ` Philippe Mathieu-Daudé
2026-09-30 7:25 ` [PATCH v1 04/11] hw/arm/aspeed_ast10x0: " Jamin Lin
2026-09-30 7:39 ` Philippe Mathieu-Daudé
2026-09-30 7:25 ` [PATCH v1 05/11] hw/arm/aspeed_ast1040: " Jamin Lin
2026-09-30 7:42 ` Philippe Mathieu-Daudé
2026-09-30 7:25 ` [PATCH v1 06/11] hw/arm/aspeed: Remove unused unimplemented device fields Jamin Lin
2026-09-30 7:25 ` [PATCH v1 07/11] hw/arm/aspeed_ast27x0: Use unimp array and table for unimplemented devices for SSP/TSP Jamin Lin
2026-09-30 7:41 ` Philippe Mathieu-Daudé
2026-09-30 7:25 ` [PATCH v1 08/11] hw/arm/aspeed_coprocessor: Remove unused unimplemented device fields Jamin Lin
2026-09-30 7:25 ` [PATCH v1 09/11] hw/arm/aspeed_ast1700: Use unimp array and table for unimplemented devices Jamin Lin
2026-09-30 7:40 ` Philippe Mathieu-Daudé
2026-09-30 7:25 ` [PATCH v1 10/11] hw/arm/aspeed_ast1700: Remove unused unimplemented device field Jamin Lin
2026-09-30 7:25 ` [PATCH v1 11/11] hw/arm/aspeed: Sort device IDs alphabetically Jamin Lin
2026-09-30 11:50 ` [PATCH v1 00/11] hw/arm/aspeed: Use unimp array and table for unimplemented devices Cédric Le Goater
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=941d7bb6-3205-44cf-8d76-ffbb322a6f4e@oss.qualcomm.com \
--to=philmd@oss.qualcomm.com \
--cc=andrew@codeconstruct.com.au \
--cc=clg@kaod.org \
--cc=jamin_lin@aspeedtech.com \
--cc=joel@jms.id.au \
--cc=kane_chen@aspeedtech.com \
--cc=leetroy@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=steven_lee@aspeedtech.com \
--cc=troy_lee@aspeedtech.com \
/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.