*** tpb <[email protected]> has joined #litex | 00:00 | |
*** Degi_ <[email protected]> has joined #litex | 00:06 | |
*** Degi <[email protected]> has quit IRC (Ping timeout: 246 seconds) | 00:07 | |
*** Degi_ is now known as Degi | 00:07 | |
somlo | so, on the trellisboard, I get a similar crash right before the login prompt: http://mirror.ini.cmu.edu/litex/fed_trellis_1.log | 00:43 |
---|---|---|
somlo | so 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 #litex | 01:48 | |
*** DerekKozel[m] <DerekKozel[m]!~dkozelgnu@2001:470:69fc:105::2f14> has joined #litex | 02:00 | |
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has joined #litex | 02:00 | |
*** RowanG[m] <RowanG[m]!~rowang077@2001:470:69fc:105::1:ca9f> has joined #litex | 02:09 | |
*** pepijndevos[m] <pepijndevos[m]!~pepijndev@2001:470:69fc:105::b6a8> has joined #litex | 02:13 | |
*** pbsds <[email protected]> has quit IRC (Quit: The Lounge - https://thelounge.chat) | 02:41 | |
*** pbsds <[email protected]> has joined #litex | 02:42 | |
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 02:52 | |
*** TMM_ <[email protected]> has joined #litex | 02:52 | |
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection) | 06:44 | |
*** FabM <[email protected]> has joined #litex | 06:58 | |
*** Brinx <[email protected]> has joined #litex | 07:19 | |
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection) | 08:00 | |
*** Brinx <[email protected]> has joined #litex | 08:26 | |
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection) | 08:27 | |
*** Brinx <[email protected]> has joined #litex | 08:27 | |
*** davebee <[email protected]> has joined #litex | 09: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 #litex | 10:04 | |
*** minute <[email protected]> has quit IRC (Ping timeout: 246 seconds) | 10:06 | |
*** minute <[email protected]> has joined #litex | 10:07 | |
*** DerekKozel[m] <DerekKozel[m]!~dkozelgnu@2001:470:69fc:105::2f14> has joined #litex | 10:08 | |
*** sajattack[m] <sajattack[m]!~sajattack@2001:470:69fc:105::1d9> has joined #litex | 10:08 | |
*** jevinskie[m] <jevinskie[m]!~jevinskie@2001:470:69fc:105::bb3> has joined #litex | 10:08 | |
*** Crofton[m] <Crofton[m]!~croftongn@2001:470:69fc:105::9a7> has joined #litex | 10:08 | |
*** amstan <amstan!~amstan@2001:470:69fc:105::1e9> has joined #litex | 10:08 | |
*** pepijndevos[m] <pepijndevos[m]!~pepijndev@2001:470:69fc:105::b6a8> has joined #litex | 10:08 | |
*** CarlFK <CarlFK!~carlfk@2001:470:69fc:105::5d8> has joined #litex | 10:08 | |
*** mikolajw <mikolajw!~mikolajtc@2001:470:69fc:105::3b02> has joined #litex | 10:08 | |
*** RowanG[m] <RowanG[m]!~rowang077@2001:470:69fc:105::1:ca9f> has joined #litex | 10:08 | |
*** jryans <jryans!~jryans@2001:470:69fc:105::1d> has joined #litex | 10:08 | |
*** leons <leons!~leons@2001:470:69fc:105::abc> has joined #litex | 10:08 | |
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has joined #litex | 10:08 | |
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection) | 12:30 | |
*** Brinx <[email protected]> has joined #litex | 12:33 | |
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 12:36 | |
*** TMM_ <[email protected]> has joined #litex | 12:36 | |
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection) | 13:24 | |
*** Brinx <[email protected]> has joined #litex | 13:25 | |
*** Brinx <[email protected]> has quit IRC (Ping timeout: 260 seconds) | 13:30 | |
*** Brinx <[email protected]> has joined #litex | 13:33 | |
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection) | 13:34 | |
*** Brinx <[email protected]> has joined #litex | 13:34 | |
*** davebee <[email protected]> has quit IRC (Quit: Leaving) | 13:42 | |
tnt | Has anyone ever had erratic pcie bandwidth after a dynamic reload ? | 14:31 |
tnt | Like, 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 |
tnt | If 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 |
trabucayre | maybe it's stupid: the controler's driver isn't correctly reconfigured after boot ? | 14:41 |
tnt | I do a rmmod / force device remove / rescan / insmod after I reloaded the fpga. | 14:43 |
tnt | https://pastebin.com/7kiQEqEc | 14:48 |
tpb | Title: --- dev-bad.txt 2022-09-26 17:24:28.539974891 +0300+++ dev-good.txt 2022-09-26 - Pastebin.com (at pastebin.com) | 14:48 |
tnt | This is a diff of a lspci -vv of the device in the 'bad' case, vs the 'good' case. | 14:48 |
trabucayre | maybe a driver can't be unloaded because it's used by another card? | 14:49 |
trabucayre | dmesg ? | 14:49 |
tnt | No, the rmmod / insmod cycles works fine. | 14:50 |
trabucayre | for all related drivers I suppose? | 14:52 |
tnt | There is only litepcie.ko | 14:53 |
trabucayre | I talk about MB drivers :) | 14:53 |
tnt | Also if I do my 'rmmod litepcie; echo 1 > .../remove; echo 1 > rescan; insmod litepcie.ko' without FPGA reload, it works fine. | 14:53 |
tnt | MB drivers ? | 14:53 |
trabucayre | motherboard | 14:54 |
trabucayre | ie PCIe controler | 14:54 |
tnt | I can't remove the PCIe driver ... | 14:54 |
tnt | the system would stop working | 14:54 |
trabucayre | yes it's true :) | 14:54 |
tnt | it's kind of needed for ... the rest of the machine. | 14:54 |
trabucayre | but the question is: maybe something is done at boot time and not at rescan time? | 14:55 |
tnt | Also worth nothing on a different system (same fpga board but different cpu/motherboard), this stuff works just fine. | 14:55 |
tnt | Well maybe ... but the question is "what" ? | 14:55 |
trabucayre | seems to have specifics functions related to rescan... Maybe not implemented by one of drivers | 15:03 |
trabucayre | but maybe i'm just totally wrong... | 15:04 |
trabucayre | or a controler already configured by the bios and not touched by linux | 15:05 |
tnt | In 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 |
trabucayre | seems my assumption is wrong | 15:12 |
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection) | 15:21 | |
*** Brinx <[email protected]> has joined #litex | 15:22 | |
*** Guest13 <[email protected]> has joined #litex | 15: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 #litex | 15: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 #litex | 15:56 | |
*** Guest13 <[email protected]> has quit IRC (Quit: Client closed) | 16:37 | |
*** Guest13 <[email protected]> has joined #litex | 17:01 | |
*** Brinx <[email protected]> has joined #litex | 17:17 | |
*** Coldberg <[email protected]> has joined #litex | 17: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 | |
minute | i'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 |
minute | the generated csr.csv has spiflash_core and spiflash_phy. but litex_json2dts_linux is looking for "if "spiflash" in d["csr_bases"]:" | 18:29 |
minute | ah, this issue is open since a year https://github.com/litex-hub/linux-on-litex-vexriscv/issues/235#issuecomment-925860844 | 18: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 #litex | 18:54 | |
*** Guest14 <[email protected]> has joined #litex | 18: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 #litex | 18: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 know | 19:06 | |
minute | trying to port this into bios https://github.com/litex-hub/litespi/issues/52#issuecomment-890787356 | 19: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 merged | 19:17 |
cr1901 | (and presumably LiteSPI is how everything's done nowadays) | 19:17 |
*** slagernate <[email protected]> has joined #litex | 19:22 | |
*** nickoe <[email protected]> has quit IRC (Quit: Client closed) | 19:27 | |
*** nickoe <[email protected]> has joined #litex | 19:27 | |
*** zjason <[email protected]> has quit IRC (Read error: Connection reset by peer) | 19:35 | |
*** zjason <[email protected]> has joined #litex | 19:36 | |
minute | ok, writing to flash appears to work now | 19:40 |
slagernate | Hi 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 |
slagernate | This 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 |
slagernate | On 9/16, I messaged the following: | 20:29 |
slagernate | I 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 |
slagernate | 10: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 #litex | 22:47 | |
*** nickoe <[email protected]> has quit IRC (Quit: Client closed) | 22:54 | |
*** nickoe <[email protected]> has joined #litex | 22:55 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!