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
digshadow has quit [Quit: Leaving.]
digshadow1 has joined #m-labs
digshadow1 has quit [Ping timeout: 240 seconds]
digshadow has joined #m-labs
acathla has quit [Ping timeout: 276 seconds]
acathla has joined #m-labs
digshadow has quit [Ping timeout: 272 seconds]
rohitksingh_work has joined #m-labs
rohitksingh_work has quit [Quit: Leaving.]
sb0 has quit [Quit: Leaving]
fengling has joined #m-labs
rohitksingh_work has joined #m-labs
sb0 has joined #m-labs
jaeckel has quit [Ping timeout: 276 seconds]
cr1901_modern has quit [Read error: Connection reset by peer]
rohitksingh_work has quit [Read error: Connection reset by peer]
jaeckel has joined #m-labs
rohitksingh_work has joined #m-labs
rohitksingh_work has quit [Read error: Connection reset by peer]
jaeckel has quit [Quit: Goodbye Cruel World]
rohitksingh_work has joined #m-labs
jaeckel has joined #m-labs
jaeckel has quit [Quit: Goodbye Cruel World]
rohitksingh_work has quit [Read error: Connection reset by peer]
kuldeep__ is now known as kuldeep
rohitksingh_work has joined #m-labs
sandeepkr has quit [Read error: Connection reset by peer]
sandeepkr__ has joined #m-labs
rohitksingh_work has quit [Read error: Connection reset by peer]
guest_ has joined #m-labs
guest_ has quit [Client Quit]
fengling has quit [Ping timeout: 268 seconds]
jaeckel has joined #m-labs
fengling has joined #m-labs
sb0 has quit [Quit: Leaving]
sb0 has joined #m-labs
rohitksingh_work has joined #m-labs
sb0 has quit [Client Quit]
cr1901_modern has joined #m-labs
rohitksingh_wor1 has joined #m-labs
rohitksingh_work has quit [Ping timeout: 264 seconds]
fengling has quit [Quit: WeeChat 1.4]
rohitksingh_wor1 has quit [Read error: Connection reset by peer]
<cr1901_modern> It dumbfounds me that jtagspi was only added to openocd within the last year
* cr1901_modern grumbles and compiles from source. Knowing my luck, that's ALSO going to go wrong
<rjo> their management style is one of the slowest (yet still crawling) i have ever seen.
<rjo> cr1901_modern: we have conda packages for win and lin
<rjo> cr1901_modern: please make some noise (review, bump): http://openocd.zylin.com/#/c/3173/
rohitksingh has joined #m-labs
<cr1901_modern> rjo: For context, I decided to move an FPGA board I need to program (minispartan6+) to a Linux SBC that I have (old Beagleboard). It's running Debian Jessie. It comes with OpenOCD 0.8. jtagspi: No such flash driver
<cr1901_modern> Oh look, openocd 0.9 was backported :D. jtagspi: No such flash driver
<cr1901_modern> rjo: Looks like it was commited already? Just not in the current stable version?
<rjo> cr1901_modern: which "it"?
<cr1901_modern> rjo: The whole patch set. But I think I misinterpeted the following line >>
<cr1901_modern> CommitterAndreas Fritiofson <andreas.fritiofson@gmail.com>Aug 13, 2016 7:16 PM
<rjo> he fixed a spelling error.
<rjo> the patch is almost one year old and brings the proxy bitstreams up to new migen. jtagspi itself is in master (0.10?)
<cr1901_modern> rjo: Okay, so just add a comment where all the "patch set X: Code-Review+1" comments are querying the status?
<cr1901_modern> "jtagspi itself is in master (0.10?)" Well that's good, but doesn't really help me in this case, since I'll have to compile from source. I hope it's better behaved than on MSYS2...
<rjo> yes. just a bump. might accelerate that process a bit.
<rjo> as i said. we have conda packages that you can use.
<rjo> but it is well behaved under debian.
<cr1901_modern> rjo: Do you have conda packages for ARM? B/c that's what I was compiling for.
<rjo> ah. no. but compiling should be smooth.
<cr1901_modern> rjo: Done
sb0 has joined #m-labs
<whitequark> sb0: how likely it is do you think that the comms CPU has broken atomics?
<sb0> why the comms CPU specifically? it's the same as the kernel CPU
<whitequark> in case it has different configuration options, but yes
<whitequark> I'm observing very bizarre behavior
<rjo> broken in gateware?
<sb0> how are the atomics implemented (and why do coroutines need atomics anyway)?
<whitequark> they don't
<whitequark> I'm using the builtin logger, which uses atomics to manage a global instance
<whitequark> on a high level, if I follow an atomic store with an atomic load immediately, then loads further down the line return the new value
<whitequark> if I do not they return the old value
<sb0> stekern, ^
<whitequark> actually it seems even weirder than that, I need to follow and precede it with an atomic load?
<whitequark> it's not very minimal...
<whitequark> but yes, it looks as if, if I surround the store with two loads, then it gets recorded, otherwise it doesn't
<whitequark> http://hastebin.com/zexonacisa is the code
<whitequark> xxx() is a black hole to avoid having loads optimize out
<whitequark> and the called routines http://hastebin.com/pijatisifa
<whitequark> I don't see anything obviously wrong there...
<whitequark> ok, nevermind, that's not a problem with atomics
<whitequark> replacing all l.lwa with l.lwz and all l.swa with l.sw didn't change a thing
<whitequark> oh, it just hangs instead now, because l.sw doesn't set sr fbit...
<stekern> can you show the code for the atomics?
<stekern> how are those used? I don't even see anything checking for the flag from l.swa
jaeckel has quit [Quit: Goodbye Cruel World]
<whitequark> do I need to check the flag if I didn't do a load-linked before?
<whitequark> what is supposed to happen is that _ZN3log17MaxLogLevelFilter3set17h38da651c9b04d548E gets called once
<whitequark> and it does that store, and puts the value there
<whitequark> then, sometime in the future _ZN3log17MaxLogLevelFilter3get17h4f60bdb38398a177E gets called many times and extracts the value
<whitequark> what I see is an apparent failure to do that store
jaeckel has joined #m-labs
mumptai has joined #m-labs
<stekern> well, the l.lwa/l.swa is supposed to be used as a pair. You start the sequence with a l.lwa, then when you do a l.swa it only succeed if the previous l.lwa was to the same address and no-one else has touched that address since the l.lwa
<stekern> ...and upon success the flag will be set
<whitequark> so how do I do a lone atomic store?
<whitequark> I don't care what was there before
<stekern> if you don't care what was there, what's wrong with just l.sw?
<whitequark> so what you're saying is that l.swa is not equivalent to e.g. a lock mov
<whitequark> and can only be used as a part of ll/sc loop. right?
<stekern> the point of l.lwa/l.swa is to be able to do an atomic RMW
<stekern> right
<whitequark> ok, so it's like ldrex/strex rather than lock mov
<whitequark> ok.
<whitequark> thanks.
sandeepkr__ has quit [Read error: No route to host]
sandeepkr__ has joined #m-labs
<sb0> _florent_, how is the jesd core coming along? have you done tests on the board already?
<_florent_> sb0: I'm doing the first tests right now: ad9516 and 9514 should be configured correctly, I'm looking if ad9154 receives the data correctly
balrog has quit [Ping timeout: 252 seconds]
<larsc> _florent_: I don't think any of the DACs care, but the spec says you should send a incrementing counter in the unused field of the ILAS
Gurty has quit [Ping timeout: 240 seconds]
<whitequark> stekern: does or1k even have a cache coherency model?
<whitequark> as in, I currently just translate atomics to corresponding loads/stores, but...
<whitequark> but that's not really legal in a weak memory model
Gurty has joined #m-labs
<whitequark> normally I would insert an appropriate barrier, but it doesn't appear that or1k defines one
<whitequark> like, there's l.msync, which, as far as the doc goes, clears the store buffer and that's it
<whitequark> it doesn't guarantee that any stores have been made visible to other cores
<GitHub63> [llvm-or1k] whitequark pushed 1 new commit to artiq-3.8: https://github.com/m-labs/llvm-or1k/commit/e6f1f10e00a56261ce177daac454e8c7dbbab0b8
<GitHub63> llvm-or1k/artiq-3.8 e6f1f10 whitequark: [OR1K] Translate non-RMW atomics to non-atomic instructions....
<GitHub156> [conda-recipes] whitequark pushed 3 new commits to master: https://github.com/m-labs/conda-recipes/compare/8fe09d2a0e90...b0d7ef147720
<GitHub156> conda-recipes/master ed6af05 whitequark: rustc: bump.
<GitHub156> conda-recipes/master ebe81ff whitequark: llvm-or1k: bump.
<GitHub156> conda-recipes/master b0d7ef1 whitequark: rust-core-or1k: bump.
<whitequark> bb-m-labs_: force build --props=package=llvm-or1k conda-lin64
<bb-m-labs_> build #221 forced
<bb-m-labs_> I'll give a shout when the build finishes
<whitequark> bb-m-labs_: force build --props=package=rustc conda-lin64
<bb-m-labs_> The build has been queued, I'll give a shout when it starts
<whitequark> bb-m-labs_: force build --props=package=rust-core-or1k conda-lin64
<bb-m-labs_> The build has been queued, I'll give a shout when it starts
<whitequark> sb0: how much do we care about the runtime being properly compilable on windows?
<whitequark> I don't want to waste buildbot time on that, I suggest doing this once when releasing
<GitHub59> [artiq] whitequark pushed 1 new commit to master: https://git.io/vPJnS
<GitHub59> artiq/master fdcb27c whitequark: Rust: add support for artiq_corelog.
<bb-m-labs_> build #221 of conda-lin64 is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/conda-lin64/builds/221
<bb-m-labs_> build forced [ETA 1h02m14s]
<bb-m-labs_> I'll give a shout when the build finishes
<bb-m-labs_> build #222 of conda-lin64 is complete: Failure [failed conda_build] Build details are at http://buildbot.m-labs.hk/builders/conda-lin64/builds/222
<bb-m-labs_> build #76 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/76
<whitequark> bb-m-labs_: force build --props=package=rustc conda-lin64
<bb-m-labs_> build forced [ETA 1h02m14s]
<bb-m-labs_> I'll give a shout when the build finishes
sandeepkr_ has joined #m-labs
sandeepkr__ has quit [Ping timeout: 272 seconds]
kuldeep has quit [Ping timeout: 244 seconds]
rohitksingh has quit [Quit: Leaving.]
sandeepkr__ has joined #m-labs
kuldeep has joined #m-labs
<bb-m-labs_> build #967 of artiq is complete: Failure [failed python_unittest_1] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/967 blamelist: whitequark <whitequark@whitequark.org>
sandeepkr_ has quit [Ping timeout: 240 seconds]
<bb-m-labs_> build #223 of conda-lin64 is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/conda-lin64/builds/223
sandeepkr_ has joined #m-labs
kuldeep has quit [Ping timeout: 276 seconds]
sandeepkr__ has quit [Ping timeout: 276 seconds]
kuldeep has joined #m-labs
mumptai has quit [Remote host closed the connection]