Tuesday, 2021-09-21

*** tpb <[email protected]> has joined #litex00:00
somloquad-core 64-bit rocket cpu with litex on nexys4ddr: https://hastebin.com/sopixegoye.yaml00:31
tpbTitle: hastebin (at hastebin.com)00:31
sajattack[m]Congrats00:57
sajattack[m]How hard is it to port rocket linux to another litex board?00:57
somlosajattack[m]: Thanks! Right now there are several boards known to work at github.com/litex-hub/linux-on-litex-rocket01:52
somlosmp support is just a matter of sufficient fpga capacity -- I'll post patches after I get some sleep :)01:54
sajattack[m]Only 5 I thought01:54
somloit's all mostly upstream litex, if you look at the build command lines in the readme, so other boards *should* also work, only no one's tried yet01:57
sajattack[m]Cool I'll have to give it a shot02:53
sajattack[m]I've bumped into some problems with rv32gc support in various ways and curious to see if the grass is greener on the other side02:54
sajattack[m]initial results on my acorn_cle_215 pcie abomination..... the crossover `litepcie_util uart_test` reboots my pc03:25
sajattack[m]dma test works however03:27
sajattack[m]2nd try is the charm?03:27
sajattack[m]https://hastebin.com/ufizehefuk.yaml03:27
tpbTitle: hastebin (at hastebin.com)03:27
*** nickoe <[email protected]> has quit IRC (Ping timeout: 252 seconds)03:28
*** Degi <[email protected]> has quit IRC (Ping timeout: 252 seconds)03:34
*** Degi <[email protected]> has joined #litex03:35
tpw_rulessajattack[m]: have you had any issues with flaky compilation? it seems the basic litex examples only work on my nitefury if compilation is lucky03:50
tpw_rulesi make small changes and then they break03:50
sajattack[m]I had a couple issues I guess03:55
sajattack[m]nothing major03:55
sajattack[m]somlo: I guess I need to write a dts?03:55
tpw_ruleslike what? i guess nitefury support seems kind of broken to me, but it's not great for you either03:57
sajattack[m]a couple times I had weird brokenness but I'm not sure if it was the compiler or pebkac03:57
sajattack[m]here goes nothing...04:29
sajattack[m]`[LXTERM] Uploading boot.bin to 0x80000000 (15698616 bytes)...`04:29
*** FabM <FabM!~FabM@2a03:d604:103:600:9f7c:ddb2:1ca5:91c7> has joined #litex04:32
*** mc6808 <[email protected]> has quit IRC (Quit: Ping timeout (120 seconds))04:38
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 246 seconds)04:50
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex04:52
sajattack[m]well that didn't work05:02
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)06:11
*** TMM_ <[email protected]> has joined #litex06:11
_florent_somlo: nice!06:35
_florent_sajattack[m]: can you check the timings with Rocket @ 100MHz on the Acorn?06:35
_florent_tpw_rules: the false path constraints have been updated on the Acorn design, can you provide more info on your failures? is it an issue with PCIe enumeration? or something else?06:36
*** C-Man <[email protected]> has quit IRC (Ping timeout: 264 seconds)06:40
Melkhiorsomlo: awesome! how much resources are needed to get to dual-rocket or more?06:40
Melkhior_florent_: is there some standard way to 'remap'/'alias' some of the wishbone address space? The SDRAM is mapped as one contiguous block, but I need a small block (probably the last 1-8 MiB) read/writable at a different address for compatibility reasons06:42
MelkhiorI can always had my own Wishbone slave + dedicated DRAM port, but it feels a bit overkill06:43
MelkhiorTIA06:43
_florent_Melkhior: We don't have this feature currently no, the custom DRAM port solution seems the way to go for now06:51
MelkhiorOK thanks - might also try to 'remap' (in a somewhat hackish way) in my bridge, could be less resource-intensive06:55
MelkhiorAnother question - i see the Micro 4K uses GTPs for HDMI, where other board uses regular pins (and so there's 2 HDMI PHY for 7-series), any significant benefits to that?06:56
Melkhiorkind of wondering if it's worth investigating for an hypothetical hdmi-enabled custom board06:57
_florent_The main benefits is for high resolutions: regular Artix7 IOs can do up to 1.25Gb/s (so already overclocked at 1080p60/1.485Gbps), GTPs can do up 6.6Gbps, so are fine even for 4K07:06
Melkhior_florent_: OK so definitely worthwhile, even though GTPs are quite limited in numbers... would you expect any other change needed in HW design?07:12
MelkhiorI was thinking of the Qmtech Wukong very simple design (https://github.com/ChinaQMTECH/QM_XC7A100T_WUKONG_BOARD/blob/master/Hardware/qmtech-xc7a100t-ddr3-wukong-board-v01.pdf, page 4)07:12
Melkhior(it seems the Mini 4k schematics are not public so I can't look at them for 'inspiration' :-) )07:14
_florent_The mini 4k has a 75dp159 between the GTPs and HDMI ports07:16
Melkhior_florent_: so more complex because I need level-shifters... thanks for the info07:29
Melkhiormaybe 4K on a SPARCstation would be too ambitious, might have a go at lower resolution first :-)07:30
geertuMelkhior: That's only an improvement of 8x, compared to the original resolution ;-) And probably you go for increased color depth, too?07:34
* geertu never noticed before that 1920 * 1080 = 2 * (1152 * 900)07:35
Melkhiorgeertu: Not at first, I'm thinking of emulating a dumb cg3, plenty of sample codes out there (drivers & Qemu emulation)07:58
Melkhioralso using 8 bits per pixels would save on memory bandwidth, so easier to use higher resolution07:58
MelkhiorOf course eventually I would love to have a HW-accelerated 24-bits FrameBuffer with full X11 support, but that's a loooooooooooong way away :-)07:59
Melkhior(cg3 also have Forth OpenBIOS support so probably can get console support as well)08:01
*** geertu <[email protected]> has quit IRC (Read error: Connection reset by peer)08:22
*** geertu <[email protected]> has joined #litex08:24
*** pftbest <[email protected]> has quit IRC (Remote host closed the connection)08:51
*** pftbest <[email protected]> has joined #litex09:03
*** pftbest <[email protected]> has quit IRC (Ping timeout: 264 seconds)09:08
*** mtretter <[email protected]> has quit IRC (Quit: leaving)09:12
*** mtretter <[email protected]> has joined #litex09:12
*** pftbest <[email protected]> has joined #litex09:40
*** C-Man <[email protected]> has joined #litex09:41
acathlaThe FOMU toolchain I was using doesn't like the new LDFLAGS in common.mak. What's the right toolchain to use?10:12
_florent_acathla: you can use the one installed with LiteX: https://github.com/enjoy-digital/litex/blob/master/litex_setup.py#L67-L6810:28
*** geertu <[email protected]> has quit IRC (Quit: reboot)10:36
*** pftbest_ <[email protected]> has joined #litex10:47
*** pftbest <[email protected]> has quit IRC (Read error: Connection reset by peer)10:47
*** geertu <[email protected]> has joined #litex10:50
acathla_florent_, Thanks, will be usefull but that didn't change anything... I changed $(LD) to $(CC) in my Makefile and it seems OK now.10:58
*** Stary <Stary!~Stary@hacksoc/infrastructure> has quit IRC (Ping timeout: 240 seconds)11:02
*** Stary <Stary!~Stary@hacksoc/infrastructure> has joined #litex11:04
somloMelkhior: on the nexys4ddr, a single core (w/o gateware FPU) Rocket/Litex uses 32% of LUTs. A 4-core (FPU-less) setup goes up to 76%11:04
david-sawatzke[mflorent: Could you take a look at the 32 bit mac PR in liteeth in the near future, please? I've used it quite a bit in the last few weeks (with the softcore) and it seems to work without issues.13:22
david-sawatzke[mI don't want to build too many future changes on these shaky grounds13:22
Melkhiorsomlo: thanks! that's on a A7-100T so it's not huge ; I don't think Rocket can share FPU between core the way VexRiscv can so adding FPUs might be difficult13:24
MelkhiorBut it's really great to have SMP RV64IMAC in Litex :-)13:25
*** willcode4[m] <willcode4[m]!~willcode4@2001:470:69fc:105::e1b3> has joined #litex13:29
*** hjimenez93[m] <hjimenez93[m]!~hjimenez9@2001:470:69fc:105::fe30> has joined #litex13:29
hjimenez93[m]Hi! I recently learned about LiteX, its awesome! I was wondering if you know of an existing or WIP open-source alternative to Xilinx' ERNIC IP for RDMA.13:30
hjimenez93[m]Btw, I learned about it in GRCon13:31
somloMelkhior: I think the way it goes with Rocket is either all cores have FPUs or none do13:35
somlothere's room for 4-core FPU-enabled cores on the nexys-video or genesys2, but I haven't tried running anything there yet13:36
somlos/cores/cpus/13:36
*** Crofton[m] <Crofton[m]!~croftongn@2001:470:69fc:105::9a7> has joined #litex13:36
*** dmiller[m] <dmiller[m]!~dmillergn@2001:470:69fc:105::e9f6> has joined #litex13:44
Melkhiorsomlo: That's the nice thing w/ VexRiscv - you can share a single FPU implementation between 1 or more core (AMD Bulldozer-like), so you get most of the benefits of HW FPU and a limited size impact13:45
Melkhiorgenesys 2 is a lot more expensive than A7-100T boards...13:46
MelkhiorMaybe dual-core RV64GC would fit? FPUs aren't that big...13:47
somloMelkhior: the cool thing about the genesys2 is that a quad-core rocket litex design (with gateware FPUs) passes timing at 100MHz (as opposed to 50, like everywhere else so far)13:48
somlowhich should be exciting, once I get around to running it13:48
MelkhiorYes, the 2x freq increase sounds good :-)13:48
MelkhiorWonder how many rockets would fit in a VCU128 and at what speed - the HBM sure would be able to supply enough bandwidth :-)13:50
somloyou could try to build it with variant `full4d` or `full4q` and see what the utilization percentage is... Then we could create a variant with more cores (linux currently supports up to 8, but even that could probably be increased)13:56
somlos/linux supports/the current linux litex rocket defconfig supports/13:56
somloto be precise...13:57
MelkhiorI suspect the 8 hart limit might be in OpenSBI as well13:57
MelkhiorAnyway rhetorical question, HBM is not yet supported, the VCU128 is not yet supported, and mine is for 'real work' only :-/13:59
MelkhiorYou can fit a lot of stuff in that FPGA :-)13:59
gatecathmm, I've got the Alveo U250, but I think some work would be needed to take advantage of more than one DDR4 channel (and I don't think we got DDR init entirely reliable on all channels either)14:00
* somlo is dreaming of the day one could just use yosys+nextpnr on it directly :)14:00
Melkhioryosys+nextpnr on the Artix-7 and DDR3 at a good level of performance would be a great starting point before moving to Kintex and HBM :-)14:02
somlopythondata-cpu-rocket has 4-core variants with and without gateware FPU, and the provisional litex support is in PR 1040, if any of you want to tinker with it14:02
Melkhiorsomlo: if only I had the time :-/ the little I have I waste on SBusFPGA at the moment14:03
somloMelkhior: speaking of, I'm going to grudgingly stop this for today and start paying attention to my $DAYJOB :D14:04
Melkhiorhehe :-)14:04
Melkhiorthanks for the SMP stuff!!14:05
*** hexagon5un <hexagon5un!~elliot@hackaday/elliot> has quit IRC (Ping timeout: 252 seconds)14:12
*** vup <[email protected]> has quit IRC (Ping timeout: 252 seconds)14:13
*** vup <[email protected]> has joined #litex14:13
*** hexagon5un <hexagon5un!~elliot@hackaday/elliot> has joined #litex14:14
*** lexano <lexano!~lexano@cpe00e06722f0e4-cm98524a70e35e.cpe.net.cable.rogers.com> has quit IRC (Ping timeout: 252 seconds)14:41
*** lexano <lexano!~lexano@cpe00e06722f0e4-cm98524a70e35e.cpe.net.cable.rogers.com> has joined #litex14:44
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)15:41
*** TMM_ <[email protected]> has joined #litex15:41
_florent_david-sawatzke[m: sorry yes I'll try to review and merge it this week16:37
_florent_hjimenez93[m]: Hi and welcome :) (Personnaly, I'm not aware of ERNIC IP open source alternative). 16:41
_florent_gatecat: for the Alveo U250, the easy way to integrate the 4 DDR channels is to have 4 standalone LiteDRAM core (each itself being a SoC) and another top level SoC doing the integration16:45
_florent_gatecat: I already have this running on the XCU152516:46
_florent_gatecat: when using a small CPU, the extra resources used by the standalone core is negligible16:48
_florent_gatecat: and that's in fact very similar to the MIG that embeds a Microblaze for each controller :)16:48
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has joined #litex18:12
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 264 seconds)18:13
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving)19:10
mm001I'm still trying to figure out why the rgmii_test.py of the chubby75 project crashes on an incoming udp packet while the linsn_rv901t.py from litex-hub does not.20:20
mm001Apart the sys_clk_freq, I don't really see a difference for the ethernet phy...20:20
mm001By the way, if I change the sys_clk_freq from 133e6 to 75e6 in rgmii_test.py, it doesn't work at all, can't even get a ping response.20:21
mm001But I can't see why the sys_clk_freq should work at 75e6 with linsn_rv901t.py when it does not with rgmii_tes.py20:23
mm001Could that also be related to the crash on incoming udp packet?20:24
*** peeps[zen] is now known as peepsalot20:59
jevinskie[m]You could probably fit a "couple" of rocket cores on this 480k LE Arria 10 board you can get for ~$150 USD.  👀 Anybody happen to have schematics? https://www.ebay.com/itm/17494490436221:16
tpbTitle: GIBEL HawkEye-20G -48 ALTERA Arria 10 FPGA Computation Accelerator 2SFP 4GBDDR4 | eBay (at www.ebay.com)21:16
* sajattack[m] posted a file: (1767KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/hAmtAfZcsTvZbfYVsezSqzFu/sqrl_acorn_timing.rpt >21:20
sajattack[m]<_florent_> "sajattack: can you check the..." <- ☝️21:20

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!