Skip to content

Conversation

HatsyRei
Copy link
Member

@HatsyRei HatsyRei commented Apr 22, 2025

WI: AB#3076957

Bluefin utilizes the Micron MT29F2G08ABBEAH4 NAND flash via the onboard PL353 NAND controller. In 4.1, on-die ECC operations along with raw NAND read/write hooks were implemented in the pl353_nand driver. Following 10d4e75, Micron NAND specific logic has been moved into nand_micron.c.

This PR rectifies previous on-die ECC and NAND subpage read/write implementations by implementing NAND on-die ECC subpage read/write support in nand_micron.c instead of pl35x-nand-controller.c.

Testing: Deployed changes onto cDAQ-9189. Previously observed bitflips no longer reproducible after on-die ECC is enabled correctly.

@HatsyRei HatsyRei force-pushed the nilrt/master/6.6 branch 3 times, most recently from cfd373e to b13fd68 Compare April 22, 2025 06:51
harisokanovic and others added 2 commits April 22, 2025 14:58
Add `enable_subpage_read` and `enable_subpage_write` load-time options
to toggle subpage read/write operations on pl353 chips. Both options are
enabled by default, and may be toggled in the boot loader.

Signed-off-by: Haris Okanovic <[email protected]>
Acked-by: Gratian Crisan <[email protected]>
Acked-by: Jeff Westfahl <[email protected]>

Natinst-CAR-ID: 599280
Natinst-ReviewBoard-ID: 151758
(cherry picked from commit 311a5711cfdbfa20e3f4ec2dbd429f96b9f76c2f)
(cherry picked from commit f261b4b)
Signed-off-by: HatsyRei <[email protected]>
Existing devices which utilize Micron NAND may contain partitions
formatted with subpages. Support this use case by implementing hooks
for subpage read and write in Micron NAND driver.

Signed-off-by: HatsyRei <[email protected]>
@gratian gratian requested a review from a team April 22, 2025 14:35
@gratian gratian merged commit bc5d815 into ni:nilrt/master/6.6 Apr 22, 2025
1 check passed
@gratian
Copy link

gratian commented Apr 22, 2025

@HatsyRei Can you create a PR with these changes against our 'kernel-next' branch too: nilrt/master/6.12?

Normally I would just cherry pick them but this is a bit non-trivial due to the reverts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants