arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.11849cs.AR
收藏

在RISC-V SoC上实现和优化一个开源的SD卡主机控制器

Implementing and Optimizing an Open-Source SD-card Host Controller for RISC-V SoCs

ETH Zurich(苏黎世联邦理工学院);lowRISC C.I.C.(低硅芯国际合作组织);University of Bologna(博洛尼亚大学)

Axel Vanoni, Philippe Sauter, Paul Scheffler, Anton Buchner, Micha Wehrli, Thomas Benz, Luca Benini

AI总结:

本文提出了一种集成在RISC-V SoC中的开源SD主机控制器,通过优化驱动程序和内存模型,实现了接近SD接口极限的存储性能。

摘要:

最近的公布表明,端到端的开源(OS)Linux能力RISC-V系统芯片(SoC)的可行性已得到证实。然而,实际应用和软件开发平台需要高效的非易失性存储,而常见的基于SPI的接口由于其吞吐量有限,无法充分满足这一需求。安全数字(SD)卡是嵌入式Linux系统的事实标准存储介质;因此,对于开源RISC-V平台来说,高效的SD主机控制器(SDHC)整合至关重要。我们提出了一个操作系统SD主机控制器接口(SDHCI)外设,该外设集成在端到端OS Cheshire RISC-V SoC平台中。控制器及其软件栈设计时充分考虑了CVA6的内存系统和Linux驱动行为;在评估过程中,我们发现由于RISC-V内存模型和CVA6的fence指令实现,导致了一个显著的性能瓶颈,即在内存映射寄存器访问时,当缓存管理操作(CMOs)不可用时,会刷新流水线和数据缓存。通过定制驱动程序的寄存器访问路径并避免不必要的fence,我们大幅减少了这一开销。我们的完全操作系统控制器实现了高达11.1 MB/s的吞吐量,接近SD接口的12.5 MB/s限制,并提供了比基于SPI的存储高达6.5倍的吞吐量。

英文摘要:

Recent announcements have shown the viability of end-to-end open-source (OS) Linux-capable RISC-V systems on chip (SoCs). However, practical application and software development platforms require efficient non-volatile storage, which is not adequately served by common SPI-based interfaces due to their limited throughput. Secure Digital (SD) cards are the de facto standard storage medium for embedded Linux systems; efficient SD host controller (SDHC) integration is thus essential for open-source RISC-V platforms. We present an OS SD host controller interface (SDHCI) peripheral integrated into the end-to-end OS Cheshire RISC-V SoC platform. The controller and its software stack are designed with full awareness of CVA6's memory system and Linux driver behavior; during evaluation, we identify a significant performance bottleneck caused by the RISC-V memory model and CVA6's implementation of the fence instruction, which flushes the pipeline and data cache on memory-mapped register accesses when cache management operations (CMOs) are unavailable. By customizing the driver's register access paths and avoiding unnecessary fences, we substantially reduced this overhead. Our fully OS controller achieves up to 11.1 MB/s throughput, approaching the 12.5 MB/s limit of the SD interface and providing up to 6.5 times the throughput of SPI-based storage.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