#timvideos

/

      • paradisaeidae_ joined the channel
      • CarlFK joined the channel
      • CarlFK
        mithro: opsis, lots of jitter
      • mithro: but the MP cables that don't say redmere but do say "active" seem to work. kinda. jitter = WER numbers on and off. 0's for 5 - 10 seconds, then 2 or 3 seconds of10,000 then back to 0's
      • oh hey, unplugging / replugging the input cable .. no errors now
      • paradisaeidae_ has quit
      • mithro
        faulteh: Poke me later today and I'll help you figure out what is going on
      • tumbleweed: Do you have a list of things you guys are going at the Debconf Video sprints next week?
      • tumbleweed
        mithro: I don't know of an agenda, yet
      • 7YUAAKJNN joined the channel
      • 7YUAAKJNN has quit
      • rohitksingh_work joined the channel
      • miselin joined the channel
      • CarlFK joined the channel
      • Bertl_oO is now known as Bertl_zZ
      • mithro
        _florent_: ping?
      • shenki: Ping?
      • _florent_
        mithro: pong
      • mithro
        _florent_: Did you see https://github.com/enjoy-digital/opsis-soc/issu... ? -- There are two options there and we need to figure out which one we want to merge
      • tpb
        Title: printfs are all screwy for some builds · Issue #28 · enjoy-digital/opsis-soc · GitHub (at github.com)
      • _florent_
        mithro: we are not going to send on uart and telnet at the same time, so first solution seems fine
      • mithro
        _florent_: I can see plenty of reasons you might want to send on both the uart and telnet at the same time?
      • _florent_
        mithro: on my side I don't need that, but maybe you have others usecases
      • hyades joined the channel
      • mithro: but I think we have to keep things simple for the baremetal firmware, in case we swich to an OS later we could have something better.
      • mithro
        _florent_: With the second one, when ethernet is disabled the wrapping effectively disappears - that does seem like it could be useful?
      • hyadez joined the channel
      • _florent_
        mithro: I think it's better to consider that we can only have one console session active
      • mithro: UART is default
      • mithro: if telnet is connected, the active session is telnet
      • mithro: and fall back to UART when disconnected
      • mithro
        _florent_: When debugging things like the telnet, don't you have both the telnet and uart connected at the same time and compare the output?
      • _florent_
        mithro: this is a specific debug case but I don't think we'll need that latter
      • mithro
        _florent_: I definitely found it really weird to open the telnet port and have the serial uart stop working
      • _florent_
        later
      • mithro
        _florent_: Well, if you want to merge the first version - I can send a pull request
      • _florent_
        mithro: ok, but in this case are you also going to handle inputs from telnet and uart too?
      • mithro: I'm ok for both, but then if we print on the UART while telnet is active we should still be able to interact with the UART
      • mithro
        _florent_: I guess we would need to modify "readstr" at https://github.com/enjoy-digital/opsis-soc/blob... for that to work
      • tpb
        Title: opsis-soc/ci.c at master · enjoy-digital/opsis-soc · GitHub (at github.com)
      • mithro
        _florent_: Looking at that code, does telnet not do remote echo?
      • _florent_
        mithro: it should, not sure
      • mithro
        _florent_: I can't see any code in readstr which sends the incoming char back to the telnet session - but I could be blind
      • _florent_: Looking at the `man telnet` it seems like telnet might do local echo by default....
      • _florent_
        mithro: yes that's probably why I removed the echo
      • mithro
        _florent_: If we don't support telnet and uart at the same time, the uart should probably respond to any input with something like "uart disabled - telnet session open" or similar
      • Otherwise I know I'm going to hit my head against this in the future and I'll have forgotten this conversation :-)
      • _florent_
        mithro: yes we can do that for now
      • mithro
        The lack of "unknown command" type error message still bites me every now and then....
      • _florent_
        mithro: you can add it
      • mithro
        I'm sometimes hopeless at doing the simple things :-P
      • _florent_
        mithro: but is we only press enter, please do not print "unknown command" :)
      • faulteh
        and throw in some tab auto-completion while you're at it :P
      • mithro
        _florent_: so after all that, I'll just send the first diff as a pull request?
      • _florent_
        mithro: that's fine for me
      • mithro
        _florent_: so, the next question is, how confident are you that litedram to will work on the Atlys (with its DDR2)?
      • And I assume you haven't had a chance to look at the minispartan?
      • _florent_
        mithro: I don't see any reason litedram will not work on the Atlys
      • mithrp: no haven't looked at the minispartan yet
      • mithro: I'll try the minispartan6 today
      • mithro
        Well, there shouldn't have been any reason the minispartan didn't work?
      • _florent_
        mithro: what is the problem? crashing while executing the firmware from dram?
      • mithro: executing formware from dram was not tested before on the minispartan
      • mithro
        The firmware would randomly lock up.
      • Memtest seemed to pass
      • (after we added a constraint)
      • tpb
        Title: Comparing enjoy-digital:master...shenki:minispartan6 · enjoy-digital/opsis-soc · GitHub (at github.com)
      • mithro
        shenki: was looking at adding a flashing led as kind of a watchdog I think
      • Let me see if I can find the logs
      • _florent_: Any thoughts on how a memtest could test for this type of problem?
      • _florent_
        mithro: memtest is really a simple dram test
      • mithro: to fully test the controller we need to generate a specific soc with bist generator/checker
      • mithro
        _florent_: bist?
      • _florent_
        built-in self-test
      • with a dma writer/dma reader
      • and wishbone writer/wishbone reader
      • working simultaneously at different location of the dram
      • mithro
        okay
      • tpb
        Title: hdmi_out not working correctly when all inputs/outputs are enabled · Issue #39 · enjoy-digital/opsis-soc · GitHub (at github.com)
      • mithro
        _florent_: What is the behaviour you were seeing in that issue?
      • _florent_
        the output dissappears and reappears
      • mithro
        _florent_: Okay, you didn't see the little white/black squares like in this recording -> https://www.youtube.com/watch?v=aEqNSR1CgLk
      • _florent_
        mithro: not, but I'm not sure I'll done enough test on the opsis to see it
      • mithro
        Yeah - I haven't investigated enough yet to verify if it does / doesn't happen on the new opsis-soc
      • It only really happen significantly when multiple inputs+outputs are all enabled
      • _florent_
        mithro: yes, probably an arbitration issue on the controller or a timing that is not respected
      • mithro
        _florent_: Yeah - it "feels like" an underflow or overflow type issue - but I was sure we use to get console notifications when that occurred previously...
      • _florent_
        mithro: we only have console notification for overflow on the input
      • mithro: here the issue is in the controller, which is not able to report thing to the CPU
      • mithro
        _florent_: I'm guessing the issue is something like it tries to read something from the buffer fifo and it is empty?
      • _florent_
        mithro: no that can be inside the controller of the dram that is returning incorrect data since we don't respect a timing
      • mithro
        ahh
      • _florent_: Is the controller likely to "know" that it has screwed up?
      • _florent_: I assume there isn't any checksums or anything
      • _florent_
        mithro: no, the sdram is not going to reports problems
      • danielki joined the channel
      • shenki
        mithro: pong
      • mithro
        shenki: I was looking at your github and I see your playing with the lm32 linux port?
      • shenki
        mithro: heh yeah. i got a bit sucked into it
      • mithro
        shenki: How far did you get?
      • shenki
        mithro: ive rebased on v4.8, and now im working through fixes to make it build
      • mithro
        shenki: Cool!
      • shenki
        the quality of the port is pretty poor by modern kernel standards
      • it will probably be easier to start over if we want to get it upstream
      • but ive not done a new arch before, so we will see
      • mithro
        shenki: are you planning on using qemu?
      • shenki
        mithro: hadn't thought about that yet. probably
      • mithro
        shenki: Guess compiling is the first task :-P
      • shenki
        mithro: is the qemu support upstream?
      • mithro
        shenki: I believe so...
      • _florent_
        mithro, shenki: if you need qemu with misoc/litex, please ask key2 on m-labs channel
      • shenki
        i compiled the old tree with the toolchain we have. it's based on 3.15. so i could try booting that too
      • mithro
      • tpb
        Title: Using QEMU - Milkymist Wiki (at m-labs.hk)
      • _florent_
        he's porting NuttX on lm32 using it
      • shenki
        oh cool
      • mithro
        Mico32 support is available in the QEMU source tree and in QEMU releases since 0.10
      • _florent_
        mithro: yes, but it's using some old milkymist stuff
      • mithro
        shenki: Is there an easy way to see the "delta" for adding lm32?
      • _florent_
        mithro: key2 just updated all that to work with misoc/LiteX
      • mithro
        _florent_: The difference would be the devices / device driver side of thing - right?
      • shenki
        mithro: with my current tree, 106 files changed, 9082 insertions(+), 366 deletions(-)
      • that incldues thinks like the milkymist ethernet driver
      • mithro
        shenki: I was more interested in seeing the actual code :-P
      • _florent_
      • tpb
        Title: key2 / qemu Bitbucket (at bitbucket.org)
      • shenki
        mithro: git checkout lm32; git diff v4.8
      • _florent_
      • tpb
        Title: untitled - asciinema (at asciinema.org)
      • key2 joined the channel
      • key2
        hi
      • mithro
        Someone should write a qemu + verilator cosimulator :-P
      • key2
        thought about it
      • _florent_
        key2: shenki is working on a linux port for lm32, he can probably be interested by what you've done with qemu & misoc/litex
      • key2
        but there would be timing issue
      • mithro
        key2: What is your interest in nuttx on misoc/litex
      • key2
        _florent_: nuttx
      • misoc/litex have cpu that look more like cortex M3-4
      • and less like an arm with mmu
      • a linux is overkill
      • slow
      • shenki
        yep
      • but it's for fun
      • key2
        well, have fun :)
      • mithro
        key2: What is your interest in nuttx on misoc/litex? Fun or do you have an actual project?
      • key2
        i mean it has no real interrest as long as you dont have a powerfull cpu
      • mithro: for the momment, fun