[PATCH v4 4/5] hw/misc/aspeed_otp: Add 'drive' property to support block backend

2025-07-08 Thread Kane Chen via
From: Kane-Chen-AS This patch introduces a 'drive' property to the Aspeed OTP device, allowing it to be backed by a block device. Users can now preload OTP data via QEMU CLI using a block backend. Example usage: ./qemu-system-arm \ -blockdev driver=file,filename=otpmem.img,nod

[PATCH v4 3/5] hw/arm: Integrate ASPEED OTP memory support into AST2600 SoCs

2025-07-08 Thread Kane Chen via
From: Kane-Chen-AS The has_otpmem attribute is enabled in the SBC subclasses for AST2600 to control the presence of OTP support per SoC type. Signed-off-by: Kane-Chen-AS Reviewed-by: C??dric Le Goater --- hw/arm/aspeed_ast2600.c | 2 +- hw/misc/aspeed_sbc.c| 2 ++ 2 files changed, 3

[PATCH v4 5/5] hw/misc/aspeed_sbc: Add machine parameter to alias OTP drive property

2025-07-08 Thread Kane Chen via
From: Kane-Chen-AS This patch adds a new machine parameter `otpmem` which creates a QOM property alias on the aspeed_sbc device for the OTP drive. Example usage: ./qemu-system-arm \ -machine ast2600-evb,otpmem=otp-drive \ -blockdev driver=file,filename=otpmem.img,node-name=otp

[PATCH v4 1/5] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-07-08 Thread Kane Chen via
From: Kane-Chen-AS Introduce a QEMU device model for ASPEED's One-Time Programmable (OTP) memory. This model simulates a word-addressable OTP region used for secure fuse storage. The OTP memory can operate with an internal memory buffer. The OTP model provides a memory-like interface thro

[PATCH v4 0/5] ASPEED OTP QEMU model: block backend, machine alias, SoC integration

2025-07-08 Thread Kane Chen via
From: Kane-Chen-AS This patch series extends the QEMU model for the ASPEED OTP (One-Time Programmable) memory device with block backend support and tighter integration with the SoC and machine configuration. The OTP model simulates a simple fuse array, used in ASPEED SoCs for secure boot and

[PATCH v4 2/5] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC

2025-07-08 Thread Kane Chen via
From: Kane-Chen-AS This patch connects the aspeed.otp device to the ASPEED Secure Boot Controller (SBC) model. It implements OTP memory access via the SBC's command interface and enables emulation of secure fuse programming flows. The following OTP commands are supported: - READ: reads

RE: [PATCH v3 1/3] hw/misc/aspeed_otp: Add OTP device model with fallback RAM storage

2025-06-29 Thread Kane Chen
Hi Cédric, Got it, I'll rename the type to "aspeed-otp" as suggested to support the global property syntax. Thanks for the clarification! Best regards, Kane > -Original Message- > From: Cédric Le Goater > Sent: Monday, June 30, 2025 2:28 PM > To: Kane Chen

RE: [PATCH v3 1/3] hw/misc/aspeed_otp: Add OTP device model with fallback RAM storage

2025-06-29 Thread Kane Chen
, 2025 2:18 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery ; Joel Stanley ; > open list:ASPEED BMCs ; open list:All patches CC > here > Cc: Troy Lee > Subject: Re: [PATCH v3 1/3] hw/misc/aspeed_otp: Add OTP device model with > f

[PATCH v3 2/3] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC

2025-06-29 Thread Kane Chen via
From: Kane-Chen-AS This patch connects the aspeed.otp device to the ASPEED Secure Boot Controller (SBC) model. It implements OTP memory access via the SBC's command interface and enables emulation of secure fuse programming flows. The following OTP commands are supported: - READ: reads

[PATCH v3 3/3] hw/arm: Integrate ASPEED OTP memory support into AST2600 SoCs

2025-06-29 Thread Kane Chen via
From: Kane-Chen-AS The has_otpmem attribute is enabled in the SBC subclasses for AST2600 to control the presence of OTP support per SoC type. Signed-off-by: Kane-Chen-AS --- hw/arm/aspeed_ast2600.c | 2 +- hw/misc/aspeed_sbc.c| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v3 1/3] hw/misc/aspeed_otp: Add OTP device model with fallback RAM storage

