linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: chuhu@redhat.com (Chunyu Hu)
To: linux-arm-kernel@lists.infradead.org
Subject: Bug report: Bad mode in FIQ handler detected on CPU0, code 0x56000000
Date: Fri, 10 Aug 2018 02:30:20 -0400 (EDT)	[thread overview]
Message-ID: <70910961.24172948.1533882620742.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20180809131622.GC29785@arm.com>



----- Original Message -----
> From: "Will Deacon" <will.deacon@arm.com>
> To: "Chunyu Hu" <chuhu@redhat.com>
> Cc: linux-arm-kernel at lists.infradead.org
> Sent: Thursday, August 9, 2018 9:16:22 PM
> Subject: Re: Bug report: Bad mode in FIQ handler detected on CPU0, code 0x56000000
> 
> Hi Chunyu,
> 
> On Thu, Aug 09, 2018 at 08:47:38AM -0400, Chunyu Hu wrote:
> > I hit an 100% panic when I executed:
> > 
> > perf &
> > perf top
> > 
> > Logs are as below,
> > 
> > [  123.234492] Bad mode in FIQ handler detected on CPU0, code 0x56000000 --
> > SVC (AArch64)
> 
> Oh dear...
> 
> We don't support FIQ in Linux, since:
> 
> (a) It's seldom available on the non-secure side
> (b) It's not necessarily "fast", despite the name
> (c) We'd be opening up a can of worms if we allow FIQ to preempt IRQ. Better
>     off using SDEI or GIC priorities to implement NMIs.
> (d) I don't think FIQs can be described in ACPI or DT
> 
> In this case, it looks like the PMU interrupt has been configured as a FIQ.
> It should be possible to configure the GIC in firmware (not sure you have
> EL3, so maybe in the bootloader) to treat this interrupt as an IRQ instead,
> in which case perf top will work correctly as long as the ACPI tables / FDT
> accurately describe the interrupt.

Will,

Thank you so much for the explanation. 

> 
> Will
> 

-- 
Regards,
Chunyu Hu

      reply	other threads:[~2018-08-10  6:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1426298268.23978174.1533818483053.JavaMail.zimbra@redhat.com>
2018-08-09 12:47 ` Bug report: Bad mode in FIQ handler detected on CPU0, code 0x56000000 Chunyu Hu
2018-08-09 13:16   ` Will Deacon
2018-08-10  6:30     ` Chunyu Hu [this message]

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=70910961.24172948.1533882620742.JavaMail.zimbra@redhat.com \
    --to=chuhu@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).