linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Atish Patra <atish.patra@wdc.com>
To: Andreas Schwab <schwab@suse.de>,
	"linux-riscv@lists.infradead.org"
	<linux-riscv@lists.infradead.org>
Subject: Re: sbi_trap_error: hart4: trap handler failed (error -5)
Date: Mon, 11 Feb 2019 12:17:08 -0800	[thread overview]
Message-ID: <5cfec923-57ac-e576-d296-a29f5ba00ac1@wdc.com> (raw)
In-Reply-To: <mvmftsuv2ea.fsf@suse.de>

On 2/11/19 6:16 AM, Andreas Schwab wrote:
> I have been getting this error:
> 
> sbi_trap_error: hart4: trap handler failed (error -5)
> sbi_trap_error: hart4: mcause=0xd mtval=0x155574e000

Looks like you are getting a CAUSE_LOAD_PAGE_FAULT (0xd) on hart4.

> sbi_trap_error: hart4: mepc=0x80003dba mstatus=0x8000000a00027822
> sbi_trap_error: hart4: ra=0x80001eaa sp=0x8000dd60
> sbi_trap_error: hart4: gp=0x2aaaccdd18 tp=0x155573cb20
> sbi_trap_error: hart4: s0=0x8000ddc0 s1=0x5e
> sbi_trap_error: hart4: a0=0x20000 a1=0x8000ddf0
> sbi_trap_error: hart4: a2=0x15555eee96 a3=0x8000000a00006022
> sbi_trap_error: hart4: a4=0x8000dd6b a5=0x155574e001
> sbi_trap_error: hart4: a6=0x0 a7=0x155574e001
> sbi_trap_error: hart4: s2=0xee s3=0x3
> sbi_trap_error: hart4: s4=0x96 s5=0x20
> sbi_trap_error: hart4: s6=0x0 s7=0x15555eee96
> sbi_trap_error: hart4: s8=0x74 s9=0x14774
> sbi_trap_error: hart4: s10=0x58782b5b s11=0x34fe3e52
> sbi_trap_error: hart4: t0=0x4 t1=0x155574dffd
> sbi_trap_error: hart4: t2=0x55 t3=0x85a303
> sbi_trap_error: hart4: t4=0x0 t5=0x0
> sbi_trap_error: hart4: t6=0x15
> 
> What does that mean?
> 

It would help if you also give some more details about the platform and 
boot flow you are testing. Are you testing OpenSBI + U-Boot + Linux or 
OpenSBI + Linux (kernel image as a direct payload to OpenSBI).

Are you getting this error on QEMU or Unleashed ?

FYI: This is a OpenSBI specific issue. You can always create a github
issue for a quick response.

Regards,
Atish
> Andreas.
> 

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

  reply	other threads:[~2019-02-11 20:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-11 14:13 sbi_trap_error: hart4: trap handler failed (error -5) Andreas Schwab
2019-02-11 20:17 ` Atish Patra [this message]
2019-02-12  8:15   ` Andreas Schwab

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=5cfec923-57ac-e576-d296-a29f5ba00ac1@wdc.com \
    --to=atish.patra@wdc.com \
    --cc=linux-riscv@lists.infradead.org \
    --cc=schwab@suse.de \
    /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).