.97540-1-...@redhat.com/
QEMU version:
https://github.com/qemu/qemu/commit/f96b157ebb93f94cd56ebbc99bc20982b8fd86ef
Jamin
> Jamin Lin (21):
> hw/arm/aspeed_ast27x0-fc: Support VBootRom
> hw/arm/ast27x0: Move SSP coprocessor initialization from machine to
> SoC leve
> hw/arm/ast2
manually loading boot images and
firmwares via `-device loader`. The vBootROM integrates boot sequencing for
PSP, TSP, and SSP and sets up SCU configuration as part of its flow, enabling
more realistic full-system testing without relying on console switching.
Signed-off-by: Jamin Lin
the
real-world flow where the PSP controls TSP boot through SCU interaction.
Signed-off-by: Jamin Lin
---
hw/arm/aspeed_ast27x0-tsp.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/hw/arm/aspeed_ast27x0-tsp.c b/hw/arm/aspeed_ast27x0-tsp.c
index 4c3b18695e..49a49604de 1006
: Jul 17 2025 02:26:07
FW Version : git-f9eb0bb
Signed-off-by: Jamin Lin
---
pc-bios/ast27x0_bootrom.bin | Bin 15552 -> 17192 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/pc-bios/ast27x0_bootrom.bin b/pc-bios/ast27x0_bootrom.bin
in
functions and register bit layout as
SSP,
with logic selected by cpuid and distinct external reset sources.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_scu.c | 31 ---
1 file changed, 28 insertions(+), 3 deletions(-)
diff --git a/hw/misc/aspeed_scu.c b/hw/misc
| 0x0200_
|
| remap2 base| | | - SCU_148: target addr
|
| size: 32MB(SCU_154)| |---> |remap1
|
|--|
||
Signed
device realization order is explicitly managed:
"aspeed_soc_ast2700_ssp_realize()" is invoked after the SCU is initialized.
This ensures that PSP and SSP access a consistent SCU state, as expected by
hardware.
Signed-off-by: Jamin Lin
---
include/hw/arm/aspeed_soc.h | 1 +
hw
Signed-off-by: Jamin Lin
---
docs/system/arm/aspeed.rst | 41 --
1 file changed, 35 insertions(+), 6 deletions(-)
diff --git a/docs/system/arm/aspeed.rst b/docs/system/arm/aspeed.rst
index bf18c56347..bc836e486f 100644
--- a/docs/system/arm/aspeed.rst
+++ b
ealization order is explicitly managed:
"aspeed_soc_ast2700_tsp_realize()" is invoked after SRAM is initialized.
This ensures that TSP’s access to shared SRAM functions correctly.
Signed-off-by: Jamin Lin
---
include/hw/arm/aspeed_soc.h | 1 +
hw/arm/aspeed_ast27x0-tsp.c | 5 +
hw/arm/aspeed_ast27x0.c |
ealization order is explicitly managed:
"aspeed_soc_ast2700_ssp_realize()" is invoked after SRAM is initialized.
This ensures that SSP’s access to shared SRAM functions correctly.
Signed-off-by: Jamin Lin
---
include/hw/arm/aspeed_soc.h | 1 +
hw/arm/aspeed_ast27x0-ssp.c | 5 +
hw/arm/aspeed_ast27x0
.
Signed-off-by: Jamin Lin
---
include/hw/arm/aspeed_soc.h | 1 +
hw/arm/aspeed_ast27x0-tsp.c | 2 ++
hw/arm/aspeed_ast27x0.c | 9 +
3 files changed, 12 insertions(+)
diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h
index d628a189c1..83e07582d2 100644
--- a/include
(SCU_194)| |
|
|--|
||
SCU VMState version remains at 3, as it was already bumped in a previous commit.
Signed-off-by: Jamin Lin
---
include/hw/misc/aspeed_scu.h | 1 +
hw/arm/aspeed_ast27x0.c | 3 +++
hw/misc/aspeed_scu.c | 24 +++-
3 files changed, 27 i
hange.
Signed-off-by: Jamin Lin
---
hw/arm/aspeed_ast27x0.c | 40
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/hw/arm/aspeed_ast27x0.c b/hw/arm/aspeed_ast27x0.c
index 2d27eb1deb..9d67c5f631 100644
--- a/hw/arm/aspeed_ast27x0.c
+++ b/h
coprocessor realization.
This allows SSP to reference the alias regions during its SDRAM setup.
Additionally, the realization order comment has been updated to reflect
the new DRAM dependency: coprocessors must now be realized after DRAM,
SRAM, and SCU are all initialized.
Signed-off-by: Jamin Lin
device realization order is explicitly managed:
"aspeed_soc_ast2700_tsp_realize()" is invoked after the SCU is initialized.
This ensures that PSP and TSP access a consistent SCU state, as expected by
hardware.
Signed-off-by: Jamin Lin
---
include/hw/arm/aspeed_soc.h | 1 +
h
the
real-world flow where the PSP controls SSP boot through SCU interaction.
Signed-off-by: Jamin Lin
---
hw/arm/aspeed_ast27x0-ssp.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/hw/arm/aspeed_ast27x0-ssp.c b/hw/arm/aspeed_ast27x0-ssp.c
index fff95eac6a..b1dfbc4292 1006
for the AST2700 SoC.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_scu.c | 94
1 file changed, 94 insertions(+)
diff --git a/hw/misc/aspeed_scu.c b/hw/misc/aspeed_scu.c
index 21a0d1ad5c..50f3f6ff17 100644
--- a/hw/misc/aspeed_scu.c
+++ b/hw/misc
ng "dram_container" makes it easier to manage aliases and remap logic.
Signed-off-by: Jamin Lin
---
hw/arm/aspeed_ast27x0-tsp.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/hw/arm/aspeed_ast27x0-tsp.c b/hw/arm/aspeed_ast27x0-tsp.c
index 4e
ASPEED_DEV_SPI_BOOT.
Signed-off-by: Jamin Lin
---
hw/arm/aspeed_ast27x0-fc.c | 75 ++
1 file changed, 75 insertions(+)
diff --git a/hw/arm/aspeed_ast27x0-fc.c b/hw/arm/aspeed_ast27x0-fc.c
index 7087be4288..e2eee6183f 100644
--- a/hw/arm/aspeed_ast27x0-fc.c
+++ b/hw/arm
step for future commits that will support shared SCU,
SRAM, and memory remap logic—specifically enabling PSP DRAM remap for SSP SDRAM
access.
Signed-off-by: Jamin Lin
---
include/hw/arm/aspeed_soc.h | 27 +---
hw/arm/aspeed_ast27x0-fc.c | 30 ++
hw/arm
g subregions at specific offsets.
Using "dram_container" makes it easier to manage aliases and remap logic.
Signed-off-by: Jamin Lin
---
hw/arm/aspeed_ast27x0-ssp.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/hw/arm/aspeed_ast27x0-ssp.c b/hw/arm
mory remap
handling across PSP, SSP, and TSP. Future commits will add memory remap
mechanisms and tightly integrated SoC controller coordination.
Signed-off-by: Jamin Lin
---
include/hw/arm/aspeed_soc.h | 26 ++
hw/arm/aspeed_ast27x0-fc.c | 32 ++
coprocessor reset via SCU registers.
Jamin Lin (21):
hw/arm/aspeed_ast27x0-fc: Support VBootRom
hw/arm/ast27x0: Move SSP coprocessor initialization from machine to
SoC leve
hw/arm/ast27x0: Move TSP coprocessor initialization from machine to
SoC leve
hw/arm/aspeed_ast27x0-ssp: Switch SSP
Hi Cédric,
> Subject: Re: [PATCH v1 00/18] Support AST2700 A1
>
> Hello,
>
> >> Should we switch the alias to point to 'ast2700a1-evb' in QEMU 10.1.0 ?
> >> and deprecate the A0 SoC and machine if it is no longer planned to
> >> support them.
> >>
> >
> > Sorry for the late reply and delay in pr
The ast2700a0-evb machine represents the first revision of the AST2700 and
serves as the initial engineering sample rather than a production version.
A newer revision, A1, is now supported, and the ast2700a1-evb should replace
the older A0 version.
Signed-off-by: Jamin Lin
---
docs/about
Hi Cédric
> Subject: Re: [PATCH v1 00/18] Support AST2700 A1
>
> Hi,
>
> On 1/31/25 08:34, Cédric Le Goater wrote:
> > Hello Jamin,
> >
> > On 1/21/25 08:04, Jamin Lin wrote:
> >> v1:
> >> 1. Refactor INTC model to support both INTC0 and IN
gt; > Signed-off-by: Tan Siewert
>
> Could you please resend your R-b ?
>
> Thanks,
>
> C.
>
>
Reviewed-by: Jamin Lin
Thanks-Jamin
>
> > ---
> > V4:
> >- Fix mis-understanding of or operator in lock check [Tan]
> >- Move
-boot/commit/94e5435504fb0df5c1bfd3fa284cdd6aaf9b
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_sdmc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c
index f04d9930dd..dff7cc362d 100644
--- a/hw/misc/aspeed_sdmc.c
+++ b/hw/misc/aspeed_s
confirmed from an EVB register dump.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_scu.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/hw/misc/aspeed_scu.c b/hw/misc/aspeed_scu.c
index 4930e00fed..11d0739108 100644
--- a/hw/misc/aspeed_scu.c
+++ b/hw/misc/aspeed_scu.c
@@ -176,6 +176,7
v1:
- Skipping dram_init in u-boot for AST2700
- Support the Frequency Counter Control register for AST2700
Jamin Lin (2):
hw/misc/aspeed_sdmc: Skipping dram_init in u-boot for AST2700
hw/misc/aspeed_scu: Support the Frequency Counter Control register for
AST2700
hw/misc/aspeed_scu.c
s[AST2600_PROT_KEY2] = value;
> +return;
> +case AST2600_PROT_KEY2:
> +s->regs[AST2600_PROT_KEY2] = (data == ASPEED_SCU_PROT_KEY) ?
> 1
> + : 0;
> return;
> case AST2600_HW_STRAP1:
> case AST2600_HW_STRAP2:
> --
> 2.49.0
Reviewed-by: Jamin Lin
Thanks-Jamin
> registers correctly
>
> Hi Tan,
>
> > Subject: [PATCH v2] hw/misc/aspeed_scu: Handle AST2600 protection key
> > registers correctly
> >
> > The AST2600 SCU has two protection key registers (0x00 and 0x10) that
> > both need to be unlocked. Each must be unlocked individually, but
> > locking one
Hi Tan,
> Subject: [PATCH v2] hw/misc/aspeed_scu: Handle AST2600 protection key
> registers correctly
>
> The AST2600 SCU has two protection key registers (0x00 and 0x10) that both
> need to be unlocked. Each must be unlocked individually, but locking one will
> lock both.
>
> This commit update
Hi Cédric
> Subject: Re: [PATCH v3 00/28] Fix incorrect hash results on AST2700
>
> Hello Michael
>
> On 5/29/25 09:29, Michael Tokarev wrote:
> > On 15.05.2025 11:09, Jamin Lin via wrote:
> >
> >> This patchset resolves incorrect hash results reported
v1:
1. Fix RAM size detection failure on BE hosts
2. INTC: Set impl.min_access_size to 4
Fix coding style
v2:
Fix review issue.
Jamin Lin (3):
hw/intc/aspeed: Set impl.min_access_size to 4
hw/intc/aspeed Fix coding style
hw/arm/aspeed_ast27x0: Fix RAM size detection failure on
Fix coding style issues from checkpatch.pl.
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
---
hw/intc/aspeed_intc.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/intc/aspeed_intc.c b/hw/intc/aspeed_intc.c
index 19f88853d8..5cd786dee6 100644
--- a/hw/intc
cit 32-bit little-endian write.
- Updating the MemoryRegionOps to restrict access to exactly 4 bytes
using .valid.{min,max}_access_size = 4 and .impl.min_access_size = 4.
Signed-off-by: Jamin Lin
Fixes: 7436db1 ("aspeed/soc: fix incorrect dram size for AST2700")
---
hw/arm/aspeed_ast27x0.c | 10
This patch explicitly sets ".impl.min_access_size = 4" to match the
declared ".valid.min_access_size = 4", enforcing stricter access size
checking and preventing inconsistent partial accesses to the interrupt
controller registers.
Signed-off-by: Jamin Lin
Reviewed-by: Cédri
Hi Cédric
> Subject: Re: [PATCH v1 3/3] hw/arm/aspeed_ast27x0: Fix RAM size detection
> failure on BE hosts
>
> On 5/20/25 09:35, Jamin Lin wrote:
> > On big-endian hosts, the aspeed_ram_capacity_write() function
> > previously passed the address of a 64-bit &qu
temporary "uint32_t le_data".
- Updating the MemoryRegionOps to restrict access to exactly 4 bytes
using .valid.{min,max}_access_size = 4 and .impl.min_access_size = 4.
Signed-off-by: Jamin Lin
Fixes: 7436db1 ("aspeed/soc: fix incorrect dram size for AST2700")
---
hw/arm/aspeed
Fix coding style issues from checkpatch.pl.
Signed-off-by: Jamin Lin
---
hw/intc/aspeed_intc.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/intc/aspeed_intc.c b/hw/intc/aspeed_intc.c
index 19f88853d8..5cd786dee6 100644
--- a/hw/intc/aspeed_intc.c
+++ b/hw/intc
This patch explicitly sets ".impl.min_access_size = 4" to match the
declared ".valid.min_access_size = 4", enforcing stricter access size
checking and preventing inconsistent partial accesses to the interrupt
controller registers.
Signed-off-by: Jamin Lin
---
hw/intc/aspeed_
v1:
1. Fix RAM size detection failure on BE hosts
2. INTC: Set impl.min_access_size to 4
Fix coding style
Jamin Lin (3):
hw/intc/aspeed: Set impl.min_access_size to 4
hw/intc/aspeed Fix coding style
hw/arm/aspeed_ast27x0: Fix RAM size detection failure on BE hosts
hw/arm
Hi Cédric
> Subject: Re: [PULL 45/46] tests/functional/aspeed: Add test case for AST2700
> A1
>
> On 5/16/25 04:59, Jamin Lin wrote:
> > Hi Cédric
> >
> >>
> >> On a BE host, if I run an ast2700a0-evb machine :
> >>
>
Hi Philippe,
> Subject: Re: [PULL 34/46] hw/intc/aspeed: Add Support for AST2700 INTCIO
> Controller
>
> On 9/3/25 14:51, Cédric Le Goater wrote:
> > From: Jamin Lin
> >
> > Introduce a new ast2700 INTCIO class to support AST2700 INTCIO.
> > Added new regist
Hi Cédric
>
> On a BE host, if I run an ast2700a0-evb machine :
>
> $ qemu-system-aarch64 -machine ast2700a0-evb ...
> ...
> U-Boot 2023.10-v00.05.06 (Mar 26 2025 - 05:59:26 +)
>
> SOC: AST2700-A0
> Model: AST2700 EVB
> DRAM: 8 GiB (effective 0 Bytes)
>
> QEMU han
Currently, users define multiple local variables within different if-statements.
To improve readability and maintain consistency in variable naming, rename the
variables accordingly.
Introduced "sg_addr" to clearly indicate the scatter-gather mode buffer address.
Signed-off-by: Jamin Li
Added "src_hi" and "dest_hi" fields to "AspeedMasks" for 64-bit addresses test.
Updated "aspeed_test_addresses" to validate "HACE_HASH_SRC_HI" and
"HACE_HASH_DIGEST_HI".
Ensured correct masking of 64-bit addresses by checking both
H values generated here should exactly match those computed on the host
machine using sha shell commands, verifying both the correctness of the
hardware-accelerated results and the functionality of the ast_crypto_engine.
Jamin Lin (28):
hw/misc/aspeed_hace: Remove unused code for better readabil
Added "HACE_HASH_SRC_HI" and "HACE_HASH_DIGEST_HI", "HACE_HASH_KEY_BUFF_HI"
registers to store upper 32 bits.
Updated "write_regs" to handle 64-bit source and digest addresses.
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
---
tests/qtest/
To enhance code readability and prevent potential buffer overflows or unintended
size assumptions, this commit updates all fixed-size array declarations to use
explicit array sizes.
Signed-off-by: Jamin Lin
---
tests/qtest/aspeed-hace-utils.c | 26 +-
1 file changed, 13
ze to 0x3 (192KB).
buffer_addr = src_addr + 0x1
digest_addr = src_addr + 0x40000
Signed-off-by: Jamin Lin
---
tests/qtest/aspeed-hace-utils.c | 30 +++---
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/tests/qtest/aspeed-hace-utils.c b/tests/qtest/aspee
[7:0] - 4.
Signed-off-by: Jamin Lin
---
include/hw/misc/aspeed_hace.h | 3 +++
hw/misc/aspeed_hace.c | 31 ++-
2 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/include/hw/misc/aspeed_hace.h b/include/hw/misc/aspeed_hace.h
index f30d606559..9945b
To improve code readability and maintainability of do_hash_operation(), this
commit introduces a new helper function: hash_execute_non_acc_mode().
The helper encapsulate the hashing logic for non-accumulation mode.
No functional changes are introduced.
Signed-off-by: Jamin Lin
---
hw/misc
always be set to
ensure that the firmware receives an interrupt from the HACE module, preventing
it from getting stuck or repeatedly sending HASH commands.
Signed-off-by: Jamin Lin
Fixes: c5475b3 ("hw: Model ASPEED's Hash and Crypto Engine")
---
hw/misc/aspeed_hace.c | 18 +--
Added "key" and "key_hi" fields to "AspeedMasks" for 64-bit addresses test.
Updated "aspeed_test_addresses" to validate "HACE_HASH_KEY_BUFF" and
"HACE_HASH_KEY_BUFF_HI".
Ensured correct masking of 64-bit addresses by checking both
Introduced "trace_aspeed_hace_hash_addr", "trace_aspeed_hace_hash_sg",
"trace_aspeed_hace_read", "trace_aspeed_hace_hash_execute_acc_mode",
and "trace_aspeed_hace_write" trace events.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 10 +
address starts at "0x1207", and
the DRAM start address is "0x4_".
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
---
tests/qtest/ast2700-hace-test.c | 98 +
tests/qtest/meson.build | 2 +
2 files changed, 100 insert
-utils.c.
All common APIs and test cases have been moved from aspeed_hace-test.c to
aspeed-hace-utils.c to facilitate reuse across different ASPEED SoCs.
As a result, these test cases can now be reused for AST2700 and future ASPEED
SoC testing.
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
Introduced SHA-384 test functions to verify hashing operations.
Extended support for scatter-gather ("_sg") and accumulation ("_accum") tests.
Updated test result vectors for SHA-384 validation.
Signed-off-by: Jamin Lin
---
tests/qtest/aspeed-hace-utils.h | 6 ++
tes
addressing.
Signed-off-by: Jamin Lin
---
tests/qtest/aspeed-hace-utils.h | 20 -
tests/qtest/aspeed-hace-utils.c | 72 -
2 files changed, 46 insertions(+), 46 deletions(-)
diff --git a/tests/qtest/aspeed-hace-utils.h b/tests/qtest/aspeed-hace-utils.h
index
1. Added "hace_hexdump()" to dump a contiguous buffer using qemu_hexdump.
2. Added "hace_iov_hexdump()" to flatten and dump scatter-gather source vectors.
3. Introduced a new trace event: "aspeed_hace_hexdump".
Signed-off-by: Jamin Lin
-
s accordingly. The VMState version was
already bumped in a previous patch of this series, so no further version change
is needed.
Signed-off-by: Jamin Lin
---
include/hw/misc/aspeed_hace.h | 5 +++--
hw/misc/aspeed_hace.c | 36 ++-
2 files changed, 22 insertion
urce
hash
buffer address.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 24 +---
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c
index 33e13974fe..b3c3af51fa 100644
--- a/hw/misc/aspeed_hace.c
+++ b/hw/misc/asp
attribute and set it to true for the AST2700.
Signed-off-by: Jamin Lin
---
include/hw/misc/aspeed_hace.h | 1 +
hw/misc/aspeed_hace.c | 17 -
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/include/hw/misc/aspeed_hace.h b/include/hw/misc/aspeed_hace.h
index
with I/O vector unmapping.
No functional changes are introduced.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 74 ---
1 file changed, 41 insertions(+), 33 deletions(-)
diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c
index c50e228cdf
Introduced "test_sha384_ast2600" to validate SHA-384 hashing.
Added "test_sha384_sg_ast2600" for scatter-gather SHA-384 verification.
Implemented "test_sha384_accum_ast2600" to test SHA-384 accumulation.
Registered new test cases in "main" to ensure execut
starts at "0x7e6d", and the
SDRAM start address is "0x0".
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
---
tests/qtest/aspeed_hace-test.c | 76 ++
1 file changed, 76 insertions(+)
diff --git a/tests/qtest/aspeed_hace-test.c b/tes
logic
and improve code readability.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 25 +++--
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c
index b3c3af51fa..62649b5b27 100644
--- a/hw/misc/aspeed_hace.c
+++ b
.
- Deleted "iov_cache" and "iov_count" from "AspeedHACEState".
- Removed "reconstruct_iov" function and related logic.
- Simplified "do_hash_operation" by eliminating redundant checks.
Signed-off-by: Jamin Lin
---
include/hw/misc/aspeed_
Reordered the aspeed test list to keep the alphabetical order.
No functional changes in test behavior.
Signed-off-by: Jamin Lin
---
tests/qtest/meson.build | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index
.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 42 --
1 file changed, 32 insertions(+), 10 deletions(-)
diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c
index 1256926d22..42c6f29f82 100644
--- a/hw/misc/aspeed_hace.c
+++ b/hw/misc/aspeed_hace.c
introduced.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 33 +
1 file changed, 21 insertions(+), 12 deletions(-)
diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c
index 22eea62693..7da781f864 100644
--- a/hw/misc/aspeed_hace.c
+++ b/hw/misc
detection.
No functional changes are introduced.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 111 --
1 file changed, 63 insertions(+), 48 deletions(-)
diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c
index 42c6f29f82..22eea62693 100644
--- a
Check for padding and determine whether this is the final request.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 24 +---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c
index 62649b5b27..049f732f99 100644
-
Hi Cédric
> > >
> > >> The SG_LIST_ADDR_MASK needs an update though. AFAICT, it's bigger
> > >> on AST2700.
> > >
> > > The value of SG_LIST_ADDR_MASK was wrong for AST2700, AST2600 and
> > AST1030.
> > > The correct value should be 0x7FF8.
> > > Will create a new patch to fix it.
> > > Please
> Subject: RE: [PATCH v1 08/22] hw/misc/aspeed_hace: Support DMA 64 bits
> dram address.
>
> Hi Cédric
>
> > > >
> > > >> The SG_LIST_ADDR_MASK needs an update though. AFAICT, it's bigger
> > > >> on AST2700.
> > > >
> > > > The value of SG_LIST_ADDR_MASK was wrong for AST2700, AST2600 and
> > >
Hi Cédric
> Subject: Re: [PATCH v2 05/25] hw/misc/aspeed_hace: Split hash execution into
> helper functions for clarity
>
> Hello Jamin,
>
> On 5/14/25 04:48, Jamin Lin wrote:
> > Hi Cédric,
> >
> >> Subject: RE: [PATCH v2 05/25] hw/misc/aspeed_hace
t; Hello Jamin
> >
> > On 5/13/25 08:28, Jamin Lin wrote:
> > > Refactor "do_hash_operation()" by extracting hash execution and
> > > result handling into dedicated helper functions:
> > >
> > > - "hash_write_digest_an
Hi Cédric
> Subject: Re: [PATCH v2 05/25] hw/misc/aspeed_hace: Split hash execution into
> helper functions for clarity
>
> Hello Jamin
>
> On 5/13/25 08:28, Jamin Lin wrote:
> > Refactor "do_hash_operation()" by extracting hash execution and result
> >
Link:
https://patchwork.kernel.org/project/qemu-devel/patch/20250509175047.26066-1-faro...@suse.de/
Signed-off-by: Jamin Lin
---
tests/qtest/aspeed_smc-test.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/tests/qtest/aspeed_smc-test.c b/tests/qtest/aspeed_smc-test.c
index 4e1389385d
always be set to
ensure that the firmware receives an interrupt from the HACE module, preventing
it from getting stuck or repeatedly sending HASH commands.
Signed-off-by: Jamin Lin
Fixes: c5475b3 ("hw: Model ASPEED's Hash and Crypto Engine")
---
hw/misc/aspeed_hace.c | 18 +--
.
- Deleted "iov_cache" and "iov_count" from "AspeedHACEState".
- Removed "reconstruct_iov" function and related logic.
- Simplified "do_hash_operation" by eliminating redundant checks.
Signed-off-by: Jamin Lin
---
include/hw/misc/aspeed_
-utils.c.
All common APIs and test cases have been moved from aspeed_hace-test.c to
aspeed-hace-utils.c to facilitate reuse across different ASPEED SoCs.
As a result, these test cases can now be reused for AST2700 and future ASPEED
SoC testing.
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
Introduced SHA-384 test functions to verify hashing operations.
Extended support for scatter-gather ("_sg") and accumulation ("_accum") tests.
Updated test result vectors for SHA-384 validation.
Signed-off-by: Jamin Lin
---
tests/qtest/aspeed-hace-utils.h | 6 ++
tes
Added "HACE_HASH_SRC_HI" and "HACE_HASH_DIGEST_HI", "HACE_HASH_KEY_BUFF_HI"
registers to store upper 32 bits.
Updated "write_regs" to handle 64-bit source and digest addresses.
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
---
tests/qtest/
addressing.
Signed-off-by: Jamin Lin
---
tests/qtest/aspeed-hace-utils.h | 20 -
tests/qtest/aspeed-hace-utils.c | 72 -
2 files changed, 46 insertions(+), 46 deletions(-)
diff --git a/tests/qtest/aspeed-hace-utils.h b/tests/qtest/aspeed-hace-utils.h
index
[7:0] - 4.
Signed-off-by: Jamin Lin
---
include/hw/misc/aspeed_hace.h | 3 +++
hw/misc/aspeed_hace.c | 31 ++-
2 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/include/hw/misc/aspeed_hace.h b/include/hw/misc/aspeed_hace.h
index f30d606559..9945b
Added "src_hi" and "dest_hi" fields to "AspeedMasks" for 64-bit addresses test.
Updated "aspeed_test_addresses" to validate "HACE_HASH_SRC_HI" and
"HACE_HASH_DIGEST_HI".
Ensured correct masking of 64-bit addresses by checking both
Added "key" and "key_hi" fields to "AspeedMasks" for 64-bit addresses test.
Updated "aspeed_test_addresses" to validate "HACE_HASH_KEY_BUFF" and
"HACE_HASH_KEY_BUFF_HI".
Ensured correct masking of 64-bit addresses by checking both
ze to 0x3 (192KB).
buffer_addr = src_addr + 0x1
digest_addr = src_addr + 0x40000
Signed-off-by: Jamin Lin
---
tests/qtest/aspeed-hace-utils.c | 30 +++---
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/tests/qtest/aspeed-hace-utils.c b/tests/qtest/aspee
To enhance code readability and prevent potential buffer overflows or unintended
size assumptions, this commit updates all fixed-size array declarations to use
explicit array sizes.
Signed-off-by: Jamin Lin
---
tests/qtest/aspeed-hace-utils.c | 26 +-
1 file changed, 13
starts at "0x7e6d", and the
SDRAM start address is "0x0".
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
---
tests/qtest/aspeed_hace-test.c | 76 ++
1 file changed, 76 insertions(+)
diff --git a/tests/qtest/aspeed_hace-test.c b/tes
address starts at "0x1207", and
the DRAM start address is "0x4_".
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
---
tests/qtest/ast2700-hace-test.c | 98 +
tests/qtest/meson.build | 2 +
2 files changed, 100 insert
Introduced "test_sha384_ast2600" to validate SHA-384 hashing.
Added "test_sha384_sg_ast2600" for scatter-gather SHA-384 verification.
Implemented "test_sha384_accum_ast2600" to test SHA-384 accumulation.
Registered new test cases in "main" to ensure execut
Reordered the aspeed test list to keep the alphabetical order.
No functional changes in test behavior.
Signed-off-by: Jamin Lin
---
tests/qtest/meson.build | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index
Introduced "trace_aspeed_hace_hash_addr", "trace_aspeed_hace_hash_sg",
"trace_aspeed_hace_read", "trace_aspeed_hace_hash_execute_acc_mode",
and "trace_aspeed_hace_write" trace events.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 11
attribute and set it to true for the AST2700.
Signed-off-by: Jamin Lin
---
include/hw/misc/aspeed_hace.h | 1 +
hw/misc/aspeed_hace.c | 17 -
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/include/hw/misc/aspeed_hace.h b/include/hw/misc/aspeed_hace.h
index
ne-shot (non-accumulated) hash
operations.
- "hash_execute_acc_mode()": Handles accumulated hashing, including update and
finalize logic.
No functional changes introduced.
Signed-off-by: Jamin Lin
---
hw/misc/aspeed_hace.c | 133 ++
1 file
1. Added "hace_hexdump()" to dump a contiguous buffer using qemu_hexdump.
2. Added "hace_iov_hexdump()" to flatten and dump scatter-gather source vectors.
3. Introduced a new trace event: "aspeed_hace_hexdump".
Signed-off-by: Jamin Lin
-
1 - 100 of 1011 matches
Mail list logo