Skip to content

Commit

Permalink
rpmi/sysreset: Add error codes for SYSRST_RESET
Browse files Browse the repository at this point in the history
SYSRST_RESET service can return if the service does not
complete successfully. Add the possible error codes

Signed-off-by: Rahul Pathak <[email protected]>
  • Loading branch information
pathakraul committed Nov 6, 2024
1 parent 534f377 commit 9fa5f07
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions src/srvgrp-system-reset.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ default. System Warm Reset support can be discovered with this service.
This service is used to initiate the system reset or system shutdown.
The application processor must only request supported reset types, discovered
using the `SYSRST_GET_ATTRIBUTES` service except for System Shutdown and System
Cold Reset which are supported by default. Requesting an unsupported or
invalid reset type may result in the system entering a non-functional state.
Cold Reset which are supported by default. This service does not return in case
of successful reset.

[#table_sysreset_sysreset_request_data]
.Request Data
Expand All @@ -205,7 +205,25 @@ invalid reset type may result in the system entering a non-functional state.

[#table_sysreset_sysreset_response_data]
.Response Data
[cols="1", width=100%, align="center", options="header"]
|===
| NA
[cols="1, 2, 1, 7a", width=100%, align="center", options="header"]
|===
| Word
| Name
| Type
| Description

| 0
| STATUS
| int32
| Return error code

[cols="5,5a", options="header"]
!===
! Error Code
! Description

! RPMI_ERR_INVALID_PARAM
! `RESET_TYPE` is not supported or invalid.
!===
- Other errors <<table_error_codes>>
|===

0 comments on commit 9fa5f07

Please sign in to comment.