H A D | sb_edac.c | 52 #define GET_BITFIELD(v, lo, hi) \ macro 68 #define SAD_LIMIT(reg) ((GET_BITFIELD(reg, 6, 25) << 26) | 0x3ffffff) 69 #define DRAM_ATTR(reg) GET_BITFIELD(reg, 2, 3) 70 #define INTERLEAVE_MODE(reg) GET_BITFIELD(reg, 1, 1) 71 #define DRAM_RULE_ENABLE(reg) GET_BITFIELD(reg, 0, 0) 72 #define A7MODE(reg) GET_BITFIELD(reg, 26, 26) 130 return GET_BITFIELD(reg, table[interleave].start, sad_pkg() 142 #define GET_TOLM(reg) ((GET_BITFIELD(reg, 0, 3) << 28) | 0x3ffffff) 143 #define GET_TOHM(reg) ((GET_BITFIELD(reg, 0, 20) << 25) | 0x3ffffff) 149 #define SOURCE_ID(reg) GET_BITFIELD(reg, 9, 11) 162 #define TAD_LIMIT(reg) ((GET_BITFIELD(reg, 12, 31) << 26) | 0x3ffffff) 163 #define TAD_SOCK(reg) GET_BITFIELD(reg, 10, 11) 164 #define TAD_CH(reg) GET_BITFIELD(reg, 8, 9) 165 #define TAD_TGT3(reg) GET_BITFIELD(reg, 6, 7) 166 #define TAD_TGT2(reg) GET_BITFIELD(reg, 4, 5) 167 #define TAD_TGT1(reg) GET_BITFIELD(reg, 2, 3) 168 #define TAD_TGT0(reg) GET_BITFIELD(reg, 0, 1) 174 #define IS_ECC_ENABLED(mcmtr) GET_BITFIELD(mcmtr, 2, 2) 175 #define IS_LOCKSTEP_ENABLED(mcmtr) GET_BITFIELD(mcmtr, 1, 1) 176 #define IS_CLOSE_PG(mcmtr) GET_BITFIELD(mcmtr, 0, 0) 181 #define IS_MIRROR_ENABLED(reg) GET_BITFIELD(reg, 0, 0) 189 #define RANK_DISABLE(mtr) GET_BITFIELD(mtr, 16, 19) 190 #define IS_DIMM_PRESENT(mtr) GET_BITFIELD(mtr, 14, 14) 191 #define RANK_CNT_BITS(mtr) GET_BITFIELD(mtr, 12, 13) 192 #define RANK_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 2, 4) 193 #define COL_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 0, 1) 200 #define CHN_IDX_OFFSET(reg) GET_BITFIELD(reg, 28, 29) 201 #define TAD_OFFSET(reg) (GET_BITFIELD(reg, 6, 25) << 26) 208 #define IS_RIR_VALID(reg) GET_BITFIELD(reg, 31, 31) 209 #define RIR_WAY(reg) GET_BITFIELD(reg, 28, 29) 222 GET_BITFIELD(reg, 20, 23) : GET_BITFIELD(reg, 16, 19)) 225 GET_BITFIELD(reg, 2, 15) : GET_BITFIELD(reg, 2, 14)) 237 #define RANK_ODD_OV(reg) GET_BITFIELD(reg, 31, 31) 238 #define RANK_ODD_ERR_CNT(reg) GET_BITFIELD(reg, 16, 30) 239 #define RANK_EVEN_OV(reg) GET_BITFIELD(reg, 15, 15) 240 #define RANK_EVEN_ERR_CNT(reg) GET_BITFIELD(reg, 0, 14) 246 #define RANK_ODD_ERR_THRSLD(reg) GET_BITFIELD(reg, 16, 30) 247 #define RANK_EVEN_ERR_THRSLD(reg) GET_BITFIELD(reg, 0, 14) 682 return ((u64)GET_BITFIELD(reg, 1, 10) << 29) | 0x1fffffff; rir_limit() 693 if (GET_BITFIELD(reg, 11, 11)) get_memory_type() 716 if (GET_BITFIELD(reg, 16, 16)) haswell_get_memory_type() 720 if (GET_BITFIELD(reg, 14, 14)) { haswell_get_memory_type() 740 return GET_BITFIELD(reg, 0, 2); get_node_id() 748 return GET_BITFIELD(reg, 0, 3); haswell_get_node_id() 756 return (GET_BITFIELD(reg, 26, 31) << 26) | 0x3ffffff; haswell_get_tolm() 765 rc = GET_BITFIELD(reg, 26, 31); haswell_get_tohm() 774 return (((u64)GET_BITFIELD(reg, 1, 11) + 1) << 29) - 1; haswell_rir_limit() 1245 bits = GET_BITFIELD(addr, 7, 8) << 1; get_memory_error_data() 1246 bits |= GET_BITFIELD(addr, 9, 9); get_memory_error_data() 1248 bits = GET_BITFIELD(addr, 7, 9); get_memory_error_data() 1252 idx = GET_BITFIELD(addr, 16, 18); get_memory_error_data() 1265 shiftup = GET_BITFIELD(reg, 22, 22); get_memory_error_data() 1976 bool ripv = GET_BITFIELD(m->mcgstatus, 0, 0); sbridge_mce_output_error() 1977 bool overflow = GET_BITFIELD(m->status, 62, 62); sbridge_mce_output_error() 1978 bool uncorrected_error = GET_BITFIELD(m->status, 61, 61); sbridge_mce_output_error() 1980 u32 core_err_cnt = GET_BITFIELD(m->status, 38, 52); sbridge_mce_output_error() 1981 u32 mscod = GET_BITFIELD(m->status, 16, 31); sbridge_mce_output_error() 1982 u32 errcode = GET_BITFIELD(m->status, 0, 15); sbridge_mce_output_error() 1983 u32 channel = GET_BITFIELD(m->status, 0, 3); sbridge_mce_output_error() 1984 u32 optypenum = GET_BITFIELD(m->status, 4, 6); sbridge_mce_output_error() 1993 recoverable = GET_BITFIELD(m->status, 56, 56); sbridge_mce_output_error() 2045 if (!GET_BITFIELD(m->status, 58, 58)) sbridge_mce_output_error()
|