diff options
author | Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> | 2015-09-28 06:43:12 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2015-09-29 13:25:33 +0200 |
commit | da92110dfdfacfdb0e3be06040a14d96c23be5d0 (patch) | |
tree | ee70ac2c40731ba9c4150df588f7edb57a9080d8 /drivers/edac/amd64_edac.h | |
parent | d0c9c93019e9b61f21ac22a5c23749873adc0038 (diff) | |
download | linux-stable-da92110dfdfacfdb0e3be06040a14d96c23be5d0.tar.gz linux-stable-da92110dfdfacfdb0e3be06040a14d96c23be5d0.tar.bz2 linux-stable-da92110dfdfacfdb0e3be06040a14d96c23be5d0.zip |
EDAC, amd64_edac: Extend scrub rate support to F15hM60h
The scrub rate control register has moved to function 2 in PCI config
space and is at a different offset on family 0x15, models 0x60 and
later. The minimum recommended scrub rate has also changed. (Refer to
D18F2x1c9_dct[1:0][DramScrub] in Fam15hM60h BKDG).
Adjust set_scrub_rate() and get_scrub_rate() functions to accommodate
this.
Tested on F15hM60h, Fam15h, models 00h-0fh and Fam10h systems.
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1443440593-2316-2-git-send-email-Aravind.Gopalakrishnan@amd.com
[ Cleanup conditionals. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r-- | drivers/edac/amd64_edac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index 4bdec752d330..971dc12a0a1c 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h @@ -255,6 +255,8 @@ #define DCT_SEL_HI 0x114 +#define F15H_M60H_SCRCTRL 0x1C8 + /* * Function 3 - Misc Control */ |