Skip to content

lib: sbi: fwft: Fix return error values according to the spec

Clément Léger opensbi 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Use BIT_ULL instead of BIT to avoid shift overflow.
- Include another patch to optimize flags clearing.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4include: sbi: Add SBI_ERR_DENIED_LOCKEDinclude/sbi/sbi_ecall_interface.h include/sbi/sbi_error.h+3 -11 reply
2/4lib: sbi: fwft: Return SBI_ERR_DENIED_LOCKED when setting a locked featurelib/sbi/sbi_fwft.c+1 -11 reply
3/4lib: sbi: fwft: Fix error return value for feature > 32 bitsinclude/sbi/sbi_fwft.h lib/sbi/sbi_fwft.c+9 -52 replies
3/4lib: sbi: fwft: Fix error return value for feature > 32 bits+0 -01 reply
3/4lib: sbi: fwft: Fix error return value for feature > 32 bits+0 -00 replies
3/4lib: sbi: fwft: Fix error return value for feature > 32 bits+0 -00 replies
4/4lib: sbi: Clear lock only for local eventslib/sbi/sbi_fwft.c+16 -101 reply

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchAnup PatelAndrew Jones
1/4R-b
2/4R-b
3/4
3/4
3/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] lib: sbi: fwft: Fix return error values according to the spec

The fwft spec mandates that an invalid feature ID return SBI_ERR_INVALID_PARAM and that setting a locked value should return SBI_ERR_DENIED_LOCKED. Add support for both cases.

---
v2:
- Use BIT_ULL instead of BIT to avoid shift overflow.
- Include another patch to optimize flags clearing.

Cl?ment L?ger (4):
include: sbi: Add SBI_ERR_DENIED_LOCKED
lib: sbi: fwft: Return SBI_ERR_DENIED_LOCKED when setting a locked
feature
lib: sbi: fwft: Fix error return value for feature > 32 bits
lib: sbi: Clear lock only for local events

 include/sbi/sbi_ecall_interface.h |  3 ++-
 include/sbi/sbi_error.h           |  1 +
 include/sbi/sbi_fwft.h            |  4 ++--
 lib/sbi/sbi_fwft.c                | 38 +++++++++++++++++++------------
 4 files changed, 29 insertions(+), 17 deletions(-)
Signature · 1 line
2.47.1