File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 165
165
#define IE31200_MAD_DIMM_0_OFFSET 0x5004
166
166
#define IE31200_MAD_DIMM_0_OFFSET_SKL 0x500C
167
167
#define IE31200_MAD_DIMM_SIZE GENMASK_ULL(7, 0)
168
+ #define IE31200_MAD_DIMM_SIZE_SKL GENMASK_ULL(5, 0)
168
169
#define IE31200_MAD_DIMM_A_RANK BIT(17)
169
170
#define IE31200_MAD_DIMM_A_RANK_SHIFT 17
170
171
#define IE31200_MAD_DIMM_A_RANK_SKL BIT(10)
@@ -378,7 +379,7 @@ static void __iomem *ie31200_map_mchbar(struct pci_dev *pdev)
378
379
static void __skl_populate_dimm_info (struct dimm_data * dd , u32 addr_decode ,
379
380
int chan )
380
381
{
381
- dd -> size = (addr_decode >> (chan << 4 )) & IE31200_MAD_DIMM_SIZE ;
382
+ dd -> size = (addr_decode >> (chan << 4 )) & IE31200_MAD_DIMM_SIZE_SKL ;
382
383
dd -> dual_rank = (addr_decode & (IE31200_MAD_DIMM_A_RANK_SKL << (chan << 4 ))) ? 1 : 0 ;
383
384
dd -> x16_width = ((addr_decode & (IE31200_MAD_DIMM_A_WIDTH_SKL << (chan << 4 ))) >>
384
385
(IE31200_MAD_DIMM_A_WIDTH_SKL_SHIFT + (chan << 4 )));
You can’t perform that action at this time.
0 commit comments