Re: [RFC v2 2/2] drm/amd/display: Use PPC FPU functions

From: Christian König
Date: Wed Jul 21 2021 - 05:33:40 EST


Am 21.07.21 um 08:51 schrieb Christoph Hellwig:
On Wed, Jul 21, 2021 at 08:29:43AM +0200, Christian K??nig wrote:
Looks good in general, but question is what about other architectures like
ARM?
DRM_AMD_DC_DCN currently requires X86 || PPC64.

And exactly that's the problem I'm noting here. At least officially AMD claims that we support ARM and some very brave still use the hardware together with MIPS as well.

Maybe a good think would be to add a new KERNEL_FPU_API Kconfig symbol,
selected by x86 and powerpc (I think ppc32 should be fine too now) so
that we get these arch dependencies out of the driver.

Good idea.

Christian.