Received: by 10.213.65.68 with SMTP id h4csp1112803imn; Wed, 14 Mar 2018 09:58:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELscbX6v8vCdzmdzRpdceTF2OdjnwsX4hfFsGSu5dxq3jaW2NTHG6zx9Mwz49aKUkNZt/R0h X-Received: by 10.99.95.135 with SMTP id t129mr4287407pgb.268.1521046715606; Wed, 14 Mar 2018 09:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521046715; cv=none; d=google.com; s=arc-20160816; b=TlufdxKHgy3PUjHEQloLLOBGC0IS3k3RHVROYI+RoIrz9JGfyHvIPHG10bOV5ea3NG O6RfAjoMMqodsDaHrHZCWriXb8QFlVvfcdF36OSWZ9/MNTyHtck3Ts0B98x0K4w7sYSt sxpafxc0qA7ZpzarBUIEHgfjer/JTaTc1wxKnDX6hyvPK6VWzPWm3snScSdS9+LARhib ekUG78lTFT2jduwDzgMXxkZqS/JNQ/2txJhGcQ9V64agQEdDdNRr8GP7kKEXYQXie6l0 ot8DKwdddKZD0fSVMBpm3mu+TAnX4RjGKkGqTiTVgqFAsbOY9zN4yYbAWyyOuClYKMd4 dHtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=oqCuPTQlBvzU79Uih8ijhZ9HyqojqN+DrH7UoahTMAg=; b=zSJxL33mjcGxm+SFVS9lRVJzBPnULmRb7X/P3sb8Q5X9LbGmfiU4l2sk7ofS/6BHlC xrxmXVWpZ7WKMguXEmt4bt4YGwXMK0lNdKjMXSnEy7EcQvp5dVZn2kEktmCqmUUkbyvb XjtPsfLlTzxQyANM/RvfqxJgqzQYLembDv0+ojlY7z+GySjMatZjlNHGxTKtGwdXw3j0 gACHjMmMIkqxUpOFdTXhYUnp7evpNfLHAHvt7VUY6qcvb+J2FfcTotKPpj6n5sKaIS1+ eK+ZMiEEnW4qT0aKWDIlJvgMHPgRwxArUHeTDAwtZeO0JUFn+cSEazCCngMqXrN/l4dh qaow== ARC-Authentication-Results: i=1; mx.google.com; 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 h1-v6si2270749pln.216.2018.03.14.09.58.20; Wed, 14 Mar 2018 09:58:35 -0700 (PDT) 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; 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 S1751997AbeCNQ5O (ORCPT + 99 others); Wed, 14 Mar 2018 12:57:14 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:55954 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131AbeCNQ5N (ORCPT ); Wed, 14 Mar 2018 12:57:13 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B10DA80D; Wed, 14 Mar 2018 09:57:12 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7E6E93F53D; Wed, 14 Mar 2018 09:57:11 -0700 (PDT) Date: Wed, 14 Mar 2018 16:57:09 +0000 From: Mark Rutland To: Marc Zyngier Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jason Cooper , Thomas Gleixner , Grzegorz Jaszczyk Subject: Re: [PATCH 0/3] irqchip: GIC kexec/kdump improvement and workarounds Message-ID: <20180314165708.daoui66waxvicciq@lakrids.cambridge.arm.com> References: <20180313172103.24281-1-marc.zyngier@arm.com> <20180313175156.gmncij4rnqcdl5ie@lakrids.cambridge.arm.com> <72c7a6d2-a4c4-26b2-2982-c1d1ffb39b81@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <72c7a6d2-a4c4-26b2-2982-c1d1ffb39b81@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 06:35:07PM +0000, Marc Zyngier wrote: > On 13/03/18 17:51, Mark Rutland wrote: > > On Tue, Mar 13, 2018 at 05:21:00PM +0000, Marc Zyngier wrote: > >> As kexec and kdump are getting used a bit more intensively, I've been > >> made aware of a number of shortcomings. > >> > >> The main gripe is from folks trying to launch a kdump kernel from > >> within an interrupt handler. If using EOImode==1, things work as > >> expected. If using EOImode==0 (such as in a guest), the secondary > >> kernel hangs as the previous interrupt hasn't been EOI'd, and the > >> active priority is still set. The first two patches are addressing > >> this situation for both GICv2 and GICv3 by reseting the APRs to their > >> default value. > > > > As a more general thing, if irqchip drivers have state that needs to be > > reset in their init code, can we live all this irqchip reset to the > > crashdump kernel, and kill machine_kexec_mask_interrupts() entirely? > > We could, once we know for sure that all the potential irqchips have > been fixed. Or we could just remove it immediately, and see what breaks. I would be very tempted to do the latter. Thanks, Mark.