linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC v2 0/2] PPC: Add generic FPU api similar to x86
@ 2021-07-21  4:47 Anson Jacob
  2021-07-21  4:48 ` [RFC v2 1/2] ppc/fpu: " Anson Jacob
  2021-07-21  4:48 ` [RFC v2 2/2] drm/amd/display: Use PPC FPU functions Anson Jacob
  0 siblings, 2 replies; 7+ messages in thread
From: Anson Jacob @ 2021-07-21  4:47 UTC (permalink / raw)
  To: mpe, benh, paulus, christophe.leroy, linuxppc-dev, amd-gfx, linux-kernel
  Cc: Sunpeng.Li, Harry.Wentland, qingqing.zhuo, Rodrigo.Siqueira,
	roman.li, Anson.Jacob, Aurabindo.Pillai, Bhawanpreet.Lakha,
	bindu.r

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

-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-21  9:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21  4:47 [RFC v2 0/2] PPC: Add generic FPU api similar to x86 Anson Jacob
2021-07-21  4:48 ` [RFC v2 1/2] ppc/fpu: " Anson Jacob
2021-07-21  6:58   ` Christoph Hellwig
2021-07-21  4:48 ` [RFC v2 2/2] drm/amd/display: Use PPC FPU functions Anson Jacob
2021-07-21  6:29   ` Christian König
2021-07-21  6:51     ` Christoph Hellwig
2021-07-21  9:24       ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).