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
futarisIRCcloud has joined #m-labs
rohitksingh has joined #m-labs
rohitksingh has quit [Client Quit]
rohitksingh has joined #m-labs
fgmzc has joined #m-labs
davidc__ has joined #m-labs
fgmzc has quit [Remote host closed the connection]
rohitksingh_work has joined #m-labs
<GitHub50> [smoltcp] crawford opened pull request #114: Clean up dispatch_socket!() syntax (master...dispatch) https://github.com/m-labs/smoltcp/pull/114
attie has quit [Remote host closed the connection]
attie has joined #m-labs
<GitHub20> [smoltcp] whitequark pushed 1 new commit to master: https://github.com/m-labs/smoltcp/commit/3b4d6b5e097832a285f875f2f25696bfc93a9de0
<GitHub20> smoltcp/master 3b4d6b5 Alex Crawford: Clean up dispatch_socket!() syntax...
<GitHub132> [smoltcp] whitequark closed pull request #114: Clean up dispatch_socket!() syntax (master...dispatch) https://github.com/m-labs/smoltcp/pull/114
<GitHub170> [smoltcp] whitequark commented on issue #114: Thanks! https://github.com/m-labs/smoltcp/pull/114#issuecomment-355899972
<travis-ci> m-labs/smoltcp#570 (master - 3b4d6b5 : Alex Crawford): The build passed.
FabM has joined #m-labs
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
<rjo> sb0: any news on the kasli ethernet phy?
<whitequark> oh it's monday
<whitequark> rust 1.23..
attie has quit [Ping timeout: 268 seconds]
attie has joined #m-labs
<GitHub75> [smoltcp] whitequark commented on pull request #110 5883ec7: Needs to use `checked_sub` after `self.millis` becomes unsigned. https://github.com/m-labs/smoltcp/pull/110#discussion_r160108412
<GitHub72> [smoltcp] whitequark commented on pull request #110 5883ec7: You're making the same mistake here as with `Mul`, but it's more subtle. In principle, `Duration / Duration` is a meaningful operation (unlike `Duration * Duration`, which returns a physically nonsensical quantity, this returns the ratio of the two durations), but it's not *especially* useful. Instead, this should be an `impl ops::Div<u32> for Duration`.
<GitHub34> [smoltcp] whitequark commented on pull request #110 5883ec7: No, _this_ should be an unsigned value. Consider a function `fn sleep(Duration)`; how can it possibly sleep for, say, minus one minute? https://github.com/m-labs/smoltcp/pull/110#discussion_r160108274
<GitHub53> [smoltcp] whitequark commented on pull request #110 5883ec7: This doesn't make sense... Consider the units. You're multiplying `self` (seconds) by `rhs` (also seconds), so you get seconds squared. But you return seconds!... https://github.com/m-labs/smoltcp/pull/110#discussion_r160107965
<GitHub57> [smoltcp] whitequark commented on pull request #110 5883ec7: This test and the other overflow test above would fail on `cargo test --release` since that doesn't include overflow checks and you don't explicitly use checked operations. I suggest simply removing them, and letting the default Rust arithmetic rules apply to time manipulation, since 64-bit signed overflows and underflows are really not important in this
<GitHub76> [smoltcp] whitequark commented on pull request #110 5883ec7: You're making the same mistake here as with `Mul`, but it's more subtle. In principle, `Duration / Duration` is a meaningful operation (unlike `Duration * Duration`, which returns a physically nonsensical quantity, this returns the ratio of the two durations), but it's not *especially* useful. The mistake is that the returned quantity has the units of se
<rjo> whitequark: s*s is exactly as "physically meaningful" as s/s
<rjo> whitequark: (nitpick)
FabM has quit [Ping timeout: 260 seconds]
_florent_ has quit [Read error: Connection reset by peer]
_florent_ has joined #m-labs
<sb0> rjo, been busy with other things (accounting, shenzhen trip, fxqi workshop), will look into it tonight/tomorrow
<sb0> rjo, is the si5324 acting up with the artiq code?
<rjo> sb0: no idea. artiq is blocked by #886
<sb0> rjo, just flash the misoc bios (i.e. replace the binary)
<sb0> I've done that to work around the same issue on sayma before ...
<rjo> i'd still have to hack the artiq compilation to skip the bios.
<sb0> yeah, 1 line to comment out
<rjo> to test anything si5324-releated in artiq there are more changes to be done (i2c switch config for one). not just one line.
<sb0> I was answering to "i'd still have to hack the artiq compilation to skip the bios."
<sb0> that's 1 line
<rjo> sure.
<rjo> you also asked about the si5324. getting that into artiq-on-kasli is further down on my list. just making sure the HW is ok.
<GitHub35> [artiq] sbourdeauducq opened issue #887: move drivers out of tree https://github.com/m-labs/artiq/issues/887
<rjo> and i wanted to check the SFP modules but the no-name ones I got apparently don't do i2c, or i2c is broken. but they and the fiber works fine otherwise in a sufficiently ignorant switch.
<sb0> rjo, on which SFP is the Ethernet connected?
<rjo> sfp0
<sb0> ok, and it's SFP1 that has the routing issue?
<rjo> yes
<sb0> btw who had a full-chain RF setup working out of sayma (amc + rtm + allaki)? was it _florent_ ?
<rjo> i am not aware of anyone who had that working. but maybe i missed it.
<_florent_> sb0: not sure i looked the output (we probably spoke about that, but was waiting sawg to be integrated)
<sb0> but someone got RF output right? was that directly from the SMP connectors on the RTM?
<sb0> either way, with allaki the attenuator needs to be set up from artiq, with -31.5dB attenuation any signal would be drowned in noise
<sb0> (depending on time of the day and nearby EMI...)
<rjo> sb0: just for kicks i also connected sfp2 to the switch.
<GitHub6> [smoltcp] phil-opp commented on issue #94: Sorry for the delay! I renamed `sockets` to `filter` and the generic parameter for `PacketFilter` from `P` to `F`, and I changed the return type of `process_tcp`.... https://github.com/m-labs/smoltcp/pull/94#issuecomment-355951779
<whitequark> rjo: yes, badly phrased i guess
<whitequark> there's no useful quantity denoted by s*s that i'm aware of in our context is what i meant
rohitksingh_work has quit [Read error: Connection reset by peer]
<rjo> whitequark: absolutely. anyway, smoltcp is not the place to build a unit system...
<whitequark> rjo: a limited unit system for time is exactlcy what I want in smoltcp
<whitequark> time being juts u64 has already caused several bugs, one of them took weeks to find
<whitequark> well, I didn't find it, one of the contributors did
<sb0> whitequark, you wanted to put another patch onto 3.2
<sb0> waiting on that now...
<sb0> smoltcp update with bugfixes iirc
<sb0> there is also #885
<whitequark> I believe I did, let me check
<whitequark> ah no, I didn't, let me do that
<sb0> whitequark, and what about #885?
<sb0> if I understand correctly, 885 is a regression between 3.0 and 3.1?
<whitequark> that makes no sense
<sb0> hm, no, between 3.1 and current release-3
<sb0> there were all those rust upgrades...
<sb0> it would be generally good if we can avoid major changes like that on release branches, but you wanted that for the smoltcp update...
<whitequark> oh.... I know what happened
<whitequark> I removed the -g flag because of a compiler bug
<whitequark> let me try something
<GitHub96> [rust] whitequark created artiq-1.23.0 (+1611 new commits): https://github.com/m-labs/rust/compare/13221770a30d^...066c9544c91f
<GitHub96> rust/artiq-1.23.0 1322177 Nikolai Vazquez: Implement TryFrom for array reference types...
<GitHub96> rust/artiq-1.23.0 6570e4c Nikolai Vazquez: Add TryFrom tests for array reference types
<GitHub96> rust/artiq-1.23.0 a6e70b5 Nikolai Vazquez: Try to fix array TryFrom tests
<GitHub> [conda-recipes] whitequark pushed 1 new commit to master: https://github.com/m-labs/conda-recipes/commit/e913c6dba38c52a645f6e026810877bb24eebda7
<GitHub> conda-recipes/master e913c6d whitequark: rustc, rust-core-or1k: bump version to 1.23.0.
<sb0> so yes, there is #885 and that smoltcp update you wanted, then we're good for 3.2 I believe. other issues reported are either non-reproducible or need the 3.2 backtrace feature.
<whitequark> bb-m-labs: force build --props=package=rustc conda-lin64
<bb-m-labs> build forced [ETA 1m24s]
<bb-m-labs> I'll give a shout when the build finishes
<sb0> rjo, iirc the technosystem quotes expired on Jan 1st because they were planning a production run shortly after
<rjo> sb0: yes. i coordinated that with greg.
<rjo> certainly DIO_BNC
<whitequark> okay, artiq builds and runs with rustc 1.23.0
<whitequark> ... but only with -g1. either -g0 or -g2 cause an LLVM assertion failure
<whitequark> this is one of the more bizarre compiler bugs I've seen
<whitequark> something's seriously fucked in the way rustc emits debug info and/or the way llvm parses it, that's for sure. it's been very fragile for several versions
<GitHub76> [smoltcp] whitequark commented on pull request #94 17ea66e: This really should not return an `EthernetPacket`. We may not even be running over Ethernet! https://github.com/m-labs/smoltcp/pull/94#discussion_r156754547
<GitHub185> [smoltcp] whitequark commented on pull request #94 17ea66e: Same as for `process_raw`. https://github.com/m-labs/smoltcp/pull/94#discussion_r160139542
<GitHub129> [smoltcp] whitequark commented on pull request #94 17ea66e: We need to decide on one of the three possibilities here:... https://github.com/m-labs/smoltcp/pull/94#discussion_r160142870
<GitHub197> [smoltcp] whitequark commented on pull request #94 17ea66e: This is quite confusing. A packet not being accepted by any raw socket is not an error condition; this is how `process_raw` is different from e.g. `process_tcp`. Why not just use `Result<bool>` for the return value of this function? Then it'd just be `Ok(handled)`...... https://github.com/m-labs/smoltcp/pull/94#discussion_r160139473
<bb-m-labs> build #354 of conda-lin64 is complete: Failure [failed conda_build] Build details are at http://buildbot.m-labs.hk/builders/conda-lin64/builds/354
<GitHub128> [smoltcp] whitequark commented on issue #94: > I'm not sure what to do about the EthernetPacket in egress. We can't lock it down to a single type, since the function is invoked with UDP, TCP, ICMP, and raw packets. So we need some kind of packet enum. Instead of reusing EthernetPacket, we could move these four variants to a more general Packet type, but I'm not sure if it's worth it. What do you think, @whitequark?.
<whitequark> ugh, out of RAM
<whitequark> that's with 2G RAM / 1G swap
<whitequark> rustc release notes promised a 5-10% reduction in memory use! why the hell does it fail to build
<whitequark> oh, hm
<whitequark> it didn't inflate to 3g I think
<whitequark> bb-m-labs: force build --props=package=rustc conda-lin64
<bb-m-labs> build forced [ETA 1m24s]
<bb-m-labs> I'll give a shout when the build finishes
rohitksingh has quit [Read error: Connection reset by peer]
rohitksingh has joined #m-labs
FabM has joined #m-labs
<GitHub101> [misoc] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/misoc/commit/b0b5ee954fe553f46952711c6e2dbee4b1412089
<GitHub101> misoc/master b0b5ee9 Sebastien Bourdeauducq: 1000basex: connect RX restart
<bb-m-labs> build #335 of misoc is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/misoc/builds/335
<GitHub47> [smoltcp] phil-opp commented on pull request #94 17ea66e: Hmm… I don't think that variant 2 is worth the additional complexity. We can still implement it later if someone has a need for it. For me, variant 1 sounds most reasonable. However, my use case for smoltcp has all no_std features enabled, so I'm not in a good position to make this decision. https://github.com/m-labs/smoltcp/pull/94#discussion_r160168
<GitHub33> [smoltcp] phil-opp commented on pull request #94 17ea66e: Makes sense. I'll change the return type to Result<bool>. https://github.com/m-labs/smoltcp/pull/94#discussion_r160168925
<rjo> sb0: what's the the P/Ns for the "uTCA crate" now?
<rjo> sb0: NATIVE-R5 + NAT-PM-AC600D + NAT-MCH-FP0D + sayma amc/rtm for a single sayma
<sb0> rjo, I don't know what exactly Joe ordered and as I said he's been silent lately
<rjo> sb0: NATIVE-R9 + NAT-LLRF + power supply + MCH (?) + Metlino AMC + Baikal + n*Sayma for the big one with the LLRF plane
<sb0> ah you mean our P/Ns for full systems?
<sb0> those native crates can even take a core-i7 PC in them. maybe put the master there...
<GitHub75> [microscope] sbourdeauducq pushed 1 new commit to master: https://github.com/m-labs/microscope/commit/cf0348f86b8e3e6cfd723d4af0d0d170be7033f6
<GitHub75> microscope/master cf0348f Sebastien Bourdeauducq: prevent msgpack use_bin_type warning
<GitHub92> [misoc] sbourdeauducq created ethdebug (+1 new commit): https://github.com/m-labs/misoc/commit/0be657611efd
<GitHub92> misoc/ethdebug 0be6576 Sebastien Bourdeauducq: add microscope probes for kasli ethernet
<sb0> rjo, is the ftdi-jtag fixed or should I still use the xilinx cable for jtag?
<bb-m-labs> build #355 of conda-lin64 is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/conda-lin64/builds/355
<rjo> fixed. use the ~rj/src/misoc/kasli.cfg
<rjo> sorry. i was messing with the board for the last few minutes. will stop now.
<rjo> fyi, there is a novogorny connected to eem0, 1000-BX SFPs to the switch on SFP0 and SFP2, jtag patched.
<rjo> messing with pyftdi unfortunately disappears the serial port devices. will reset.
<sb0> does unloading/reloading ftdi_sio fix it?
<rjo> /sys/bus/usb/devices/1-8/authorized
<sb0> okay, openocd works
<GitHub144> [smoltcp] phil-opp commented on issue #94: I pushed a new version. Rebasing/merging led to a lot of conflicts, so I decided to implement it again instead. I added a `PacketEmitter` type and addressed your comments on `process_raw` and `process_icmpv4`.... https://github.com/m-labs/smoltcp/pull/94#issuecomment-356002541
<sb0> the GTP RX section is failing...
<sb0> rjo, reloading the fpga seems to output some junk into the UART
<rjo> junk != misoc bios banner, i guess
<rjo> iirc i have seen the first couple of lines converted into garbage quite a while ago. no idea how that happens.
<sb0> yes, i'm reloading a small test design
<sb0> direct by jtag
<rjo> if you get around to assinging mac, ip, hostname: 00:0a:35:6c:f6:14, 10.0.16.12, lauda.ber.quartiq.de
<sb0> the first microscope invokation after a fpga reload breaks. doesn't happen on kc705, nor (for once!) on sayma.
<rjo> at least on kasli and so far for me the bus powered ftdi section works fine (can cold book kasli without any usb hiccups).
<sb0> there's, of course, a bug in the implementation of this classic xilinx nonsense: https://www.xilinx.com/support/answers/53561.html
<sb0> Design Advisory for 7 Series FPGAs Transceivers Wizard v3.2 or earlier: GTH/GTP Production RX reset sequence can get stuck
<larsc> of course!
<sb0> well, that's just a bug in the wizard-generated code
<GitHub147> [misoc] sbourdeauducq pushed 2 new commits to ethdebug: https://github.com/m-labs/misoc/compare/0be657611efd...d1fedf0f1da1
<GitHub147> misoc/ethdebug 94dbd59 Sebastien Bourdeauducq: add more probes
<GitHub147> misoc/ethdebug d1fedf0 Sebastien Bourdeauducq: 1000basex: fix drpaddr width
<GitHub108> [misoc] sbourdeauducq pushed 1 new commit to ethdebug: https://github.com/m-labs/misoc/commit/e4aaae9606ce635719892657befe2b08191b3c28
<GitHub108> misoc/ethdebug e4aaae9 Sebastien Bourdeauducq: 1000basex: connect RX restart
<sb0> rjo, does kasli have a production silicon with this bug or can I try skipping this broken DRP stuff?
<rjo> you'll have to check that yourself. openocd is spitting out the revision in the idcode.
<GitHub174> [misoc] sbourdeauducq pushed 1 new commit to ethdebug: https://github.com/m-labs/misoc/commit/713d9948f77e2d7e7c831f5b0ef9b3902137362a
<GitHub174> misoc/ethdebug 713d994 Sebastien Bourdeauducq: 1000basex: fix gearbox instantiation
<sb0> it's also written on the chip
<sb0> does it have a "ES" marking?
<rjo> sb0: i don't see an ES on there https://raw.githubusercontent.com/wiki/m-labs/sinara/images/Kasli_v1.0_top.jpg nor on the other photo i sent you.
FabM has quit [Quit: ChatZilla 0.9.93 [Firefox 52.5.0/20171114221957]]
rohitksingh has quit [Quit: Leaving.]
<GitHub95> [artiq] jbqubit commented on issue #727: > [ADI has] now released their own open source JSED core, which they use for testing.... https://github.com/m-labs/artiq/issues/727#issuecomment-356062498
<whitequark> bb-m-labs: force build --props=package=rust-core-or1k conda-lin64
<bb-m-labs> build forced [ETA 32m29s]
<bb-m-labs> I'll give a shout when the build finishes
<GitHub39> [artiq] jbqubit commented on pull request #882 b173b0e: Thanks for the inline bread crumbs @hartytp. :+1 https://github.com/m-labs/artiq/pull/882#discussion_r160228757
<GitHub84> [smoltcp] whitequark commented on pull request #94 d2d553f: Let's go with variant 1 for now, then. Since a `socket-udp` feature would always depend on `proto-udp` we can backwards compatibly update to 2 if it's ever needed. https://github.com/m-labs/smoltcp/pull/94#discussion_r160230824
<bb-m-labs> build #356 of conda-lin64 is complete: Failure [failed conda_build] Build details are at http://buildbot.m-labs.hk/builders/conda-lin64/builds/356
<GitHub24> [smoltcp] whitequark commented on issue #94: > I'm not sure about the code related to has_neighbor (see the second commit). For now I added the method to the emitter trait, but I'm not sure if this is the best solution.... https://github.com/m-labs/smoltcp/pull/94#issuecomment-356101425
<GitHub> [conda-recipes] whitequark pushed 1 new commit to master: https://github.com/m-labs/conda-recipes/commit/0e790097a33a38c89a1192809e733226d18a942a
<GitHub> conda-recipes/master 0e79009 whitequark: rustc-core-or1k: fix rustc dependency.
<whitequark> bb-m-labs: force build --props=package=rust-core-or1k conda-lin64
<bb-m-labs> build forced [ETA 32m29s]
<bb-m-labs> I'll give a shout when the build finishes
<bb-m-labs> build #357 of conda-lin64 is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/conda-lin64/builds/357
<GitHub143> [artiq] whitequark pushed 3 new commits to master: https://github.com/m-labs/artiq/compare/8813aee6b151...34a5445802f1
<GitHub143> artiq/master 987a9c8 whitequark: conda: update rustc to 1.23.0.
<GitHub143> artiq/master 3a3f44a whitequark: firmware: update smoltcp.
<GitHub143> artiq/master 34a5445 whitequark: compiler: don't die if addr2line cannot extract line from backtrace....
<GitHub4> [artiq] whitequark closed issue #885: core device backtrace symbolization stumbles over `?` as line number. https://github.com/m-labs/artiq/issues/885
<rjo> whitequark: thanks!
<GitHub28> [artiq] whitequark pushed 3 new commits to release-3: https://github.com/m-labs/artiq/compare/3ba82cf19c90...24562d232e40
<GitHub28> artiq/release-3 46218c1 whitequark: conda: update rustc to 1.23.0.
<GitHub28> artiq/release-3 24562d2 whitequark: compiler: don't die if addr2line cannot extract line from backtrace....
<GitHub28> artiq/release-3 40b9a84 whitequark: firmware: update smoltcp.
<whitequark> rjo: how should I reset the Ethernet PHY on kasli?
<GitHub147> [smoltcp] dlrobertson commented on pull request #110 5883ec7: Same as above. https://github.com/m-labs/smoltcp/pull/110#discussion_r160269301
<GitHub146> [smoltcp] dlrobertson commented on pull request #110 5883ec7: Right. I'll update this. https://github.com/m-labs/smoltcp/pull/110#discussion_r160269374
<GitHub120> [smoltcp] dlrobertson commented on pull request #110 5883ec7: Why would the units be seconds here when they're milliseconds everywhere else?... https://github.com/m-labs/smoltcp/pull/110#discussion_r160269000
<dlrobertson> whitequark: a little confused why the units would change for Mul and Div.
<dlrobertson> it makes sense with libstd's Duration and the previous impl of Duration with secs and nanos
<rjo> whitequark: i don't think a reset is needed. iirc it resets itself when it looses link.
<GitHub169> [smoltcp] whitequark commented on pull request #110 5883ec7: I'm talking in terms of [dimensional analysis](https://en.wikipedia.org/wiki/Dimensional_analysis) here. Seconds and milliseconds are the same in the context. https://github.com/m-labs/smoltcp/pull/110#discussion_r160269733
<whitequark> dlrobertson: no change of seconds vs milliseconds
<whitequark> what I'm talking about is you're returning seconds squared (or milliseconds squared, if you want) as a Duration, and Duration has the base unit of seconds, not seconds squared
<dlrobertson> Yeah, that makes sense... I guess, I'm thinking of the user that just runs Duration::from_millis(some_duration * 5) since most everything else works that way
<dlrobertson> just have to document it somewhere
<bb-m-labs> build #1035 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/1035
<whitequark> dlrobertson: that should just be `some_duration * 5`
<whitequark> also, your example statement won't even work with the code you wrote...
<GitHub90> [misoc] whitequark pushed 1 new commit to master: https://github.com/m-labs/misoc/commit/3bfb128a99909c932c9bf46a466c9651ce7d1284
<GitHub90> misoc/master 3bfb128 whitequark: kc705, sayma_amc: add dedicated DDRPHY_WLEVEL configuration key....
<bb-m-labs> build #677 of artiq-win64-test is complete: Warnings [warnings python_coverage] Build details are at http://buildbot.m-labs.hk/builders/artiq-win64-test/builds/677 blamelist: whitequark <whitequark@whitequark.org>
<bb-m-labs> build #336 of misoc is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/misoc/builds/336
<bb-m-labs> build #1912 of artiq is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1912
stekern has quit [Ping timeout: 248 seconds]
stekern has joined #m-labs
futarisIRCcloud has joined #m-labs
<bb-m-labs> build #1036 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/1036
<bb-m-labs> build #678 of artiq-win64-test is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-win64-test/builds/678
<bb-m-labs> build #1913 of artiq is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1913
Gurty has quit [Ping timeout: 272 seconds]
Gurty has joined #m-labs