Linux-RISC-V Archive on lore.kernel.org
 help / color / Atom feed
From: Alistair Francis <Alistair.Francis@wdc.com>
To: "paul.walmsley@sifive.com" <paul.walmsley@sifive.com>,
	"david.abdurachmanov@gmail.com" <david.abdurachmanov@gmail.com>
Cc: "aou@eecs.berkeley.edu" <aou@eecs.berkeley.edu>,
	Anup Patel <Anup.Patel@wdc.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"rppt@linux.ibm.com" <rppt@linux.ibm.com>,
	"hch@infradead.org" <hch@infradead.org>,
	Atish Patra <Atish.Patra@wdc.com>,
	"palmer@sifive.com" <palmer@sifive.com>,
	"linux-riscv@lists.infradead.org"
	<linux-riscv@lists.infradead.org>
Subject: Re: [PATCH v5 2/2] RISC-V: Setup initial page tables in two stages
Date: Thu, 15 Aug 2019 21:32:17 +0000
Message-ID: <89abd38c67eb3e02551b8a3a1705c9bf591cfbcf.camel@wdc.com> (raw)
In-Reply-To: <alpine.DEB.2.21.9999.1908151327490.18249@viisi.sifive.com>

On Thu, 2019-08-15 at 13:29 -0700, Paul Walmsley wrote:
> On Thu, 15 Aug 2019, David Abdurachmanov wrote:
> 
> > Yes, I do see those in Fedora/RISCV build farm every morning, but
> > with
> > riscv64 and 5.2.0-rc7 kernel.
> 
> [...]
> 
> > fedora-riscv-4 login: [178876.406122] Unable to handle kernel
> > paging
> > request at virtual address 0000000000012a28
> > fedora-riscv-7 login: [17983.074847] Unable to handle kernel paging
> > request at virtual address 0fffffdff5e14700
> 
> Alistair, you're seeing panics immediately after the userspace
> transition, 
> right?  100% of the time?

Yes, just after init (systemd) is started. I see this 100% of the time
with 32-bit RISC-V.

Here is an updated log with a little more context:

[    1.227072] EXT4-fs (vda): mounted filesystem with ordered data
mode. Opts: (null)
[    1.228148] VFS: Mounted root (ext4 filesystem) on device 254:0.
[    1.274486] Freeing unused kernel memory: 192K
[    1.274788] This architecture does not have kernel memory
protection.
[    1.275298] Run /sbin/init as init process
[    1.682749] systemd[1]: systemd 242-19-gdb2e367+ running in system
mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP
-LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS
+KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    1.685536] Unable to handle kernel paging request at virtual
address 9ff00c15
[    1.686160] Oops [#1]
[    1.686409] Modules linked in:
[    1.686826] CPU: 0 PID: 1 Comm: systemd Not tainted 5.3.0-rc4 #1
[    1.687388] sepc: c05d2f74 ra : c04bd60c sp : df04fce0
[    1.687817]  gp : c07af4a8 tp : df050000 t0 : 000000fc
[    1.688329]  t1 : 00000002 t2 : 000003ef s0 : df04fcf0
[    1.688763]  s1 : df7090f8 a0 : 9ff00c15 a1 : c072f4a8
[    1.689186]  a2 : 00000000 a3 : 00000001 a4 : 00000001
[    1.689587]  a5 : df6f8138 a6 : 0000002f a7 : de62a000
[    1.689970]  s2 : c072f4a8 s3 : 00000000 s4 : 00000000
[    1.690355]  s5 : c07b1000 s6 : 00400cc0 s7 : 00000400
[    1.690732]  s8 : de496018 s9 : 00000000 s10: fffff000
[    1.691114]  s11: de496030 t3 : de62b000 t4 : 00000000
[    1.691491]  t5 : 00000000 t6 : 00000080
[    1.691797] sstatus: 00000100 sbadaddr: 9ff00c15 scause: 0000000d
[    1.692861] ---[ end trace 7aed3616cacc20ea ]---
[    1.695358] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b
[    1.696158] ---[ end Kernel panic - not syncing: Attempted to kill
init! exitcode=0x0000000b ]---

> 
> If so, this is probably a different bug.  Most likely the TLB
> flushing 
> issue.

I'm not sure. I have tried with Atish's OpenSBI and kernel patches but
that didn't help.

Reverting just this patch does fully fix the problem though.

Alistair

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

  reply index

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-07  6:01 [PATCH v5 0/2] Two-stagged initial page table setup Anup Patel
2019-06-07  6:01 ` [PATCH v5 1/2] RISC-V: Fix memory reservation in setup_bootmem() Anup Patel
2019-06-28 20:59   ` Paul Walmsley
2019-06-07  6:01 ` [PATCH v5 2/2] RISC-V: Setup initial page tables in two stages Anup Patel
2019-07-11  0:05   ` Paul Walmsley
2019-08-15 18:57     ` Alistair Francis
2019-08-15 19:07       ` David Abdurachmanov
2019-08-15 20:25         ` Alistair Francis
2019-08-15 20:29         ` Paul Walmsley
2019-08-15 21:32           ` Alistair Francis [this message]
2019-08-16  1:05       ` Anup Patel
2019-06-22  4:13 ` [PATCH v5 0/2] Two-stagged initial page table setup Anup Patel

Reply instructions:

You may reply publically 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=89abd38c67eb3e02551b8a3a1705c9bf591cfbcf.camel@wdc.com \
    --to=alistair.francis@wdc.com \
    --cc=Anup.Patel@wdc.com \
    --cc=Atish.Patra@wdc.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=david.abdurachmanov@gmail.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@sifive.com \
    --cc=paul.walmsley@sifive.com \
    --cc=rppt@linux.ibm.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

Linux-RISC-V Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-riscv/0 linux-riscv/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-riscv linux-riscv/ https://lore.kernel.org/linux-riscv \
		linux-riscv@lists.infradead.org infradead-linux-riscv@archiver.kernel.org
	public-inbox-index linux-riscv


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-riscv


AGPL code for this site: git clone https://public-inbox.org/ public-inbox