2025-06-29 Thread Kane Chen via
From: Kane-Chen-AS This patch introduces a QEMU model of the ASPEED One-Time Programmable (OTP) memory, used for secure fuse storage. The model simulates a word-addressable OTP region with a memory-like interface via a dedicated AddressSpace. If no external block backend is provided via the

[PATCH v3 0/3] Add QEMU model for ASPEED OTP memory and integrate with SoC

2025-06-29 Thread Kane Chen via
From: Kane-Chen-AS This patch series introduces a QEMU model for the ASPEED OTP (One-Time Programmable) memory, along with its integration into the Secure Boot Controller (SBC) and supported SoC (AST2600). The OTP model emulates a simple fuse array used for secure boot or device configuration

RE: [PATCH v2 0/3] Add QEMU model for ASPEED OTP memory and integrate with SoC

2025-06-27 Thread Kane Chen
instance? Or would it be acceptable to instantiate it internally and avoid exposing it via -device? Thanks again for your time and feedback. Best Regards, Kane > -Original Message- > From: Cédric Le Goater > Sent: Friday, June 27, 2025 2:52 PM > To: Kane Chen ; Peter Maydell &g

[PATCH v2 2/3] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC

2025-06-26 Thread Kane Chen via
From: Kane-Chen-AS This patch connects the aspeed.otpmem device to the ASPEED Secure Boot Controller (SBC) model. It implements OTP memory access via the SBC's command interface and enables emulation of secure fuse programming flows. The following OTP commands are supported: - READ: re

[PATCH v2 1/3] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-06-26 Thread Kane Chen via
From: Kane-Chen-AS Introduce a QEMU device model for ASPEED's One-Time Programmable (OTP) memory. This model simulates a word-addressable OTP region used for secure fuse storage. The OTP memory can operate with an internal memory buffer. The OTP model provides a memory-like interface thro

[PATCH v2 3/3] hw/arm: Integrate ASPEED OTP memory support into AST2600 SoCs

2025-06-26 Thread Kane Chen via
From: Kane-Chen-AS The has_otpmem attribute is enabled in the SBC subclasses for AST2600 to control the presence of OTP support per SoC type. Signed-off-by: Kane-Chen-AS --- hw/arm/aspeed_ast2600.c | 2 +- hw/misc/aspeed_sbc.c| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v2 0/3] Add QEMU model for ASPEED OTP memory and integrate with SoC

2025-06-26 Thread Kane Chen via
From: Kane-Chen-AS This patch series introduces a QEMU model for the ASPEED OTP (One-Time Programmable) memory, along with its integration into the Secure Boot Controller (SBC) and supported SoC (AST2600). The OTP model emulates a simple fuse array used for secure boot or device configuration

RE: [PATCH v1 1/3] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-06-26 Thread Kane Chen
Hi Cédric, Thanks for your feedback. I will move the OTP implementation to `hw/nvram/` as suggested, and adjust the related code accordingly. Best Regards, Kane > -Original Message- > From: Cédric Le Goater > Sent: Thursday, June 26, 2025 4:23 PM > To: Kane Chen ; P

[PATCH v1 3/3] hw/arm: Integrate ASPEED OTP memory support into AST2600 SoCs

2025-06-26 Thread Kane Chen via
From: Kane-Chen-AS The has_otpmem attribute is enabled in the SBC subclasses for AST2600 to control the presence of OTP support per SoC type. Signed-off-by: Kane-Chen-AS --- hw/arm/aspeed_ast2600.c | 2 +- hw/misc/aspeed_sbc.c| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v1 1/3] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-06-26 Thread Kane Chen via
From: Kane-Chen-AS Introduce a QEMU device model for ASPEED's One-Time Programmable (OTP) memory. This model simulates a word-addressable OTP region used for secure fuse storage. The OTP memory can operate with an internal memory buffer. The OTP model provides a memory-like interface thro

[PATCH v1 2/3] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC

2025-06-26 Thread Kane Chen via
From: Kane-Chen-AS This patch connects the aspeed.otpmem device to the ASPEED Secure Boot Controller (SBC) model. It implements OTP memory access via the SBC's command interface and enables emulation of secure fuse programming flows. The following OTP commands are supported: - READ: re

