From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39AEAC48BDF for ; Fri, 18 Jun 2021 04:23:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F4EE6117A for ; Fri, 18 Jun 2021 04:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbhFREZP (ORCPT ); Fri, 18 Jun 2021 00:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbhFREY6 (ORCPT ); Fri, 18 Jun 2021 00:24:58 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCACEC06175F for ; Thu, 17 Jun 2021 21:22:49 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4G5m480SDCz9shn; Fri, 18 Jun 2021 14:22:47 +1000 (AEST) From: Michael Ellerman To: Paul Mackerras , Michael Ellerman , Benjamin Herrenschmidt , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <8ab21fd93d6e0047aa71e6509e5e312f14b2991b.1620998075.git.christophe.leroy@csgroup.eu> References: <8ab21fd93d6e0047aa71e6509e5e312f14b2991b.1620998075.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH] powerpc: Don't handle ALTIVEC/SPE in ASM in _switch(). Do it in C. Message-Id: <162398828971.1363949.11216180122568844562.b4-ty@ellerman.id.au> Date: Fri, 18 Jun 2021 13:51:29 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 May 2021 13:14:53 +0000 (UTC), Christophe Leroy wrote: > _switch() saves and restores ALTIVEC and SPE status. > For altivec this is redundant with what __switch_to() does with > save_sprs() and restore_sprs() and giveup_all() before > calling _switch(). > > Add support for SPI in save_sprs() and restore_sprs() and > remove things from _switch(). Applied to powerpc/next. [1/1] powerpc: Don't handle ALTIVEC/SPE in ASM in _switch(). Do it in C. https://git.kernel.org/powerpc/c/359c2ca74d2fede5c571fbf3f5ee16ba1ad98259 cheers