[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210721044801.840501-1-Anson.Jacob@amd.com>
Date: Wed, 21 Jul 2021 00:47:59 -0400
From: Anson Jacob <Anson.Jacob@....com>
To: <mpe@...erman.id.au>, <benh@...nel.crashing.org>,
<paulus@...ba.org>, <christophe.leroy@...roup.eu>,
<linuxppc-dev@...ts.ozlabs.org>, <amd-gfx@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>
CC: <Harry.Wentland@....com>, <Sunpeng.Li@....com>,
<Bhawanpreet.Lakha@....com>, <Rodrigo.Siqueira@....com>,
<Aurabindo.Pillai@....com>, <qingqing.zhuo@....com>,
<bindu.r@....com>, <roman.li@....com>, <Anson.Jacob@....com>
Subject: [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
--
2.25.1
Powered by blists - more mailing lists