Gentoo Archives: gentoo-user

From: tuxic@××××××.de
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] New motherboard, new CPU => MTRR problems
Date: Wed, 25 Mar 2020 06:09:17
Message-Id: 20200325060904.dq5a33gk5yy44jlk@solfire
1 Hi,
2
3 the hardware consists of:
4 AMD Ryzen 5 3600
5 MSI Tomahawk MAX
6 32GB RAM (Corsair Venegeance 2x16GB,dual channel)
7 NVidia RTX 2060 SUPER
8
9 cat /proc/mtrr gives me
10
11 reg00: base=0x000000000 ( 0MB), size= 2048MB, count=1: write-back
12 reg01: base=0x080000000 ( 2048MB), size= 1024MB, count=1: write-back
13 reg02: base=0x0c0000000 ( 3072MB), size= 512MB, count=1: write-back
14 reg03: base=0x0dc0a0000 ( 3520MB), size= 64KB, count=1: uncachable
15
16 -> there is a chunk of uncachable memory
17
18 I activated the sanitizer in the kernel and in kernel I found
19 this:
20
21
22 [ 0.000000] MTRR default type: uncachable
23 [ 0.000000] MTRR fixed ranges enabled:
24 [ 0.000000] 00000-9FFFF write-back
25 [ 0.000000] A0000-BFFFF write-through
26 [ 0.000000] C0000-FFFFF write-protect
27 [ 0.000000] MTRR variable ranges enabled:
28 [ 0.000000] 0 base 000000000000 mask FFFF80000000 write-back
29 [ 0.000000] 1 base 000080000000 mask FFFFC0000000 write-back
30 [ 0.000000] 2 base 0000C0000000 mask FFFFE0000000 write-back
31 [ 0.000000] 3 base 0000DC0A0000 mask FFFFFFFF0000 uncachable
32 [ 0.000000] 4 disabled
33 [ 0.000000] 5 disabled
34 [ 0.000000] 6 disabled
35 [ 0.000000] 7 disabled
36 ...
37 [ 0.000000] gran_size: 64K chunk_size: 64M num_reg: 4 lose cover RAM: 0G
38
39 So I set the kernel cmdline to:
40 BOOT_IMAGE=/vmlinuz-5051101-64-RT root=/dev/sda11 ro console=tty0 console=ttyS0,115200n8 enable_mtrr_cleanup mtrr_spare_reg_nr=1 mtrr_gran_size=64K mtrr_chunk_size=64M
41
42 rebooted and found the same problem unchanged.
43
44 The Gentoo docs says, that there is a BIOS setting - probably under
45 "CPU" - which I should set from continuos to separated...but nowaday
46 BIOSse may look like a part of a Science Fiction moview...but I can
47 find those setting neither under "EZ" (for "easy settings" not under
48 "advanced" (for "danger ahead - you may screw up your board").
49
50 The bios of the board is not the top newest...it is the previous
51 version.
52 The changelog of the newest BIOS does not mention anything I would
53 see as related to the mtrr problem...
54
55 Background: The RTX 2060 SUPER was intended to replace the
56 old GTX 960 I had....but the "BMW27" benchmark with Blender
57 is slower than with the GTX 960...
58
59 How can I fix the mtrr problem (and the performance problem
60 of the graphics card, is related) ?
61
62 Thanks a lot in advance for any help!
63 Cheers!
64 Meino

Replies

Subject Author
Re: [gentoo-user] New motherboard, new CPU => MTRR problems "J. Roeleveld" <joost@××××××××.org>