Skip to content

RFC PPC: Add generic FPU api similar to x86

Anson Jacob amd-gfx linuxppc-dev lkml oe-kbuild-all 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 4 repliesIn review
  2. v1 RFC2 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Added asm/fpu/api.h powerpc variant with kernel_fpu_begin/end() and kernel_fpu_enabled() declarations
- Updated kernel_fpu_enabled as EXPORT_SYMBOL_GPL
- Got rid of macro switch for PPC in dc/os_types.h as header file with same name as x86 is added by previous patch in the series

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ppc/fpu: Add generic FPU api similar to x86arch/powerpc/include/asm/fpu/api.h arch/powerpc/include/asm/switch_to.h arch/powerpc/kernel/process.c+151 -221 reply
2/2drm/amd/display: Use PPC FPU functionsdrivers/gpu/drm/amd/display/dc/os_types.h+0 -293 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC v2 0/2] PPC: Add generic FPU api similar to x86

This is an attempt to have generic FPU enable/disable calls similar to x86.
So that we can simplify gpu/drm/amd/display/dc/os_types.h

Also adds FPU correctness logic seen in x86.

v2:
- Added asm/fpu/api.h powerpc variant with kernel_fpu_begin/end() and kernel_fpu_enabled() declarations
- Updated kernel_fpu_enabled as EXPORT_SYMBOL_GPL
- Got rid of macro switch for PPC in dc/os_types.h as header file with same name as x86 is added by previous patch in the series

Anson Jacob (2):
ppc/fpu: Add generic FPU api similar to x86
drm/amd/display: Use PPC FPU functions

 arch/powerpc/include/asm/fpu/api.h        |  18 +++
 arch/powerpc/include/asm/switch_to.h      |  25 +----
 arch/powerpc/kernel/process.c             | 130 ++++++++++++++++++++++
 drivers/gpu/drm/amd/display/dc/os_types.h |  29 -----
 4 files changed, 151 insertions(+), 51 deletions(-)
 create mode 100644 arch/powerpc/include/asm/fpu/api.h
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx