Received: by 10.223.185.116 with SMTP id b49csp125631wrg; Thu, 8 Mar 2018 14:07:33 -0800 (PST) X-Google-Smtp-Source: AG47ELsjkjlks3ffVIlLIHtca173lshi3615b6XcJroTh0kx6IiGebP7sjkQRigh/IFND9WCu5eq X-Received: by 10.101.71.138 with SMTP id e10mr23029527pgs.317.1520546853352; Thu, 08 Mar 2018 14:07:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520546853; cv=none; d=google.com; s=arc-20160816; b=fZxuMgyMrQ4/PkII91m1QXMydCQCwrgltViCK8FXUhXysyeW3PBuO2wTz+WzcD1Fvx mUx0zh37drzKwMWMcG8+DLkyYOncsqJ6EQB9d1xS9f0ZKBSeJzP37kQGc7UrdMTF2s72 umzmMnhKx513r48CGun/lHYibpGn8f9tCe6Bsqh6j0eajzHyIsrtEhkrVsc1r8uCrpru NkjrhhdA6E+LgIRlwZ8OoBTaEey09toYWemYFSwBc4bFP/w34Ryq3K7yeF1QOuFVE3dA sARGHP1flbZYFD8g3cJnyoUwMpa0EO6gSQUiAUa1AB84RQ05l14TQCa07lVquU6AkT7i JiPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=/8U4/WLrkETOdzN8kfx82S0m3NU0RC1t2uJ8ptr7ah0=; b=CG3E4gaBd5+DpSUX3zfGuDd28JINIBzQ/Wpqv1ZJcmtdzZqucGOipF0QOHLfVOmgeT se+BMnOkYQet6KeQJEy4zOTqxBrvJW0ZBfbwDXfZDPQ5CxRDJATliPmcmyVPxGMD1gpT VqojUB4M+CHDmZx6cYXrNKyqrz6J0Qh0BUEbqEktKj/sGoY6BQEhk+pgpRSpKmWaIs2f /uigwoBmz1ox+ehTCioz3qmeklurw/dr3UyW/pWXifcY/w4wlBl0CJ54TmtSE3rARK/Q NGLL/dKjhNhldP6dghZFJfx25jQBD+gKBovxjLOOfubHucy90e0T9e112OHeCxRa6Zzd 2BTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=ZjRMrSUF; 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 v34-v6si15334330plg.402.2018.03.08.14.07.18; Thu, 08 Mar 2018 14:07:33 -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=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=ZjRMrSUF; 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 S1751060AbeCHWGJ (ORCPT + 99 others); Thu, 8 Mar 2018 17:06:09 -0500 Received: from mail-pl0-f54.google.com ([209.85.160.54]:36191 "EHLO mail-pl0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbeCHWGI (ORCPT ); Thu, 8 Mar 2018 17:06:08 -0500 Received: by mail-pl0-f54.google.com with SMTP id 61-v6so4104864plf.3 for ; Thu, 08 Mar 2018 14:06:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/8U4/WLrkETOdzN8kfx82S0m3NU0RC1t2uJ8ptr7ah0=; b=ZjRMrSUFzTUnbTmhMgRjtxL7dOhd0qVS1xPwCF4Mdf2pk1z6so4FYVSyIihBLmIL26 WEO7XUZtZG5KBzjDNcJS/GNIroiFbzGcaqq/90NUr2qrcX0GmiGLyJoFyjv9S/4oXkVn a75jOKx+M8B3XUdtN8d9qpaZPzULxPwFP29avoEJrC+S82iynGaS3DUOPeyNzOSiKR3T etTU9GSw7J0aYoRPE8mJNHoxyJzU/tKpTptckeamLA/aFaFffjIuI8eYMZrgbMJcGWs9 1i1kAOifOBoTm1zcr6qBAy5tiM5Q5fDGYTZ+lZWkPu887PmgEHJYVs5DcBtgmZiIXGDu ImkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/8U4/WLrkETOdzN8kfx82S0m3NU0RC1t2uJ8ptr7ah0=; b=WiYfpqRkzAy/IXmOq+C8QDrh5gjzTYN9LFh2lbwkzNvYuPXM78hj2QYcdXxzeEJwZX FE7ydEA60zsNaiTCQpTtm2zs/fB1Xq9EMtfDr0Vet+AVaFTdI/ltmjJFoxah/A4/JIz0 rRInAlYrK5zeuq2LOUKnEtXtE9jSNXTKUC/4KQ1lGQo7GFRXXLcSmpVPAOrSrgyOszkD BTX48RHUakt5ICuFHke07WOPOmRWPMCmhznK+yoLLs3ptlHLFXdrPAfX63ah3fcLKQ+z j9U6CS6P6u22O0/jzKs8JPOMTS8rBvLZuAFp2BFJqCeqZIilsYEqoChtw+5OFtgY8mu9 nQOQ== X-Gm-Message-State: APf1xPBhras14zuVGDxHra//zYCiTjMU6+T6OHYK2Xl8qRlCvXXrWizx yO7ejL0uLLefa5JqoSfZsls/85ocMNHxsEn5cWmvbg== X-Received: by 2002:a17:902:48:: with SMTP id 66-v6mr24582158pla.288.1520546767794; Thu, 08 Mar 2018 14:06:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.140.148 with HTTP; Thu, 8 Mar 2018 14:06:06 -0800 (PST) In-Reply-To: <20180302165739.dc726v3yf2mxli3u@lakrids.cambridge.arm.com> References: <1519837260-30662-1-git-send-email-jaz@semihalf.com> <20180228171647.6t4dabntujcb5kon@lakrids.cambridge.arm.com> <20180302120556.xujh3hoy44y7ouz7@lakrids.cambridge.arm.com> <20180302131545.q2vf6uc3yofofqdb@lakrids.cambridge.arm.com> <20180302164411.fxdx72ttz7livz2e@lakrids.cambridge.arm.com> <20180302165739.dc726v3yf2mxli3u@lakrids.cambridge.arm.com> From: Grzegorz Jaszczyk Date: Thu, 8 Mar 2018 23:06:06 +0100 Message-ID: Subject: Re: [PATCH] arm64: kdump: fix interrupt handling done during machine_crash_shutdown To: Mark Rutland Cc: Hoeun Ryu , Marc Zyngier , catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, Nadav Haklai , "AKASHI, Takahiro" , james.morse@arm.com, Marcin Wojtas , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-03-02 17:57 GMT+01:00 Mark Rutland : >> > > Do you see this for a panic() in *any* interrupt handler? >> > >> > I only test with this two interrupt handlers: watchdog and i2c but I >> > think it will behave the same with others - I can try with other if >> > you want, any suggestion which? Maybe with some PPI interrupt instead? I was able to reproduce it from other interrupts handler (UART, I2C, timer and watchdog) no difference if it is PPI or SPI interrupt. I also reproduce this issue with GICv3. But again it only happens when eoimode = 0. >> > > >> > > Can you trigger the issue with magic-sysrq c, for example? >> > >> > There is no problem when I trigger it via 'echo c > >> > /proc/sysrq-trigger' - it works well all the time. The problem appears >> > only, when the kexec/kdump procedure is triggered from interrupt >> > context >> >> I'd meant that you'd send sysrq + c over serial, rather than writing to >> /proc/sysrq-trigger. That way, the panic will be in the context of the >> UART IRQ handler. >> >> If that shows the issue, that's ilikely to be the easiest way for >> someone else to reproduce and investigate this. Yes it can be triggered by sending sysrq + c and indeed it is the easiest way to reproduce it. > > FWIW, having just given this a go on my Juno R1 with v4.16-rc3 > defconfig, the UART IRQs work fine in the crash kernel. That crash > happened in IRQ context: I think that by default Juno uses eoimode = 1, did you try it when eoimode was forced to be 0? Only eoimode = 0 triggers the issue. Thank you, Grzegorz