sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
luozijun has joined #m-labs
luozijun has quit [Ping timeout: 248 seconds]
luozijun has joined #m-labs
luozijun has quit [Ping timeout: 240 seconds]
luozijun has joined #m-labs
luozijun has quit [Ping timeout: 256 seconds]
luozijun has joined #m-labs
luozijun has quit [Ping timeout: 240 seconds]
luozijun has joined #m-labs
luozijun has quit [Ping timeout: 248 seconds]
luozijun has joined #m-labs
luozijun has quit [Ping timeout: 240 seconds]
<GitHub116> [migen] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/migen/commit/31c446ba931852c697813db1da386bdefbc146b6
<GitHub116> migen/master 31c446b Sebastien Bourdeauducq: build/tools: fix process/fd resource management when coloring
<bb-m-labs> build #225 of migen is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/migen/builds/225
luozijun has joined #m-labs
<GitHub162> [artiq] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/artiq/commit/37eb73bf5c8094b758ef442c567fc19d26f2027b
<GitHub162> artiq/master 37eb73b Sebastien Bourdeauducq: conda: bump migen
luozijun has quit [Ping timeout: 240 seconds]
<bb-m-labs> build #1011 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/1011
<GitHub53> [artiq] sbourdeauducq pushed 1 new commit to release-3: https://github.com/m-labs/artiq/commit/e14626e4322a0d9509b2bb7c9de86c833d3ff459
<GitHub53> artiq/release-3 e14626e Sebastien Bourdeauducq: conda: bump migen
<bb-m-labs> build #661 of artiq-win64-test is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-win64-test/builds/661
luozijun has joined #m-labs
<bb-m-labs> build #1891 of artiq is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1891
luozijun has quit [Ping timeout: 252 seconds]
<bb-m-labs> build #1012 of artiq-board is complete: Failure [failed conda_build] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/1012 blamelist: Sebastien Bourdeauducq <sb@m-labs.hk>
<bb-m-labs> build #1892 of artiq is complete: Failure [failed] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1892 blamelist: Sebastien Bourdeauducq <sb@m-labs.hk>
<sb0> whitequark, your misoc makefile changes have broken compatibility, release-3 doesn't build anymore with the error "Makefile:18: *** target file 'all' has both : and :: entries. Stop."
<sb0> we can stay on the old misoc in release-3 (and backport the spi bugfix), update the release-3 makefiles, or keep compatibility in misoc
mumptai_ has joined #m-labs
mumptai has quit [Ping timeout: 265 seconds]
luozijun has joined #m-labs
luozijun has quit [Ping timeout: 240 seconds]
luozijun has joined #m-labs
luozijun has quit [Remote host closed the connection]
luozijun has joined #m-labs
<GitHub39> [microscope] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/microscope/commit/feac65205fdb5416805367fff9671cd9c4f388a7
<GitHub39> microscope/master feac652 Sebastien Bourdeauducq: fix probe enable logic
<luozijun> @whitequark
<luozijun> @whitequark hi
<sb0> bb-m-labs: force build --props=package=microscope conda-lin64
<bb-m-labs> build #353 forced
<bb-m-labs> I'll give a shout when the build finishes
<GitHub> [conda-recipes] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/conda-recipes/commit/1c36353acbff16613446438dbac7c24211f3f2d5
<GitHub> conda-recipes/master 1c36353 Sebastien Bourdeauducq: microscope: 1.1
<GitHub6> [microscope] sbourdeauducq tagged 1.1 at master: https://github.com/m-labs/microscope/commits/1.1
<bb-m-labs> build #353 of conda-lin64 is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/conda-lin64/builds/353
Gurty has quit [Ping timeout: 272 seconds]
Gurty has joined #m-labs
Gurty has quit [Changing host]
Gurty has joined #m-labs
<GitHub89> [smoltcp] whitequark commented on pull request #110 ae9f28a: Please let's not hassle with this. `pub struct Timestamp { millis: u64 }` is *more than enough*, we are using it right now for a reason. Nanoseconds are completely unnecessary in a TCP/IP stack and calculations with them are a waste of time, and the additional API complexity is a nightmare. https://github.com/m-labs/smoltcp/pull/110#discussion_r15902
_whitelogger has joined #m-labs
<whitequark> luozijun: hi
<whitequark> sb0: just do s/all:/all::/
<whitequark> letme do it I guess
<whitequark> luozijun: hi
<luozijun> @whitequark can i speak chinese here ?
<whitequark> luozijun: you can but I don't think there is anyone who understands chinese in the channel
<whitequark> except rqou maybe
<whitequark> all smoltcp developers speak primarily english
<luozijun> okay :)
<luozijun> macos loopback interface has same checksum offload problem ?
<whitequark> I don't know
<whitequark> I don't work with macos often, I never touched its networking
<whitequark> what is the checksum? can you print it with tcpdump/wireshark?
<luozijun> raw packet tcp checksum.
<whitequark> I mean, what is the value? if it's always 0 then it is checksum offload.
<luozijun> oh, wireshark's gui is ugly on macos ...
<luozijun> @whitequark i will check later.
<sb0> whitequark, what was the idea behind the ::?
<whitequark> sb0: move .PHONY into common.mak, kill $(ALL_TARGETS) and instead do things like ifeq (...) all:: endif
<sb0> whitequark, isn't it simpler/cleaner to modify the release-3 makefiles? you said you wanted clean makefiles.
<whitequark> yes, that's what I want to do
<whitequark> my previous message was an explanation for ::
<GitHub140> [ionpak] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/ionpak/commit/fe088d7bba189d4b0edf584b69c8b3974a1dce5a
<GitHub140> ionpak/master fe088d7 Sebastien Bourdeauducq: update errata
AceChen has quit [Ping timeout: 255 seconds]
<GitHub80> [compiler-builtins] whitequark pushed 3 new commits to artiq: https://github.com/m-labs/compiler-builtins/compare/97916b17ca54...1c765adbe8e2
<GitHub80> compiler-builtins/artiq 71bc7b5 whitequark: comparesf2/comparedf2: use i32 instead of bool for return type....
<GitHub80> compiler-builtins/artiq 1c765ad whitequark: comparesf2/comparedf2: fix a signedness bug and add tests.
<GitHub80> compiler-builtins/artiq ba8ea23 whitequark: comparesf2/comparedf2: do not build the C versions of intrinsics.
AceChen has joined #m-labs
cr1901_modern has quit [Read error: Connection reset by peer]
cr1901_modern has joined #m-labs
<sb0> whitequark, what is this compiler-builtin stuff?
<sb0> did you write the code in those last commits or does it come from somewhere else?
<rjo> sb0: could you look at the a7 ddr phy? (bios/sdram.c:(.text.sdrwlon+0x40): undefined reference to `ddrphy_wlevel_en_write')
<sb0> rjo, what is the litex code there?
<rjo> sb0: i don't know
<sb0> what is happening is simply that the a7ddrphy core doesn't have the ddrphy_wlevel_en CSR
<sb0> _florent_ developed some other technique for write timing...
<sb0> iirc the corresponding part in the bios should be skipped, and then there is manual adjustement of the PLL phase
<sb0> probably annoying trial-and-error
<sb0> there is only one SDRAM chip, so write leveling isn't really needed
<rjo> could you give it a shot? i am reluctant to touch the preprocessor gymnastics and have little experience with sdram.
<sb0> I need a kasli
<sb0> can be remote
<rjo> exactly. will be sb@murray.ber.quartiq.de
<sb0> are they shipping one to HK anyway?
<sb0> rjo, btw the hmc830 is locking again (may or may not be thanks to the spi fix)
<sb0> but RF output stays at 0
<rjo> sb0: and jesd works (prbs etc)?
<rjo> and what do you mean by "RF output"?
<sb0> scope on allaki output
<sb0> prbs is waiting on _florent_
<rjo> kasli is at /dev/serial/by-path/pci-0000:00:14.0-usb-0:8:1.[0123]-port0
<sb0> you received it already?
<rjo> sure
<rjo> i don't know about the one to hk
<sb0> well then they didn't ship it I suppose
<sb0> whitequark, how does one load firmware with that new bootloader of yours?
<sb0> can it be done without artiq_devtool?
<sb0> whitequark, also, there should be an easy way to erase the runtime from the flash...
<sb0> or some other mechanism to access network firmware download easily. and you are certainly aware that ethernet on sayma is a total shit-show so we need to load through some other means for now.
<rjo> sb0: if you want to try 1000base-x, sfp0 is connected to the switch.
<sb0> ah, the drtio transceivers on sayma begin to communicate. the cpll is locking now for some reason
<sb0> _florent_, which vivado version are you using?
<sb0> rjo, do you want to look into the sayma problems? maybe implement prbs?
<sb0> rjo, what is the command for getting scope screenshots again?
<_florent_> sb0: i'm probably using the last version of vivado, don't remember the number
<_florent_> sb0: for cpll that is locking or not, since we are using clocks generated by rtm for drtio, we need the clocking chain to be working (hmc830, hmc7043), so maybe the hmc830 that is now locking can explain that?
<_florent_> sb0: for dram on artix7, you will indeed need manual adjustment for write, you can probably reuse the same parameters i used (i got them working on several boards).
<_florent_> sb0: for the rest, it's similar to kintex7
<rjo> sb0: i'll look at it.
<rjo> sb0: ds1054z save-screen 192.168.1.132
wingdu has joined #m-labs
cr1901_modern1 has joined #m-labs
cr1901_modern has quit [Ping timeout: 240 seconds]
<sb0> _florent_, no, I'm clocking the transceiver from the Si5324 to get the RTM out of the equation
<_florent_> sb0: ok
<sb0> it looks like the vivado trash is misbehaving, whether the cpll locks or not seems to depend on what is connected to its output. trying to confirm that...
<sb0> _florent_, btw one way to break serwb is to start artiq, then reload the amc fpga without reloading the rtm fpga
<sb0> this is 100% reproducible AFAICT
<_florent_> sb0: ok, only on sayma1 or on all boards (because i don't remember having this behaviour)
<sb0> trying on sayma1 right now
wingdu has quit [Quit: wingdu]
<_florent_> ok, the amc should reset the rtm on startup, so yes something is miss behaving
wingdu has joined #m-labs
<rjo> sb0: did you check your rtio channel numbers?
<sb0> rjo, going through this sort of thing right now, but now the DACs won't initialize. I typically get "bad SYNC" on at least one of them
<rjo> then there is no point in looking at the outputs yet.
<sb0> well they initialized before ...
<rjo> then i'll check the higher layers around sawg and you and _florent_ work on the jesd bootstrap. ok?
<sb0> retrying the intialization seems to end up suceeding
<sb0> after 4-5 attempts
<sb0> (in firmware)
<sb0> could be this long-standing bug that we also had on kc705
<sb0> rjo, the ds1054 program just freezes
<rjo> sb0: as you know, the scope tends to crash. and the program is badly written.
<GitHub178> [misoc] enjoy-digital pushed 1 new commit to master: https://github.com/m-labs/misoc/commit/afa38d46d5968aa4f3597910f5797071a2b9c7ef
<GitHub178> misoc/master afa38d4 Florent Kermarrec: bios/sdram: add artix7 support (no write leveling)
<sb0> I got a capture eventually... it just takes a long time
<sb0> flat traces, of course.
<_florent_> sb0, rjo: misoc bios should now support a artix7 ddr phy (tested on litex)
<sb0> rjo, the firmware hack is "while !dac_cfg(dacno).is_ok() {}" in libboard_artiq/ad9154.rs
<sb0> _florent_, thanks!
<bb-m-labs> build #327 of misoc is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/misoc/builds/327
<_florent_> sb0: so to have ddr working on kasli, i think the only thing you need to do is create a sys4x_dqs clock with 90°phase shift (validated on several design with 100MHz cpu/DDR800
<GitHub106> [artiq] cjbe commented on issue #865: @whitequark I have not been able to reproduce this problem, even with the gateware version that I originally observed it on. It is possible that it only happens after the KC705 or switch has been power-cycled - I will test this next week when I will have physical access to the hardware again. https://github.com/m-labs/artiq/issues/865#issuecomment-354467978
wingdu has quit [Quit: wingdu]
luozijun has quit []
<sb0> now the cool new problem: I need at least two sayma boards working for drtio, but at each power-cycle, 1V8 fails on at least one of them
wingdu has joined #m-labs
<rjo> sb0: kasli with-etherner: software/libnet/microudp.c:(.text.eth_init+0x8): undefined reference to `ethphy_crg_reset_write'
<sb0> remove that reset
<sb0> basically, remove the entire eth_init function
<GitHub60> [microscope] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/microscope/commit/203ad6b7db33d8ffb1565c2b330ce209c21afef2
<GitHub60> microscope/master 203ad6b Sebastien Bourdeauducq: add monitor feature
<sb0> _florent_, the cpll seems completely random
<sb0> so I'm sending 150MHz from the Si5324, and the output seems correct (at least it is correct on the other Si5324 output that goes to the FPGA fabric on Sayma)
<sb0> I have CPLL_FBDIV=5, CPLL_FBDIV_45=4, CPLL_REFCLK_DIV=1, RXOUT_DIV=2, TXOUT_DIV=2
<sb0> CPLLREFCLKSEL=0b001
<sb0> and I have GTREFCLK0 connected to the 150MHz input through a IBUFDS_GTE3, using the O output and CEB=0
<sb0> iirc I can also put a BUFG in addition to the GTREFCLK0 at the output of the IBUFDS_GTE3, so I'll try that and double-check that the FPGA receives the Si clock correctly
<sb0> maybe the ltc6957 clock buffer is acting up, idk if Greg tested that
cr1901_modern1 is now known as cr1901_modern
dlrobertson has quit [Quit: WeeChat 2.0]
wingdu has quit [Ping timeout: 255 seconds]
<GitHub100> [misoc] jordens pushed 2 new commits to master: https://github.com/m-labs/misoc/compare/afa38d46d596...2e505b9c79cd
<GitHub100> misoc/master 961b77c Robert Jordens: libnet: optional ethphy_crg_reset
<GitHub100> misoc/master 2e505b9 Robert Jordens: kasli: periods are in ns
<bb-m-labs> build #328 of misoc is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/misoc/builds/328
wingdu has joined #m-labs
<rjo> kasli fails timing on a 12 LUT path in mor1kx from pic to dcache tag_ram.
<GitHub54> [misoc] jordens pushed 1 new commit to master: https://github.com/m-labs/misoc/commit/44bbe5e9661f65bceb1bd4e35923f327a030186c
<GitHub54> misoc/master 44bbe5e Robert Jordens: kasli: COMPRESS, CFGBVS, CONFIG_VOLTAGE
<bb-m-labs> build #329 of misoc is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/misoc/builds/329
<whitequark> sb0: you can't do it right now via the bootloader, I am working on it
<whitequark> same about accessing the netboot mode directly
<whitequark> however, you can still easily load the firmware via artiq_devtool right now, do `artiq_devtool build hotswap` or `artiq_coreboot hotswap runtime.bin` if you don't want to use devtool
<whitequark> assuming a working firmware is there in the flash
<whitequark> I'll get it fixed in a day or so
<whitequark> sb0: regarding compiler-builtins, I wrote that code
<whitequark> compiler-builtins is the Rust reimplementation of libcompiler
<whitequark> libcompiler-rt as well as stdlib functions like memset, memcpy, etc that LLVM will emit itself
<whitequark> it was missing a single builtin (soft-float comparison) so I wrote that, and now we have one less C dependency...
<GitHub140> [artiq] jordens pushed 1 new commit to master: https://github.com/m-labs/artiq/commit/379d29561bb327a6eccca9a43ddc4ad1d031262c
<GitHub140> artiq/master 379d295 Robert Jordens: sayma: plausibility assertion on sawg data stream
<bb-m-labs> build #1013 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/1013
<bb-m-labs> build #662 of artiq-win64-test is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-win64-test/builds/662
<bb-m-labs> build #1893 of artiq is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1893
wingdu has quit [Ping timeout: 252 seconds]
wingdu has joined #m-labs
<GitHub17> [smoltcp] dlrobertson commented on issue #110: @jordens and @whitequark updated to address your concerns https://github.com/m-labs/smoltcp/pull/110#issuecomment-354491011
wingdu has quit [Quit: wingdu]
balrog has quit [Ping timeout: 256 seconds]