Skip to content

Commit

Permalink
rpmi/clock: Reorder flags bits and remove duplicate error code
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Pathak <[email protected]>
  • Loading branch information
pathakraul committed Nov 9, 2024
1 parent 03550f5 commit 1b1cb68
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/srvgrp-clock.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ described in <<clock-notifications>>.
==== Service: CLK_GET_NUM_CLOCKS (SERVICE_ID: 0x02)
This service is used to query the number of clocks available in the system.
All supported clocks in the system are designated by an integer identifier
called `CLOCK_ID`. `CLOCK_ID` are sequential starting from `0`.
called `CLOCK_ID`.

[#table_clock_getnumclocks_request_data]
.Request Data
Expand Down Expand Up @@ -393,10 +393,7 @@ to get all the clock rates. In case the `CLOCK_FORMAT` is a linear range the
! Service completed successfully.

! RPMI_ERR_INVALID_PARAM
! `CLOCK_ID` is invalid.

! RPMI_ERR_INVALID_PARAM
! `CLOCK_RATE_INDEX` is invalid.
! `CLOCK_ID` or `CLOCK_RATE_INDEX` is invalid.

!===
- Other errors <<table_error_codes>>
Expand Down Expand Up @@ -579,7 +576,11 @@ This service is used to set the clock rate of a specific clock.
! Bits
! Description

! [31:30] ! Clock rate round up/round down
! [31:2]
! _Reserved_ and must be `0`.

! [1:0]
! Clock rate rounding mode
----
0b00: Round down
0b01: Round up
Expand All @@ -588,8 +589,6 @@ This service is used to set the clock rate of a specific clock.
In Auto mode the platform can autonomously chooses a supported rate closest to the requested rate.
----

! [29:0] ! _Reserved_ and must be `0`.
!===

| 2
Expand Down

0 comments on commit 1b1cb68

Please sign in to comment.