Skip to content

Commit 1cccd64

Browse files
committed
[AMD/Family 17h] Specification of AMD_17_UMC_ECC_CAP registers
1 parent e44bdc9 commit 1cccd64

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

amdmsr.h

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ typedef union
11031103

11041104
/* Sources: drivers/edac/amd64_edac.h */
11051105
#ifndef SMU_AMD_UMC_BASE_CHA_F17H
1106-
#define SMU_AMD_UMC_BASE_CHA_F17H(_cha) (0x00050000 + (_cha << 20))
1106+
#define SMU_AMD_UMC_BASE_CHA_F17H(_cha) (0x00050000 + (_cha << 20))
11071107
#endif
11081108

11091109
/*
@@ -1264,17 +1264,18 @@ typedef union
12641264
} AMD_17_UMC_ECC_CTRL;
12651265

12661266
typedef union
1267-
{ /* SMU: address = { 0x50df0 , 0x50df1 , 0x50df2 , 0x50df3 } */
1267+
{ /* SMU: address = 0x50df0 */
12681268
unsigned int value;
12691269
struct
12701270
{
12711271
unsigned int
1272-
ReservedBits1 : 4-0,
1273-
Bit04 : 5-4, /* when DIMM populated ? */
1274-
Bit05 : 6-5, /* when DIMM populated ? */
1275-
ReservedBits2 : 16-6,
1276-
Bit16 : 17-16, /* when DIMM populated ? */
1277-
ReservedBits3 : 32-17;
1272+
DDR_MaxRate : 8-0,
1273+
ReservedBits1 : 16-8,
1274+
Reg_DIMM_Dis : 17-16, /* 1: RDIMM/LRDIMM support */
1275+
Disable : 18-17, /* 1: ECC Support disabled */
1276+
Encryption_Dis : 19-18,
1277+
MemChannel_Dis : 20-19,
1278+
ReservedBits2 : 32-20;
12781279
};
12791280
} AMD_17_UMC_ECC_CAP;
12801281

@@ -1284,9 +1285,10 @@ typedef union
12841285
struct
12851286
{
12861287
unsigned int
1287-
ReservedBits : 30-0,
1288-
Enable : 31-30,
1289-
ChipKill : 32-31;
1288+
DDR_MaxRateEnf : 8-0,
1289+
ReservedBits : 30-8,
1290+
Enable : 31-30, /* 1: ECC logic configured */
1291+
ChipKill : 32-31; /* 1: ECC chipkill configured */
12901292
};
12911293
} AMD_17_UMC_ECC_CAP_HI;
12921294

0 commit comments

Comments
 (0)