Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp450273pxk; Wed, 9 Sep 2020 09:29:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykOIorwYmhLSBB33tncMOdwWSHH33OzQagR+1pD9dfYLexhLuvWYltXAhrrS6ordzqZVIN X-Received: by 2002:a17:906:715b:: with SMTP id z27mr4776161ejj.166.1599668975845; Wed, 09 Sep 2020 09:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599668975; cv=none; d=google.com; s=arc-20160816; b=v68uvEZsT33dc4wAXyaBhDkPo6JFr9CyKh/TWKx2pv2KWbUQNzNfwNc4Q7pDFRn7ij LgkWz1jd9tvQSLiT6BOD05Y/ee2WA0FAp1NCLdsjw+Wc5d0B/biYrEzXNlA54BrH/Rdw TTRstxXMjyJi2ZcMLRUlVrtqa3q/J6YLOTqDNE8jprsyRSPuZfHRU9GGNg78jp+jHdb3 TvUa/MkhkFm5rCOrXj3Kuv1Xdh76wf+tqtXcZqinRgMhrAOPreDrTB2YdjAAkGoZXPTq vqr1DLSIyBnxwjes859fkA7C/sFZa4fj5x9912+E/5MS0fXaD4wYSpixo6b6c7QML/ns bQpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:references :in-reply-to:cc:to:from; bh=8ZcTNoJtWPi6ymSaWXlMQoi9H3DDV8kNLPhVlzvZz3k=; b=uuyX33hmvhRddI1xAlRLPwA0Z8K9YySwR8Sv6cEpqwaK0ia1jkixWpdJtUJAkJs19+ lH6XJzfdgsC97aecyxt0ov/EUfHp0ptR2MjTCxLsw79xGE68YeD1DWhFzOpsGy7sjzeB /HLcnPDX4XspIffUawBI6xIVWTgswr6bnmwsSM8pzf+hSAl9Ehx3grAVKGIW0KdM+52h OhF+6dOCSX6CimkS3gY8TcaUkc9fxjTBIWozYDysFOO/FV730pFyRG2bAmsv3AbgNYg6 /MsVv9QrZE419E+2cfMq29UYb++0MOX3h2B8fdnX/0CZNhe7HkBHA47VSbk2YYxDJoKG 8xZw== 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 g90si2154071edd.492.2020.09.09.09.29.13; Wed, 09 Sep 2020 09:29:35 -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 S1731062AbgIIQ2R (ORCPT + 99 others); Wed, 9 Sep 2020 12:28:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731135AbgIIQ1k (ORCPT ); Wed, 9 Sep 2020 12:27:40 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 184ECC0617A2 for ; Wed, 9 Sep 2020 06:28:49 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4BmjW04ZHsz9sVk; Wed, 9 Sep 2020 23:27:40 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH v3 1/2] powerpc/uaccess: Use flexible addressing with __put_user()/__get_user() Message-Id: <159965717070.808686.8733357237820602435.b4-ty@ellerman.id.au> Date: Wed, 9 Sep 2020 23:27:40 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Aug 2020 12:25:16 +0000 (UTC), Christophe Leroy wrote: > At the time being, __put_user()/__get_user() and friends only use > D-form addressing, with 0 offset. Ex: > > lwz reg1, 0(reg2) > > Give the compiler the opportunity to use other adressing modes > whenever possible, to get more optimised code. > > [...] Applied to powerpc/next. [1/2] powerpc/uaccess: Use flexible addressing with __put_user()/__get_user() https://git.kernel.org/powerpc/c/c20beffeec3cb6f6f52d9aef27f91a3f453a91f4 [2/2] powerpc/uaccess: Add pre-update addressing to __get_user_asm() and __put_user_asm() https://git.kernel.org/powerpc/c/2f279eeb68b8eda43a95255db701b4faaeedbe0f cheers