[PATCH v1 0/3] Add QEMU model for ASPEED OTP memory and integrate with SoC

2025-06-26 Thread Kane Chen via
From: Kane-Chen-AS This patch series introduces a QEMU model for the ASPEED OTP (One-Time Programmable) memory, along with its integration into the Secure Boot Controller (SBC) and supported SoC (AST2600). The OTP model emulates a simple fuse array used for secure boot or device configuration

RE: [RFC v6 1/3] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-06-25 Thread Kane Chen
ns. Best Regards, Kane > -Original Message- > From: Peter Maydell > Sent: Wednesday, June 25, 2025 6:26 PM > To: Kane Chen > Cc: Cédric Le Goater ; Steven Lee > ; Troy Lee ; Jamin Lin > ; Andrew Jeffery > ; Joel Stanley ; open > list:ASPEED BMCs ; open list:All

[RFC v6 1/3] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-06-25 Thread Kane Chen via
From: Kane-Chen-AS Introduce a QEMU device model for ASPEED's One-Time Programmable (OTP) memory. This model simulates a word-addressable OTP region used for secure fuse storage. The OTP memory can operate with an internal memory buffer. The OTP model provides a memory-like interface thro

RE: [RFC v6 1/3] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-06-25 Thread Kane Chen
, I'm wondering whether I should still use the "RFC" tag for the next version of the patch. Would you recommend keeping the "RFC" tag, or is it appropriate to drop it at this point? Best Regards, Kane > -Original Message- > From: Cédric Le Goater > Sen

RE: [RFC v6 1/3] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-06-24 Thread Kane Chen
, June 24, 2025 2:28 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery ; Joel Stanley ; > open list:ASPEED BMCs ; open list:All patches CC > here > Cc: Troy Lee > Subject: Re: [RFC v6 1/3] hw/misc/aspeed_otp: Add ASPEED OTP memory >

[RFC v6 3/3] hw/arm: Integrate ASPEED OTP memory support into AST2600 SoCs

2025-06-24 Thread Kane Chen via
From: Kane-Chen-AS The has_otpmem attribute is enabled in the SBC subclasses for AST2600 to control the presence of OTP support per SoC type. Signed-off-by: Kane-Chen-AS --- hw/arm/aspeed_ast2600.c | 2 +- hw/misc/aspeed_sbc.c | 2 ++ include/hw/misc/aspeed_sbc.h | 2 ++ 3 files

[RFC v6 2/3] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC

2025-06-23 Thread Kane Chen via
From: Kane-Chen-AS This patch connects the aspeed.otpmem device to the ASPEED Secure Boot Controller (SBC) model. It implements OTP memory access via the SBC's command interface and enables emulation of secure fuse programming flows. The following OTP commands are supported: - READ: re

[RFC v6 0/3] Add QEMU model for ASPEED OTP memory and integrate with SoC

2025-06-23 Thread Kane Chen via
From: Kane-Chen-AS This patch series introduces a QEMU model for the ASPEED OTP (One-Time Programmable) memory, along with its integration into the Secure Boot Controller (SBC) and supported SoC (AST2600). The OTP model emulates a simple fuse array used for secure boot or device configuration

RE: [RFC v5 0/4] Add QEMU model for ASPEED OTP memory and integrate with SoCs

2025-06-22 Thread Kane Chen
t: Friday, June 20, 2025 1:44 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery ; Joel Stanley ; > open list:ASPEED BMCs ; open list:All patches CC > here > Cc: Troy Lee > Subject: Re: [RFC v5 0/4] Add QEMU model for ASPEED OTP

[RFC v5 3/4] hw/arm: Integrate ASPEED OTP memory support into AST10x0 and AST2600 SoCs

2025-06-18 Thread Kane Chen via
From: Kane-Chen-AS This patch exposes a new "otpmem" machine parameter to allow users to attach an OTP memory device to AST1030 and AST2600-based platforms. The value of this parameter is passed as a QOM alias to the Secure Boot Controller (SBC), enabling binding to an aspeed.otp

[RFC v5 4/4] tests/functional: Add integration tests for ASPEED OTP memory model

2025-06-18 Thread Kane Chen via
From: Kane-Chen-AS Introduce a functional test suite to validate the ASPEED OTP memory device integration under different machine configurations. The following cases are covered: - AST2600 with blockdev + device + machine parameter (full binding) - AST2600 fallback with no machine parameter

