Friday, 2021-10-08

*** tpb <[email protected]> has joined #litex00:00
*** indy <[email protected]> has quit IRC (Ping timeout: 260 seconds)00:26
*** indy <[email protected]> has joined #litex00:29
*** NotHet <[email protected]> has joined #litex00:31
NotHethey yall. i've got a riscv soc built with litex and I'm trying to boot zephyr. I can see it booting and get the "uart:~$" prompt on the shell subsystem sample. Problem is that it doesn't seem to be recieving any bytes I type into the console 00:35
NotHetI know the liteuart works both ways, as I am using lxterm to download the zephyr kernel during boot.00:36
NotHetI was thinking I was going to go start poking into the riscv core and see if I can get the logic analyzer attached to the instruction pointer. But debugging a riscv core I've never touched before is gonna be an effort00:36
NotHetany ideas what to go looking for? or better yet solutions to the problem lol 00:37
NotHet /msg NickServ VERIFY REGISTER NotHet GRkEoB04kMHCKMU400:38
NotHetwhoops! got a space in that last one I shouldnt' have00:39
NotHetI've also brought my main clock down quite a bit to ensure I have enough slack, no failures. 00:40
cr1901Somebody uses password-store :)?00:43
NotHetFor sure. Too bad a memory. I'd be buried in post-its otherwise00:45
tpw_rulesNotHet: what board, out of curiosity00:46
NotHetcolorlighti500:46
NotHetI was wondering if somehow a regression related to https://github.com/zephyrproject-rtos/zephyr/issues/30702 00:47
NotHetSo I rebuilt without ethernet, still no go.00:48
*** cr1901 <cr1901!~William@2601:8d:8600:911:b44d:5c72:cb42:b1e8> has quit IRC (Read error: Connection reset by peer)01:39
*** cr1901 <cr1901!~William@2601:8d:8600:911:5c93:7c51:ef34:e72b> has joined #litex01:40
NotHetI kind of suspect the CPU is hanging, but I don't know how to prove that. Etherbone has been working, but with ethernet on the soc DHCP fails in Zepyhr without ever hitting the net_mgmt_event_callback.01:52
NotHetAnother point to something going very wrong: it never returns from a k_msleep. Like even if I modify hello world to a while(1) { kprintf() k_msleep() } never prints more than once02:13
*** Degi <[email protected]> has quit IRC (Ping timeout: 245 seconds)03:01
*** Degi_ <[email protected]> has joined #litex03:01
*** Degi_ is now known as Degi03:01
*** geertu <[email protected]> has quit IRC (Ping timeout: 250 seconds)03:42
*** geertu <[email protected]> has joined #litex03:49
NotHetYeah Zephyr has some kernel deadlocking going in arch_swap03:55
*** linear_cannon <[email protected]> has quit IRC (Ping timeout: 245 seconds)04:11
*** linear_cannon <[email protected]> has joined #litex04:13
*** NotHet <[email protected]> has quit IRC (Remote host closed the connection)04:15
*** linear_cannon <[email protected]> has quit IRC (Quit: linear_cannon)04:37
*** linear_cannon <[email protected]> has joined #litex04:38
*** Melkhior <Melkhior!~Melkhior@2a01:e0a:1b7:12a0:225:90ff:fefb:e717> has quit IRC (Quit: Leaving)07:03
*** Melkhior <Melkhior!~Melkhior@2a01:e0a:1b7:12a0:225:90ff:fefb:e717> has joined #litex07:03
Melkhior_florent_: in the Framebuffer at https://github.com/enjoy-digital/litex/blob/9f0a03100d917aeb39ce990591b839ff52af90c4/litex/soc/cores/video.py#L632 , shouldn't that (Down)Converter be in clock_domain rather than "sys" ?07:06
*** FabM <[email protected]> has joined #litex07:14
*** RaYmAn_ is now known as RaYmAn08:14
_florent_Melkhior: indeed, good catch!09:53
Melkhior_florent_: still trying to resolve my FB issue...09:55
Melkhioranother one I'm not 100% sure of the fix: my monitors hate it when the R/G/B signals are not 0 during the blanking09:55
Melkhior(using VGA)09:55
Melkhiorif I limit the non-0 output of R/G/B to DE being high, then the monitors are much happier09:56
Melkhiorbut I'm still short on BW - my 8 bit device is running out of BW (i *think*) for 1280x1024 @ 60 Hz, which should only be 75 MiB/s09:57
Melkhiorot something else - even at 800x600@60 Hz the display is corrupted10:08
_florent_Melkhior: Sorry I've not yet been able to also do some tests on my side at high resolutions10:44
Melkhiorno problem, I suspect there's something weird about my setup10:49
Melkhiornow that I have identified the sync issue, I'll try again ASAP with 'normal' Litex on the Wukong10:49
Melkhioras that's more reproductible10:49
MelkhiorOK; so on regular litex with my wukong setup, 800x600@60Hz/16bpp works, 1024x768 doesn't sync properly, 1280x1024 is fone, and 1920x1080 is fine except the FB memory run well into the DTB space, which I suspect is why Linux is crashing11:22
Melkhiors/fone/fine/11:22
Melkhiorso on that setup, it seems BW is fine ; why my monitor won't accept XGA signal I don't know11:23
MelkhiorTBC11:23
MelkhiorSo when I move the FB memory a bit lower to avoid running into rv32.dtb (while having enough space for the kernel), Linux boot just fine with the 1920x1080x16bpp FB11:41
Melkhiorthere's only a bit less than 3 MiB available with the default memory map/json file, so anything above 800x600x32bpp will have issue11:42
Melkhior1280x1024x16 is 2.5 MiB so that fits11:42
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)11:59
*** TMM_ <[email protected]> has joined #litex11:59
Melkhior_florent_: opened #1060 to document the issue12:02
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)12:12
*** TMM_ <[email protected]> has joined #litex12:12
*** CarlosEDP <CarlosEDP!~carlosedp@2001:470:69fc:105::218e> has quit IRC (Read error: Connection reset by peer)13:20
*** jevinskie[m] <jevinskie[m]!~jevinskie@2001:470:69fc:105::bb3> has quit IRC (Read error: Connection reset by peer)13:20
*** sajattack[m] <sajattack[m]!~sajattack@2001:470:69fc:105::1d9> has quit IRC (Read error: Connection reset by peer)13:20
*** DerekKozel[m] <DerekKozel[m]!~dkozelgnu@2001:470:69fc:105::2f14> has quit IRC (Read error: Connection reset by peer)13:20
*** willcode4[m] <willcode4[m]!~willcode4@2001:470:69fc:105::e1b3> has quit IRC (Read error: Connection reset by peer)13:20
*** dmiller[m] <dmiller[m]!~dmillergn@2001:470:69fc:105::e9f6> has quit IRC (Remote host closed the connection)13:20
*** dcallagh <dcallagh!~dcallagh@2001:470:69fc:105::9c5> has quit IRC (Read error: Connection reset by peer)13:20
*** amstan <amstan!~amstan@2001:470:69fc:105::1e9> has quit IRC (Read error: Connection reset by peer)13:20
*** Crofton[m] <Crofton[m]!~croftongn@2001:470:69fc:105::9a7> has quit IRC (Write error: Connection reset by peer)13:20
*** jryans <jryans!~jryans@2001:470:69fc:105::1d> has quit IRC (Write error: Connection reset by peer)13:20
*** david-sawatzke[m <david-sawatzke[m!~david-saw@2001:470:69fc:105::1634> has quit IRC (Read error: Connection reset by peer)13:20
*** vomoniyi[m] <vomoniyi[m]!~vomoniyig@2001:470:69fc:105::3023> has quit IRC (Write error: Connection reset by peer)13:20
*** promach[m] <promach[m]!~promach@2001:470:69fc:105::ca1> has quit IRC (Write error: Connection reset by peer)13:20
*** HumbertoJimenez[ <HumbertoJimenez[!~hjimenez9@2001:470:69fc:105::fe30> has quit IRC (Read error: Connection reset by peer)13:20
*** kaji <kaji!~kajiryoji@2001:470:69fc:105::405b> has quit IRC (Write error: Connection reset by peer)13:20
*** shoragan[m]1 <shoragan[m]1!~shoraganm@2001:470:69fc:105::39> has quit IRC (Write error: Connection reset by peer)13:20
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has quit IRC (Remote host closed the connection)13:20
*** bluecmd <bluecmd!~bluecmd@2001:470:69fc:105::1d44> has quit IRC (Remote host closed the connection)13:20
*** Las[m] <Las[m]!~lasmatrix@2001:470:69fc:105::74e> has quit IRC (Remote host closed the connection)13:20
*** leons <leons!~leons@2001:470:69fc:105::abc> has quit IRC (Write error: Connection reset by peer)13:20
*** jryans <jryans!~jryans@2001:470:69fc:105::1d> has joined #litex13:21
*** shoragan[m] <shoragan[m]!~shoraganm@2001:470:69fc:105::39> has joined #litex13:23
*** dcallagh <dcallagh!~dcallagh@2001:470:69fc:105::9c5> has joined #litex13:23
*** CarlosEDP <CarlosEDP!~carlosedp@2001:470:69fc:105::218e> has joined #litex13:23
*** kaji <kaji!~kajiryoji@2001:470:69fc:105::405b> has joined #litex13:23
*** leons <leons!~leons@2001:470:69fc:105::abc> has joined #litex13:23
*** promach[m] <promach[m]!~promach@2001:470:69fc:105::ca1> has joined #litex13:23
*** Las[m] <Las[m]!~lasmatrix@2001:470:69fc:105::74e> has joined #litex13:23
*** jevinskie[m] <jevinskie[m]!~jevinskie@2001:470:69fc:105::bb3> has joined #litex13:23
*** Crofton[m] <Crofton[m]!~croftongn@2001:470:69fc:105::9a7> has joined #litex13:23
*** amstan <amstan!~amstan@2001:470:69fc:105::1e9> has joined #litex13:23
*** sajattack[m] <sajattack[m]!~sajattack@2001:470:69fc:105::1d9> has joined #litex13:23
*** david-sawatzke[m <david-sawatzke[m!~david-saw@2001:470:69fc:105::1634> has joined #litex13:23
*** vomoniyi[m] <vomoniyi[m]!~vomoniyig@2001:470:69fc:105::3023> has joined #litex13:23
*** DerekKozel[m] <DerekKozel[m]!~dkozelgnu@2001:470:69fc:105::2f14> has joined #litex13:23
*** HumbertoJimenez[ <HumbertoJimenez[!~hjimenez9@2001:470:69fc:105::fe30> has joined #litex13:23
*** dmiller[m] <dmiller[m]!~dmillergn@2001:470:69fc:105::e9f6> has joined #litex13:23
*** willcode4[m] <willcode4[m]!~willcode4@2001:470:69fc:105::e1b3> has joined #litex13:23
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has joined #litex13:23
*** bluecmd <bluecmd!~bluecmd@2001:470:69fc:105::1d44> has joined #litex13:23
*** key2_ is now known as key213:53
_florent_Melkhior: OK, the the issue seems related to your other setup?14:06
_florent_Melkhior: Sorry I'm not sure to remember the config on this other setup, can you share it again? (to be able to compare with the Wukong board)14:06
Melkhiorit's my custom, cpu-less (devices only) setup for my SPARCstation14:07
Melkhiorthe one thing that is 'standard' is the sdram, using add_sdram()14:07
Melkhiorthe FB is meant to be 8-bits pseudocolor to be compatible with the host software14:08
_florent_and which kind of dram is it?14:08
Melkhiorsame as the wukong - 16 bits DDR3, sys_clk_freq is also 100 Mhz14:09
Melkhior(so far I've set it to 8-bits grey, copying the 8 bits in R/G/B and bypasing the CLUT to remove one variable)14:10
Melkhiorbut I need to track down the issue accurately, by checking the 'valid' bits of every element in the sequence of stream (dma, conv, cdc) to figure out which one is slowing things down14:11
Melkhiorit seems unlikely to be the memory now, as the Wukong as enough to run several time the bandwidth14:11
Melkhiorneeded for the SBusFPGA14:12
Melkhiormy week-end will be busy :-)14:12
*** NotHet <[email protected]> has joined #litex14:21
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has joined #litex14:27
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 245 seconds)14:28
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Remote host closed the connection)14:54
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex15:21
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 252 seconds)15:22
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has joined #litex15:29
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 265 seconds)15:30
Melkhior_florent_: seems the issue might not be the hw, just relooked at the driver, i probably have a mapping issue somewhere15:35
Melkhiorsigh...15:35
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex16:50
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 245 seconds)16:50
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has joined #litex16:59
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 245 seconds)16:59
Melkhior_florent_: actually, once the SW side is sorted, 1280x1024 in 8 bits is fine in my design as well17:04
*** NotHet <[email protected]> has quit IRC (Remote host closed the connection)17:05
MelkhiorAs of a few seconds ago, I have the only SPARCstation in the universe with a 1280x1024 cg3, running X11, controlled by a USB mouse :-)17:05
Melkhiorcolors are ugly because I only have RGB222 output (custom Pmod, VGA with just 8 pins)17:06
Melkhiorhappy :-)17:07
_florent_nice! By curiosity, do you have a picture of your unique SPARCstation? :)17:52
geertuMelkhior: congrats!17:54
Melkhiorgeertu: thanks :-)17:54
Melkhior_florent_: just of the new board with its plugs, I'll add it to GitHub tomorrow17:55
MelkhiorBTW, at 1920x1080 i don't pass timing with the CLUT, but i do without, so I'll need to figure out how to fix that at some point17:56
Melkhior(the CLUT is just three 256 8 bits array indexed by the video_pipe_source.data)17:57
Melkhiorthe SPARCstation itself is one of my least photogenic (it had a tough life before meeting me; lots of broken plastic), developing HW is a risky business for such old beasts :-/17:59
Melkhiorand it would not have been possible without Litex !18:02
MelkhiorIs there an 'official' logo that would look OK in 64x64, as few colors as possible? Not sure how to implement the draw-logo in the framebuffer but the option exists so some day it will need a proper Litex logo instead of the Sun one at boot :-)18:03
Melkhiorgeertu: BTW, not sure how to do a console-supported 24-bits framebuffer, but some GX documentation have surfaced so I might give a go at adding some acceleration at some point and emulating a cg6 instead of a cg318:04
MelkhiorRight now I'm thinking a simple VexRiscv with no MMU or interrupt or anything, and emulate the blit, draw and font command in software18:05
Melkhiorno idea how to implement the HW cursor though...18:06
Melkhiorcg3 are *slow*18:06
Melkhiorgood night all :-)18:07
geertuMelkhior: All console acceleration has been dropped from upsream :-(18:09
geertuBut fbcon does support 24/32 bpp18:09
Melkhiorgeertu: SPARCstation have been dropped from Linux entirely, I'm using NetBSD, acceleration is still available there18:10
MelkhiorI should have been clearer: "console" as the PROM-based console, before the boot; so I need  to implement the firmware in Forth (OpenFirmware)18:11
Melkhior1-bit and 8-bits are 'easy' as there's built-in function you can use - and I just reused the code from OpenBIOS anyway :-)18:11
geertuMelkhior: oh. right18:11
Melkhior24-bits, not so easy :-(18:11
Melkhiorgeertu: you mentioned higher bit depth in a previous discussion hence my comment18:14
MelkhiorAnd maybe someday there will be a NuBus version :-) , though I don't know how the firmware work on that18:16
MelkhiorI have a IIvi in unknown condition, but it was working when put in storage many years ago18:16
Melkhiorand there's a lot more m68k vintage enthusiasts than sparc...18:18
*** peeps[zen] is now known as peepsalot19:13
*** Guest5374 <[email protected]> has quit IRC (Quit: Client closed)21:40
*** RichardSnow <RichardSnow!~RichardSn@2600:1700:8670:f390:e486:f52d:6272:c886> has joined #litex22:48
RichardSnowhi22:53
RichardSnowI was trying to rebuild the Litex VexRisv linux with build root and it fails on autoreconfiing of host-fakeroot22:55
RichardSnowI wanted to change the eth0 to use dhcp and add bind so that dns resolvss  and add a development package or two such as 4th and Python322:57
RichardSnowand openssh and lynx22:58
RichardSnowlynx22:58
*** Guest53 <[email protected]> has joined #litex23:08
*** RichardSnow <RichardSnow!~RichardSn@2600:1700:8670:f390:e486:f52d:6272:c886> has quit IRC (Quit: Client closed)23:17

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