11 ms·
Arm Announces Cortex-R82: First 64-Bit Real Time Processor
- ChuckMcM 6y agoI'm pretty excited by this announcement. Not for storage but for software defined radios. If Xilinx upgrades their RFSOC (which is an Zynq Ultrascale variant with built in ADCs and DACs) to this core from the current A53 core it will allow much more sophisticated base band processing in software that is currently done with FPGA gates in the fabric. And while reconfigurable FPGAs are nice, software can change modes much more quickly than reconfiguring an FPGA can.
- dragontamer 6y agoQuestion: are GPUs a consideration in the SDR world? I'm no expert on SDR, but it seems to me that SDRs are the high bandwidth and parallel workloads where GPUs excel in. (GPUs can perform fourier transforms very efficiently) The only possible qualm would be the latency of a GPU. But I don't imagine that SDR workloads are very latency sensitive? Or am I mistaken there? GPU kernels are just software, but the parallel nature of GPUs means that it's better if most of the GPU is sharing the same code (very small L1 code cache per thread). So it's far more flexible than a FPGA but somewhat less flexible than a CPU (where different cores and threads can be executing very different code with large and unique L1 caches)
- ChuckMcM 6y agoYes! There is a very active community of using Cuda to do signal processing[1]. Latency is an interesting thing, its always part of the SDR pipeline since you have filter delays and processing delays. Most digital streams are uni-directional so you get the bits out, just shifted by 'x' nS. Since the 'x' is deterministic you can plan for it. [1] https://github.com/rapidsai/cusignal https://github.com/rapidsai/cusignal
- CamperBob2 6y agoThat's pretty cool. I don't know anyone who does realtime signal processing work in Python, though, least of all myself. Are there C bindings for all of that stuff?
- ksaj 6y agoI'm not sure if this is precisely what you are looking for, but it's been on my radar for a while for a potential upcoming project. It has limitations (64-bit Windows only, for one) which is why I haven't acted on it yet. But it is part of my pre-project research just the same. https://github.com/taroz/GNSS-SDRLIB https://github.com/taroz/GNSS-SDRLIB
- ChuckMcM 6y agoNearly all of the "heavy lifting" as it were are C or C++ libraries. Python is just the 'plumbing' level. It is not dissimilar to using MATLAB where the drivers are all optimized code but the connection between them is MATLAB. This design pattern is a common of nearly all SDR frameworks (Gnuradio, Redhawk, Pothos, Etc.) The "interconnect" between processing elements is typically shared memory, and that is why it lends itself to GPU work as well. That said, since my head is most comfortable thinking in C, I tend to write stuff in C rather than Python :-).
- mhh__ 6y agoI've seen it done on the PC side, but (at least on my budget) implementing a GPU, and an FPGA, and the actual SDR I haven't seen. It's definitely a good idea but whereas I could definitely do a decent spec arm board with enough time and prototypes to get it right, I don't even know where to start when it comes to even getting a GPU to boot.
- 01100011 6y agoNVIDIA and Ericsson are already working on leveraging GPUs for 5G: https://www.ericsson.com/en/blog/2020/4/hardware-acceleration-5g-vran https://www.ericsson.com/en/blog/2020/4/hardware-acceleratio... I don't know if this involves baseband processing or just protocols and tighter coupling of applications to the network to reduce overall latency. This effort is certainly driving a reduction in jitter which is currently an issue with many realtime GPU applications.
- bfrog 6y agoThey probably won't though, because the R core I don't believe has an MMU for Linux
- idiot900 6y agoFrom the article: "Another big change to the microarchitecture is the inclusion of an MMU"
- bfrog 6y agoThis is pretty massive! If fpga vendors provide this, what a great addition.
- ChuckMcM 6y agoHence my enthusiasm :-)
- sitkack 6y agoWhat level of interposition can one do with these hard cpu cores? Are the cache eviction policies pluggable? Is "user code" in the path between the cpu and main memory?
- ChuckMcM 6y agoOn the Ultrascale Zynq's you can build RAM that is attached to the fabric and available to the processor across the AMBA bus. It isn't something I personally have played with a whole bunch so I can't give you a better answer then to look at the Zynq data sheets. I do know you can make user hardware "appear" as memory to the main CPU.
- sitkack 6y agoNeat. I am stoked to play with the new PolarFire RISC-V Icicle board. https://www.microsemi.com/existing-parts/parts/152514 https://www.microsemi.com/existing-parts/parts/152514 https://www.crowdsupply.com/microchip/polarfire-soc-icicle-kit https://www.crowdsupply.com/microchip/polarfire-soc-icicle-k...
- noipv4 6y agoI would be keen to see if GNSS-SDR can run on a multicore version of this CPU. We are developing fully software GPS / Galileo receivers using the Analog devices AD9364, and are able to run it on a quad core Kaby lake laptop.
- rurban 6y agoWhy do you need more than 2GB in real-time? In real-time the less the better. 64bit puts a huge burden on everything, the MMU also. Now people will start using operating systems which are not built for RT, like Linux, and wonder why the cycles start failing and the system constantly reboots. Driver availiability of course which drives down HW costs, but best use an extremely limited IO and only one fast IO to meet your cycle goals. I see that it's better than a custom FPGA, but a normal 32bit rt cpu with half the memory pressure and pointer size looks much better to me.
- ChuckMcM 6y agoI take it you haven't processed SAR data :-). In the Zynq Ultrascale series you can have DDR hanging off the fabric that is accessible through the AMBA bus to the processor. Having multiple cores doing overlapping convolutions on spectral data in RAM can run fast enough to give real time tracking latencies.
- bfrog 6y agoThis could be an amazing chip, I imagine its a replacement for the R5?
- doctoboggan 6y agoThe article talks about it like it's a replacement for the R8.
- klysm 6y agoIt's also called the R82 so I think that makes sense.
- tyingq 6y ago"Another big change to the microarchitecture is the inclusion of an MMU, which allows the Cortex-82 to actually serve as a general-purpose CPU for a rich operating system such as Linux." That's interesting, but they seem to be removing most of the differences between the A and R series.
- recklesstodd 6y agoAnother usage for the MMU would be in a virtualization context. The Hypervisor can configure static address translation tables for each RTOS VM.
- sitkack 6y agoThe MPU (Memory Protection Unit) in the ARM architecture is like an MVP MMU in that it doesn't have the flexibility of an MMU as the MPU has protection domains (ranges of memory and access semantics bits) and doesn't do address translation like an MMU. It is analogous to mprotect() I haven't used it, but depending on latency and complexity of updating the MPU config, one could dynamically program it to have an arbitrary levels of protection, think hardware range checks at language level array access. [1] https://static.docs.arm.com/100699/0100/armv8m_architecture_memory_protection_unit_100699_0100_00_en.pdf https://static.docs.arm.com/100699/0100/armv8m_architecture_... https://man7.org/linux/man-pages/man2/mprotect.2.html https://man7.org/linux/man-pages/man2/mprotect.2.html
- duskwuff 6y agoNot really. The performance-oriented A series can include -- and will continue to include -- features which improve performance at the expensive of inconsistency, such as branch prediction and speculative execution. The R series values consistent behavior over performance, so it won't have those features.
- the_duke 6y agoR82 is in-order, but does provide branch prediction. [1] [1] https://developer.arm.com/ip-products/processors/cortex-r/cortex-r82 https://developer.arm.com/ip-products/processors/cortex-r/co...
- brundolf 6y agoFor those like me who didn't know what a "Real Time Processor" was: https://en.m.wikipedia.org/wiki/Real-time_computing https://en.m.wikipedia.org/wiki/Real-time_computing (somebody correct me if this is wrong)
- supernova87a 6y agoI'm also interested -- What's the hardware difference required to support real time? Is it some dedicated parts of compute to support the queueing / prioritization of jobs? And some additional ability to have the "master" must-always-work part be able to interrupt or reset "optional" processes?
- akiselev 6y agoDeterministic latency. That usually means no cache, speculative execution, or anything else that can't guarantee it will complete in a reasonable time. Specifically, in many architectures interrupt handling code must be able to yield _very_ quickly in order to continue receiving interrupts (or use reentrant interrupts which are a whole other mess) and even a cache look up, which might fail and have to wait for DDR ram for hundreds or thousands of cycles, makes the system unable to guarantee that it will do what it needs to do in time, like respond to some safety shutoff switch. I think one of the things ARM did here is make a way for interrupt handling code to stay in cache permanently along with some other determinism guarantees.
- brundolf 6y agoIt sounds analogous to the question of deterministic memory usage (vs GC), but at a hardware level and for runtime instead of memory
- supernova87a 6y agoThanks! I guess in the designing of the accompanying software then, the people writing it probably spend equal (or more) time in writing what happens if the expected/desired behavior fails, than if it succeeds?
- fizixer 6y agoIf I remember correctly, having a capable RTOS is much more important, and they can be used in regular processors too [0]. I wonder what's so special about this processor that makes it better than dozens of other hardware platforms (both microprocessors and microcontrollers) on which embedded RTOSes are running and doing just fine. Also if you have a 64-bit processor, but no 64-bit RTOS, you don't have much. [0] https://en.wikipedia.org/wiki/Comparison_of_real-time_operating_systems https://en.wikipedia.org/wiki/Comparison_of_real-time_operat...
- rurban 6y agoYou dont really need more than 2GB RAM in RT, it's a huge burden. Not even more than a few megabyte. Also 64bit pointers are twice as slow as 32bit pointers. Just think of randomly jumping around in your terabyte ram. Filling the cache lines cost 50 cycles alone, and your budget is usually around 40-100. A 64bit rtos might be usable for image detection (self driving cars), but not much else. The cpu cannot be general purpose, gpu's can do that much better. I don't really see the market for such a thing.
- easde 6y agoIt's not uncommon to have RT workloads where the "hard" RT part can fit in a small amount of tightly coupled memory, but the same processor is also used for "soft" RT workloads that need a much larger amount of memory. 64-bit addressing makes developing this kind of system a lot easier.
- ksec 6y agoThe best part is actually Peter Greenhalgh, VP of Tech at ARM wrote in the comment section. >A real-time processor doesn't intrinsically process any differently from a normal applications processor. What differentiates it is that it bounds latencies and behaves deterministically. For example, rather than an interrupt latency on applications CPU taking anywhere from 50-1,000 cycles (or more) the interrupt latency can be bounded to under 40-cycles. >Tightly Coupled Memories allow certain routines and data to be stored within the CPU so there's never any chance that a cache eviction has taken place which forces a fetch from DDR (or flash). In a phone or laptop, you don't have routines that absolutely must be accessed in 5-cycles and can't wait 250-cycles for DDR. If you're controlling an HDD you can't have the read head crashing off the spinning disk! Or, in automotive, the spark plug firing at the wrong. >Latency and determinism can be very important! >Not a R8 derivative. I cant wait to see a SSD Controller with this tech.
- Klinky 6y agoWhat benefit do you believe this is going to bring SSDs? They are full of DRAM buffers and utilize multiple simultaneous NAND channels to mask latency inherent to the tech. It seems a realtime processor would bring little to the table. Edit: Well looking into it a bit, a lot of SSDs already use realtime ARM processors in their controllers. The main benefit here seems to be being able to address larger buffer sizes going forward and access to more cores.
- wtallis 6y agoNot having to work around the limitations of 32-bit addressing is a convenience, but the industry has produced 4+ TB SSDs with 4+ GB of DRAM for quite a while now without this core. The real demand for a core like this in SSD controllers comes from doing more computationally expensive work on the SSD controller than just providing a block storage device abstraction. Stuff like embedding a full key-value database on the SSD or providing more general-purpose compute capability is a hot topic for enterprise storage. There's already at least one company shipping an SSD controller for computational storage with a mix of realtime cores and Cortex-A53 cores. The Cortex-R82 means such a chip could be more homogeneous with just one type of ARM core.
- TheMagicHorsey 6y agoWhat would be the advantage of running an RTOS on Cortex-R82 vs any other ARM processor? Doesn't an RTOS give you the hard realtime capability through software? I feel I must be missing something critical in my understanding. I thought RTOS in software was sufficient to get realtime processing.
- tyingq 6y agoSee this comment: https://news.ycombinator.com/item?id=24401929 https://news.ycombinator.com/item?id=24401929
- tashbarg 6y agoYour software can only guarantee what the hardware provides/guarantees. If your cpu can take a variable amount of cycles to start processing an interrupt, the RTOS can only guarantee the upper bound. A real time cpu is all about being faster and more importantly more deterministic, therefore enabling the RTOS to guarantee faster reaction times. If an interrupt can usually be processed in 50 cycles but very rarely will take 500, the RTOS can’t schedule for the 50 cycles. If the real time cpu guarantees 200 cycles, the RTOS can actually schedule with that. Depending on the application, that can make a huge difference.
- cordite 6y agoIs this just a native way to prevent interrupts on specific cores?
- klysm 6y agoI believe it’s more determinism than just the interrupt timing.
- gumby 6y ago> “real-time” processors which are used in high-performance real-time applications. C’mon anandtech, you can do better than this: “real time” means deterministic, not necessarily faster, and in fact often means slower. As another poster pointed out, ARM’s VP of Tech posted a comment and posted what real-time means. I don’t know why people jump from that to some idea it would be faster.
- doctoboggan 6y ago"high-performance" could just as easily be interpreted as faster response time as compared to faster clock speed. So in that way they are "faster".
- gumby 6y agoBut real-time systems don’t guarantee faster. I was a real-time engineer for years.
- fulafel 6y agoIn general usage, to perform means to do a job well, to fulfill the requirements well, right? But in computing in colloquial usage it's near universally used as a synonym for high execution speed.
- wtallis 6y agoI think the point you're missing is that "low performance" realtime applications exist and can often get by with more commodity hardware and careful software, eg. running a RTOS on x86 hardware. But that's usually not a viable option when your latency requirements are measured in clock cycles or nanoseconds rather than microseconds. For that, you need more specialized hardware that can do realtime and high performance.
- Animats 6y agoSo this is basically a CPU with an upper bound on the horrible cases. That's useful for real time. A standard test for real time is to run a hard real time OS like QNX, and have a simple program which receives an interrupt from an input pin and restarts a high priority task that's waiting for the interrupt. The high priority task turns on an output pin. You hook the input and output pins to an oscilloscope. You want to see all the output spikes about the same distance from the input spikes. You don't want to see output outliers way out there, late. If you see that, it's not a hard real time system. You can do this with a standalone program to test the CPU by itself, but you really need to test it when the CPU is also doing other things. Sources of CPU-level trouble include 1) rarely used CPU instructions that run slow microcode, 2) cases where the pipeline needs a total flush and that's slow, 3) the board manufacturer doing something in system management mode and not telling you. Drivers locking out interrupts too long is the usual Linux problem. It's assumed that all real time code is locked in memory; you do not page real time processes.
- neltnerb 6y agoMaybe you can clear this up for me. To me, realtime means "responds faster than the fastest it needs to in order to control a feedback loop" which is super subjective since different system dynamics are so different. When I tried to use RTOS it appeared to be that better than 1ms resolution was not remotely possible. Just hardcoding the interrupts resulted in 1us resolution easily. I grant that the RTOS provides a scheduler, but when this chip says that it is intended for "realtime" does it mean that it's microsecond fast even when running RTOS, that it's capable of running fast with handwritten interrupts and code (which to me seems to be most things), or just that it has a spec for an upper bound on op timing? I guess the last is important for correctness proofs but the prior two are how I interpret it as a confused person reading marketing materials put out by conflicting sources.
- deleted 6y ago[deleted]
- matthewmacleod 6y agoI don't get the impression that in this case "realtime" means anything surprising – that is, it means "responds within a well-known and deterministic time." As you point out, that time is usually slower than a non-realtime system would offer. Specifically with the R-family ARM chips, there is support for things like tightly-coupled memory (https://developer.arm.com/documentation/ddi0338/g/level-one-memory-system/tightly-coupled-memory https://developer.arm.com/documentation/ddi0338/g/level-one-...) to provide latency guarantees for real-time code, deterministic interrupts, that kind of thing.
- Matthias247 6y agoRealtime capable hardware and software is all super intersting. It makes up for a very different challenge when building that something that has to fulfill a certain task in a certain amount of time instead of just providing a best effort solution. Therefore I'm always curious to learn about products and solutions in that field. However for this presentation I'm a bit puzzled by some of the marketing slides: - Optional NEON accelerates ML. - Advanced machine learning support Is that really a use-case for those processors? Can ML be hard-realtime anyway? I feel like a promotion that one could use those SIMD instructions for e.g. erasure-coding on storage use-cases or e.g. for signal processing on Telco/Audio/Video use-cases would be much closer to typical applications for such a CPU. Is it just me or sounds the "ML" on these slides more like "we need to join the hype" than an actual use-case? - Optional MMU enables Linux and cloud-native software development I agree - MMU is great, Linux support too. But what is cloud-native again? And is something that runs on a SSD controller in a datacenter now cloud native?
- nl 6y ago> Can ML be hard-realtime anyway? Sure, why not? The number of instructions needed to run inference on a given neural network is known so I don't see any real issues here. (Training is of course a different matter) > Is it just me or sounds the "ML" on these slides more like "we need to join the hype" than an actual use-case? You could build query-by-example indexes (for text, sound, images or videos) in the storage hardware with this kind of capability. That'd be pretty interesting. Imagine something like Isilon, but instead of allowing Hadoop analytics on the storage hardware it could do approximate nearest neighbour across images. (This is actually a pretty good idea...)
- wtallis 6y ago> You could build query-by-example indexes (for text, sound, images or videos) in the storage hardware with this kind of capability. That'd be pretty interesting. I've seen demos of this kind of thing from companies like NGD Systems, who use Cortex A53s in addition to realtime cores in their SSD controller. Part of the selling point for offloading this from the CPU is that code running on the SSD controller has much faster access to the dataset and can query it more efficiently, unconstrained by the drive's host interface. There are also more mundane use cases for ML inside a SSD as heuristics to predict data access patterns or media wearout trends, which can influence how the SSD chooses to store data and tackle error correction.
- parkerhoyes 6y agoThe title is a bit ambiguous - this is ARM's first 64-bit real time processor, but it's not the first one out there. All of SiFive's S and U series cores are 64-bit with hard real-time determinism. [0] [0] https://scs.sifive.com/core-designer/ https://scs.sifive.com/core-designer/
- anamax 6y agoThe wheel of reincarnation turns again. Back in mainframe days, "channel controllers", the subsystems that controlled storage devices, were very programmable. At some points in time, it made sense to off-load as much as possible from the CPU onto the channel controller. At other points in time, the reverse was true. For a couple of decades, we've had dumb storage devices. Now with some of the NVMe stuff, we're moving back towards smart "storage". Linux in an SSD is the same idea.
- als0 6y agoDisk controllers have been "smart" for the last 15 years. There's just a desire to run Linux instead of a barebones RTOS.
- StillBored 6y agoLot longer than 15 years. There were ISA SCSI controllers that had micro-controllers which could be programmed at some level. The symbios SCRIPTS come to mind which were common on the 53Cxx controllers. https://www.manualslib.com/manual/96635/Lsi-Symbios-Sym8953u.html?page=12 https://www.manualslib.com/manual/96635/Lsi-Symbios-Sym8953u... This has continued on raid/fibre/nvmeof/etc boards.
- chmod600 6y agoDoes real time mean that there is a minimum time an operation will take as well as a maximum? Asking because a minimum time could prevent some kinds of timing attacks.
- person_of_color 6y ago32 bit versions are used in stuff like your WiFi chip.
- Dork1234 6y agoHas anyone compared this to real-time capabilities of Intel hardware?
- TimSchumann 6y agoI wonder how you can get a dev kit for this.