Linux-RISC-V Archive on lore.kernel.org
 help / color / Atom feed
* /proc/cpuinfo shows mmu:sv48, but kernel only support sv39
@ 2018-11-12  7:01 david.abdurachmanov
  2018-11-12  7:01 ` David Abdurachmanov
  0 siblings, 1 reply; 2+ messages in thread
From: david.abdurachmanov @ 2018-11-12  7:01 UTC (permalink / raw)
  To: linux-riscv

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
[..]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* /proc/cpuinfo shows mmu:sv48, but kernel only support sv39
  2018-11-12  7:01 /proc/cpuinfo shows mmu:sv48, but kernel only support sv39 david.abdurachmanov
@ 2018-11-12  7:01 ` David Abdurachmanov
  0 siblings, 0 replies; 2+ messages in thread
From: David Abdurachmanov @ 2018-11-12  7:01 UTC (permalink / raw)
  To: linux-riscv, Palmer Dabbelt

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12  7:01 /proc/cpuinfo shows mmu:sv48, but kernel only support sv39 david.abdurachmanov
2018-11-12  7:01 ` David Abdurachmanov

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