Skip to content

powerpc/rtas: miscellaneous cleanups

Nathan Lynch linuxppc-dev 2 versions – Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesApplied
  2. v16 patches 28 repliesSuperseded

Changes in v2 from the cover letter

- Correct missing conversion of RTAS_RMOBUF_MAX -> RTAS_USER_REGION_SIZE in in_rmo_buf().
- Remove unnecessary braces in rtas_syscall_filter_init().
- Leave expression of RTAS_WORK_AREA_SIZE as-is instead of changing the factors in a confusing way, per discussion with Alexey.
- Drop "powerpc/rtas: constrain user region allocation to RMA"

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5powerpc/rtas: improve ppc_rtas_rmo_buf_show documentationarch/powerpc/kernel/rtas-proc.c+10 -10 replies
2/5powerpc/rtas-proc: remove unused RMO_READ_BUF_MAXarch/powerpc/kernel/rtas-proc.c+0 -20 replies
3/5powerpc/rtas: remove ibm_suspend_me_tokenarch/powerpc/kernel/rtas.c+2 -50 replies
4/5powerpc/rtas: move syscall filter setup into separate functionarch/powerpc/kernel/rtas.c+13 -80 replies
5/5powerpc/rtas: rename RTAS_RMOBUF_MAX to RTAS_USER_REGION_SIZEarch/powerpc/include/asm/rtas.h arch/powerpc/kernel/rtas-proc.c arch/powerpc/kernel/rtas.c+7 -71 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAlexey KardashevskiyAndrew Donnellan
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b A-b
5/5R-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/5] powerpc/rtas: miscellaneous cleanups

This is a reroll of the series posted here:
https://lore.kernel.org/linuxppc-dev/[email protected]/

Originally this work was prompted by failures on radix MMU PowerVM guests when passing buffers to RTAS that lay outside of its idea of the RMA. In v1 I approached this as a problem to be solved in Linux, but RTAS development has since decided to change their code so that the RMA restriction does not apply with radix.

So in v2 I retain the cleanups and discard the more significant change which accommodated the misbehaving RTAS versions.

Changes since v1:
- Correct missing conversion of RTAS_RMOBUF_MAX -> RTAS_USER_REGION_SIZE in in_rmo_buf().
- Remove unnecessary braces in rtas_syscall_filter_init().
- Leave expression of RTAS_WORK_AREA_SIZE as-is instead of changing the factors in a confusing way, per discussion with Alexey.
- Drop "powerpc/rtas: constrain user region allocation to RMA"

Nathan Lynch (5):
powerpc/rtas: improve ppc_rtas_rmo_buf_show documentation powerpc/rtas-proc: remove unused RMO_READ_BUF_MAX powerpc/rtas: remove ibm_suspend_me_token powerpc/rtas: move syscall filter setup into separate function powerpc/rtas: rename RTAS_RMOBUF_MAX to RTAS_USER_REGION_SIZE

 arch/powerpc/include/asm/rtas.h |  6 +++---
 arch/powerpc/kernel/rtas-proc.c | 15 +++++++++++----
 arch/powerpc/kernel/rtas.c      | 34 +++++++++++++++++----------------
 3 files changed, 32 insertions(+), 23 deletions(-)
Signature · 1 line
2.30.2