(Image courtesy of Thinkstock).
More than a hundred errors related to how programs store and retrieve information from memory have been identified in a hardware design compliant with the RISC-V architecture. The flaw is already under repair and doesn’t appear in all RISC-V hardware, but they turn the spotlight back on the uphill battle for open-source chips.
Margaret Martonosi, a professor of computer science at Princeton University, and her colleagues published a paper last week that identified gaps in RISC-V’s memory ordering rules, which define how a processor’s operations take turns to access shared memory, ensuring that operations don’t cut the line.
The paper, released at the ACM International Conference on Architectural Support for Programming Languages and Operating Systems, warned that the flaws could cause errors in software running on the RISC-V instruction set architecture, which lays out the most basic functions of the chip like memory and logic. But the researchers noted that the errors only affected a high-performance version of RISC-V.
“Incorrect memory access orderings can result in software performing calculations using the wrong values,” Martonosi said in a statement. “These in turn can lead to hard-to-debug software errors that either causes the software to crash or to be vulnerable to security exploits.”
Krste Asanović, the chairman of the RISC-V Foundation, an industry group that supervises the open-source design, said that the memory flaws would be fixed this year in the latest specification. Daniel Lustig, a research scientist at Nvidia and one of the paper’s authors, is overseeing the repairs.
The memory errors are not likely to dampen enthusiasm for RISC-V more than the industry’s unwillingness to learn new architectures or dive into open-source. But RISC-V, which can be freely used and modified, has clearly intrigued companies looking into custom chips. The RISC-V Foundation includes members like Google, Microsoft, and Oracle, as well as IBM, which drafted the Power architecture for server chips.
Arguably, the bugs pale in comparison to RISC-V’s other obstacles. To break into the mainstream, it must entice developers trained on rival technology from Intel and ARM. To make matters worse, few companies appear to be turned off by ARM’s licensing rates. One particularly tricky task may be conveying RISC-V’s benefits.
RISC-V’s hook, supporters say, is that it reduces the massive amounts of money required for developing a custom chip. It allows companies to create chips for a fraction of the cost and with better power consumption and performance than closed architectures. It could also make it easier to integrate custom peripherals.