mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Grzegorz Jaszczyk <jaz@semihalf.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: Hoeun Ryu <hoeun.ryu@gmail.com>,
	Marc Zyngier <marc.zyngier@arm.com>,
	catalin.marinas@arm.com, will.deacon@arm.com,
	linux-kernel@vger.kernel.org, Nadav Haklai <nadavh@marvell.com>,
	"AKASHI, Takahiro" <takahiro.akashi@linaro.org>,
	james.morse@arm.com, Marcin Wojtas <mw@semihalf.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] arm64: kdump: fix interrupt handling done during machine_crash_shutdown
Date: Thu, 8 Mar 2018 23:06:06 +0100	[thread overview]
Message-ID: <CAH76GKP5Abx3ty1jVfesd_BjOKaQLaNs0e_W06LBanWDAPS0gQ@mail.gmail.com> (raw)
In-Reply-To: <20180302165739.dc726v3yf2mxli3u@lakrids.cambridge.arm.com>

2018-03-02 17:57 GMT+01:00 Mark Rutland <mark.rutland@arm.com>:
>> > > 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

  reply	other threads:[~2018-03-08 22:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-28 17:01 Grzegorz Jaszczyk
2018-02-28 17:16 ` Mark Rutland
2018-02-28 17:45   ` Marc Zyngier
2018-03-02 11:56     ` Grzegorz Jaszczyk
2018-03-02 12:05       ` Mark Rutland
2018-03-02 12:59         ` Grzegorz Jaszczyk
2018-03-02 13:15           ` Mark Rutland
2018-03-02 13:52             ` Grzegorz Jaszczyk
2018-03-02 16:44               ` Mark Rutland
2018-03-02 16:57                 ` Mark Rutland
2018-03-08 22:06                   ` Grzegorz Jaszczyk [this message]
2018-03-13 17:25                     ` Marc Zyngier
2018-03-07 18:14       ` Marc Zyngier
2018-03-09 10:33         ` Grzegorz Jaszczyk
2018-03-09 17:05           ` Marc Zyngier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH76GKP5Abx3ty1jVfesd_BjOKaQLaNs0e_W06LBanWDAPS0gQ@mail.gmail.com \
    --to=jaz@semihalf.com \
    --cc=catalin.marinas@arm.com \
    --cc=hoeun.ryu@gmail.com \
    --cc=james.morse@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marc.zyngier@arm.com \
    --cc=mark.rutland@arm.com \
    --cc=mw@semihalf.com \
    --cc=nadavh@marvell.com \
    --cc=takahiro.akashi@linaro.org \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®