Received: by 10.213.65.68 with SMTP id h4csp496345imn; Tue, 13 Mar 2018 10:53:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELsuiZ6hpGu+oZ8t1qFxqO9JcBidxaLB61aXgJWby2sN2mX359o6vhUnU1ftSDVCBafwMsdk X-Received: by 10.99.111.137 with SMTP id k131mr1178827pgc.11.1520963587210; Tue, 13 Mar 2018 10:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520963587; cv=none; d=google.com; s=arc-20160816; b=Yikl0srkbjojpti5UVvqWVIguszHRUKAm1SMZ8PnEKPDuIBLPKh4Eq1cQQXlfx9WE2 6j3x9pvsCi6mEz4x6bVfardkx9R+WJiu7F4Ye4eGcUhMqMW32D9KwGrvJO3ngTvlPbF/ 10gq2AuYrCGjhwRF3+IxyTnHHCk8wNBK2mYGVMsiLIiu71R8E5wVY7r/PoPCt6dAM2IU jExNffTgbeVYUc0CRo+M1QmcbFPddMkyCIoAm6/Yww3AeXflNAxhck8ezrz8xR56hBy4 bmXwrQ5oK3SbVTCw8Z9UQ42Y7yxsZcAJgWIWtcSBuSuOeS5HQiiGMfSk0tXSLF0No+jG jlMA== 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=YwAymNO6Y3qrEO95DMfSzCb4SilZMbDpau6UqwVIb8M=; b=f0IzJkTJotIuS4Gzfy3ODFSxpc7Kjdv8yFu40CCL/VzdI+TOostzl4OImWdF1htSbL +1bsvePLuIUDZwEasE3957Ww2b6cPURtwEHz2rECEYGBSP0v6Y1pYeS4cbOsDmq4O9hM b8RtjqVgxb7t9zTRI/LD6sxPpr+r2Mrjvnh9XeN+ljABmBPCpRnEE0CDUyEAYScJGEYt 54i6sqcTY7vDoQbYSfdSYmR329BdFI4kjUkESv+v82axiBuUCHREVZnXi+JWhTDL4+Y2 Y3d7yCM1cdEWW1GlpNEK5OrV0wEYg4pKseNMGaZPvGHz5V++UoHs9qLylNtLVE9GbC1g 9mDg== 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 v10si426847pgs.164.2018.03.13.10.52.52; Tue, 13 Mar 2018 10:53:07 -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 S1752227AbeCMRwB (ORCPT + 99 others); Tue, 13 Mar 2018 13:52:01 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:42510 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751394AbeCMRwA (ORCPT ); Tue, 13 Mar 2018 13:52:00 -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 1B2A915AB; Tue, 13 Mar 2018 10:52:00 -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 DC3C03F487; Tue, 13 Mar 2018 10:51:58 -0700 (PDT) Date: Tue, 13 Mar 2018 17:51:56 +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: <20180313175156.gmncij4rnqcdl5ie@lakrids.cambridge.arm.com> References: <20180313172103.24281-1-marc.zyngier@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180313172103.24281-1-marc.zyngier@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 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? That would avoid some work (including pointer chasing on potentially corrupt memory) in the kernel that crashed, making it more likely that we get to the crashkernel intact... Thanks, Mark