MC timing: accepted ranges and optima

k1_mc_timing still boots the programmed fp2 words (24 / 10 / 12 / 24 on the latency knobs). Those are not JEDEC names. This page is the silicon map: accepted windows and isolated optima. A shared-SKU candidate is 16 / 3 / 4 / 17; it is not in the production table.

Evidence: logsRefs/030–032 (16 GiB Micron), logsRefs/033– 034 (8 GiB Samsung). 2400 MT/s fp2, x8 overlay live, cache-off pointer chase (2¹⁷ loads). Baseline ~**291 ns**. 16 GiB combined optima used +0x3ac[15:8]=16; 8 GiB faults at 16 (033) and bottoms at 17 (034). Eye width and DRAM bandwidth were not re-measured after these RMWs.

What the vehicle did

After ddr_init, walk live MMIO (not the C table), one byte at a time, decrement by 1..8 or until 0. Print the try before the write. Restore the word after every trial. Refresh +0x394 is not touched. +0x300 last.

Limits of the ranges below: decrement only (upper bound untested); −8 cap (a “open below” window may go lower); isolated (other bytes held at programmed/live). Jitter on this meter is ~0.2 ns; only drops ≥1.5 ns are called a latency optimum.

UART: timing OK … lat A.BB ns delta D with D in hundredths of a nanosecond (−762 = −7.62 ns).

Latency optima (isolated)

Programmed/live vs best OK value on this chase. k1_mc_timing still ships the programmed column.

byte (live)

programmed

accepted

floor

optimum (ns)

Δ vs 290.99

+0x3ac[15:8]

24

16..24, open below

not hit at 16

16 → 283.37 ns

−7.62

+0x3b0[7:0]

24

16..24, open below

not hit at 16

16 → 286.65 ns

−4.34

+0x3a0[15:8]

10

3..10

2 → 4 errors

3 → 287.65 ns

−3.34

+0x3fc[23:16]

12

4..12, open below

not hit at 4

4 → 287.69 ns

−3.30

all four together (032, 16 GiB)

(programmed)

pattern OK

—

16,16,3,4 → 275.67 ns

−15.43

+0x3ac[15:8] (034, 8 GiB)

24

17..24 (16 → load fault, 033)

16

17 → 285.94 ns

−5.16

+0x3b0[7:0] (034, 8 GiB)

24

16..24, open below

not hit at 16

16 → 286.70 ns

−4.40

+0x3a0[15:8] (034, 8 GiB)

10

3..10

2 → 1514 errors

3 → 287.79 ns

−3.31

+0x3fc[23:16] (034, 8 GiB)

12

4..12, open below

not hit at 4

4 → 287.78 ns

−3.32

8 GiB combo (034)

(programmed)

pattern OK

—

16, 3, 4, 17 → 278.06 ns

−13.04

8 GiB 2666 stock (035)

24/10/12/24

—

—

276.73 ns

(rate, not knobs)

+0x3b0[7:0] (2666, 8 GiB)

24

17..24

16 → load fault (035, 037)

17 → 273.82 ns

−2.91

+0x3ac[15:8] (2666, 8 GiB)

24

17..24

16 → 4762 errors (037)

17 → 271.69 ns (036)

−5.01

8 GiB 2666 combo (036)

(programmed)

pattern OK (18/4/4/18)

—

264.63 ns

−12.01

16 GiB 2666 stock (038)

24/10/12/24

—

—

276.73 ns

(rate, not knobs)

+0x3b0[7:0] (2666, 16 GiB)

24

16..24

not hit at 16

16 → 272.52 ns

−4.21

+0x3ac[15:8] (2666, 16 GiB)

24

16..24

not hit at 16

16 → 269.89 ns

−6.84

16 GiB 2666 combo (038)

(programmed)

pattern OK (16/3/4/16)

—

262.43 ns

−14.30

That 262 ns figure is the SPL cache-off chase on four bytes, not a floor for the SoC, and not Linux. Booting Bianbu 6.6.36 with the same words (logsRefs/039) Oopsed on paging faults.

