Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1657885pxb; Sun, 17 Jan 2021 17:44:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6BdaOMYaUkv7i+Sey3YH0tjbmfnITBUiSiA/K6mcMB9CpaFdcu4mK2ohlLP/bItEU72c2 X-Received: by 2002:a17:906:dfda:: with SMTP id jt26mr15555332ejc.240.1610934250125; Sun, 17 Jan 2021 17:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610934250; cv=none; d=google.com; s=arc-20160816; b=Uw4WAr8nxGo3TRPUSIMDQjsvyr4QjHGKI5fSLE2ht1/hwK4szi3gkjanvMo6AU/0i8 ruha1SDDso4I8AN3N1yA7TTnQ+FCFBVzlYA1HeS8pEXeV9LojfjkhIZVTXar8oax9m19 syabRUvJZQOLnQ46V9BZOdXRUvZ0zJuhV/Y0yof8tkKg1gx+0ZFyKcwlgPT6mNi1I5Sb ptKN3JhGqHKSgmr86gFO8PYW8m2NUz6JDYDzZeap5g9st34GQ+M/QPOWaxuwJFiM8KfZ XX7vv+MXTQcj/JJ4QOR25JOEXwApOe09JKThYhU2Q/W3lh157BFp2wl6ew8cKoHlzxbJ kMZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=WrDs8oWEgAFN6mkzQNV+nfTaZKp2EzQm50ZTq5vCxJo=; b=zXeukn8/NAJsASxiHWzqLvdb/28e3pwJqpsVqDswrHdgdIlWthAYadSnAi2HZHBbhM tYwDjzzQHXnnNjUR7jMdZbqAWDN7nvo5BuRDkKRYq6RLryPCU/dUiiJEwUJiiQHF4Pwf IFXrtT5gdbsDEPOpsvN6kvP0IJaSauNWpmZvReJDuzLYXMxeR4fPdk3CC8PZtK6MTq+j QKwKgk7suReRPE+3zMioqg1buWAgfYRvJQH5yemcX0dcjjhBydLEydvu8dc7d1hXUsUn BipLaJt5xwr1dq/OsNuKynqBzJc/WiUYq9+FFdZUqXuVVTrrHiXTQzNky5dxXHNw1UZE 11iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si7040752ejd.56.2021.01.17.17.43.45; Sun, 17 Jan 2021 17:44:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730234AbhARBkN convert rfc822-to-8bit (ORCPT + 99 others); Sun, 17 Jan 2021 20:40:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726592AbhARBkL (ORCPT ); Sun, 17 Jan 2021 20:40:11 -0500 X-Greylist: delayed 461 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 17 Jan 2021 17:39:31 PST Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BEC4C061573 for ; Sun, 17 Jan 2021 17:39:31 -0800 (PST) Received: from iva5-92838732ac93.qloud-c.yandex.net (iva5-92838732ac93.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:5c9c:0:640:9283:8732]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 52625B20741; Mon, 18 Jan 2021 04:30:59 +0300 (MSK) Received: from iva7-f62245f79210.qloud-c.yandex.net (iva7-f62245f79210.qloud-c.yandex.net [2a02:6b8:c0c:2e83:0:640:f622:45f7]) by iva5-92838732ac93.qloud-c.yandex.net (mxback/Yandex) with ESMTP id GF9SUY9yCP-UxDq7JBb; Mon, 18 Jan 2021 04:30:59 +0300 Authentication-Results: iva5-92838732ac93.qloud-c.yandex.net; dkim=pass Received: by iva7-f62245f79210.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id V9qGMnUq0m-UwImY3db; Mon, 18 Jan 2021 04:30:58 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) To: Yazen Ghannam , linux-edac@vger.kernel.org Cc: linux-kernel@vger.kernel.org, bp@alien8.de, Smita.KoralahalliChannabasappa@amd.com References: <20210116143353.7576-1-Yazen.Ghannam@amd.com> From: WGH Subject: Re: [PATCH] EDAC/AMD64: Update scrub register addresses for newer models Message-ID: Date: Mon, 18 Jan 2021 04:30:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210116143353.7576-1-Yazen.Ghannam@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/01/2021 17:33, Yazen Ghannam wrote: > From: Yazen Ghannam > > The Family 17h scrubber registers moved to different offset starting > with Model 30h. The new register offsets are used for all currently > available models since then. > > Use the new register addresses as the defaults. > > Set the proper scrub register addresses during module init for older > models. So I tested the patch on my machine (AMD Ryzen 9 3900XT on ASRock B550 Extreme4 motherboard, Linux 5.10.7). The /sys/devices/system/edac/mc/mc0/sdram_scrub_rate value seems to be stuck at 12284069 right after the boot, and does not change. Writes to the file do not report any errors. dmesg: [    0.549451] EDAC MC: Ver: 3.0.0 [    0.817576] EDAC amd64: F17h_M70h detected (node 0). [    0.818159] EDAC amd64: Node 0: DRAM ECC enabled. [    0.818717] EDAC amd64: MCT channel count: 2 [    0.819324] EDAC MC0: Giving out device to module amd64_edac controller F17h_M70h: DEV 0000:00:18.3 (INTERRUPT) [    0.819909] EDAC MC: UMC0 chip selects: [    0.819910] EDAC amd64: MC: 0: 16384MB 1: 16384MB [    0.820488] EDAC amd64: MC: 2: 16384MB 3: 16384MB [    0.821067] EDAC MC: UMC1 chip selects: [    0.821067] EDAC amd64: MC: 0: 16384MB 1: 16384MB [    0.821630] EDAC amd64: MC: 2: 16384MB 3: 16384MB [    0.822187] EDAC amd64: using x16 syndromes. [    0.822739] EDAC PCI0: Giving out device to module amd64_edac controller EDAC PCI controller: DEV 0000:00:18.0 (POLLED) [    0.823314] AMD64 EDAC driver v3.5.0