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
davidc___ is now known as davidc__
rohitksingh_work has joined #m-labs
kmehall has quit [Quit: No Ping reply in 180 seconds.]
kmehall has joined #m-labs
kmehall has quit [Remote host closed the connection]
kmehall has joined #m-labs
<sb0> rjo, do you really think it's a good idea to store the urukul scan sync result into the eeprom instead of the device database?
<sb0> it would work just as well in the ddb afaik, and it's more transparent than the eeprom that is relatively difficult to access
<sb0> the only thing is the user would have to copy/paste results from the calibration kernel into the ddb
hartytp has joined #m-labs
<rjo> i think writing to the eeprom is much simpler than having the user run calibrations, edit device databases, compiling startup kernels, flashing them.
<rjo> the best solution is one that i don't have to interact with.
<sb0> whether it's in the eeprom or not doesn't change whether this involves startup kernels
<sb0> also, why the eeprom and not the existing flash storage?
<rjo> the urukul eeprom seems to be the appropriate place for urukul related calibration data. does the right thing if you swap them. but i don't insist on that. writing the urukul eeprom is literally a handful lines of code.
<sb0> what about debugging? there is already infrastructure for e.g. accessing the flash storage from the host, but not the eeprom
<rjo> if the data is in the eeprom and not in the device db, then you don't have to reflash the startup kernel each time the calibration drifts a bit.
<sb0> drtio can be problematic as well
<sb0> there's also a cable delay in there, so swapping doesn't always work
<sb0> if cables have different lengths
<rjo> i think i2c through drtio needs to land sooner or later anyway.
<rjo> yes. it won't work in those cases. but that's not an argument against enabling it in the cases where it works.
<rjo> accessing the eeprom from the host sounds much easier than figuring out and maintaining the mapping of that calibration data space and the various urukuls. also the cli tools might be what you use all the times. but they are rarely used by users. and consequently stuff goes wrong all the time if you force them to use the CLI tools. and the configuration/setup overhead of a system is already large enough. why
<rjo> add another iteration of generating and copypasting calibration data?
<sb0> using those eeproms for storing anything other than a hardware ID is redundant with the flash storage
<rjo> no
<rjo> is there even a api to access the flash storage from kernels?
<sb0> there is low-level i2c, which is also supported through drtio
<sb0> but is that the right interface?
<sb0> also we may want to support flash storage over drtio to recalibrate saymas
<rjo> nice. so that might even work over drtio without too much headache then.
<rjo> i think sayma rtm/amc also have i2c eeproms.
<sb0> conceptually it is redundant with the flash storage, and this calibration data is something that is linked to a kasli+urukul combination
<sb0> just like it is linked to a amc+rtm combination
<rjo> ultimately, if i do calibration of offsets, gain errors, dds amplifier power curves etc, i'd want to store that in the i2c eeprom. then calbiration can be done at the factory and you can move it over.
<sb0> also for sayma it is handled by firmware, not kernels
<rjo> you are saying that one storage is generally redundant with another storage?
<rjo> i think there are important differences between the different storages that we have.
<sb0> for things that are dependent on the card with the eeprom *only*, like type of hardware, MAC address, offsets, then the eeprom is ok
<sb0> but the sync timing involves the kasli, the cable and the urukul
<rjo> the storage seems to be a pretty bad choice for this. the file system is pretty crappy i.e. if you throw all the different kinds of things into it then you'll run into problems with the block becoming full. then you'll need tooling to automate the compression and re-writing.
<rjo> the eeproms give you a natural hierarchy and can be accessed at the granularity you want.
<sb0> there is already code for cleaning up a full sector, which is buggy, but should get fixed this week
<sb0> it's not a complicated fix
<rjo> i2c isn't complicated either
<sb0> but the storage needs to be fixed anyway
<rjo> my guess is that the flash storage will have other problems that will show up when somebody wants to have larger startup and idle kernels.
<rjo> but we also need the i2c stuff for eem enumeration and ddb generation
<sb0> fine. keep at that and do not try to use it for writing stuff...
<rjo> but we need support for writing the eem-local calibration stuff anyway.
<sb0> speaking of device db autogeneration, there will be a problem to detect if a card is in 1-EEM or 2-EEM mode
<rjo> why?
<sb0> ah no, i misread the urukul sch
siruf has quit [Ping timeout: 265 seconds]
siruf has joined #m-labs
siruf has quit [Remote host closed the connection]
siruf has joined #m-labs
rohitksingh_wor1 has joined #m-labs
rohitksingh_work has quit [Ping timeout: 268 seconds]
<GitHub13> [smoltcp] whitequark commented on pull request #255 565cdad: This docstring wasn't particularly great; I fixed it. https://github.com/m-labs/smoltcp/pull/255#discussion_r206489550
<GitHub162> [smoltcp] whitequark commented on issue #255: @m-labs-homu r+ https://github.com/m-labs/smoltcp/pull/255#issuecomment-409187253
<GitHub141> [smoltcp] m-labs-homu commented on issue #255: :pushpin: Commit 565cdad has been approved by `whitequark`
<GitHub76> [smoltcp] m-labs-homu pushed 2 new commits to auto: https://github.com/m-labs/smoltcp/compare/42780f311fa9...1fbcfb09e1b4
<GitHub76> smoltcp/auto 1fbcfb0 Astro: Add IpAddress.to_prefix_len()...
<GitHub76> smoltcp/auto 7920f84 Astro: Add a few DHCP options...
<GitHub32> [smoltcp] m-labs-homu commented on issue #255: :hourglass: Testing commit 565cdad4de19b16c73e65778514da56731cc6273 with merge 1fbcfb09e1b4165a2778d6ab55bbbc462444dfa1... https://github.com/m-labs/smoltcp/pull/255#issuecomment-409187304
<GitHub81> [smoltcp] whitequark commented on pull request #244 00a5dc2: Same as above. https://github.com/m-labs/smoltcp/pull/244#discussion_r206491608
<GitHub128> [smoltcp] whitequark commented on pull request #244 00a5dc2: `returns the route it deleted, if any` https://github.com/m-labs/smoltcp/pull/244#discussion_r206491812
<GitHub154> [smoltcp] whitequark commented on pull request #244 00a5dc2: `IPv6 gateways` https://github.com/m-labs/smoltcp/pull/244#discussion_r206493198
<GitHub65> [smoltcp] whitequark commented on pull request #244 00a5dc2: `IPv4 gateway`. https://github.com/m-labs/smoltcp/pull/244#discussion_r206492603
<GitHub93> [smoltcp] whitequark commented on pull request #244 00a5dc2: `IPv4 gateway` https://github.com/m-labs/smoltcp/pull/244#discussion_r206492242
<GitHub48> [smoltcp] whitequark commented on pull request #244 00a5dc2: This function should use `self.add_route`. https://github.com/m-labs/smoltcp/pull/244#discussion_r206492202
<GitHub181> [smoltcp] whitequark commented on pull request #244 00a5dc2: This docstring isn't informative at all. What does "registered on cidr" mean? It's not clear from the documentation whether this function would only return a route that is an exact match or any route matching the argument.... https://github.com/m-labs/smoltcp/pull/244#discussion_r206491539
<GitHub85> [smoltcp] whitequark commented on pull request #244 00a5dc2: Once again, inconsistent naming with `del_route`. https://github.com/m-labs/smoltcp/pull/244#discussion_r206492583
<GitHub125> [smoltcp] whitequark commented on pull request #244 00a5dc2: This function should use `self.get_route`. https://github.com/m-labs/smoltcp/pull/244#discussion_r206492326
<GitHub157> [smoltcp] whitequark commented on pull request #244 00a5dc2: This function should be called `delete_route` (or `remove_route`; not `del_route`). https://github.com/m-labs/smoltcp/pull/244#discussion_r206491837
<GitHub194> [smoltcp] whitequark commented on pull request #244 00a5dc2: This function returns exactly one route. https://github.com/m-labs/smoltcp/pull/244#discussion_r206493254
<GitHub43> [smoltcp] whitequark commented on pull request #244 00a5dc2: `IPv4 gateway` https://github.com/m-labs/smoltcp/pull/244#discussion_r206492269
<GitHub127> [smoltcp] whitequark commented on pull request #244 00a5dc2: Why is this a TODO if you already return an iterator? https://github.com/m-labs/smoltcp/pull/244#discussion_r206493164
<GitHub132> [smoltcp] whitequark commented on pull request #244 00a5dc2: This function should use `self.remove_route`. https://github.com/m-labs/smoltcp/pull/244#discussion_r206493288
<GitHub99> [smoltcp] whitequark commented on pull request #244 00a5dc2: The naming of this function is inconsistent with `set_*_default_route`. Either this should be called `set_route`, or those functions should be called `add_*_default_route`. They fundamentally do the same thing. https://github.com/m-labs/smoltcp/pull/244#discussion_r206492153
<GitHub168> [smoltcp] whitequark commented on pull request #244 00a5dc2: `IPv6 gateways` https://github.com/m-labs/smoltcp/pull/244#discussion_r206493000
<GitHub177> [smoltcp] m-labs-homu commented on issue #255: :sunny: Test successful - [status-travis](https://travis-ci.org/m-labs/smoltcp/builds/410277285?utm_source=github_status&utm_medium=notification)
<travis-ci> m-labs/smoltcp#1135 (auto - 1fbcfb0 : Astro): The build passed.
<GitHub119> [smoltcp] m-labs-homu merged auto into master: https://github.com/m-labs/smoltcp/compare/42780f311fa9...1fbcfb09e1b4
<GitHub85> [smoltcp] m-labs-homu closed pull request #255: Add a few DHCP options (master...dhcp-wire) https://github.com/m-labs/smoltcp/pull/255
<GitHub26> [smoltcp] m-labs-homu commented on issue #186: :umbrella: The latest upstream changes (presumably 1fbcfb09e1b4165a2778d6ab55bbbc462444dfa1) made this pull request unmergeable. Please resolve the merge conflicts. https://github.com/m-labs/smoltcp/pull/186#issuecomment-409191032
<travis-ci> m-labs/smoltcp#1136 (master - 1fbcfb0 : Astro): The build passed.
<GitHub192> [smoltcp] jD91mZM2 commented on pull request #244 00a5dc2: I return an iterator over one thing, but I heard that in the future you might support multiple https://github.com/m-labs/smoltcp/pull/244#discussion_r206504221
<GitHub194> [smoltcp] jD91mZM2 commented on issue #244: Since you previously said you don't think this is needed, I'll just close this because I'm lazy :stuck_out_tongue:. Better now than later when I put in more time into something that isn't even desired. https://github.com/m-labs/smoltcp/pull/244#issuecomment-409202279
<GitHub66> [smoltcp] jD91mZM2 closed pull request #244: Clean up routes module slightly (master...master) https://github.com/m-labs/smoltcp/pull/244
rohitksingh_wor1 has quit [Read error: Connection reset by peer]
rohitksingh_work has joined #m-labs
rohitksingh_work has quit [Read error: Connection reset by peer]
rohitksingh has joined #m-labs
rohitksingh has quit [Quit: Leaving.]
mumptai has joined #m-labs
key2 has joined #m-labs
<GitHub129> [smoltcp] whitequark pushed 1 new commit to master: https://github.com/m-labs/smoltcp/commit/185a0ca7811cb7385cf26a7627a7e0d8c357d147
<GitHub129> smoltcp/master 185a0ca whitequark: examples: remove the remaining panics on poll error.
<travis-ci> m-labs/smoltcp#1137 (master - 185a0ca : whitequark): The build has errored.
rohitksingh has joined #m-labs
<key2> am thinking of using 4 of them connected to a FPGA clock shifted in order to get 4GB :) could be a fun open source oscilloscope
<rjo> sb0: btw. i noticed that xilinx uses the xadc/sysmon to calibrate things (ddr delays in that case). maybe the broken xadc reference pins are a problem for sayma, gth, termination etc as well. but i give it a <20% chance of being an issue (gth/termination using the xadc/sysmon).
<sb0> key2, let us know what kind of horrid bugs you find in this other HMC critter!
<key2> sb0: it was just an idea
<key2> but why wouldn't it be doable ? bc of timing issues ?
X-Scale has quit [Ping timeout: 244 seconds]
[X-Scale] has joined #m-labs
<sb0> rjo, do you want to write this in the xilinx support email thread?
rohitksingh has quit [Read error: Connection reset by peer]
<sb0> key2, because HMC chips are trash fires. we have 3 of them on sayma, and 2 are awful.
<key2> sb0: they all behave the same ?
<key2> this HMC is the one used in RIGOL scopes
rohitksingh has joined #m-labs
<key2> so I thought of using 4 of them, a FPGA, DDR3 and usb 3
<key2> could make a 300$ board with that
<sb0> key2, the hmc830 has reserved AND WRITE-ONLY registers that don't initialize to their default values, which causes the chip to break intermittently
<sb0> key2, it also has some idiotic protocol selection that is easy to lock the chip into
<key2> mmh
<key2> ok, then let's concider that this HMC has no bug
<key2> could it be a fun board ?
<key2> only 8bit tho, but for doing an open source scope..
<sb0> key2, the HMC7043 has several broken registers, plus in many occasions the doc says one things and ADI people on forums say another, plus it generates broadband noise that causes bugs in other chips when unconfigured
<sb0> key2, the HMC542 works correctly (so far)
<key2> sb0: CERN has done something 100mhz in the past https://www.scopefun.com/gallery
<key2> could use their software
<sb0> HMC chips like clock fanouts also work correctly I heard. but they sure know how to fuck up digital interfaces.
<key2> well in this case there are no much
<key2> one thing I wonder is: there is no usb 3.1 PHY out there.. only usb 3.0
<key2> and usb 3.1 is 10Gb while usb 3.0 is 5Gb
<key2> I was wondering if I could use the FPGA in PCIe HOST in order to connect a USB 3.1 chip
rohitksingh has quit [Read error: Connection reset by peer]
<whitequark> just use 10 GbE
<whitequark> USB is horribly designed and extremely flaky
<key2> yeah but ppl do not have 10GbE on their laptop
<whitequark> whereas 10 GbE is trivial and is backwards-compatible to anything down to 10 Mbps
<key2> but do have usb 3.1
<key2> so the question is, could we use a USB 3.1 chipset in "device" mode
<key2> I heard usb 3,1 has dual role
<whitequark> or you could just put a USB-Thunderbolt adapter in the package with your board and save months of headache with USB
<whitequark> er, 10 GbE-Thunderbolt
<whitequark> pretty sure every laptop with USB 3.1 also has Thunderbolt via USB-C
<key2> thunderbolt is not mac only ?
<whitequark> I literally have Thunderbolt in the laptop I'm typing this on
<whitequark> via USB-C
<whitequark> and I don't use Apple hardware
<key2> that could be an opton
<key2> what is the price of a 10GbE adapter <> thunderbolt
<whitequark> open taobao
rohitksingh has joined #m-labs
<key2> 200usd
<key2> ...
<key2> it might be more interesting to use a usb chipset over ethernet
rohitksingh has quit [Read error: Connection reset by peer]
<key2> something like that
rohitksingh has joined #m-labs
_whitelogger has joined #m-labs
<GitHub11> [smoltcp] whitequark commented on issue #178: @astro To expedite merging, I've fixed all remaining issues I found. Please review them, and squash the commits once you find the state of the branch satisfactory. I'll merge afterwards. https://github.com/m-labs/smoltcp/pull/178#issuecomment-409256907
<GitHub88> [smoltcp] robomancer-or commented on pull request #186 0acca35: Not returning anything here means that this code can't be used for other types of host configuration (notably: [PXE](http://www.pix.net/software/pxeboot/archive/pxespec.pdf), for network booting). DHCP is designed to do more than just networking parameters. Is there some reason not to return some representation of the response packet? https://gi
rohitksingh has quit [Quit: Leaving.]
rohitksingh has joined #m-labs
<GitHub57> [smoltcp] astro commented on issue #178: I corrected the description of IGMP report intervals to general queries in `README.md`.... https://github.com/m-labs/smoltcp/pull/178#issuecomment-409272745
[X-Scale] has quit [Ping timeout: 256 seconds]
<GitHub99> [smoltcp] whitequark commented on issue #178: Thanks for the fixes, and I apologize again for the delay. Can you squash? https://github.com/m-labs/smoltcp/pull/178#issuecomment-409273197
rohitksingh has quit [Client Quit]
hartytp has quit [Quit: Page closed]
X-Scale has joined #m-labs
<GitHub177> [smoltcp] astro commented on issue #178: Squashed! https://github.com/m-labs/smoltcp/pull/178#issuecomment-409280969
<GitHub159> [smoltcp] whitequark commented on issue #178: @m-labs-homu r+ https://github.com/m-labs/smoltcp/pull/178#issuecomment-409282277
<GitHub13> [smoltcp] m-labs-homu commented on issue #178: :pushpin: Commit 777d4bd has been approved by `whitequark`
<GitHub14> [smoltcp] m-labs-homu pushed 1 new commit to auto: https://github.com/m-labs/smoltcp/commit/bada3f74bd77af2f541de815b6c377b999d16d4d
<GitHub14> smoltcp/auto bada3f7 Astro: Implement IGMPv1/v2 processing....
<GitHub2> [smoltcp] m-labs-homu commented on issue #178: :hourglass: Testing commit 777d4bd3c419c4fe56ba7f6b8d284afd8ab8e78a with merge bada3f74bd77af2f541de815b6c377b999d16d4d... https://github.com/m-labs/smoltcp/pull/178#issuecomment-409282380
<travis-ci> m-labs/smoltcp#1142 (auto - bada3f7 : Astro): The build passed.
<rjo> https://arxiv.org/pdf/1806.03400.pdf decent entry point for TDC with US GTH. maybe interesting for what daniel mentioned last year.
rohitksingh has joined #m-labs
<rjo> https://arxiv.org/pdf/1602.05786.pdf a good one on how well kasli (the fpga) would work at 4K.
<GitHub196> [smoltcp] robomancer-or opened issue #258: Change the way transmit buffer lengths are populated? https://github.com/m-labs/smoltcp/issues/258
<GitHub163> [smoltcp] whitequark commented on issue #258: Yes. With the signature you suggest, how large the buffer you pass to `f` is going to be? https://github.com/m-labs/smoltcp/issues/258#issuecomment-409297210
<GitHub108> [smoltcp] astro commented on pull request #186 35b3314: I have given it a try to return the `DhcpRepr<'a>` but that is really cumbersome as it is bound to the lifetime of the packet received by `raw_socket.recv()` in this function. Check my branch `dhcp-return` if you would like to work on that.... https://github.com/m-labs/smoltcp/pull/186#discussion_r206611232
<GitHub32> [smoltcp] robomancer-or commented on issue #258: Ah, I see, I forget that some people can use dynamic memory. So it's up to the caller to request exactly as many bytes as their packet is going to end up being... that still seems odd. What about ... https://github.com/m-labs/smoltcp/issues/258#issuecomment-409298463
<GitHub58> [smoltcp] robomancer-or commented on issue #258: Ah, I see, I forget that some people can use dynamic memory. So it's up to the caller to request exactly as many bytes as their packet is going to end up being... that still seems odd. What about ... https://github.com/m-labs/smoltcp/issues/258#issuecomment-409298463
<GitHub92> [smoltcp] robomancer-or commented on issue #258: Ah, I see, I forget that some people can use dynamic memory. So it's up to the caller to request exactly as many bytes as their packet is going to end up being... that still seems odd. What about ... https://github.com/m-labs/smoltcp/issues/258#issuecomment-409298463
<GitHub179> [smoltcp] whitequark commented on issue #258: What's the point of this change exactly? smoltcp is specifically designed to know the exact number of bytes it's going to transmit upfront. https://github.com/m-labs/smoltcp/issues/258#issuecomment-409299661
<GitHub156> [smoltcp] robomancer-or commented on issue #258: Oh. I didn't realize that. Sorry, the documentation on crates.io is pretty out of date, so I'm trying to work out how to use it all by reading the source, I missed that tidbit. Forget I said anything :-) https://github.com/m-labs/smoltcp/issues/258#issuecomment-409300129
<GitHub122> [smoltcp] robomancer-or closed issue #258: Change the way transmit buffer lengths are populated? https://github.com/m-labs/smoltcp/issues/258
<GitHub35> [smoltcp] robomancer-or commented on issue #258: Oh. I didn't realize that. Sorry, the documentation on docs.rs is pretty out of date, so I'm trying to work out how to use it all by reading the source, I missed that tidbit. Forget I said anything :-) https://github.com/m-labs/smoltcp/issues/258#issuecomment-409300129
<GitHub24> [smoltcp] whitequark commented on issue #258: Ah, sorry for that, I should make a release soon. https://github.com/m-labs/smoltcp/issues/258#issuecomment-409300634
<GitHub161> [smoltcp] robomancer-or commented on pull request #186 35b3314: Step one I'll get a proof of concept working locally (otherwise my proposal is likely to miss some important details). I'll be back. https://github.com/m-labs/smoltcp/pull/186#discussion_r206616765
mumptai has quit [Quit: Verlassend]
X-Scale has quit [Ping timeout: 240 seconds]
X-Scale has joined #m-labs
adamgreig has quit [Ping timeout: 256 seconds]
adamgreig has joined #m-labs