Programmed 2666 and 2400 on the same SKU (logsRefs/040, 041, 047–055) reached login: on both Linux 6.6.36 and 6.6.63 (with k1-x_MUSE-Pi-Pro.dtb). At 2666 MT/s, membench 1 proc measures write 6.34–6.38 GB/s, read 1.61–1.63 GB/s, copy 3.27–3.32 GB/s, chase 198.95–200.23 ns (at 2400 MT/s: write 6.27–6.38 GB/s, read 1.63 GB/s, copy 2.83–3.04 GB/s, chase 212.83–213.49 ns, matching the vendor stack in logsRefs/051). Under the mainline U-Boot booti test vehicle, 30 s soaks up to 1 GiB total (1×512, 2×512, 4×128, 4×256 MiB) pass with 0 errors, while >1.3 GiB freezes at 1344..1408 MiB even with mem=12G (052), vendor QoS/ACGR (053) and vendor OpenSBI (054). Running the same GPL k1_ddr_fw.bin inside vendor SPL into eMMC vendor OpenSBI + vendor U-Boot + GRUB + Linux 6.6.63 (logsRefs/055) passes 1×2048 MiB (9 loops), 4×512 MiB 30 s (48/56/48/41 loops) and 4×2048 MiB (8 GiB total, 30 s, 12/12/14/14 loops) with 0 errors, proving the 1408 MiB freeze is in the mainline U-Boot booti environment rather than in the DDR firmware.

Must-keep (accepted = programmed only)

Tightening by 1 fails the 64 KiB pattern at 0x40000000, or hangs.

byte (live)

keep

first bad

result

+0x300[15:8] RL

12

11

3 pattern errors

+0x3fc[7:0]

94 (0x5e)

93

45 errors

+0x13e4[7:0] (x8 overlay)

2

1

16384 errors

+0x13e4[15:8]

8

7

16384 errors

+0x13e4[31:24]

21

20

58 errors

+0x3b4[31:24] (x8 overlay)

5..8 (live 8)

4

SoC hang (030); 031 skipped <5

WL +0x300[7:0] live 24: 16..24 OK, no ns change. This chase is not WL-limited; RL is already at the pattern floor.

Accepted windows with no latency (margin)

These bytes stayed at ~291 ns through the −8 (or to 0) walk. The programmed value is a point inside the window, not an optimum. “Open below” means the sweep stopped at −8.

byte

live

accepted (this SKU, isolated)

+0x38c[23:16]

67

59..67, open below

+0x390[7:0]

40

32..40, open below

+0x390[23:16]

53

45..53, open below

+0x390[31:24]

5

0..5

+0x398[7:0] / [23:16]

127

119..127, open below

+0x398[15:8] / [31:24]

1

0..1

+0x39c bytes 0..2

20

12..20, open below

+0x3a0[7:0]

10

2..10, open below

+0x3a0[23:16]

20

12..20, open below

+0x3a0[31:24]

7

0..7

+0x3a8[7:0]

19

11..19, open below

+0x3a8[15:8]

2

0..2

+0x3ac[7:0]

56

48..56, open below

+0x3ac[23:16]

84

76..84, open below

+0x3ac[31:24]

54

46..54, open below

+0x3b0[15:8]

10

2..10, open below

+0x3b0[23:16]

24

16..24, open below

+0x3b0[31:24]

28

20..28, open below

+0x34c[7:0]

74

66..74, open below

+0x34c[15:8]

32

24..32, open below

+0x34c[23:16]

7

0..7

+0x3a4[7:0]

3

0..3

+0x3b4[15:8]

16

8..16, open below

+0x3b8[15:8]

14

6..14, open below

+0x3bc all bytes

4,4,2,2

down to 0

+0x3c0[7:0] / +0x3c4[7:0]

4

0..4

+0x3c0[31:24]

16

8..16, open below

+0x13ec[7:0] / [15:8]

112 / 80 (live 0x00005070, not the C fp2 word 0x450)

104..112 / 72..80, open below

+0x300[7:0] WL

24

16..24, open below

+0x38c / +0x390 were the inferred tRAS/tRP/tRCD words: they sit in the margin table. That naming is not how this meter moves.

Not swept

+0x394 (refresh), IO rows +0x30c/310/314, +0x3d8, increment, fp0/fp1/fp3 banks, writing either SKU combo into the shared k1_mc_timing.

Build:

unset CS RATE EXP
TIMING=1 LAT=1 MODE=full tools/vehicle/build-vehicle.sh
ANDROID_SERIAL=usb:1-1 python3 tools/vehicle/fdl_run.py \
  build/vehicle/FSBL-gpl-full-lat-timing.bin \
  --tty /dev/ttyUSB1 --reset h --done K1DDRT-DONE --timeout 600 \
  --log logsRefs/031-fp2-timing-sweep-resume-16gib/serial.log