aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mpmd: Expose get_mtu() API to mpmd_mboard_impl and to prop treeMartin Braun2017-12-225-12/+50
|
* mpmd: udp: Apply MTU to socket defaultsMartin Braun2017-12-221-8/+15
|
* mg: Don't set default rate before having RPC accessMartin Braun2017-12-221-2/+0
| | | | | This will do nothing useful, but will print warnings that clock rates don't match. So let's remove that setting.
* mpm: mg: Fix CPLD rev checkMartin Braun2017-12-221-6/+13
| | | | | | | | Now checks the oldest-compat-rev register. Current rev is read out for logging purposes. Reviewed-by: Daniel Jepson <daniel.jepson@ettus.com> Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
* n3xx: Removed PHY reset after Aurora BISTAshish Chaudhari2017-12-221-2/+1
| | | | | | - A PHY reset is not needed for SFP Aurora. It is only really useful when the entire quad including the commong clocking block needs to be reset
* mpm: Drop default log level to DEBUGMartin Braun2017-12-221-2/+2
|
* mg: Renamed lowband LO to 'lowband'Martin Braun2017-12-221-1/+1
| | | | Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
* n310: Move SID framing all the way to n310.pyMartin Braun2017-12-225-11/+14
| | | | | | | MPM will now no longer keep a SID framer variable. Reviewed-by: Trung Tran <trung.tran@ettus.com> Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpmd: Add get_mtu() API and MTU discovery for UDP transportsMartin Braun2017-12-225-0/+143
| | | | | | | | | The mpmd_xport_mgr classes can now return their own MTU. The UDP xport manager is a special case, it doesn't actually know its MTU, and thus runs an MTU discovery, using the MPM-ECHO command to discover MTU by sending variable-size packets as a probing mechanism. Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpmd: Device discovery fixes and cleanupAshish Chaudhari2017-12-224-32/+38
| | | | | | | | | - Fixed issue where the "addr" device args was not honored - Results returned by find only enumerate mgmt_addrs - Explicitly require addr to be specified for RFNoC comms - Cleaned up constants for mgmt_addr, addr and second_addr Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mg: ignore Mykonos framer errordjepson12017-12-221-1/+1
| | | | According to ADI, this bit toggles a lot so ignoring it for now.
* mpm: mg: Repeat deframer init upon failuredjepson12017-12-221-1/+8
| | | | This is a band-aid solution.
* mg: Use floating point comparison for all frequenciesTrung N Tran2017-12-222-23/+23
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* n3xx: Updated Aurora BIST reg offsetsAshish Chaudhari2017-12-221-10/+9
| | | | | - Aurora registers moved around after SFP refactoring in the FPGA. Reflecting changes in MPM
* mg: Fix tx low band frequencyTrung N Tran2017-12-221-3/+2
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: Fix linter warningsMartin Braun2017-12-223-33/+42
| | | | | | - Magnesium: Bad formatting in DRP setup - PeriphManagerBase: Import order - dtoverlay: Missed default value for param
* mpm: n310: Set default clock source to 'internal'Martin Braun2017-12-221-1/+1
|
* mpm: periph_manager: Clarify request/commit protocolMartin Braun2017-12-221-5/+8
|
* mpm: xports: Sort requested transport options by QoSMartin Braun2017-12-221-6/+6
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: udp xport: Bind SID addr 0 and 1 to respective SFP portsMartin Braun2017-12-222-2/+15
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: udp xport: Increment TX/RX allocations for streamersMartin Braun2017-12-221-4/+22
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: xports: Amend protocol for request/commit xport, add allocationMartin Braun2017-12-222-1/+13
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpmd: Implement better xport selection algorithmMartin Braun2017-12-221-8/+22
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: Fix ECHO commandMartin Braun2017-12-221-8/+16
| | | | | | | | The echo server was using the wrong socket options, allowing responses to be fragmented. Since we use the echo server for MTU discovery, that would have beaten the purpose. Also includes minor formatting fixes.
* mpmd: Refactor MPM transport architecture, use managersMartin Braun2017-12-2213-406/+852
| | | | | | | | | | | | | | This splits up the transport code in mpmd_impl across multiple classes to properly leverage the request_xport/commit_xport API in MPM. Different types of transport (UDP, liberio) use their own distinct classes, which are generated dynamically on request. This is a true refactoring despite the large amount of changes; there are no functional differences. Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com> Reviewed-By: Trung Tran <trung.tran@ettus.com> Reviewed-By: Ashish Chaudhari <ashish.chaudhari@ettus.com>
* mpm: mpmd: Add MPM compat number checkBrent Stapleton2017-12-222-0/+33
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: rpc_server: Unregister old RPC calls _init_rpc_calls()Martin Braun2017-12-221-2/+22
| | | | | | | On FPGA loads, when the periph_manager is respawned, this will now clear the previously registered methods. Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: rpc_server: Fix use of to_binary_str()Martin Braun2017-12-221-5/+2
| | | | Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* docs: Various updates to N3XX manualsMartin Braun2017-12-223-8/+100
|
* mpm: mg: Added magnesium_update_cpld.pyBrent Stapleton2017-12-222-1/+128
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: adding GPS time sensorBrent Stapleton2017-12-221-0/+30
| | | | | | Adding GPS time sensor to MPM, and its respective getter. Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: tdc: fixed typos in commentsDaniel Jepson2017-12-222-2/+2
| | | | Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: tdc: compensate for the trace delay differences between daughterboardsDaniel Jepson2017-12-221-1/+8
| | | | Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: n310: Support RevEMartin Braun2017-12-221-1/+1
| | | | | | Bump the max supported rev accordingly. Reviewed-By: Trung Tran <trung.tran@ettus.com>
* mpm: mg: Fix lookup of user EEPROM mapMartin Braun2017-12-221-1/+18
| | | | | | For unknown revs, this now scales back to the last known rev. Reviewed-By: Trung Tran <trung.tran@ettus.com>
* mpm: Harmonize all license headerMartin Braun2017-12-22109-1253/+268
| | | | Now uses SPDX headers everywhere.
* mpm: n310: add fpga compat number checkTrung N Tran2017-12-221-0/+34
| | | | | | Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com> Reviewed-By: Sugandha Gupta <sugandha.gupta@ettus.com> Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: xport: Let UDP manager re-enumerate available CHDR ifaces on init()Martin Braun2017-12-221-11/+23
| | | | | | This will enumerate CHDR interfaces as late as possible, so that the user changing the IP address will not affect operations. Note that IP is considered static during a UHD session.
* mpm: UIOs now open only when necessaryBrent Stapleton2017-12-228-185/+190
| | | | | | | Refactoring to use the C++-based UIO objects. The Liberio and Ethernet objects now open the UIO before using it, and close it once done. Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: Add mmap_regs_ifaceMartin Braun2017-12-224-0/+184
| | | | | | | This is a C++-based peek/poke interface into mmaped objects. Useful for better control over UIO devices. Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: adding GPS sensor functionsBrent Stapleton2017-12-224-0/+198
| | | | | | Adding GPS TPV and SKY sensors to MPM, and their respective getters. Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpmd: Allow to connect via addr or mgmt_addrMartin Braun2017-12-221-51/+103
| | | | Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: Harmonize imports, tidy + sort modulesMartin Braun2017-12-2234-71/+88
| | | | | | | | - Moved nijesdcore to cores/ - Moved udev, net, dtoverlay, uio to sys_utils/ - Made all imports non-relative (except in __init__.py files) - Removed some unnecessary imports - Reordered some imports for Python conventions
* mg: external LO need update correct freqTrung N Tran2017-12-221-2/+13
| | | | Need to update rf freq to half of ad9371
* mg: Fix reading back output sampling rateMartin Braun2017-12-222-7/+0
| | | | Reviewed-By: Trung Tran <trung.tran@ettus.com>
* mpm: Fix floating-point errors in MCR configurationMartin Braun2017-12-223-83/+114
| | | | | | Use fuzzy comparisons for setting the MCR. Reviewed-By: Trung Tran <trung.tran@ettus.com>
* n3xx: enable DRP access to DB MGTS & QPLLsdjepson12017-12-222-36/+249
| | | | | | | | - re-structured Magnesium.init_jesd() sequence to accomodate the reconfiguration - added DRP access protocols to nijesdcore.py - cleaned up a few comments and log statements in nijesdcore.py for flow Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: bfrfs: Assert reference buffer is a byte stringMartin Braun2017-12-221-0/+1
| | | | Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* types: Change eeprom_map_to to uint8_t vectorsMartin Braun2017-12-222-3/+6
| | | | | | | mpmd_impl was already using this type, fixed conversion from std::string to std::vector<uint8_t> there too. Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* mg: Add LO specific properties and methodsTrung N Tran2017-12-224-57/+515
| | | | | | | | This change adds extra hooks to the property tree to make LOs accessible thru the property tree. These can be used by multi_usrp api. Reviewed-By: Martin Braun <martin.braun@ettus.com>