Monday, 2022-09-26

*** tpb <[email protected]> has joined #litex00:00
*** Degi_ <[email protected]> has joined #litex00:06
*** Degi <[email protected]> has quit IRC (Ping timeout: 246 seconds)00:07
*** Degi_ is now known as Degi00:07
somloso, on the trellisboard, I get a similar crash right before the login prompt: http://mirror.ini.cmu.edu/litex/fed_trellis_1.log00:43
somloso doubling the available RAM didn't fix the problem -- I'm beginning to think there's a bona fide bug somewhere... :)00:44
*** mikolajw <mikolajw!~mikolajtc@2001:470:69fc:105::3b02> has quit IRC (Ping timeout: 248 seconds)01:41
*** DerekKozel[m] <DerekKozel[m]!~dkozelgnu@2001:470:69fc:105::2f14> has quit IRC (Ping timeout: 268 seconds)01:42
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has quit IRC (Ping timeout: 268 seconds)01:42
*** RowanG[m] <RowanG[m]!~rowang077@2001:470:69fc:105::1:ca9f> has quit IRC (Ping timeout: 264 seconds)01:42
*** pepijndevos[m] <pepijndevos[m]!~pepijndev@2001:470:69fc:105::b6a8> has quit IRC (Ping timeout: 268 seconds)01:45
*** mikolajw <mikolajw!~mikolajtc@2001:470:69fc:105::3b02> has joined #litex01:48
*** DerekKozel[m] <DerekKozel[m]!~dkozelgnu@2001:470:69fc:105::2f14> has joined #litex02:00
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has joined #litex02:00
*** RowanG[m] <RowanG[m]!~rowang077@2001:470:69fc:105::1:ca9f> has joined #litex02:09
*** pepijndevos[m] <pepijndevos[m]!~pepijndev@2001:470:69fc:105::b6a8> has joined #litex02:13
*** pbsds <[email protected]> has quit IRC (Quit: The Lounge - https://thelounge.chat)02:41
*** pbsds <[email protected]> has joined #litex02:42
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)02:52
*** TMM_ <[email protected]> has joined #litex02:52
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)06:44
*** FabM <[email protected]> has joined #litex06:58
*** Brinx <[email protected]> has joined #litex07:19
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)08:00
*** Brinx <[email protected]> has joined #litex08:26
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)08:27
*** Brinx <[email protected]> has joined #litex08:27
*** davebee <[email protected]> has joined #litex09:13
*** jevinskie[m] <jevinskie[m]!~jevinskie@2001:470:69fc:105::bb3> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** sajattack[m] <sajattack[m]!~sajattack@2001:470:69fc:105::1d9> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** CarlFK <CarlFK!~carlfk@2001:470:69fc:105::5d8> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** jryans <jryans!~jryans@2001:470:69fc:105::1d> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** shoragan[m] <shoragan[m]!~shoraganm@2001:470:69fc:105::39> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** mikolajw <mikolajw!~mikolajtc@2001:470:69fc:105::3b02> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** DerekKozel[m] <DerekKozel[m]!~dkozelgnu@2001:470:69fc:105::2f14> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** RowanG[m] <RowanG[m]!~rowang077@2001:470:69fc:105::1:ca9f> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** pepijndevos[m] <pepijndevos[m]!~pepijndev@2001:470:69fc:105::b6a8> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** leons <leons!~leons@2001:470:69fc:105::abc> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** Crofton[m] <Crofton[m]!~croftongn@2001:470:69fc:105::9a7> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** amstan <amstan!~amstan@2001:470:69fc:105::1e9> has quit IRC (Quit: Bridge terminating on SIGTERM)10:00
*** shoragan[m] <shoragan[m]!~shoraganm@2001:470:69fc:105::39> has joined #litex10:04
*** minute <[email protected]> has quit IRC (Ping timeout: 246 seconds)10:06
*** minute <[email protected]> has joined #litex10:07
*** DerekKozel[m] <DerekKozel[m]!~dkozelgnu@2001:470:69fc:105::2f14> has joined #litex10:08
*** sajattack[m] <sajattack[m]!~sajattack@2001:470:69fc:105::1d9> has joined #litex10:08
*** jevinskie[m] <jevinskie[m]!~jevinskie@2001:470:69fc:105::bb3> has joined #litex10:08
*** Crofton[m] <Crofton[m]!~croftongn@2001:470:69fc:105::9a7> has joined #litex10:08
*** amstan <amstan!~amstan@2001:470:69fc:105::1e9> has joined #litex10:08
*** pepijndevos[m] <pepijndevos[m]!~pepijndev@2001:470:69fc:105::b6a8> has joined #litex10:08
*** CarlFK <CarlFK!~carlfk@2001:470:69fc:105::5d8> has joined #litex10:08
*** mikolajw <mikolajw!~mikolajtc@2001:470:69fc:105::3b02> has joined #litex10:08
*** RowanG[m] <RowanG[m]!~rowang077@2001:470:69fc:105::1:ca9f> has joined #litex10:08
*** jryans <jryans!~jryans@2001:470:69fc:105::1d> has joined #litex10:08
*** leons <leons!~leons@2001:470:69fc:105::abc> has joined #litex10:08
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has joined #litex10:08
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)12:30
*** Brinx <[email protected]> has joined #litex12:33
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)12:36
*** TMM_ <[email protected]> has joined #litex12:36
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)13:24
*** Brinx <[email protected]> has joined #litex13:25
*** Brinx <[email protected]> has quit IRC (Ping timeout: 260 seconds)13:30
*** Brinx <[email protected]> has joined #litex13:33
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)13:34
*** Brinx <[email protected]> has joined #litex13:34
*** davebee <[email protected]> has quit IRC (Quit: Leaving)13:42
tntHas anyone ever had erratic pcie bandwidth after a dynamic reload ?14:31
tntLike, if the FPGA is configured directly before the machine boots, it works fine and I get stable / uniform PCIe DMA bandwidth. But if I do a bitstream reload and then re-detect the card, it "works" as in, I can see the card and do CSR and even DMA, but the bandwidth is erratic leading to data loss.14:32
tntIf I then reboot (not touching the fpga), then all is well again.14:32
tnt(And I'm not even close to the max pcie bw.  In "good times", I can get 30Gbit/s with not overflows/oss.  Here I'm just trying to get about 7Gbit/s)14:34
trabucayremaybe it's stupid: the controler's driver isn't correctly reconfigured after boot ?14:41
tntI do a rmmod / force device remove / rescan / insmod after I reloaded the fpga.14:43
tnthttps://pastebin.com/7kiQEqEc14:48
tpbTitle: --- dev-bad.txt 2022-09-26 17:24:28.539974891 +0300+++ dev-good.txt 2022-09-26 - Pastebin.com (at pastebin.com)14:48
tntThis is a diff of a lspci -vv of the device in the 'bad' case, vs the 'good' case.14:48
trabucayremaybe a driver can't be unloaded because it's used by another card?14:49
trabucayredmesg ?14:49
tntNo, the rmmod / insmod cycles works fine.14:50
trabucayrefor all related drivers I suppose?14:52
tntThere is only litepcie.ko14:53
trabucayreI talk about MB drivers :)14:53
tntAlso if I do my 'rmmod litepcie; echo 1 > .../remove; echo 1 > rescan; insmod litepcie.ko' without FPGA reload, it works fine.14:53
tntMB drivers ?14:53
trabucayremotherboard14:54
trabucayreie PCIe controler14:54
tntI can't remove the PCIe driver ...14:54
tntthe system would stop working14:54
trabucayreyes it's true :)14:54
tntit's kind of needed for ... the rest of the machine.14:54
trabucayrebut the question is: maybe something is done at boot time and not at rescan time?14:55
tntAlso worth nothing on a different system (same fpga board but different cpu/motherboard), this stuff works just fine.14:55
tntWell maybe ... but the question is "what" ?14:55
trabucayreseems to have specifics functions related to rescan... Maybe not implemented by one of drivers15:03
trabucayrebut maybe i'm just totally wrong...15:04
trabucayreor a controler already configured by the bios and not touched by linux15:05
tntIn the lspci comparison above, 'Cache line' config was missing for the 'bad' case, so I tried setpci -s 01:00.0 CACHE_LINE_SIZE=10  now, it does report it like in the 'good case' but no improvements, bandwidth is still erratic.15:08
trabucayreseems my assumption is wrong15:12
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)15:21
*** Brinx <[email protected]> has joined #litex15:22
*** Guest13 <[email protected]> has joined #litex15:24
*** Guest13 <[email protected]> has quit IRC (Client Quit)15:25
*** Brinx <[email protected]> has quit IRC (Ping timeout: 268 seconds)15:27
*** Guest13 <[email protected]> has joined #litex15:27
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving)15:31
*** Guest13 <[email protected]> has quit IRC (Quit: Client closed)15:51
*** Guest13 <[email protected]> has joined #litex15:56
*** Guest13 <[email protected]> has quit IRC (Quit: Client closed)16:37
*** Guest13 <[email protected]> has joined #litex17:01
*** Brinx <[email protected]> has joined #litex17:17
*** Coldberg <[email protected]> has joined #litex17:41
*** C-Man <[email protected]> has quit IRC (Ping timeout: 268 seconds)17:44
*** Guest13 <[email protected]> has quit IRC (Quit: Client closed)18:01
minutei'm confused as to how litespi flash is supposed to be used. in my soc target there is self.add_spi_flash(mode="4x", module=W25Q128JV(Codes.READ_1_1_4), rate="1:1", with_master=True). but litex_json2dts_linux.py doesn't pick this up, it's not showing up in DTS. i also don't have any commands to interact with the flash in litex bios. what am i missing?18:28
minutethe generated csr.csv has spiflash_core and spiflash_phy. but litex_json2dts_linux is looking for "if "spiflash" in d["csr_bases"]:"18:29
minuteah, this issue is open since a year https://github.com/litex-hub/linux-on-litex-vexriscv/issues/235#issuecomment-92586084418:31
minute_florent_: is there any recipe/example of how to write to spi flash on current litex?18:34
*** Guest13 <[email protected]> has joined #litex18:54
*** Guest14 <[email protected]> has joined #litex18:56
*** Guest13 <[email protected]> has quit IRC (Client Quit)18:57
*** Guest14 <[email protected]> has quit IRC (Client Quit)18:57
*** Guest14 <[email protected]> has joined #litex18:59
*** Guest14 <[email protected]> has quit IRC (Client Quit)19:00
* cr1901 wishes he could help, but probably has nothing to offer that you don't already know19:06
minutetrying to port this into bios https://github.com/litex-hub/litespi/issues/52#issuecomment-89078735619:14
cr1901>LiteSPI doesn't have bitbang registers, @xobs code is for litex.soc.cores.spi_flash. <-- ahhh, a looong while back, I wrote code for litex to flash new firmware via xmodem and SPI bitbang. But it never got merged19:17
cr1901(and presumably LiteSPI is how everything's done nowadays)19:17
*** slagernate <[email protected]> has joined #litex19:22
*** nickoe <[email protected]> has quit IRC (Quit: Client closed)19:27
*** nickoe <[email protected]> has joined #litex19:27
*** zjason <[email protected]> has quit IRC (Read error: Connection reset by peer)19:35
*** zjason <[email protected]> has joined #litex19:36
minuteok, writing to flash appears to work now19:40
slagernateHi gatecat --I tried again the picorv32 cpu on the lattice crosslinknx evn board, this time using the LSE synthesis tool w/ the radiant toolchain (the synplify pro synthsis tool was giving me the "E: mal-formed command line" error (see logs after 2022/9/16)). Sadly, litex_term is still hanging for me, so I don't think this is an OSS tool issue.20:28
slagernateThis time I'm using Ubuntu 20.02. (for context, previously you said: "slagernate: unfortunately, this seems like it's probably a problem somewhere in the oss stack - testing with the evn board radiant works but oxide doesn't").20:28
slagernateOn 9/16, I messaged the following:20:29
slagernateI can't seem to get the software/demo working on a crosslink-nx eval board. litex_term is hanging when I try to upload anything. Same behaviour when I try e.g. the wishbone tool on this [icebreaker-litex tutorial](https://github.com/icebreaker-fpga/icebreaker-litex-examples) (although at least in this case I am getting `screen /dev/ttyUSB1 115200`20:29
slagernate10:00 <slagernate> to work. Can someone share or point me to an example crosslinknx setup? Kind of disappointed how difficult this has been.. was getting similar errors as this closed issue, https://github.com/enjoy-digital/litex/issues/814, which took a while to overcome.20:29
*** slagernate <[email protected]> has quit IRC (Ping timeout: 252 seconds)21:26
*** slagernate <[email protected]> has joined #litex22:47
*** nickoe <[email protected]> has quit IRC (Quit: Client closed)22:54
*** nickoe <[email protected]> has joined #litex22:55

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