ftl: add P0 bench verification probes (#85) #96

Merged
wandering1 merged 3 commits from dig-volume-view-283370226187 into master 2026-11-07 22:21:02 +08:00
Collaborator

This is by an automated agent, not a human.

背景

#85 卷层整卷陈旧视图机理研究。本 PR 落实 P0 台架实证探针,用于定位"整卷一致陈旧"的根因。

改动

  1. 写提交回读探针(dhara_nand_prog 尾部):编程成功后立即回读同 PPN 做字节比对,ECC 错误与数据不一致落 DBG_ERROR + 计数(s_prog_verify_mismatch)。
  2. map 状态日志(ftl_flush_cache 尾部):每次 dhara_map_write 成功后打 root/head/tail/epoch/count,对照台架打回时刻确认 root 是否回退。

说明

  • 两个探针均标注"仅台架实证用,量产前移除"。
  • 回读探针恢复了 2026-09-20 曾加、2026-09-21 移除的 GD5F_PROG_VERIFY 思路,但以低频探针形式存在。
  • 需 Keil MDK-ARM v5 编译验证(0 错误 0 警告)后烧写台架,跑浸泡统计。
This is by an automated agent, not a human. ## 背景 #85 卷层整卷陈旧视图机理研究。本 PR 落实 P0 台架实证探针,用于定位"整卷一致陈旧"的根因。 ## 改动 1. **写提交回读探针**(`dhara_nand_prog` 尾部):编程成功后立即回读同 PPN 做字节比对,ECC 错误与数据不一致落 `DBG_ERROR` + 计数(`s_prog_verify_mismatch`)。 2. **map 状态日志**(`ftl_flush_cache` 尾部):每次 `dhara_map_write` 成功后打 `root/head/tail/epoch/count`,对照台架打回时刻确认 root 是否回退。 ## 说明 - 两个探针均标注"仅台架实证用,量产前移除"。 - 回读探针恢复了 2026-09-20 曾加、2026-09-21 移除的 `GD5F_PROG_VERIFY` 思路,但以低频探针形式存在。 - 需 Keil MDK-ARM v5 编译验证(0 错误 0 警告)后烧写台架,跑浸泡统计。
super_agent_bot added 1 commit 2026-11-07 21:59:10 +08:00
ftl: add P0 bench verification probes (#85)
CI / 主机侧单测 (MSVC) (push) Has been cancelled
CI / 静态门禁 (pre-commit) (pull_request) Has been cancelled
CI / 主机侧单测 (MSVC) (pull_request) Has been cancelled
CI / 静态门禁 (pre-commit) (push) Has been cancelled
aa831968ea
Add two bench empirical verification probes for the whole-volume stale
view investigation:

1. Write-commit readback probe in dhara_nand_prog(): after a successful
   program, immediately read back the same physical page and compare
   byte-by-byte. Log ECC errors and data mismatches with a counter.

2. Map state logging in ftl_flush_cache(): after each successful
   dhara_map_write, log the journal root/head/tail/epoch/count to
   correlate with bench stale-view events.

Both probes are marked as bench-only and should be removed before
production release.
wandering1 added 1 commit 2026-11-07 22:06:50 +08:00
Merge branch 'master' into dig-volume-view-283370226187
CI / 静态门禁 (pre-commit) (push) Failing after 46s
CI / 主机侧单测 (MSVC) (push) Failing after 45s
CI / 静态门禁 (pre-commit) (pull_request) Failing after 46s
CI / 主机侧单测 (MSVC) (pull_request) Failing after 44s
2aa4561af6
wandering1 added 1 commit 2026-11-07 22:20:47 +08:00
Merge branch 'master' into dig-volume-view-283370226187
CI / 静态门禁 (pre-commit) (pull_request) Failing after 29s
CI / 主机侧单测 (MSVC) (pull_request) Failing after 44s
ebb64f6df2
wandering1 merged commit fe84a80912 into master 2026-11-07 22:21:02 +08:00
wandering1 deleted branch dig-volume-view-283370226187 2026-11-07 22:21:03 +08:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wandering1/STM32F4-Base#96