summaryrefslogtreecommitdiffstats
path: root/src/import/generic/procedures/xml/attribute_info/generic_memory_eff_attributes.xml
blob: 3167e018a924b8ee2d97b21098af7316fe7be286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
<!-- IBM_PROLOG_BEGIN_TAG                                                   -->
<!-- This is an automatically generated prolog.                             -->
<!--                                                                        -->
<!-- $Source: src/import/generic/procedures/xml/attribute_info/generic_memory_eff_attributes.xml $ -->
<!--                                                                        -->
<!-- OpenPOWER HostBoot Project                                             -->
<!--                                                                        -->
<!-- Contributors Listed Below - COPYRIGHT 2018,2019                        -->
<!-- [+] International Business Machines Corp.                              -->
<!--                                                                        -->
<!--                                                                        -->
<!-- Licensed under the Apache License, Version 2.0 (the "License");        -->
<!-- you may not use this file except in compliance with the License.       -->
<!-- You may obtain a copy of the License at                                -->
<!--                                                                        -->
<!--     http://www.apache.org/licenses/LICENSE-2.0                         -->
<!--                                                                        -->
<!-- Unless required by applicable law or agreed to in writing, software    -->
<!-- distributed under the License is distributed on an "AS IS" BASIS,      -->
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or        -->
<!-- implied. See the License for the specific language governing           -->
<!-- permissions and limitations under the License.                         -->
<!--                                                                        -->
<!-- IBM_PROLOG_END_TAG                                                     -->

<!-- -->
<!-- @file generic_memory_eff_attributes.xml -->
<!-- @brief Calculated effective attribute definitions that are derived from SPD -->
<!-- -->
<!-- *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com> -->
<!-- *HWP HWP Backup: Stephen Glancy <sglancy@us.ibm.com> -->
<!-- *HWP Team: Memory -->
<!-- *HWP Level: 2 -->
<!-- *HWP Consumed by: HB:FSP -->
<!-- -->

