devices: add flash-nandfctrl2 driver#421
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request delivers a crucial new component: a GRLIB NAND Flash Controller 2 driver. This driver significantly expands the system's storage capabilities by enabling robust and compliant interaction with NAND flash devices. It handles low-level flash operations, bad block management, and adapts to various flash configurations through ONFI 4.0 parameter parsing, ensuring reliable data storage and retrieval for embedded systems. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
efc4cc0 to
2923ac3
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces a new GRLIB NANDFCTRL2 flash driver, including data and metadata interfaces, and integrates it into the build system and linker scripts. The changes enable support for NAND flash memory, providing functionalities for reading, writing, erasing, and managing bad blocks. The implementation includes ONFI 4.0 parameter page parsing and timing configuration. Several areas require attention regarding clarity, hardware register documentation, and adherence to configuration best practices for device-specific parameters. Additionally, a critical compilation error was identified in the header file for an undefined struct, and significant memory allocation changes in linker scripts require justification.
2923ac3 to
07024fb
Compare
07024fb to
ba9395d
Compare
ba9395d to
91ced6d
Compare
91ced6d to
3cf67d9
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive driver for the GRLIB NANDFCTRL2 flash controller, utilizing DMA Linked List Mode (LLM) and supporting ONFI 4.0 specifications. The implementation provides distinct interfaces for data, metadata (spare area), and raw access, along with integrated bad block management and ECC error verification. Review feedback identifies several areas for improvement: increasing the scratch buffer size to prevent overflows with larger spare areas, implementing timeouts in hardware polling loops to avoid system lockups, and refining the bad block marking logic to be less aggressive during read operations.
3cf67d9 to
39d930d
Compare
YT: CSAT-158
39d930d to
b76e78e
Compare
YT: CSAT-158
b76e78e to
b1fd7f1
Compare
YT: CSAT-158
Description
Motivation and Context
Types of changes
How Has This Been Tested?
riscv64-gr765-vcu118Checklist:
Special treatment