From: Borislav Petkov <bp@alien8.de>
To: WGH <wgh@torlan.ru>, Yazen Ghannam <yazen.ghannam@amd.com>
Cc: linux-edac@vger.kernel.org
Subject: Re: Unable to set (or read back) sdram_scrub_rate on amd64_edac F17h_M70h (Ryzen 3rd gen)
Date: Sun, 10 Jan 2021 12:33:08 +0100 [thread overview]
Message-ID: <20210110113308.GB22211@zn.tnic> (raw)
In-Reply-To: <a9cdf7c2-868a-8f67-ac4e-c6bff60552e2@torlan.ru>
On Sun, Jan 10, 2021 at 09:03:24AM +0300, WGH wrote:
> I tried many rates mentioned in scrubrates[] array, but the result is still the same.
>
> % echo 100000 | sudo tee /sys/devices/system/edac/mc/mc0/sdram_scrub_rate
> 100000
> % sudo cat /sys/devices/system/edac/mc/mc0/sdram_scrub_rate
> 0
>
> dmesg excerpt:
>
> [ 0.561809] EDAC MC: Ver: 3.0.0
> (skip)
> [ 0.825762] EDAC amd64: F17h_M70h detected (node 0).
> [ 0.826343] EDAC amd64: Node 0: DRAM ECC enabled.
> [ 0.826901] EDAC amd64: MCT channel count: 2
> [ 0.827512] EDAC MC0: Giving out device to module amd64_edac controller F17h_M70h: DEV 0000:00:18.3 (INTERRUPT)
> [ 0.828106] EDAC MC: UMC0 chip selects:
> [ 0.828106] EDAC amd64: MC: 0: 16384MB 1: 16384MB
> [ 0.828690] EDAC amd64: MC: 2: 16384MB 3: 16384MB
> [ 0.829262] EDAC MC: UMC1 chip selects:
> [ 0.829262] EDAC amd64: MC: 0: 16384MB 1: 16384MB
> [ 0.829829] EDAC amd64: MC: 2: 16384MB 3: 16384MB
> [ 0.830383] EDAC amd64: using x16 syndromes.
> [ 0.830992] EDAC PCI0: Giving out device to module amd64_edac controller EDAC PCI controller: DEV 0000:00:18.0 (POLLED)
> [ 0.831577] AMD64 EDAC driver v3.5.0
>
> This is AMD Ryzen 9 3900XT on ASRock B550 Extreme4 motherboard, Linux 5.10.5.
That thing checks a bit 0 in some PCI cfg reg on F17h before returning
the scrubrate. Do as root:
# setpci -s 00:18.6 0x0x48.l
It could be that scrub rate setting is locked on your machine. Because
it works here:
# echo 100000 > /sys/devices/system/edac/mc/mc0/sdram_scrub_rate
# cat /sys/devices/system/edac/mc/mc0/sdram_scrub_rate
390720
That's a AMD Ryzen 7 2700X Eight-Core Processor, however.
Yazen?
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
next prev parent reply other threads:[~2021-01-10 11:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-10 6:03 Unable to set (or read back) sdram_scrub_rate on amd64_edac F17h_M70h (Ryzen 3rd gen) WGH
2021-01-10 11:33 ` Borislav Petkov [this message]
2021-01-10 11:46 ` WGH
2021-01-10 12:00 ` Borislav Petkov
2021-01-11 20:16 ` Yazen Ghannam
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=20210110113308.GB22211@zn.tnic \
--to=bp@alien8.de \
--cc=linux-edac@vger.kernel.org \
--cc=wgh@torlan.ru \
--cc=yazen.ghannam@amd.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