Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6535884ybl; Mon, 23 Dec 2019 07:27:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyu7CPaAvM/sPUJWfHBhmEKlVfU9/yEQY9UIgxm0lyQlQ2vZDYJdtc+2CsK9MxsHH2GVr3y X-Received: by 2002:a9d:74c4:: with SMTP id a4mr33465929otl.119.1577114826616; Mon, 23 Dec 2019 07:27:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577114826; cv=none; d=google.com; s=arc-20160816; b=yMR2Y/8dObTg78FUpwnmscBAz8/uC89gFgcmumqSqlbedWUNL4oOT/nI3oMF3VXLdO OYxZxdocQoILsAAfC5oGSf26dn+gO3y6hvn4F19y14iqaZRMp2iSeynsMTxYpxBrFJip 8UunNgK8yTqtKS1KBOlQMjiyOU7Gd8E9PuzrReEe9ADtyOqpF4iszjIGAYTbN7dlKvR+ P7/KLquR48fkAavu3FdbvaomO8qO3aBmdShSdLAcnjYYn8wC8dDflhX10bnLdMiRMSep TmIHN+9X9CIbr7D8sw70H8DgoGoeDB94wLOgEBfoR9Ikkjb9RGOWW5pomcUCw+qpjdJM RH2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=XwT2bCOLWphD/sSJh9VwSsc95eI+wrP0sTiw3zw31v0=; b=atPm+WeaOgN+IkyTk0SzXzuvE3Ouri4jvbZ6BwbGAkaXFovYYqysGt37kJNWS6OQwW lMRSgRCIQqfiykeN7DnJ3hxTavxi9X2RxEkxdtYLgoOqSqmmMJUZ5eEEEaPc0eCorY/0 hH4K1dW0xMpd9GPSAae2eCuU0MJ/Frh6QEfwQow4pab4nt9gaZ+ccfwQRwQDxG2w3INm 7uuXPiSce9mo9k766WwtclhlwwzN7PYH1JxxMzH51wyxkUAk0zlxD/a3nu/dnU0tAdyD 4W921kKZhjqu5eN6q/vi4v3vqxBYR6ihhsdfZWnKSgDeWHPuS4J/C7GNefHkA0Tzn6Pn hb4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=mb9cH2ZE; 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 e24si5059415otl.62.2019.12.23.07.26.53; Mon, 23 Dec 2019 07:27:06 -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=mb9cH2ZE; 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 S1726865AbfLWP0M (ORCPT + 99 others); Mon, 23 Dec 2019 10:26:12 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:29519 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726756AbfLWP0M (ORCPT ); Mon, 23 Dec 2019 10:26:12 -0500 Received: from localhost (mailhub1-ext [192.168.12.233]) by localhost (Postfix) with ESMTP id 47hNV60097z9vJyp; Mon, 23 Dec 2019 16:26:06 +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=mb9cH2ZE; 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 AMfTUWCOxQHb; Mon, 23 Dec 2019 16:26:05 +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 47hNV560H5z9vJyn; Mon, 23 Dec 2019 16:26:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1577114765; bh=XwT2bCOLWphD/sSJh9VwSsc95eI+wrP0sTiw3zw31v0=; h=From:Subject:To:Cc:Date:From; b=mb9cH2ZEAK/hU2LwwQQDycPlb295W0zc/5AOtP4sonsQhNJVeDG5RpB6CoBfGZCjm E9aFumiFyRKygt6kIJr1GpRZ0MxSw8y7dXP6U9IxXH68Vkv74is9J39/dZPi5AbOgl K/327GMTI2SNZr+tWK9TKEjAx0e2LDZp/+5jSCkI= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 058D58B7AB; Mon, 23 Dec 2019 16:26:11 +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 wu9RLPM7jVpd; Mon, 23 Dec 2019 16:26:10 +0100 (CET) Received: from po16098vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.100]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D3A6C8B7A1; Mon, 23 Dec 2019 16:26:10 +0100 (CET) Received: by po16098vm.idsi0.si.c-s.fr (Postfix, from userid 0) id C82E6637D8; Mon, 23 Dec 2019 15:26:10 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [RFC PATCH 0/8] Accelarate IRQ entry To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 23 Dec 2019 15:26:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this series is to accelerate IRQ entry by avoiding unneccessary trampoline functions like call_do_irq() and call_do_softirq() and by switching to IRQ stack immediately in the exception handler. For now, it is an RFC as it is still a bit messy. Please provide feedback and I'll improve next year Christophe Leroy (8): powerpc/32: drop ksp_limit based stack overflow detection powerpc/irq: inline call_do_irq() and call_do_softirq() on PPC32 powerpc/irq: don't use current_stack_pointer() in do_IRQ() powerpc/irq: move set_irq_regs() closer to irq_enter/exit() powerpc/irq: move stack overflow verification powerpc/irq: cleanup check_stack_overflow() a bit powerpc/32: use IRQ stack immediately on IRQ exception powerpc/irq: drop softirq stack arch/powerpc/include/asm/asm-prototypes.h | 1 - arch/powerpc/include/asm/irq.h | 3 +- arch/powerpc/include/asm/processor.h | 3 -- arch/powerpc/include/asm/reg.h | 8 ++++ arch/powerpc/kernel/asm-offsets.c | 2 - arch/powerpc/kernel/entry_32.S | 57 ------------------------ arch/powerpc/kernel/head_32.S | 2 +- arch/powerpc/kernel/head_32.h | 32 +++++++++++-- arch/powerpc/kernel/head_40x.S | 4 +- arch/powerpc/kernel/head_8xx.S | 2 +- arch/powerpc/kernel/head_booke.h | 1 - arch/powerpc/kernel/irq.c | 74 +++++++++++++++++++++---------- arch/powerpc/kernel/misc_32.S | 39 ---------------- arch/powerpc/kernel/process.c | 7 --- arch/powerpc/kernel/setup_32.c | 4 +- arch/powerpc/kernel/setup_64.c | 4 +- arch/powerpc/kernel/traps.c | 9 ---- arch/powerpc/lib/sstep.c | 9 ---- 18 files changed, 95 insertions(+), 166 deletions(-) -- 2.13.3