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
mumptai has quit [Quit: Verlassend]
rohitksingh_work has joined #m-labs
sandeepkr has quit [Ping timeout: 246 seconds]
sandeepkr has joined #m-labs
_whitelogger_ has joined #m-labs
rohitksingh_work has quit [Read error: Connection reset by peer]
<sb0> rjo, jesd_control_ready_read never goes to 1, any idea what is going wrong?
<sb0> clock chip acting up and transceiver not initializing?
<sb0> _florent_, hm, looks like it's independent of the transceivers?
<sb0> it would still need a transceiver clock though?
<rjo> sb0: under what circumstances?
<sb0> on the DAC side I do get SERDES_PLL_LOCK_RB in PLL_STATUS
<sb0> rjo, just running my rust code which is supposed to be an equivalent of dac_setup.py, but of course that couldn't go well
<sb0> it freezes waiting for jesd_ready
<rjo> sb0: the equivalent of startup_kernel ran fine and the pll in the kc705 locks?
<sb0> oh, I'm only doing the clock_setup part of startup_kernel
<sb0> I didn't include self.ad9154.jesd_enable(0) and self.ad9154.init() before
<sb0> could be that ...
<sb0> and yes, that clock_setup part runs fine afaict (returns and the clock chip ID is correct)
<sb0> rjo, you are talking about the RTIO PLL right?
<rjo> and the synthnv is still connected, set to the right frequency?
<rjo> yes.
<sb0> does the JESD gateware require it somewhere? it is held in reset while that code is executing
<sb0> should I un-reset it?
<rjo> it would be an indicator that the clocking is not correct.
<rjo> you can un-reset after clock_setup()
<rjo> and verify lock (i.e. the equivalent of activating the external rtio clock when starting dac_setup.py
<rjo> )
<sb0> PLL locks, and running the DAC initialization with the PLL running solved the JESD ready problem for some reason
<sb0> what are self.ad9154.jesd_enable(0) and self.ad9154.init() for in startup_kernel?
<sb0> afaict they can be left out
kuldeep has quit [Remote host closed the connection]
kuldeep_ has joined #m-labs
felix_ has quit [*.net *.split]
larsc has quit [*.net *.split]
felix_ has joined #m-labs
<sb0> next in yak shaving, ds1054z crashes with NameError: display_data: didn't receive the right number of bytes
<sb0> resetting the scope does nothing
<sb0> bah, it works anyway when ignoring the exception
<rjo> ad9154.init() inits the spi bus for both chips. jesd_enable(0) can be left out afaics.
<rjo> unless you run startup_kernel manually.
fengling has quit [Ping timeout: 268 seconds]
<sb0> how do I restore scope settings?
<GitHub78> [artiq] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/artiq/commit/6b7e6a53f7cbe1d78e6d10d8b3fc0d205d5abf96
<GitHub78> artiq/master 6b7e6a5 Sebastien Bourdeauducq: firmware: ad9154 timeouts and logging
kmehall has quit [Quit: No Ping reply in 180 seconds.]
kmehall has joined #m-labs
<sb0> oh and the reason I need the RTIO PLL operating for the JESD ready to come high is "AsyncResetSynchronizer(self.cd_jesd, ResetSignal("rio_phy"))"
<sb0> so this is explained
<sb0> is it the best way to generate that reset though? i'd rather put that on the system reset
<rjo> cd_jesd is not valid until very late.
<rjo> only after clock_setup()
<sb0> okay, so it should probably have its own CSR
<sb0> also, shouldn't there be some delay after the AD9516 is set up?
<sb0> or busy-waiting on its lock status
rohitksingh has joined #m-labs
<rjo> until what? the ad9516 needs no locking.
<rjo> csr is fine.
<sb0> how much time does it take to generate valid clocks after UPDATE_ALL_REGISTERS?
<sb0> we're configuring a VCO divider before, it sounds like that would need locking
<rjo> should be "instantly".
<sb0> ok...
<rjo> divider for some external vco.
<rjo> external or internal but we don't use the internal one.
<bb-m-labs> build #293 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/293
<sb0> rjo, how do I set up the scope to view the DAC output?
<sb0> should we delete merged branches (drtio, phaser, phaser2)?
<bb-m-labs> build #1192 of artiq is complete: Failure [failed python_unittest_1] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1192 blamelist: Sebastien Bourdeauducq <sb@m-labs.hk>
<GitHub39> [artiq] sbourdeauducq created phaser2-rust-init (+1 new commit): https://github.com/m-labs/artiq/commit/7ff77bceacd1
<GitHub39> artiq/phaser2-rust-init 7ff77bc Sebastien Bourdeauducq: move AD9616 and AD9154 initialization to firmware
larsc has joined #m-labs
fengling has joined #m-labs
fengling has quit [Ping timeout: 268 seconds]
<rjo> leave them for now. i don't think they hurt or cost.
<rjo> but imho the main wiki page can be cleared.
<rjo> sb0: if it is still connected and left as before there's nothing to be done with the scope.
fengling has joined #m-labs
<sb0> I have reset it
<sb0> (power cycled)
mumptai has joined #m-labs
_rht has joined #m-labs
<rjo> it remembers its settings. should still be something like 200 mV/div, 200 ns/div, trigger on 2, 0.1V
fengling has quit [Ping timeout: 268 seconds]
fengling has joined #m-labs
<GitHub148> [artiq] jordens closed issue #615: SPI transfer last bit is copy of first bit https://github.com/m-labs/artiq/issues/615
<GitHub60> misoc/master 15000af Robert Jordens: spi: fix xfers with full data_width (closes m-labs/artiq#615)
<GitHub60> [misoc] jordens pushed 1 new commit to master: https://github.com/m-labs/misoc/commit/15000af43611bbe8be13cb2b016e408f043202cd
<bb-m-labs> build #190 of misoc is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/misoc/builds/190
<sb0> sigh
<sb0> flat scope display.
<whitequark> ok, trying to use xargo was a mistake.
<sb0> rjo, btw, running demo.py causes "artiq.coredevice.exceptions.RTIOBusy: RTIO busy on channel 22", and it breaks demo_2tone.py with "artiq.coredevice.exceptions.RTIOBusy: RTIO busy on channel 16" until the device is rebooted
<whitequark> the Rust core implements quite a few of features for freestanding, and which it doesn't, it ignores completely
<whitequark> whereas 3rd party crates that are supposed to "provide" that are full of bugs
<whitequark> I'm just going to fix the Makefile we have.
<GitHub79> [artiq] jordens pushed 1 new commit to master: https://github.com/m-labs/artiq/commit/9a80b8d5331c4703c0d5ea889d46b4b70fee1f72
<GitHub79> artiq/master 9a80b8d Robert Jordens: spi: fix xfers with full data_width (closes #615)...
<GitHub106> [artiq] jordens pushed 1 new commit to release-2: https://github.com/m-labs/artiq/commit/660b067708e3e0d33362a0b66dec7ef5b8ac296b
<GitHub106> artiq/release-2 660b067 Robert Jordens: spi: fix xfers with full data_width (closes #615)...
<rjo> sb0: demo_2tone worked fine when i tried it last.
<sb0> I suspect this has to do with using break_realtime() instead of reset() at the beginning ...
<rjo> sb0: ah. demo.py. also that worked when i tested it last.
<rjo> sb0: but yes. maybe.
<sb0> what about switching to misoc spi in artiq master?
<GitHub28> [artiq] sbourdeauducq pushed 2 new commits to phaser2-rust-init: https://github.com/m-labs/artiq/compare/7ff77bceacd1...8e9be41c73c2
<GitHub28> artiq/phaser2-rust-init 8e9be41 Sebastien Bourdeauducq: reset core device in phaser examples
<GitHub28> artiq/phaser2-rust-init d29ec22 Sebastien Bourdeauducq: remove stale phaser startup kernel
<bb-m-labs> build #294 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/294
<rjo> sb0: that's already done. the wishbone wrapper is in artiq. one could move that to misoc as well if there is need.
rohitksingh has quit [Quit: Leaving.]
<cr1901_modern> I thought the reason the wishbone wrapper was in artiq in the first place was due to chained xfers (which CSR by design can't really support)
<sb0> okay so phaser still works on master
<sb0> how the fuck did my code changes cause the busy errors...
<bb-m-labs> build #1193 of artiq is complete: Failure [failed python_unittest_1] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1193
_whitelogger has joined #m-labs
Neuron1k has joined #m-labs
mithro has joined #m-labs
<bb-m-labs> build #295 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/295
<cr1901_modern> rjo: Did you have anything to do w/ the JTAG lm32 feature, such as implementing OpenOCD support?
<cr1901_modern> cc: mithro ^^
<sb0> cr1901_modern, that was mwalle
<cr1901_modern> Ahhh. At least two boards I have are crashing after a few iterations of any loop (printf, uart, dummy loop) during firmware boot using lm32
<sb0> rjo, what does the busy signal depend on? the sawg logic doesn't get any feedback from jesd, right?
<sb0> if the ad9516 clock frequency was off, everything would get scaled down and this wouldn't cause busy errors either
<sb0> what the hell
<bb-m-labs> build #1194 of artiq is complete: Failure [failed python_unittest_1] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1194 blamelist: Robert Jordens <rj@m-labs.hk>
<GitHub159> [misoc] whitequark pushed 1 new commit to master: https://github.com/m-labs/misoc/commit/d8d5d54b55c529f5595f16a4a976a5bc4e3c0fb9
<GitHub159> misoc/master d8d5d54 whitequark: integration: generate bare rust-cfg file.
<bb-m-labs> build #1195 of artiq is complete: Exception [exception interrupted] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1195 blamelist: whitequark <whitequark@whitequark.org>
<GitHub137> [artiq] whitequark pushed 1 new commit to master: https://github.com/m-labs/artiq/commit/c2d86c4f67d289ae38463fda8127e6d969f7d8ff
<GitHub137> artiq/master c2d86c4 whitequark: firmware: apply build flags globally, move --cfg handling to build.rs.
<whitequark> sb0: use the ksupport build.rs in any library you need cfg flags in
<whitequark> (we can even extract it into its own dev-dependency crate but I didn't bother)
<bb-m-labs> build #191 of misoc is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/misoc/builds/191
<sb0> whitequark, thanks
<GitHub116> [artiq] sbourdeauducq pushed 1 new commit to phaser2-rust-init: https://github.com/m-labs/artiq/commit/318dbb699b486543403ef64dcba2b68dee05420c
<GitHub116> artiq/phaser2-rust-init 318dbb6 Sebastien Bourdeauducq: fix phaser device_db SAWG channel numbers
<sb0> pfui! working :)
<bb-m-labs> build #296 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/296
<rjo> cr1901_modern: no.
<GitHub161> [artiq] sbourdeauducq pushed 2 new commits to master: https://github.com/m-labs/artiq/compare/c2d86c4f67d2...9b4c1ddc8e25
<GitHub161> artiq/master 9b4c1dd Sebastien Bourdeauducq: libboard: use --cfg
<GitHub161> artiq/master fbf5a4d Sebastien Bourdeauducq: Merge branch 'phaser2-rust-init'
<GitHub187> [artiq] sbourdeauducq deleted phaser2-rust-init at 318dbb6: https://github.com/m-labs/artiq/commit/318dbb6
<GitHub181> [artiq] whitequark commented on commit 9b4c1dd: This isn't needed because there are no files directly used from libboard using `#[path] mod ...` https://github.com/m-labs/artiq/commit/9b4c1ddc8e25f04f7a25569100964fd76102ff9e#commitcomment-20351462
<GitHub44> [artiq] whitequark pushed 1 new commit to master: https://github.com/m-labs/artiq/commit/c2ba718efa05f8b74a16c192acf7dcdf5e18d02b
<GitHub44> artiq/master c2ba718 whitequark: firmware: remove unnecessary --cfg injection.
<bb-m-labs> build #1196 of artiq is complete: Failure [failed python_unittest_1] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1196
<bb-m-labs> build #297 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/297
<bb-m-labs> build #1197 of artiq is complete: Failure [failed python_unittest_1] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1197 blamelist: whitequark <whitequark@whitequark.org>, Sebastien Bourdeauducq <sb@m-labs.hk>
<sb0> whitequark, building locally fails with or1k-linux-ld: cannot find cargo-ksupport/or1k-unknown-none/debug/libksupport.a: No such file or directory
<whitequark> sb0: can you post the entire verbose log
<sb0> how do I make it "verbose"?
<whitequark> make V=1 ?
<whitequark> you've added that feature...
sandeepkr_ has joined #m-labs
sandeepkr_ has quit [Read error: Connection reset by peer]
<whitequark> sb0: that's not the entire verbose log, that's just the linker part
<sb0> the entire log doesn't say much more, https://paste.debian.net/906244/
<whitequark> that's a completely different error!
<sb0> mh
<sb0> fuck
<sb0> what is going on again
_rht has quit [Quit: Connection closed for inactivity]
<GitHub174> [artiq] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/artiq/commit/455250b3f93e1daeed35b6ce0fd6bafaf0126689
<GitHub174> artiq/master 455250b Sebastien Bourdeauducq: remove DDS_AD9914 and DDS_ONEHOT_SEL
<bb-m-labs> build #298 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/298
<bb-m-labs> build #1198 of artiq is complete: Failure [failed python_unittest_1] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1198 blamelist: Sebastien Bourdeauducq <sb@m-labs.hk>
<whitequark> sb0: bizarre
<whitequark> is the file there?
mumptai has quit [Remote host closed the connection]