[RFC v5 2/4] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC

2025-06-18 Thread Kane Chen via
From: Kane-Chen-AS This patch connects the aspeed.otpmem device to the ASPEED Secure Boot Controller (SBC) model. It implements OTP memory access via the SBC's command interface and enables emulation of secure fuse programming flows. The following OTP commands are supported: - READ: re

[RFC v5 1/4] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-06-18 Thread Kane Chen via
From: Kane-Chen-AS Introduce a QEMU device model for ASPEED's One-Time Programmable (OTP) memory. This model simulates a word-addressable OTP region used for secure fuse storage or boot-time configuration. The OTP memory can operate with either: - a file-backed backend via the 'drive

[RFC v5 0/4] Add QEMU model for ASPEED OTP memory and integrate with SoCs

2025-06-18 Thread Kane Chen via
From: Kane-Chen-AS This patch series introduces a QEMU model for the ASPEED OTP (One-Time Programmable) memory, along with its integration into the Secure Boot Controller (SBC) and supported SoCs (AST2600, AST1030). The OTP model emulates a simple fuse array used for secure boot or device

RE: [PATCH v4 2/3] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC controller

2025-05-27 Thread Kane Chen
Hi Cédric, > -Original Message- > From: Cédric Le Goater > Sent: Tuesday, May 27, 2025 3:02 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery ; Joel Stanley ; open > list:ASPEED BMCs ; open list:All patches CC here >

RE: [PATCH v4 2/3] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC controller

2025-05-27 Thread Kane Chen
Hi Cédric, Sure, I’ll submit a version that removes the more specific operations and focuses on the initial implementation first. Thanks again for the guidance! Best Regards, Kane > -Original Message- > From: Cédric Le Goater > Sent: Tuesday, May 27, 2025 5:36 PM > T

RE: [PATCH v4 2/3] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC controller

2025-05-27 Thread Kane Chen
Hi Cédric, > -Original Message- > From: Cédric Le Goater > Sent: Tuesday, May 27, 2025 4:12 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery ; Joel Stanley ; open > list:ASPEED BMCs ; open list:All patches CC here >

[PATCH v4 1/3] hw/misc/aspeed_otp: Add ASPEED OTP memory device model

2025-05-12 Thread Kane Chen via
From: Kane-Chen-AS Introduce a QEMU model for ASPEED One-Time Programmable (OTP) memory. This device provides: - Bit-level irreversible programming (0→1 for even, 1→0 for odd) - Read, program, and default-value initialization interfaces - File-backed OTP content via machine parameter - Trace

[PATCH v4 2/3] hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC controller

2025-05-12 Thread Kane Chen via
From: Kane-Chen-AS Integrate the aspeed.otpmem backend with the ASPEED Secure Boot Controller (SBC). This patch adds command handling support in the SBC to read and program the connected OTP memory using READ, WRITE, and PROG commands. It enables basic interaction with OTP content for secure

[PATCH v4 3/3] hw/arm: Integrate ASPEED OTP memory into AST10x0 and AST2600 SoCs

2025-05-12 Thread Kane Chen via
From: Kane-Chen-AS Expose an "otpmem" machine parameter to load an external OTP memory image and enable OTP functionality in supported SoCs. - Adds object property and backend connection logic for AST1030 and AST2600 - Allows disabling OTP feature via has_otpmem attribute - Supports

[PATCH v4 0/3] hw/misc/aspeed_otp: Add ASPEED OTP memory model and SoC integration

2025-05-12 Thread Kane Chen via
From: Kane-Chen-AS Dear reviewers, This series introduces the ASPEED OTP (One-Time Programmable) memory model and connects it to the SBC controller and AST10x0/AST2600 SoCs. The OTP model supports irreversible bit programming, file-backed content, and tracepoints for program conflict debugging

RE: [PATCH v3 2/3] hw/misc/aspeed_sbc: Connect Aspeed OTP memory device to SBC controller

