*** tpb <[email protected]> has joined #litex | 00:00 | |
*** cr1901_ is now known as cr1901 | 00:13 | |
*** Degi_ <[email protected]> has joined #litex | 00:18 | |
*** Degi <[email protected]> has quit IRC (Ping timeout: 256 seconds) | 00:19 | |
*** Degi_ is now known as Degi | 00:19 | |
jevinskie[m] | Is there any reason I shouldn’t be able to run a no-mmu build of Linux with pretty much any litex supported risc-v core if I disable all the extensions in the kernel? Linux on LiteX SERV anyone? ;P | 02:35 |
---|---|---|
cr1901 | Idk if it was w/ LiteX specifically, but gatecat did that once | 02:41 |
cr1901 | not on SERV, but noMMU linux running nextpnr on a softcore | 02:42 |
tnt | He did ? | 05:07 |
tnt | Also, even nommu might still require atomics support. | 05:08 |
*** indy <[email protected]> has quit IRC (Ping timeout: 248 seconds) | 06:18 | |
*** indy <[email protected]> has joined #litex | 06:23 | |
geertu | tnt: As long as it's not SMP, working around the lack of atomics shouldn't be too intrusive | 06:36 |
swetland | yeah, linux should be able to build on single processor platforms with atomic ops based around disabling interrupts. or you could emulate the atomic ops in machine mode but that'd likely be much more overhead | 06:43 |
tnt | I know that I ended up using machine mode in my case, there didn't seem to be any "simple" way to have the kernel not generate the atomics instructions. | 06:51 |
tnt | (but then serv won't do machine mode so defeats the original point) | 06:51 |
tnt | I'm sure you can modify the kernel so it emulates them fully but it's not just "flicking a switch", you'll have to actually code it. | 06:52 |
swetland | possible. I'm used to the ARM support where they already had paths for machines/cpus without atomic ops | 06:52 |
tnt | riscv linux support is "relatively new", so it's definitely not quite to ARM level of feature/choice completeness. | 06:53 |
tnt | and they, quite logically, focus on what actually make sense to run linux on, rather than "cool proof of concept that are useless for any practical thing". | 06:54 |
swetland | I think it's great that people are getting linux booting on their soft cores. nice stress test. | 06:55 |
swetland | but I also think it's sad that there's so much obsession with linux to the exclusion of all else at times | 06:55 |
swetland | modern linux is a very heavy platform to run on a 50-100MHz core with memory measured in the 10s of MB | 06:55 |
tnt | My personal opinion is that linux on fpga is pointless _unless_ you're specifically tryuing to test/prototype a heavy duty softcore you're targetting for a future ASIC or something. Other than that you're better off with something more lightweight, or if you need linux, pick a FPGA with a hardcode. | 06:57 |
swetland | I'd agree with that | 06:58 |
tnt | The rest is fun / cool hacks / learning / ... sure, enjoy the fun. But don't go to prod with that. | 06:58 |
swetland | working with the integrated hard cores is fun. I learned a lot about AXI3/4 last time I worked on a ZYNQ project. | 06:59 |
swetland | I'd love to see FPGA vendors start including RISCV hard cores. A9 is a fussy cpu to work with. And RV32/RV64 would save them a bunch of money that'd go to ARM otherwise ^^ | 07:01 |
tnt | The crosslink nx has a bit hybrid approach. It has a RISC-V ALU core and register files. | 07:03 |
tnt | Not a full risc-v but it can help making a core much lighter and faster. | 07:03 |
*** davebee <[email protected]> has joined #litex | 08:00 | |
swetland | oh nifty. forgot about that. | 08:06 |
*** tedh_ <[email protected]> has quit IRC (Remote host closed the connection) | 08:49 | |
*** tedh <[email protected]> has joined #litex | 08:49 | |
cr1901 | tnt: I found the article I was thinking of (atomic support w/o atomic insns) https://lwn.net/Articles/314561/ | 09:36 |
tpb | Title: User space atomic ops on ARMv5 and earlier [LWN.net] (at lwn.net) | 09:36 |
cr1901 | They are called the "kernel user helpers". I suppose no reason to impl them for RV tho https://www.kernel.org/doc/Documentation/arm/kernel_user_helpers.txt | 09:37 |
tnt | cr1901: yeah for sure. I just wanted to point out it's not just a config option ATM. There is a bunch of them hardcoded in various piece of inline asm that will need to be dealt with. | 09:38 |
tnt | although that article seesm to be about providing atomics to user space. Not atomics used in the kernel itself. | 09:40 |
cr1901 | The term "atomic" is so severely overloaded that I can't tell from context typically | 09:40 |
cr1901 | Anyways, linking that was also partially for future-me when he forgets in 6 months again :P | 09:41 |
*** jdmux <[email protected]> has quit IRC (Quit: Connection closed) | 10:42 | |
_florent_ | The interest I can see for Linux on FPGA is the flexibility it offers to control a system, when you don't want or can't use a Zynq, using a SoftCore with Linux can be interesting and with the size of current FPGAs, running Linux is relatively cheap in term of resources. | 10:59 |
_florent_ | So with on a standalone system using a large FPGA, where 90% of the processing in done pure logic and that just need simple external control/status, I found running running Linux interesting. | 10:59 |
_florent_ | With the chip shortage, I've also seen clients stuck because they were using Nios SOPC builder and the Intel chips they were using on their products was no longer available, similar things with Xilinx devices, etc... Running Linux on the FPGA even if using slower and using FPGA resources has also the advantage of being vendor agnostic, so can be and advantage over performance on some products. | 11:05 |
_florent_ | I also had different demands from industrials wanting to create Linux capable SoCs based on VexRiscv/LiteX for Efinix FPGAs to replace some ARM SoCs, so it seems pricing in quantity and performance of Efinix FPGAs make this interesting. | 11:17 |
_florent_ | But yes, that's still a very niche/specific market for now | 11:18 |
*** FabM <FabM!~FabM@2a03:d604:103:600:a394:911d:2827:60a1> has joined #litex | 11:48 | |
*** jdmux <[email protected]> has joined #litex | 12:41 | |
*** jdmux <[email protected]> has quit IRC (Quit: Connection closed) | 12:48 | |
*** lexano <[email protected]> has quit IRC (Ping timeout: 246 seconds) | 14:51 | |
*** lexano <[email protected]> has joined #litex | 15:03 | |
*** davebee <[email protected]> has quit IRC (Quit: Leaving) | 15:15 | |
*** lexano <[email protected]> has quit IRC (Ping timeout: 256 seconds) | 16:36 | |
swetland | oh I think running an OS on a softcore is super useful. I just think Linux is extremely heavy when you could use something lighter weight. | 16:40 |
*** lexano <[email protected]> has joined #litex | 16:49 | |
_florent_ | funny test I did in 2020 on a big Ultrascale FPGA: | 16:54 |
_florent_ | https://twitter.com/enjoy_digital/status/1329091999677333510 | 16:54 |
_florent_ | It's also not that bad on the Acorn CLE215+: | 16:54 |
_florent_ | https://twitter.com/enjoy_digital/status/1329133670372937736 | 16:54 |
tnt | My point wasn't so much that you don't need soft core ... but as swetland says is you don't needs linux capable ones. | 16:55 |
swetland | oh I'd say often you even want a linux capable one (MMU, etc) | 16:56 |
swetland | just that you could run something much lighter weight than linux on it in many situations | 16:56 |
Wolfvak | Is the CLE215+ even available for purchase anywhere these days? | 16:56 |
swetland | just the linux *kernel* is 10-20MB these days | 16:56 |
tnt | Wolfvak: if you find them somehwere, let me know :) | 16:57 |
Wolfvak | looking for relatively cheap "big boy" fpga boards, I've kinda outgrown my ecp5-25f already lol | 16:57 |
swetland | now if your software stack needs linux's complexity and it fits, great. but for adding a software control layer you can often get by with a lot less bulk | 16:58 |
Wolfvak | tnt, will do... after I buy their entire stock first /s | 16:58 |
tnt | Wolfvak: blackmagic declinks | 16:58 |
tnt | https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-36 | 16:58 |
tpb | Title: DeckLink – Tech Specs | Blackmagic Design (at www.blackmagicdesign.com) | 16:58 |
tnt | Ultrascale FPGA with 2 DDR3 banks and pcie 8x. | 16:59 |
tnt | for like < 600$ off the shelf. | 16:59 |
Wolfvak | funnily enough my bottleneck is not ram, but you can never have enough of it anyway | 17:00 |
Wolfvak | I'll read up on the "homebrew" capabilities, thanks for the advice | 17:00 |
_florent_ | this Decklink is also interesting: XC7A100T / 2x 16-bit DDR3 / PCIe Gen2 X4 for 200$: https://www.blackmagicdesign.com/fr/products/decklink/techspecs/W-DLK-32 | 17:49 |
tpb | Title: DeckLink – Spécifications | Blackmagic Design (at www.blackmagicdesign.com) | 17:49 |
*** josuah is now known as _-c-y-b-e-r-_ | 18:27 | |
*** _-c-y-b-e-r-_ is now known as josuah | 18:27 | |
*** josuah <[email protected]> has quit IRC (Quit: WeeChat 3.4.1) | 18:30 | |
*** josuah <[email protected]> has joined #litex | 18:30 | |
*** josuah <[email protected]> has quit IRC (Client Quit) | 18:30 | |
*** josuah <[email protected]> has joined #litex | 18:33 | |
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving) | 18:53 | |
*** zjason` <zjason`[email protected]> has joined #litex | 19:34 | |
*** zjason <[email protected]> has quit IRC (Ping timeout: 248 seconds) | 19:36 | |
swetland | interesting that it has a mini-usb port... what's that for? | 19:49 |
_florent_ | for SPI Flash programming (through a small atmel) | 20:16 |
tnt | (propriatary stuff though :/) | 20:23 |
jevinskie[m] | I wish one of the light BSDs had good RISC V support but that doesn’t seem to be the case so I’m trying Linux. I’ve used zephyr before and enjoy it for microcontrollers but I have the ram for a shell and dammit I’m lazy and want one! :) | 22:30 |
swetland | if you want something *really* light (though more an educational tool than a production system): https://github.com/mit-pdos/xv6-riscv | 23:30 |
swetland | it's a reimplementation of UNIX v6 for RISCV. used for an os class at MIT | 23:30 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!