From: David Abdurachmanov <david.abdurachmanov@gmail.com>
To: linux-riscv@lists.infradead.org, Palmer Dabbelt <palmer@sifive.com>
Subject: /proc/cpuinfo shows mmu:sv48, but kernel only support sv39
Date: Mon, 12 Nov 2018 08:01:05 +0100 [thread overview]
Message-ID: <CAEn-LTpkgi8y2XMvTLx-qXbC=xsW4pDZi-hG4ZDykE6uK9R1ig@mail.gmail.com> (raw)
Message-ID: <20181112070105.Lj-LFlgstUiCvd5O91HMVTwpb1v9Ud3aL5iGOz_LJso@z> (raw)
Hi,
I noticed that my Fedora 29 with 4.20-rc1 & latest BBL
show mmu being sv48 in /proc/cpuinfo. The kernel only
implement sv39 for 64-bit systems. QEMU 3.0.0 also
supports only sv39. 3.1.0-rc0 version bumps that to sv48.
I would expect /proc/cpuinfo to show sv39 as that's what
we are running.
[..]
43 /* SATP flags */
44 #if __riscv_xlen == 32
45 #define SATP_PPN _AC(0x003FFFFF, UL)
46 #define SATP_MODE_32 _AC(0x80000000, UL)
47 #define SATP_MODE SATP_MODE_32
48 #else
49 #define SATP_PPN _AC(0x00000FFFFFFFFFFF, UL)
50 #define SATP_MODE_39 _AC(0x8000000000000000, UL)
51 #define SATP_MODE SATP_MODE_39
52 #endif
[..]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next reply other threads:[~2018-11-12 7:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-12 7:01 David Abdurachmanov [this message]
2018-11-12 7:01 ` /proc/cpuinfo shows mmu:sv48, but kernel only support sv39 David Abdurachmanov
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='CAEn-LTpkgi8y2XMvTLx-qXbC=xsW4pDZi-hG4ZDykE6uK9R1ig@mail.gmail.com' \
--to=david.abdurachmanov@gmail.com \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@sifive.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;
as well as URLs for NNTP newsgroup(s).