Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8114164pxb; Fri, 19 Feb 2021 07:44:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpAo0+pW3gRHWWkhWZGCHQqiVv33+SlaVcd8dK/OEiiz7KWXaTjb1A9JcDNkBQ1GsTkdcP X-Received: by 2002:a17:906:1bf2:: with SMTP id t18mr9683319ejg.166.1613749474125; Fri, 19 Feb 2021 07:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613749474; cv=none; d=google.com; s=arc-20160816; b=KyQC2JoMYr3QnlXIr6HYVdHN8UVbMV+M5na/tSt6MCmUbana4Oe23+e6kwo7Pv0jxh Y5EzKmiDjsxgeS8Ua+lrBs4dQX5e6zcyfJ+0a5zz7pzoIdi8DbV/MidMCGmMIhQGfxe9 h4Q0j0iKdzprqXHmIdkH7LMLmWtaDXGrDmUPxsdvn3MNBrNdAWqRz/OhQY2djwIRYwTl j54wjcCEGFHvvBw+Q60R2qL38le1OJuD8KDI3yduW5oED3h36oVparxa3qqMg6DpDoJS MmheFNRQkyb/HHeBtxS/wteKS9bagqv/92R4Xa+1RIqqgowCA6eskkq85lPDL2ErE2Xx mxsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=UCAh0O+WpSmqwV+WcZoSI/0yKeMdL16hyJVVBpxSGDI=; b=tXtflXAoQKYDFtr0BUt9m5bGtAvxZVGAPHcIuFKNqMnyMwVx/sQNwylJMIB+XXTTWf 9EWJPE9ux1VgBfxiyBPeHSADFW+Loy6wcgXRbbb/8yZDH+umE6hDcjhLiJbBHBMWPjvK h2r0rwfo2ueKdroxkILH34TCRItND4m1n5df/eM0AeEELnjZNCjDtWFJ35fXNrd80gTX G+RFoPbDO7dppgLrIiEC8RHqzHlfB7HSITQdsBCCJlvaHzb92TRvvbBb5gXd2y1SyYKK 9p40S0WTaGVm2yEiV8TR+mLWieUIia3qNzIzFtiT9BYFxorGZmsuxFlsLxPzA+FHBpHf 2QHg== 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w25si6056945edv.77.2021.02.19.07.44.04; Fri, 19 Feb 2021 07:44:34 -0800 (PST) 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbhBSPmc (ORCPT + 99 others); Fri, 19 Feb 2021 10:42:32 -0500 Received: from marcansoft.com ([212.63.210.85]:44616 "EHLO mail.marcansoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbhBSPlt (ORCPT ); Fri, 19 Feb 2021 10:41:49 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id 80DC5419B4; Fri, 19 Feb 2021 15:41:03 +0000 (UTC) To: Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: catalin.marinas@arm.com, james.morse@arm.com, maz@kernel.org, tglx@linutronix.de, will@kernel.org, Arnd Bergmann References: <20210219113904.41736-1-mark.rutland@arm.com> From: Hector Martin Subject: Re: [PATCH 0/8] arm64: Support FIQ controller registration Message-ID: Date: Sat, 20 Feb 2021 00:41:01 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210219113904.41736-1-mark.rutland@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, Thanks for tackling this side of the problem! On 19/02/2021 20.38, Mark Rutland wrote: > The only functional difference here is that if an IRQ > is somehow taken prior to set_handle_irq() the default handler will directly > panic() rather than the vector branching to NULL. That sounds like the right thing to do, certainly. > The penultimate patch is cherry-picked from the v2 M1 series, and as per > discussion there [3] will need a few additional fixups. I've included it for > now as the DAIF.IF alignment is necessary for the FIQ exception handling added > in the final patch. > The final patch adds the low-level FIQ exception handling and registration > mechanism atop the prior rework. > > I'm hoping that we can somehow queue the first 6 patches of this series as a > base for the M1 support. With that we can either cherry-pick a later version of > the DAIF.IF patch here, or the M1 support series can take the FIQ handling > patch. I've pushed the series out to my arm64/fiq branch [4] on kernel.org, > atop v5.11. Looks good! I cherry picked my updated version of the DAIF.IF patch into your series at [1] (3322522d), and then rebased the M1 series on top of it (with the change to use set_handle_fiq(), minus all the other obsoleted FIQ stuff) at [2]. It all boots and works as expected. I think it makes sense for you to take the DAIF.IF patch, as it goes along with this series. Then we can base the M1 series off of it. If you think that works, I can send it off as a one-off reply to the version in this series and we can review it here if you want, or otherwise feel free to cherry-pick it into a v2 (CC as appropriate). If this all makes sense, the v3 of the M1 series will then be based off of this patchset as in [2], and I'll link to your tree in the cover letter so others know where to apply it. Arnd (CCed) is going to be merging that one via the SoC tree, so as long as we coordinate a stable base once everything is reviewed and ready to merge, I believe it should all work out fine on the way up. Just for completeness, the current DAIF.IF patch in the context of the original series is at [3] (4dd6330f), in case that's useful to someone for some reason (since there were conflicts due to the refactoring happening before it, it changed a bit). [1] https://github.com/AsahiLinux/linux/tree/fiq [2] https://github.com/AsahiLinux/linux/tree/upstream-bringup-v3 [3] https://github.com/AsahiLinux/linux/tree/upstream-bringup-v2.5 -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub