From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932906AbbGJPBM (ORCPT ); Fri, 10 Jul 2015 11:01:12 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:1609 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932278AbbGJPBE (ORCPT ); Fri, 10 Jul 2015 11:01:04 -0400 From: Paul Burton To: CC: Matthew Fortune , Paul Burton , Leonid Yegoshin , Zubair Lutfullah Kakakhel , James Hogan , Daniel Borkmann , Huacai Chen , "Maciej W. Rozycki" , Alex Smith , Michal Nazarewicz , "Maciej W. Rozycki" , Markos Chandras , Frederic Weisbecker , "Ralf Baechle" , Andrew Morton , Peter Zijlstra , Andy Lutomirski , Manuel Lauss , Kees Cook , Michael Ellerman , , Richard Weinberger , David Daney Subject: [PATCH 00/16] MSA vector context signal handling & HWCAPs Date: Fri, 10 Jul 2015 16:00:09 +0100 Message-ID: <1436540426-10021-1-git-send-email-paul.burton@imgtec.com> X-Mailer: git-send-email 2.4.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.100.200.2] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series provides the final bits of support for MSA as far as userland that isn't a debugger goes. In order to preserve backwards compatibility it saves the extended vector context after the end of the sigframe or ucontext, at a fixed offset. A bit set in sigcontext's sc_used_math field indicates to userland (and to the kernel on sigreturn) that the extended context is present. With these final bits in, the presence of MSA support is indicated via a HWCAP bit that userland may check for. Paul Burton (16): MIPS: remove outdated comments in sigcontext.h MIPS: simplify EVA FP context handling code MIPS: add offsets to sigcontext FP fields to struct mips_abi MIPS: use struct mips_abi offsets to save FP context MIPS: move FP usage checks into protected_{save,restore}_fp_context MIPS: skip odd double FP registers when copying FP32 sigcontext MIPS: use common FP sigcontext code for O32 compat MIPS: remove unused {get,put}_sigset functions MIPS: indicate FP mode in sigcontext sc_used_math MIPS: add definitions for extended context MIPS: save MSA extended context around signals MIPS: AT_HWCAP aux vector infrastructure MIPS: advertise MIPSr6 via HWCAP when appropriate MIPS: advertise MSA support via HWCAP when present MIPS: require O32 FP64 support for MIPS64 with O32 compat MIPS: drop EXPERIMENTAL tag from O32+FP64 & MSA arch/mips/Kconfig | 5 +- arch/mips/include/asm/Kbuild | 1 - arch/mips/include/asm/abi.h | 4 + arch/mips/include/asm/elf.h | 4 +- arch/mips/include/asm/signal.h | 3 + arch/mips/include/uapi/asm/hwcap.h | 8 + arch/mips/include/uapi/asm/sigcontext.h | 19 +- arch/mips/include/uapi/asm/ucontext.h | 65 +++++ arch/mips/kernel/asm-offsets.c | 11 - arch/mips/kernel/cpu-probe.c | 7 + arch/mips/kernel/r4k_fpu.S | 372 +++++++++++++------------- arch/mips/kernel/signal-common.h | 9 + arch/mips/kernel/signal.c | 446 ++++++++++++++++++++++++-------- arch/mips/kernel/signal32.c | 207 +-------------- arch/mips/kernel/signal_n32.c | 6 +- 15 files changed, 666 insertions(+), 501 deletions(-) create mode 100644 arch/mips/include/uapi/asm/hwcap.h create mode 100644 arch/mips/include/uapi/asm/ucontext.h -- 2.4.4