<attributes>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_GEN</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      DRAM Device Type.
      Decodes SPD byte 2.
      Generation of memory: DDR3, DDR4.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>EMPTY = 0, DDR3 = 1, DDR4 = 2</enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_gen</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DIMM_TYPE</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Base Module Type.
      Decodes SPD Byte 3 (bits 3~0).
      Type of DIMM: RDIMM, UDIMM, LRDIMM as specified by the JEDEC standard.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum> EMPTY = 0, RDIMM = 1, UDIMM = 2, LRDIMM = 3, DDIMM = 4</enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dimm_type</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_HYBRID_MEMORY_TYPE</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Hybrid Media.
      Decodes SPD Byte 3 (bits 6~4)
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum> NONE = 0, NVDIMM = 1</enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>hybrid_memory_type</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_HYBRID</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Hybrid.
      Decodes SPD Byte 3 (bit 7)
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum> NOT_HYBRID = 0, IS_HYBRID= 1</enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>hybrid</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_HOST_TO_DDR_SPEED_RATIO</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      OMI to DDR frequency ratio
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum> 1_TO_1 = 1, 2_TO_1 = 2, 4_TO_1 = 4, 8_TO_1 = 8, 16_TO_1 = 16, 32_TO_1 = 32, 64_TO_1 = 64, 128_TO_1 = 128</enum>
    <default>8</default>
    <writeable/>
    <array>2</array>
    <mssUnit>ratio</mssUnit>
    <mssAccessorName>host_to_ddr_speed_ratio</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_DENSITY</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      DRAM Density.
      Decodes SPD Byte 4 (bits 3~0).
      Total SDRAM capacity per die.
      For multi-die stacks (DDP, QDP, or 3DS), this represents
      the capacity of each DRAM die in the stack.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum> 4G = 4, 8G = 8, 16G = 16 </enum>
    <writeable/>
    <array>2</array>
    <mssUnit>Gb</mssUnit>
    <mssAccessorName>dram_density</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_BANK_BITS</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Number of DRAM bank address bits.
      Actual number of banks is 2^N, where
      N is the number of bank address bits.
      Decodes SPD Byte 4 (bits 5~4).
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_bank_bits</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_BANK_GROUP_BITS</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Bank Groups Bits.
      Decoded SPD Byte 4 (bits 7~6).
      Actual number of bank groups is 2^N,
      where N is the number of bank address bits.
      This value represents the number of bank groups
      into which the memory array is divided.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_bank_group_bits</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_COLUMN_BITS</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Column Address Bits.
      Decoded SPD Byte 5 (bits 2~0).
      Actual number of DRAM columns is 2^N,
      where N is the number of column address bits
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum> NUM10 = 10</enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_column_bits</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_ROW_BITS</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Row Address Bits.
      Decodes Byte 5 (bits 5~3).
      Number of DRAM column address bits.
      Actual number of DRAM rows is 2^N,
      where N is the number of row address bits
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum> NUM14 = 14, NUM15 = 15, NUM16 = 16, NUM17 = 17, NUM18 = 18</enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_row_bits</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_PRIM_DIE_COUNT</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Primary SDRAM Die Count.
      Decodes Byte 6 (bits 6~4).
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>
      D1 = 1,
      D2 = 2,
      D3 = 3,
      D4 = 4,
      D5 = 5,
      D6 = 6,
      D7 = 7,
      D8 = 8
    </enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>prim_die_count</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_PRIM_STACK_TYPE</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Primary SDRAM Package Type (bits 1~0).
      Decodes Byte 6.
      This byte defines the primary set of SDRAMs.
      Monolithic = SPD, Multi-load stack = DDP/QDP, Single-load stack = 3DS
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum> SDP = 0, DDP_QDP = 1, 3DS = 2</enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>prim_stack_type</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_PRIM_BUS_WIDTH</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Primary bus with (bits 1~0).
      Decodes Byte 13.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>
      8_BITS = 8, 16_BITS = 16, 32_BITS = 32, 64_BITS = 64
    </enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>prim_bus_width</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_PPR</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Post Package Repair. Used in various locations and is evaluated in mss_eff_cnfg.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>NOT_SUPPORTED = 0, SUPPORTED = 1</enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_ppr</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_SOFT_PPR</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Soft Post Package Repair. Used in various locations and is evaluated in mss_eff_cnfg.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>NOT_SUPPORTED = 0, SUPPORTED = 1</enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_soft_ppr</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRCD</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum RAS to CAS Delay Time
      in nck (number of clock cyles).
      Decodes SPD byte 25 (7~0) and byte 112 (7~0).
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_trcd</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRP</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      SDRAM Row Precharge Delay Time
      in nck (number of clock cycles).
      Decodes SPD byte 26 (bits 7~0) and byte 121 (bits 7~0).
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_trp</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRAS</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Active to Precharge Delay Time
      in nck (number of clock cycles).
      Decodes SPD byte 27 (bits 3~0) and byte 28 (7~0).
      Each memory channel will have a value.
      creator: mss_eff_cnfg_timing
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_tras</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRC</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Active to Active/Refresh Delay
      in nck (number of clock cyles).
      Decodes SPD byte 27 (bits 7~4), byte 29 (bits 7~0), and byte 120.
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_trc</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRFC</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      DDR4 Spec defined as Refresh Cycle Time (tRFC).
      SPD Spec refers it to the Minimum Refresh Recovery Delay Time.
      In nck (number of clock cyles).
      Decodes SPD byte 31 (bits 15~8) and byte 30 (bits 7~0) for tRFC1.
      Decodes SPD byte 33 (bits 15~8) and byte 32 (bits 7~0) for tRFC2.
      Decodes SPD byte 35 (bits 15~8) and byte 34 (bits 7~0) for tRFC4.
      Selected tRFC value depends on MRW attribute that selects refresh mode.
      For 3DS, The tRFC time to the same logical rank is defined as tRFC_slr and is
      specificed as the value as for a monolithic DDR4 SDRAM of equivalent density.
    </description>
    <initToZero></initToZero>
    <valueType>uint16</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_trfc</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TFAW</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Four Activate Window Delay Time
      in nck (number of clock cycles).
      Decodes SPD byte 36 (bits 3~0) and byte 37 (bits 7~0).
      For 3DS, tFAW time to the same logical rank is defined as
      tFAW_slr_x4 or tFAW_slr_x8 (for x4 and x8 devices only) and
      specificed as the value as for a monolithic DDR4 SDRAM
      equivalent density.
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_tfaw</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRRD_S</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Activate to Activate Delay Time, different bank group
      in nck (number of clock cycles).
      Decodes SPD byte 38 (bits 7~0).
      For 3DS, The tRRD_S time to a different bank group in the
      same logical rank is defined as tRRD_slr and is
      specificed as the value as for a monolithic
      DDR4 SDRAM of equivalent density.
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_trrd_s</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRRD_L</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Activate to Activate Delay Time, same bank group
      in nck (number of clock cycles).
      Decodes SPD byte 39 (bits 7~0).
      For 3DS, The tRRD_L time to the same bank group in the
      same logical rank is defined as tRRD_L_slr and is
      specificed as the value as for a monolithic
      DDR4 SDRAM of equivalent density.
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_trrd_l</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRRD_DLR</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Activate to Activate Delay Time (different logical ranks)
      in nck (number of clock cycles).
      For 3DS, The tRRD_S time to a different logical rank is defined as tRRD_dlr.
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_trrd_dlr</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TCCD_L</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum CAS to CAS Delay Time, same bank group
      in nck (number of clock cycles).
      Decodes SPD byte 40 (bits 7~0) and byte 117 (bits 7~0).
      This is for DDR4 MRS6.
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>4NCK = 4, 5NCK = 5, 6NCK = 6, 7NCK = 7, 8NCK = 8</enum>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_tccd_l</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TWR</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Write Recovery Time.
      Decodes SPD byte 41 (bits 3~0) and byte 42 (bits 7~0).
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_twr</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TWTR_S</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Write to Read Time, different bank group
      in nck (number of clock cycles).
      Decodes SPD byte 43 (3~0) and byte 44 (bits 7~0).
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_twtr_s</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TWTR_L</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Write to Read Time, same bank group
      in nck (number of clock cycles).
      Decodes byte 43 (7~4) and byte 45 (bits 7~0).
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_twtr_l</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TMAW</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Maximum Activate Window
      in nck (number of clock cycles).
      Decodes SPD byte 7 (bits 5~4).
      Depends on tREFI multiplier.
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint16</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_tmaw</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_WIDTH</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      SDRAM Device Width
      Decodes SPD Byte 12 (bits 2~0).
      Options: X4 (4 bits), X8 (8 bits), X16 (16 bits), X32 (32 bits).
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>X4 = 4, X8 = 8, X16 = 16, X32 = 32</enum>
    <mssUnit>bits</mssUnit>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_width</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_LOGICAL_RANKS_PER_DIMM</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Total number of ranks in each DIMM.
      For monolithic and multi-load stack modules (SDP/DDP) this is the same as
      the number of package ranks per DIMM (SPD Byte 12 bits 5~3).

      For single load stack (3DS) modules this value represents the number
      of logical ranks per DIMM.
      Logical rank refers the individually addressable die in a 3DS stack
      and has no meaning for monolithic or multi-load stacked SDRAMs.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>
      1R = 1, 2R = 2, 4R = 4, 8R = 8, 16R = 16
    </enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>logical_ranks_per_dimm</mssAccessorName>
  </attribute>

    <attribute>
      <id>ATTR_MEM_3DS_HEIGHT</id>
      <targetType>TARGET_TYPE_MEM_PORT</targetType>
      <description>
        Setting for 3DS stack. Calculated from logical_ranks / master_ranks
      </description>
      <initToZero></initToZero>
      <valueType>uint16</valueType>
      <enum>PLANAR = 0, H2 = 2, H4 = 4, H8 = 8</enum>
      <array>2</array>
      <writeable/>
      <mssAccessorName>3ds_height</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_REGISTER_TYPE</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Register Type
      Decodes SPD Byte 131
    </description>
    <enum>RCD01 = 0x0, RCD02 = 0x1</enum>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <array>2</array>
    <mssAccessorName>register_type</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_MFG_ID</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      DRAM Manufacturer ID Code
      Decodes SPD Byte 350 and 351
    </description>
    <enum>MICRON = 0x802C, SAMSUNG = 0x80CE, HYNIX = 0x80AD </enum>
    <initToZero></initToZero>
    <valueType>uint16</valueType>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_mfg_id</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_MODULE_HEIGHT</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      DRAM Modlue Height
      Decodes SPD Byte 193
    </description>
    <enum>1U = 0, 2U = 1, 4U = 2 </enum>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <array>2</array>
    <mssAccessorName>dram_module_height</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_RCD_MFG_ID</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Register Manufacturer ID Code
      Decodes SPD Byte 133 and 134
    </description>
    <enum>INPHI = 0xB304, MONTAGE = 0x3286, IDT = 0xB380 </enum>
    <initToZero></initToZero>
    <valueType>uint16</valueType>
    <writeable/>
    <array>2</array>
    <mssAccessorName>rcd_mfg_id</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_REGISTER_REV</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Register Revision Number
      Decodes SPD Byte 135
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <array>2</array>
    <mssAccessorName>register_rev</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_PACKAGE_RANK_MAP</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM][DQ_NIBBLES]
      Package Rank Map
      Decodes SPD Byte 60 - 77 (Bits 7~6)
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <array>2 20</array>
    <mssAccessorName>package_rank_map</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_NIBBLE_MAP</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM][DQ_NIBBLES]
      Nibble Map
      Decodes SPD Byte 60 - 77 (Bits 5~0) for DDR4
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <array>2 20</array>
    <mssAccessorName>nibble_map</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DIMM_SIZE</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      DIMM Size, in GB Used in various locations
    </description>
    <initToZero></initToZero>
    <valueType>uint32</valueType>
    <enum>
      4GB = 4,
      8GB = 8,
      16GB = 16,
      32GB = 32,
      64GB = 64,
      128GB = 128,
      256GB = 256,
      512GB = 512
    </enum>
    <writeable/>
    <array>2</array>
    <mssUnits>GB</mssUnits>
    <mssAccessorName>dimm_size</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DIMM_SPARE</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Spare DRAM availability. Used in various locations and is computed in mss_eff_cnfg.
      Array indexes are [DIMM][RANK]
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>NO_SPARE = 0, LOW_NIBBLE = 1, HIGH_NIBBLE = 2, FULL_BYTE = 3</enum>
    <writeable/>
    <array> 2 4</array>
    <mssAccessorName>dimm_spare</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_CL</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      CAS Latency.
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits>nck</mssUnits>
    <mssAccessorName>dram_cl</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_MDS</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Controls if the given target has an MDS (managed DRAM solution)
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssAccessorName>dram_mds</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_NUM_MASTER_RANKS_PER_DIMM</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      ARRAY[DIMM]
      Specifies the number of master ranks per DIMM.
      Represents the number of physical ranks on a DIMM.
      From SPD spec JEDEC Standard No. 21-C: Page 4.1.2.L-4.
      Byte 12 (Bits 5~3) Number of package ranks per DIMM.
      Package ranks per DIMM refers to the collections of devices
      on the module sharing common chip select signals.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <enum>
      1R = 1, 2R = 2, 4R = 4, 8R = 8
    </enum>
    <writeable/>
    <array>2</array>
    <mssAccessorName>num_master_ranks_per_dimm</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DIMM_RANKS_CONFIGED</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Bit wise representation of master ranks in each DIMM that are used for reads and writes.
      Used by PRD.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <array> 2 </array>
    <mssAccessorName>dimm_ranks_configed</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TREFI</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Average Refresh Interval (tREFI)
      in nck (number of clock cycles).
      This depends on MRW attribute that selects fine refresh mode (x1, x2, x4).
      From DDR4 spec (79-4A).

      For 3DS, the tREFI time to the same logical rank is defined as
      tRFC_slr1, tRFC_slr2, or tRFC_slr4.
    </description>
    <initToZero></initToZero>
    <valueType>uint16</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_trefi</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRTP</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Internal Read to Precharge Delay.
      From the DDR4 spec (79-4A).
      Each memory channel will have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits>nck</mssUnits>
    <mssAccessorName>dram_trtp</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_DRAM_TRFC_DLR</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Minimum Refresh Recovery Delay Time (different logical ranks)
      in nck (number of clock cyles).
      Selected tRFC value (tRFC_dlr1, tRFC_dlr2, or tRFC_dlr4)
      depends on MRW attribute that selects fine refresh mode (x1, x2, x4).
      For 3DS, The tRFC time to different logical ranks are defined as tRFC_dlr
    </description>
    <initToZero></initToZero>
    <valueType>uint8</valueType>
    <writeable/>
    <mssUnits> nck </mssUnits>
    <mssAccessorName>dram_trfc_dlr</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_FREQ</id>
    <targetType>TARGET_TYPE_MEM_PORT</targetType>
    <description>
      Frequency of this memory channel in MT/s (Mega Transfers per second)
    </description>
    <initToZero></initToZero>
    <valueType>uint64</valueType>
    <writeable/>
    <mssUnits> MT/s </mssUnits>
    <mssAccessorName>freq</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_VOLT_VDDR</id>
    <targetType>TARGET_TYPE_OCMB_CHIP</targetType>
    <description>
      DRAM Voltage, each voltage rail would need to have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint32</valueType>
    <writeable/>
    <mssUnits> mV </mssUnits>
    <mssAccessorName>volt_vddr</mssAccessorName>
  </attribute>

  <attribute>
    <id>ATTR_MEM_EFF_VOLT_VPP</id>
    <targetType>TARGET_TYPE_OCMB_CHIP</targetType>
    <description>
      DRAM VPP Voltage, each voltage rail would need to have a value.
    </description>
    <initToZero></initToZero>
    <valueType>uint32</valueType>
    <writeable/>
    <mssUnits> mV </mssUnits>
    <mssAccessorName>volt_vpp</mssAccessorName>
  </attribute>

</attributes>
OpenPOWER on IntegriCloud