2025-05-08 Thread Kane Chen
Hi Cédric, > > > +{ > > > +AspeedSBCState *s = ASPEED_SBC(opaque); > > > +uint32_t otp_addr, data, otp_offset; > > > +bool is_data = false; > > > +Error *local_err = NULL; > > > + > > > +assert(s->otpmem); > > > + > > > +otp_addr = s->regs[R_ADDR]; > > > +if (otp_addr <

RE: [PATCH v3 3/3] hw/arm: Integrate Aspeed OTP memory into AST10x0 and AST2600 SoCs

2025-04-30 Thread Kane Chen
. If you would prefer to have a message logged, please let me know. Best Regards, Kane > -Original Message- > From: Cédric Le Goater > Sent: Tuesday, April 29, 2025 5:06 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery

RE: [PATCH v3 3/3] hw/arm: Integrate Aspeed OTP memory into AST10x0 and AST2600 SoCs

2025-04-28 Thread Kane Chen
Hi Cédric, I may have misunderstood the otpmem machine option. Please correct me if I am wrong. > -Original Message- > From: Cédric Le Goater > Sent: Monday, April 28, 2025 7:01 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > J

RE: [PATCH v3 3/3] hw/arm: Integrate Aspeed OTP memory into AST10x0 and AST2600 SoCs

2025-04-28 Thread Kane Chen
Hi Cédric, > -Original Message- > From: Cédric Le Goater > Sent: Monday, April 28, 2025 3:41 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery ; Joel Stanley ; open > list:ASPEED BMCs ; open list:All patches CC here >

RE: [PATCH v3 2/3] hw/misc/aspeed_sbc: Connect Aspeed OTP memory device to SBC controller

2025-04-28 Thread Kane Chen
Hi Cédric, > -Original Message- > From: Cédric Le Goater > Sent: Monday, April 28, 2025 3:21 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery ; Joel Stanley ; open > list:ASPEED BMCs ; open list:All patches CC here >

RE: [PATCH v3 1/3] hw/misc/aspeed_otp: Add Aspeed OTP memory device model

2025-04-28 Thread Kane Chen
Hi Cédric, > -Original Message- > From: Cédric Le Goater > Sent: Monday, April 28, 2025 3:06 PM > To: Kane Chen ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery ; Joel Stanley ; open > list:ASPEED BMCs ; open list:All patches CC here >

[PATCH v3 0/3] hw/misc/aspeed_otp: Introduce OTP memory and integrate with SBC

2025-04-22 Thread Kane Chen via
From: Kane-Chen-AS Dear reviewers, This patch series introduces a new model for the ASPEED OTP (One-Time Programmable) memory and integrates it with the ASPEED Secure Boot Controller (SBC) and SoC models such as AST1030 and AST2600. The OTP memory is implemented as a QEMU device

[PATCH v3 3/3] hw/arm: Integrate Aspeed OTP memory into AST10x0 and AST2600 SoCs

2025-04-22 Thread Kane Chen via
From: Kane-Chen-AS This patch wires up the OTP memory device (`aspeed.otpmem`) into the AST1030 and AST2600 SoC models. The device is initialized, attached to a backing block drive (`-drive id=otpmem`) and linked to the SBC controller via a QOM link. The default OTP memory image can be

[PATCH v3 2/3] hw/misc/aspeed_sbc: Connect Aspeed OTP memory device to SBC controller

2025-04-22 Thread Kane Chen via
From: Kane-Chen-AS This patch integrates the `aspeed.otpmem` device with the ASPEED Secure Boot Controller (SBC). The SBC now accepts an OTP backend via a QOM link property ("otpmem"), enabling internal access to OTP content for controller-specific logic. This connection provides the

[PATCH v3 1/3] hw/misc/aspeed_otp: Add Aspeed OTP memory device model

2025-04-22 Thread Kane Chen via
From: Kane-Chen-AS This introduces a new model for the ASPEED OTP (One-Time Programmable) memory. The device is implemented as a `SysBusDevice` and provides an abstracted interface for OTP read, write (program), and default value initialization. OTP content is backed by a block device and

RE: [PATCH v2 1/3] hw/misc/aspeed_otp: Add Aspeed OTP memory device model

2025-04-17 Thread Kane Chen
Thursday, April 17, 2025 6:06 PM > To: Kane Chen ; Kane Chen via > ; Cédric Le Goater ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Jamin Lin ; Andrew > Jeffery ; Joel Stanley ; open > list:ASPEED BMCs ; open list:All patches CC here > > Cc: Troy Lee ; Kane Chen > &

[PATCH v2 1/3] hw/misc/aspeed_otp: Add Aspeed OTP memory device model

2025-04-16 Thread Kane Chen via
From: Kane-Chen-AS This introduces a new model for the ASPEED OTP (One-Time Programmable) memory. The device is implemented as a `SysBusDevice` and provides an abstracted interface for OTP read, write (program), and default value initialization. OTP content is backed by a block device and

[PATCH v2 2/3] hw/misc/aspeed_sbc: Connect Aspeed OTP memory device to SBC controller

2025-04-16 Thread Kane Chen via
From: Kane-Chen-AS This patch integrates the `aspeed.otpmem` device with the ASPEED Secure Boot Controller (SBC). The SBC now accepts an OTP backend via a QOM link property ("otpmem"), enabling internal access to OTP content for controller-specific logic. This connection provides the

[PATCH v2 0/3] hw/misc/aspeed_otp: Introduce OTP memory and integrate with SBC

2025-04-16 Thread Kane Chen via
From: Kane-Chen-AS Dear reviewers, This patch series introduces a new model for the ASPEED OTP (One-Time Programmable) memory and integrates it with the ASPEED Secure Boot Controller (SBC) and SoC models such as AST1030 and AST2600. The OTP memory is implemented as a QEMU device

[PATCH v2 3/3] hw/arm: Integrate Aspeed OTP memory into AST10x0 and AST2600 SoCs

2025-04-16 Thread Kane Chen via
From: Kane-Chen-AS This patch wires up the OTP memory device (`aspeed.otpmem`) into the AST1030 and AST2600 SoC models. The device is initialized, attached to a backing block drive (`-drive id=otpmem`) and linked to the SBC controller via a QOM link. The default OTP memory image can be

RE: Configuring onboard devices, in particular memory contents (was: [PATCH v1 0/1] hw/misc/aspeed_sbc: Implement OTP memory and controller)

2025-04-11 Thread Kane Chen
c Le Goater > Cc: Kane Chen ; Philippe Mathieu-Daudé > ; Peter Maydell ; Steven Lee > ; Troy Lee ; Jamin Lin > ; Andrew Jeffery > ; Joel Stanley ; open > list:ASPEED BMCs ; open list:All patches CC here > ; qemu-block ; Troy Lee > > Subject: Configuring onboard devices, in

RE: [PATCH v1 0/1] hw/misc/aspeed_sbc: Implement OTP memory and controller

2025-04-10 Thread Kane Chen
nal Message- > From: Cédric Le Goater > Sent: Monday, April 7, 2025 5:55 PM > To: Kane Chen ; Philippe Mathieu-Daudé > ; Peter Maydell ; Steven Lee > ; Troy Lee ; Jamin Lin > ; Andrew Jeffery > ; Joel Stanley ; open > list:ASPEED BMCs ; open list:All patches CC h

RE: [PATCH v1 0/1] hw/misc/aspeed_sbc: Implement OTP memory and controller

2025-04-07 Thread Kane Chen
review. Best Regards, Kane > -Original Message- > From: Cédric Le Goater > Sent: Friday, April 4, 2025 9:54 PM > To: Philippe Mathieu-Daudé ; Kane Chen > ; Peter Maydell ; > Steven Lee ; Troy Lee ; > Jamin Lin ; Andrew Jeffery > ; Joel Stanley ; open > list:

[PATCH v1 1/1] hw/misc/aspeed_sbc: Implement OTP memory and controller

2025-04-05 Thread Kane-Chen-AS via
This patch adds the OTP memory and its controller as part of the Secure Boot Controller (SBC) device model. The OTP memory content is persisted to a file named 'otpmem', which is created if it does not already exist. Signed-off-by: Kane-Chen-AS --- hw/misc/aspeed_sbc.c

[PATCH v1 0/1] hw/misc/aspeed_sbc: Implement OTP memory and controller

2025-04-02 Thread Kane-Chen-AS via
programmed from within the guest OS via a software utility. Kane-Chen-AS (1): hw/misc/aspeed_sbc: Implement OTP memory and controller hw/misc/aspeed_sbc.c | 304 +++ include/hw/misc/aspeed_sbc.h | 14 ++ 2 files changed, 318 insertions(+) -- 2.43.0