Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1118696pxj; Thu, 17 Jun 2021 23:18:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFg5ltYWloLV4h0VLeAV3ZNke5oA1qOf87zdjYxVxUfNctI/7tDoP/zVqar/HHh8RNEAcL X-Received: by 2002:aa7:d452:: with SMTP id q18mr2759309edr.106.1623997136479; Thu, 17 Jun 2021 23:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623997136; cv=none; d=google.com; s=arc-20160816; b=nyVkZaoeeAcHyRzed0sHKO4SwJsUp/rv5eCpkVEppRhpGTrvxOQt+fCL2TBv9gj9+Y TAoBcVfSmRYftK5jJPz3wTVfj4GtdRREuwBE2ErchJxF9G5A/C5qhMwF+ngvjg5UI9dU 9LyY0eZOl8VfWeOhjW+lqxs8UdvRP4tIlik+Z2u9jHlB099E588gNus0HXXPreOMtI1Y gWC4aPvuJ2c5daXk/n09n4xXNg6KXuAve3a1wcAc8SkOOARzg4BbTA5aWzDzfAH1t448 Q45sJDWCylhOC1tpPLOseR3gEJEDhM52N+FgviJjxp3DyQXGCooOG2eQH1GvWytH73d/ Qwyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=+SpAiKOVqk073sj2pKVCyO02250itbUH7hjTf1FPZKY=; b=RZBDAKHsF4O4eHXCPFHmGMv+Wzxuu2yMvwmaiNqKP62ctWxdy9nDWRPISeEkLTp3Mq QIRFXrAUgDkjAuITmGihpKLACvQYwqvgfbMaBRDmWYGEHo/PqhJ+ynexc83UQGMduMoI r511YQaExljdgKoC+XhfcREElVCl3K0BtfnIXcWmFY43RlR2uPfYUipiqqxzLv1hG4yn 9K7b+Jd4rs/B0BtiI9sa+KRVA+le8rtzrZhj7kILV1sPrfvnmZChCrP1eIh4Ejuzz8+p l14jyAFusjUmUqlfJhnQCGhu8mThLGIIEnW2Mfq2sF1hnL/kivPXLpmHJD8dGmYY6+24 6fqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si8549977edd.156.2021.06.17.23.18.34; Thu, 17 Jun 2021 23:18:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231203AbhFREZN (ORCPT + 99 others); Fri, 18 Jun 2021 00:25:13 -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