aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* 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
* 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>
* 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-221-2/+9
| | | | | | | | | | | | | | 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-221-0/+6
| | | | 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>
* 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>
* 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
* 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>
* mpm: Enable TX external LO set through args, simplify codeTrung N Tran2017-12-227-71/+93
| | | | | | | Simplify the process of setting external LO without calling through many API layers. Reviewed-By: Martin Braun <martin.braun@ettus.com>
* tdc: fix bug in pps capture reportingDaniel Jepson2017-12-222-8/+19
| | | | Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: add all time_source options and complete MB clk controlDaniel Jepson2017-12-221-10/+96
| | | | | | | | - complete time_source options to match updates to fpga registers - add methods for each of the bitfields in the clock control register - add init sequences for the meas_clk MMCM and PPS output Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: added uio for motherboard regssugandhagupta2017-12-221-7/+47
| | | | Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: Factor out xport managers as own objectsMartin Braun2017-12-229-233/+328
| | | | | | - Move XportMgr classes out of n310.py - Subclass them there and apply N310-specific settings - Remove chdr_interfaces option from PeriphManagerBase
* mpm: utils: Add string conversion utilitiesMartin Braun2017-12-221-0/+42
| | | | | | | Adds conversions for: - Any-to-binary - Any-to-UTF8 - Any-to-native
* mpm: close unused pyroute objectsTrung N Tran2017-12-221-33/+39
| | | | | | Current code have couple places that open pyroute2 without closing it. That seems to cause the file descriptor leakage. This change effectively fix the issue #1964
* mpm: Return correct value for usrp_hwd.py --init-onlyMartin Braun2017-12-221-1/+1
| | | | Before, it would always return success even if that failed.
* mpm: Fix python2 vs python3 zlib.crc32 output differenceSteven Bingler2017-12-221-1/+1
| | | | | | | Zlib's crc32 outputs signed values in python2 and unsigned values in python3. As per this page (https://docs.python.org/2/library/zlib.html) 0xffffffff can be AND'd to the result to get the same value between Python versions
* mpm: n310: Compile .dts files to .dtbo on updateMartin Braun2017-12-221-7/+31
| | | | Reviewed-By: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: mg: Refactor init(), limit object scopesMartin Braun2017-12-221-39/+53
| | | | | | - ClockSynchronizer object has no more permanent lifetime - DboardClockControl object lives within `with' statement - dboard_ctrl_regs are limited to init()
* mpm: Add temporary failure for FPGA reloadMartin Braun2017-12-221-0/+9
| | | | | Note: This is subject to removal, but makes the FPGA reloading code available to all until we fix the reload bug.
* mpm: Reset periph manager on updateBrent Stapleton2017-12-224-15/+105
| | | | | | | | | | Upon updating certain components (the FPGA, for example), the Peripheral Manager is restarted, and the overlay is reapplied. In order to facilitate this, the RPC server intercepts and handles the update_component function. Tested on the RJ45 ethernet connection. It probably won't work as well if the SFP connection goes down when the overlay is removed.
* mpm: adding destructor for UIOBrent Stapleton2017-12-221-0/+11
| | | | UIO object now has an explicit destructor to properly tear down.
* mpm: PeriphManager decides and applies overlayBrent Stapleton2017-12-225-57/+14
| | | | | | | Previously, the daughterboard requested an overlay file based on SFP preference using magic values. This commit moves the decision making to the peripheral manager, which uses our singular name (ie 'n3xx' for the N310).
* fpga load: Components file paths in component dictBrent Stapleton2017-12-221-9/+12
| | | | | | Paths to the component files is now stored in the updateable_components dictionary. This makes them accessible in the base class, and generally cleans up the member variables.
* fpga load: Atomic updating of multiple componentsBrent Stapleton2017-12-222-40/+46
| | | | | | | - The MPM function update_component now accepts multiple components to be updated in one RPC call. - Updated the property tree and image loader to match this change. - Also added DTS loading to the image loader.
* mpm: mg: Add ref lock sensorMartin Braun2017-12-221-0/+15
| | | | | Note: The sensor API for this lives in n310, but it queries the dboards for a ref lock status, which is now no longer a stub.
* mpm: lmk04828: Fix docstringMartin Braun2017-12-221-2/+2
| | | | Says check_plls_locked() would throw an exception. That's not true.