Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp804722pxb; Wed, 16 Feb 2022 04:58:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF/tdtRiuW9dpHMOW0cDFHXjZ7o4lsUYRH2n5e16kAtBvIAFMOAESjo8fP3ZIA3gg9Fk+N X-Received: by 2002:a17:902:9b96:b0:14d:b42c:d4d3 with SMTP id y22-20020a1709029b9600b0014db42cd4d3mr2348774plp.33.1645016298021; Wed, 16 Feb 2022 04:58:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645016298; cv=none; d=google.com; s=arc-20160816; b=IpwlPxcP+rbnQ19ZXTrl01bdwbq+asi8ISsElfcoZCPSUvvXdS6jVUWWGFqCcbvXE3 OvvO9fEWMYqjom25HacbElUqoWs5FZ4yxjPKwvs2+bZromNYLbGs9+BkvnZ3k3K1x2WH neVZ5jNcXoSqANNhfKaBURVKrLw0Oh1YLs7AybYFUyUtr+kb6NtEdFSADDOT3RNv+oF3 BpntcmaJ+bSRyGcliq7KwJ40G/IT+QBikQuKjIpQZvpye3LkxDkdK5NLYkTkB9NLGpdF 9oXfWSSQ9VjurpuTveyFehUenmOHMeTr932sNo3KS+Ssmf85grFtgF1OEugFyA0jqm1Y 4ybA== 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=6ioWYa2HRhG2nmWZc4sl73tHkaPjRbx4Lr8q8qlGdsI=; b=FehMPHOoKyECqqpxd8XV0//GgxbKmDOu5hWVSKvvfA4X+eViABVFZYiJFWLcOb4ypC Ho/yph56WvGgkyS+S9LYy6ZFhySf3ieMua7ZFiuRExb7YXpoUiw76pRw87I7EzTRtl/I kJnY6T5gD7Rg2SCgtrnFaBfNeY83xulKJJgE5IUFVK6ypdxe2eZDCVpZZmRIIb8OxNBO Dc9fdhhRzBQgglertwqoR16TD1LB2SIs4mUuORH0bQNtBT0ieLydv3OFs4ekXRaQUO9U bQRn0xItqteKEMNy0l9mB9Ct/c37IXMiUQ6A+85fyXeTuhPi6Q9DeY04E+KJ/gr4IzI5 I0aQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14si19540248plh.437.2022.02.16.04.58.02; Wed, 16 Feb 2022 04:58:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233237AbiBPMaa (ORCPT + 99 others); Wed, 16 Feb 2022 07:30:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233204AbiBPMa0 (ORCPT ); Wed, 16 Feb 2022 07:30:26 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8BE62A4147 for ; Wed, 16 Feb 2022 04:30:13 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4JzHNN2gNGz4xn1; Wed, 16 Feb 2022 23:30:12 +1100 (AEDT) From: Michael Ellerman To: Benjamin Herrenschmidt , Christophe Leroy , Michael Ellerman , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, "Naveen N . Rao" , linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH] powerpc/bpf: Always reallocate BPF_REG_5, BPF_REG_AX and TMP_REG when possible Message-Id: <164501434813.521186.4786277291117198839.b4-ty@ellerman.id.au> Date: Wed, 16 Feb 2022 23:25:48 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Jan 2022 12:29:42 +0000, Christophe Leroy wrote: > BPF_REG_5, BPF_REG_AX and TMP_REG are mapped on non volatile registers > because there are not enough volatile registers, but they don't need > to be preserved on function calls. > > So when some volatile registers become available, those registers can > always be reallocated regardless of whether SEEN_FUNC is set or not. > > [...] Applied to powerpc/next. [1/1] powerpc/bpf: Always reallocate BPF_REG_5, BPF_REG_AX and TMP_REG when possible https://git.kernel.org/powerpc/c/a8936569a07bf27cc9cfc2a39a1e5ea91273b2d4 cheers