From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3630FC433FE for ; Tue, 21 Sep 2021 15:58:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F46260E94 for ; Tue, 21 Sep 2021 15:58:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234323AbhIUP7n (ORCPT ); Tue, 21 Sep 2021 11:59:43 -0400 Received: from elvis.franken.de ([193.175.24.41]:36245 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234328AbhIUP7n (ORCPT ); Tue, 21 Sep 2021 11:59:43 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1mSi9l-0007XJ-00; Tue, 21 Sep 2021 17:58:05 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id E90A8C1234; Tue, 21 Sep 2021 17:57:08 +0200 (CEST) Date: Tue, 21 Sep 2021 17:57:08 +0200 From: Thomas Bogendoerfer To: Feiyang Chen Cc: Jiaxun Yang , tglx@linutronix.de, peterz@infradead.org, luto@kernel.org, arnd@arndb.de, Feiyang Chen , linux-mips@vger.kernel.org, linux-arch@vger.kernel.org, chenhuacai@kernel.org, Zhou Yanjie , "H. Nikolaus Schaller" Subject: Re: [PATCH v2 0/2] MIPS: convert to generic entry Message-ID: <20210921155708.GA12237@alpha.franken.de> References: <3907ec0f-42a0-ff4c-d4ea-63ad2a1516c2@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Tue, Sep 14, 2021 at 05:30:14PM +0800, Feiyang Chen wrote: > On Tue, 14 Sept 2021 at 16:54, Jiaxun Yang wrote: > > > > > > > > 在 2021/9/14 2:50, Feiyang Chen 写道: > > > Convert MIPS to use the generic entry infrastructure from > > > kernel/entry/*. > > > > > > v2: Use regs->regs[27] to mark whether to restore all registers in > > > handle_sys and enable IRQ stack. > > Hi Feiyang, > > > > Thanks for your patch, could you please expand how could this improve > > the performance? > > > > Hi, Jiaxun, > > We always restore all registers in handle_sys in the v1 of the > patchset. Since regs->regs[27] is marked where we need to restore all > registers, now we simply use it as the return value of do_syscall to > determine whether we can only restore partial registers in handle_sys. can people, who provided performance numbers for v1 do the same for v2 ? Thomas, -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]