From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 581D65231 for ; Sat, 30 Mar 2024 03:31:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711769469; cv=none; b=W3niGRivibtA6GaWTfupL7KKAanuIoYGc5ovyqcfg8Zs//OWPbFPC3jpZW+8zsoAc/OAjinnWhds/ywV4l8DCOtK7ylFS01qmJUdjjPlika2s9toQNMjyIS7LrVnqxRqCTn4bHbH3ehTdcucDgF9eV7uzSqP+iZ24JNC1lsKVVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711769469; c=relaxed/simple; bh=9Ah9jL1X3frVb7NkTav6qycuOZk4kgcmHH5W36QCSEo=; h=Date:To:From:Subject:Message-Id; b=ZGHJbFp+Sut2qVRBMDoo2hCZG1LVcWd2iocYeCoS2UTcgCSwFq7xxRcU3XxcIe+gSRsNwX4AKshkeGCohtf6roEz3DW44ibLUJdbAizYkJ9jb6/SNA4peFf47bSdROeyztMvRUZj4JwWt1iUjpun2wDCIXtrCIV/t5C4OwGVIuk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=CAWZ5mDj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="CAWZ5mDj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28B4FC433C7; Sat, 30 Mar 2024 03:31:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1711769469; bh=9Ah9jL1X3frVb7NkTav6qycuOZk4kgcmHH5W36QCSEo=; h=Date:To:From:Subject:From; b=CAWZ5mDj03w+AS6m55qcWqrgAZpncrs6xEyqWrmMBMNS1EfTvENB4hnKHc5bJqk+a EAdJVNaVTYwqPOoXf6IkxP0sXiCO7aMe0Auf86yIc5gXvtNdYx5Qkeu7UftBLpM763 I+0KNw+PIVBZ7/0eLAb4cvnGgtBHlYJ381BV6D8Y= Date: Fri, 29 Mar 2024 20:31:08 -0700 To: mm-commits@vger.kernel.org,will@kernel.org,tglx@linutronix.de,samuel.holland@sifive.com,palmer@rivosinc.com,nicolas@fjasle.eu,nathan@kernel.org,mingo@redhat.com,masahiroy@kernel.org,linux@armlinux.org.uk,hch@lst.de,git@xen0n.name,dave.hansen@linux.intel.com,corbet@lwn.net,chenhuacai@kernel.org,catalin.marinas@arm.com,bp@alien8.de,alexander.deucher@amd.com,mpe@ellerman.id.au,akpm@linux-foundation.org From: Andrew Morton Subject: + drm-amd-display-only-use-hard-float-not-altivec-on-powerpc.patch added to mm-nonmm-unstable branch Message-Id: <20240330033109.28B4FC433C7@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: drm/amd/display: only use hard-float, not altivec on powerpc has been added to the -mm mm-nonmm-unstable branch. Its filename is drm-amd-display-only-use-hard-float-not-altivec-on-powerpc.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/drm-amd-display-only-use-hard-float-not-altivec-on-powerpc.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Michael Ellerman Subject: drm/amd/display: only use hard-float, not altivec on powerpc Date: Fri, 29 Mar 2024 00:18:27 -0700 The compiler flags enable altivec, but that is not required; hard-float is sufficient for the code to build and function. Drop altivec from the compiler flags and adjust the enable/disable code to only enable FPU use. Link: https://lkml.kernel.org/r/20240329072441.591471-13-samuel.holland@sifive.com Signed-off-by: Michael Ellerman Signed-off-by: Samuel Holland Acked-by: Alex Deucher Cc: Borislav Petkov (AMD) Cc: Catalin Marinas Cc: Christoph Hellwig Cc: Dave Hansen Cc: Huacai Chen Cc: Ingo Molnar Cc: Jonathan Corbet Cc: Masahiro Yamada Cc: Nathan Chancellor Cc: Nicolas Schier Cc: Palmer Dabbelt Cc: Russell King Cc: Thomas Gleixner Cc: WANG Xuerui Cc: Will Deacon Signed-off-by: Andrew Morton --- drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c | 12 ++---------- drivers/gpu/drm/amd/display/dc/dml/Makefile | 2 +- drivers/gpu/drm/amd/display/dc/dml2/Makefile | 2 +- 3 files changed, 4 insertions(+), 12 deletions(-) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c~drm-amd-display-only-use-hard-float-not-altivec-on-powerpc +++ a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c @@ -92,11 +92,7 @@ void dc_fpu_begin(const char *function_n #if defined(CONFIG_X86) || defined(CONFIG_LOONGARCH) kernel_fpu_begin(); #elif defined(CONFIG_PPC64) - if (cpu_has_feature(CPU_FTR_VSX_COMP)) - enable_kernel_vsx(); - else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) - enable_kernel_altivec(); - else if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) + if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) enable_kernel_fp(); #elif defined(CONFIG_ARM64) kernel_neon_begin(); @@ -125,11 +121,7 @@ void dc_fpu_end(const char *function_nam #if defined(CONFIG_X86) || defined(CONFIG_LOONGARCH) kernel_fpu_end(); #elif defined(CONFIG_PPC64) - if (cpu_has_feature(CPU_FTR_VSX_COMP)) - disable_kernel_vsx(); - else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) - disable_kernel_altivec(); - else if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) + if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) disable_kernel_fp(); #elif defined(CONFIG_ARM64) kernel_neon_end(); --- a/drivers/gpu/drm/amd/display/dc/dml2/Makefile~drm-amd-display-only-use-hard-float-not-altivec-on-powerpc +++ a/drivers/gpu/drm/amd/display/dc/dml2/Makefile @@ -30,7 +30,7 @@ dml2_ccflags := $(dml2_ccflags-y) -msse endif ifdef CONFIG_PPC64 -dml2_ccflags := -mhard-float -maltivec +dml2_ccflags := -mhard-float endif ifdef CONFIG_ARM64 --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile~drm-amd-display-only-use-hard-float-not-altivec-on-powerpc +++ a/drivers/gpu/drm/amd/display/dc/dml/Makefile @@ -31,7 +31,7 @@ dml_ccflags := $(dml_ccflags-y) -msse endif ifdef CONFIG_PPC64 -dml_ccflags := -mhard-float -maltivec +dml_ccflags := -mhard-float endif ifdef CONFIG_ARM64 _ Patches currently in -mm which might be from mpe@ellerman.id.au are drm-amd-display-only-use-hard-float-not-altivec-on-powerpc.patch