Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp422059pxy; Wed, 21 Apr 2021 06:20:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKtIjPzlpVTrb8azqAiqrcu95ZOO3Kl+t1xhj3QCKHzfgQFVXAdxPiDA0ERgj2heU5AIAc X-Received: by 2002:a05:6402:190d:: with SMTP id e13mr14684125edz.151.1619011205758; Wed, 21 Apr 2021 06:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619011205; cv=none; d=google.com; s=arc-20160816; b=QqVVanl4vnJBUP+PxnauAuUgEXYbQLGaMNFkCO+cO4+WWve8FFkFmBAZtqxYnlQPHz 0F+wvwOanwCrjIQqP522/3FBI6lk1oNDJa2j2FMB/sK9pzCLGvdVRZXo8Kw+pYNAl77f 5ief8r6D8x8LDA5qzEgWAmn2qxUz5sNOXpVe+7avhyE4Va6utibvlK/W68gLvB9r1lNB 2ug2x9pk8m6uvK/KaVF/rXsy1BG+0UG/U9r2SNr/Y/vpPUuNZ2qYQ5kzMKmTtHa/vXTG ci0lF+7Cph+C1s1gEXl4AploMobWOs9keZyDDW1a72XOFL6tYHRmaLrxJi6DHTIC1kV1 yFFQ== 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=akXvw/2km+R2/ILi5pSxmPptQ9Ahy6nZlxNZSEB2CuE=; b=bKI1sfDGq3TBLiyKkhoc7I6iVDL88axXZ9owKcyTJvoLWM5w7zbksE6RT7IyuGVMCH zFf/xBvkuqDVIPtyz2N/ipsJS04P+DfYebHETCK6d+53Xxn7rXnyQom/wLshX4VeOyJQ qYR5BanC0mEUrLdd708TOQ+DXdBRWHoHjZKPq2qtRPY2/plrqriHnN0hGN3jMrrmNosS fkUmXbLhm7qetCMTITH/AAi1lasw81GZQ/acUUr3IsmtjnTN/HKLqwOvyXVfYx2uJd0t CzG36EOXg0pYr3KQDTN1aHK+brcmZjNMvElpbheWKQpN56EBOLA0PcWpjUNqVo5uuVY6 PrAA== 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 q17si1892973eds.148.2021.04.21.06.19.41; Wed, 21 Apr 2021 06:20:05 -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 S242529AbhDUNPL (ORCPT + 99 others); Wed, 21 Apr 2021 09:15:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242026AbhDUNJo (ORCPT ); Wed, 21 Apr 2021 09:09:44 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B7BBC061344 for ; Wed, 21 Apr 2021 06:09:11 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4FQLVC5vg7z9vDw; Wed, 21 Apr 2021 23:09:06 +1000 (AEST) From: Michael Ellerman To: Benjamin Herrenschmidt , Michael Ellerman , Christophe Leroy , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <69f9968f4b592fefda55227f0f7430ea612cc950.1611299687.git.christophe.leroy@csgroup.eu> References: <69f9968f4b592fefda55227f0f7430ea612cc950.1611299687.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH] powerpc/32: Use r2 in wrtspr() instead of r0 Message-Id: <161901050347.1961279.12121626398624044029.b4-ty@ellerman.id.au> Date: Wed, 21 Apr 2021 23:08:23 +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, 22 Jan 2021 07:15:03 +0000 (UTC), Christophe Leroy wrote: > wrtspr() is a function to write an arbitrary value in a special > register. It is used on 8xx to write to SPRN_NRI, SPRN_EID and > SPRN_EIE. Writing any value to one of those will play with MSR EE > and MSR RI regardless of that value. > > r0 is used many places in the generated code and using r0 for > that creates an unnecessary dependency of this instruction with > preceding ones using r0 in a few places in vmlinux. > > [...] Applied to powerpc/next. [1/1] powerpc/32: Use r2 in wrtspr() instead of r0 https://git.kernel.org/powerpc/c/867e762480f4ad4106b16299a373fa23eccf5b4b cheers