Skip to content

Commit 4b4169a

Browse files
committed
test: Add HSM service group tests
Signed-off-by: Rahul Pathak <[email protected]>
1 parent ad57fa1 commit 4b4169a

File tree

4 files changed

+413
-2
lines changed

4 files changed

+413
-2
lines changed

include/librpmi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ struct rpmi_hsm_platform_ops {
831831
rpmi_uint32_t hart_index,
832832
rpmi_uint64_t start_addr);
833833

834-
/** Finalize hart stop (optional) */
834+
/** Finalize hart start (optional) */
835835
void (*hart_start_finalize)(void *priv,
836836
rpmi_uint32_t hart_index,
837837
rpmi_uint64_t start_addr);

test/objects.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ test-elfs-y += test_srvgrp_sysreset
1313

1414
test_srvgrp_sysreset-objs-y += test/test_log.o
1515
test_srvgrp_sysreset-objs-y += test/test_common.o
16+
17+
test-elfs-y += test_srvgrp_hsm
18+
19+
test_srvgrp_hsm-objs-y += test/test_log.o
20+
test_srvgrp_hsm-objs-y += test/test_common.o

test/test_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ void hexdump(char *desc, unsigned int *buf, unsigned int len)
1313

1414
printf("%s \n", desc);
1515
for (i = 0; i < len/4; i++)
16-
printf("word:%d: 0x%08x\n", i, *(buf+i));
16+
printf("word:%d: 0x%08x ", i, *(buf+i));
17+
printf("(%d)\n", *buf);
1718

1819
}
1920

0 commit comments

Comments
 (0)