Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2838622pxb; Sat, 23 Oct 2021 09:09:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxWk7KvFHXrZGu5Um3Vt/oKzTtsNiAFO9uoQwMhf8kE/VmngnqiWhyanl7cTGtUDJVTK+M X-Received: by 2002:a62:bd03:0:b0:47b:e033:d52b with SMTP id a3-20020a62bd03000000b0047be033d52bmr1445819pff.20.1635005383947; Sat, 23 Oct 2021 09:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635005383; cv=none; d=google.com; s=arc-20160816; b=i0lZBe59y6XJ6qxOB4ax/SeE4o47Isrt6qpgepdqR4SpD8/sibApVQK8cxdaSLcKah B2sOca22R1qmxWGx8xzMIGofMVXerLW/DuWpftlCniSwd2e48g/TH/0QAPDwckcDZoSg 4SFQTOZ3QpPl+NdI6byloPPfAWrKFohKpohpeBzGb+QDiNGjKz54zQJqkE+SGLhCh0hF gnEgWoQW93zfwJqHLDPdti2GWcmC2uS58klucYpL1GTfUkfWmx9mW2NBB6zMgztEWX4G uYNWEOuqylbIFu4qwmGlec+VJVFqSsBXr5H2KvzqfB1v4TKcW3TnJPYpAek6vocyUpVo B2aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=R9HKKaQFhkNHner9vJUumzsICoOjGfXLBpxYn856Fd8=; b=YUlH43kLRH5MB5tkM0JY4/rPKVQP0HIG3Afv2KAqXyKIyBdSCUyFTCbjT6bUPVjUv4 uXFO19BM1HevKvd2Go6g5azQXQTirFqQQPF+uunAk7vVSJDQLos9EcsL4W4G0w51KwA9 uqOEyIn7RkOFmBMEKVJ5ptpSH1GbPBb+qh62QB/1yI/sRzew8VrtOyxYMyJY2WCUeSq4 lxcZE/BDQuEvfXWaKWFw6oZpqzETAxhYeB90Viok6Pvym7l7zRY8tDsKouAjh7/0DmX+ JyvCdhd2e5rZQe2PjnbjXQp78qRBMcsSnsT5YhIOkW2xDcwO6wGpDVs5oSlLKciElA5e XVBg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si17031164pgv.7.2021.10.23.09.09.30; Sat, 23 Oct 2021 09:09:43 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230253AbhJWQJV (ORCPT + 99 others); Sat, 23 Oct 2021 12:09:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:60792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbhJWQJT (ORCPT ); Sat, 23 Oct 2021 12:09:19 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 709236101D; Sat, 23 Oct 2021 16:07:00 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1meJXu-00169Q-6q; Sat, 23 Oct 2021 17:06:58 +0100 Date: Sat, 23 Oct 2021 17:06:57 +0100 Message-ID: <87h7d7bu8u.wl-maz@kernel.org> From: Marc Zyngier To: Mark Rutland Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, aou@eecs.berkeley.edu, catalin.marinas@arm.com, deanbo422@gmail.com, green.hu@gmail.com, guoren@kernel.org, jonas@southpole.se, kernelfans@gmail.com, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, nickhu@andestech.com, palmer@dabbelt.com, paulmck@kernel.org, paul.walmsley@sifive.com, peterz@infradead.org, shorne@gmail.com, stefan.kristiansson@saunalahti.fi, torvalds@linux-foundation.org, tsbogend@alpha.franken.de, vgupta@kernel.org, will@kernel.org Subject: Re: [PATCH 00/15] irq: remove handle_domain_{irq,nmi}() In-Reply-To: <20211022151007.GD86184@C02TD0UTHF1T.local> References: <20211021180236.37428-1-mark.rutland@arm.com> <87k0i5b91c.wl-maz@kernel.org> <20211022151007.GD86184@C02TD0UTHF1T.local> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: mark.rutland@arm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, aou@eecs.berkeley.edu, catalin.marinas@arm.com, deanbo422@gmail.com, green.hu@gmail.com, guoren@kernel.org, jonas@southpole.se, kernelfans@gmail.com, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, nickhu@andestech.com, palmer@dabbelt.com, paulmck@kernel.org, paul.walmsley@sifive.com, peterz@infradead.org, shorne@gmail.com, stefan.kristiansson@saunalahti.fi, torvalds@linux-foundation.org, tsbogend@alpha.franken.de, vgupta@kernel.org, will@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Oct 2021 16:10:07 +0100, Mark Rutland wrote: > > On Fri, Oct 22, 2021 at 12:20:31PM +0100, Marc Zyngier wrote: > > Hi Mark, > > > > On Thu, 21 Oct 2021 19:02:21 +0100, > > Mark Rutland wrote: > > > > > > The handle_domain_{irq,nmi}() functions were oringally intended as a > > > convenience, but recent rework to entry code across the kernel tree has > > > demonstrated that they cause more pain than they're worth and prevent > > > architectures from being able to write robust entry code. > > > > > > This series reworks the irq code to remove them, handling the necessary > > > entry work consistently in entry code (be it architectural or generic). > > > > [...] > > > > Thanks for going through the pain of putting this together. The > > couple of nits I mentioned notwithstanding: > > > > Reviewed-by: Marc Zyngier > > Thanks! > > I've pushed out an updated version to my irq/handle-domain-irq branch > on kernel.org: > > git://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git > https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git > > That has two new patches you suggested: > > * irq: mips: simplify bcm6345_l1_irq_handle() > * irq: unexport handle_irq_desc() > > ... which I did not add your Reviewed-by to in case the commit messages > are garbage or something like that. I quickly eyeballed the patches, and they look OK to me. Feel free to add my RB tag to them. > > > It'd be good to work out a merging strategy once this has seen a bit > > of testing. > > Conflict-wise, this merges near perfectly against next-20212022 aside > from a trivial conflict against arch/riscv/Kconfig: > > | [mark@lakrids:~/src/linux]% git merge irq/handle-domain-irq > | Auto-merging arch/riscv/kernel/entry.S > | Auto-merging arch/riscv/Kconfig > | CONFLICT (content): Merge conflict in arch/riscv/Kconfig > | Auto-merging arch/nds32/Kconfig > | Auto-merging arch/mips/Kconfig > | Auto-merging arch/csky/Kconfig > | Auto-merging arch/arm64/Kconfig > | Auto-merging arch/arm/mach-s3c/irq-s3c24xx.c > | Auto-merging arch/arm/kernel/entry-armv.S > | Auto-merging arch/arm/Kconfig > | Auto-merging arch/arc/Kconfig > | Automatic merge failed; fix conflicts and then commit the result. > | [mark@lakrids:~/src/linux]% git diff > | diff --cc arch/riscv/Kconfig > | index 77a088d0a7e9,353e28f5f849..000000000000 > | --- a/arch/riscv/Kconfig > | +++ b/arch/riscv/Kconfig > | @@@ -62,8 -62,6 +62,11 @@@ config RISC > | select GENERIC_SCHED_CLOCK > | select GENERIC_SMP_IDLE_THREAD > | select GENERIC_TIME_VSYSCALL if MMU && 64BIT > | ++<<<<<<< HEAD > | + select GENERIC_VDSO_TIME_NS if HAVE_GENERIC_VDSO > | + select HANDLE_DOMAIN_IRQ > | ++======= > | ++>>>>>>> irq/handle-domain-irq > | select HAVE_ARCH_AUDITSYSCALL > | select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL > | select HAVE_ARCH_JUMP_LABEL_RELATIVE if !XIP_KERNEL > > ... where the resolution is: > > | diff --cc arch/riscv/Kconfig > | index 77a088d0a7e9,353e28f5f849..000000000000 > | --- a/arch/riscv/Kconfig > | +++ b/arch/riscv/Kconfig > | @@@ -62,8 -62,6 +62,7 @@@ config RISC > | select GENERIC_SCHED_CLOCK > | select GENERIC_SMP_IDLE_THREAD > | select GENERIC_TIME_VSYSCALL if MMU && 64BIT > | + select GENERIC_VDSO_TIME_NS if HAVE_GENERIC_VDSO > | - select HANDLE_DOMAIN_IRQ > | select HAVE_ARCH_AUDITSYSCALL > | select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL > | select HAVE_ARCH_JUMP_LABEL_RELATIVE if !XIP_KERNEL > > ... so I reckon we're not set for major pain there unless something new > appears in arch code in the next few days. > > If we can get this onto a branch for linux-next ASAP, and if Linus is > happy with this having come together a little late, maybe we could queue > this in tip for v5.16, perhaps after -rc1 to let this soak, or waiting > to apply the final patch to make it easier to revert the arch changes if > needed? I'm happy to route it via the irqchip tree (and ultimately tip) if nobody objects (which also means getting Acks from the arch maintainers). The branch would thus see a bit of -next before being sent to Linus. > I'd like to avoid sitting on this for an entire cycle if possible. +1. M. -- Without deviation from the norm, progress is not possible.