Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1030252ybl; Thu, 12 Dec 2019 08:36:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwwSL5hNsOe4Q5+FQPPQQxrJEVd+2Ssnyvlp0fRMVRYeripiwkTn+4rJZHVCktG2qlN0C/S X-Received: by 2002:a05:6808:4cc:: with SMTP id a12mr5733600oie.115.1576168600502; Thu, 12 Dec 2019 08:36:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576168600; cv=none; d=google.com; s=arc-20160816; b=BZWVUowHVDFxNjnRPii0J7iKGE0qWQPySFlL5cQZIf2tzuFr+78nw+oycwyTW6cJH0 KEvMeb7F9NZnqInTSTScgmbwRlANPlY3LSlbQ2sjyNVFHPUqDcJIEGSnSUUNFd5W9nKZ MvAFxsR0Cp856jKzMk/S+WbSBniaqeWaVQE0dtCkWh6GgvxV8rLSSySY8FrbdSKzQOEc geLjlyAH6cB5bIbiEZOxFeaBVUvg0SKAoDVB+kkfdXSQdnad4x1uSXx3P31tTrUeJLJr P00SkFQTGX45pnaOoty9P0DsgqKZZth8yE0wX7i/eKPiio6dKyGJhD+xFVHyza+8NKZQ N0kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=5ayd9PjJRgNmK3O5j33o8jKyMdGb9Kf50uNZGSjc28I=; b=da+wb+VmpuENcH8RXVbqTdD2fMX2RPt2ope8mLPwGCScCYb5gQxKlXIXbQPeIRLoy6 qp8edERqkYGEC7O+l6MZOxksSDjxo1QGSqn7O9Qi9JNhSHGp/ETt7i3WB/LVStGg888a CgWOfXIfvI4HSZb7K9y4d1fkj7F6TVRas7BgvJ4gf/r74lG7WVvrATxp/e0ESNWekvno BdNgHVTHKKIShSNwp53UG+H1PwNKC2b+gO7KW9aamuNlqc6XmIlHTJjdo91HotVXQhxt u+KNg9reAe7G/1TdKre6JgrOuUsxcQF3DTATNmbXFOKpFY7g4pX41Pfz3GlPHrE789Kn +k2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=mUaC9PzR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si3513131oic.96.2019.12.12.08.36.27; Thu, 12 Dec 2019 08:36:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=mUaC9PzR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729905AbfLLQew (ORCPT + 99 others); Thu, 12 Dec 2019 11:34:52 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:41901 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729591AbfLLQev (ORCPT ); Thu, 12 Dec 2019 11:34:51 -0500 Received: from localhost (mailhub1-ext [192.168.12.233]) by localhost (Postfix) with ESMTP id 47YfXP2gjMzB09Zb; Thu, 12 Dec 2019 17:34:45 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=mUaC9PzR; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 9WuTQ52ZLv0o; Thu, 12 Dec 2019 17:34:45 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 47YfXP0ZwbzB09Zd; Thu, 12 Dec 2019 17:34:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1576168485; bh=5ayd9PjJRgNmK3O5j33o8jKyMdGb9Kf50uNZGSjc28I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=mUaC9PzRHUQgIKKPVsLlwj3RKssxuq6EeDV67OR9T/w6yH9ybBbXdRE0UC8mNYv6b iwCt44e25EqPI1h0UB4DarcGj1W790CZBg6CZI+atejs26GN/5qiD8nmGIFiGkCzXI 9E2CYb9yDOhLKkxGHZQYxRtNjf8H4GjjTX1RWNdc= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A93118B877; Thu, 12 Dec 2019 17:34:46 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id hamxpM4AZs8F; Thu, 12 Dec 2019 17:34:46 +0100 (CET) Received: from [172.25.230.112] (po15451.idsi0.si.c-s.fr [172.25.230.112]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8493D8B872; Thu, 12 Dec 2019 17:34:46 +0100 (CET) Subject: Re: [PATCH v5] powerpc/irq: inline call_do_irq() and call_do_softirq() on PPC32 To: Christoph Hellwig Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <72a6cd86137b2a7ab835213cf5c74df6ed2f6ea7.1575739197.git.christophe.leroy@c-s.fr> <20191212125222.GB3381@infradead.org> From: Christophe Leroy Message-ID: <878e4ac8-9bfa-394d-8bca-f09a78f54904@c-s.fr> Date: Thu, 12 Dec 2019 17:34:46 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191212125222.GB3381@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 12/12/2019 à 13:52, Christoph Hellwig a écrit : > On Sat, Dec 07, 2019 at 05:20:04PM +0000, Christophe Leroy wrote: >> call_do_irq() and call_do_softirq() are simple enough to be >> worth inlining. >> >> Inlining them avoids an mflr/mtlr pair plus a save/reload on stack. >> It also allows GCC to keep the saved ksp_limit in an nonvolatile reg. >> >> This is inspired from S390 arch. Several other arches do more or >> less the same. The way sparc arch does seems odd thought. > > Any reason you only do this for 32-bit and not 64-bit as well? > Yes ... There has been a long discussion on this in v4, see https://patchwork.ozlabs.org/patch/1174288/ The problem is that on PPC64, r2 register is used as TOC pointer and it is apparently not straithforward to make sure the caller and the callee are using the same TOC. On PPC32 it's more simple, r2 is current task_struct at all time, it never changes. Christophe