aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
Commit message (Collapse)AuthorAgeFilesLines
* mpm: mg: Move MgCPLD, TCA6408, DboardClockControl class to own moduleMartin Braun2018-02-143-195/+209
|
* mpm: Add RAII style GIL release mechanism to Python libraryMartin Braun2018-02-131-2/+28
| | | | | Note: This commit does not actually apply the GIL release, it only provides the class to do so.
* mpm: n310: Remove some leftover cruftMoritz Fischer2018-02-131-2/+0
| | | | | | | The lines removed here are no longer needed, get rid of them Suggested-by: Martin Braun <martin.braun@ettus.com> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: Add entries for renamed sfpsMoritz Fischer2018-02-131-1/+13
| | | | | | | | | | | | | In order to match the front panel 0 and 1 for the SFPs, as well as for clarity and consistency reasons, udev rules will be put onto future filesystems in order to rename the eth1 eth2 devices to sfp0 and sfp1. This change *should* be backwards compatible, nevertheless, be careful and bump compat number. This also updates the uhd image loader manifest. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: mg: add cpld revision to dboard infoTrung N Tran2018-02-121-5/+7
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* fixup! mpm: magnesium_update_cpld.py: Add axi_bitq supportBrent Stapleton2018-02-091-1/+1
|
* mpm: remove GPIOBank.set_all functionTrung N Tran2018-02-092-13/+20
| | | | | | | | -set_all function doesn't fit well with the GPIO api. It is rather a test sepecific function. -Add gpio_set_all helper to n3xx_bist. Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: Use prefs API for periph managerMartin Braun2018-02-085-16/+52
| | | | | | | | - Allow to set default args via config file - Read them from prefs API - override-db-pids uses the same APIs now ([overrides] section in config file, prefs API, and same dictionary as --default-args when used on the command line
* mpm: Use prefs API in logging moduleMartin Braun2018-02-081-6/+6
| | | | This allows to set the default log level from the config file.
* mpm: Add prefs modulesMartin Braun2018-02-084-2/+99
| | | | | - prefs is a module for centralized preferences management - Uses Python's ConfigParser module
* fixup! mpm: Changed mpm_shell to support scripted useMoritz Fischer2018-02-071-26/+31
| | | | Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: magnesium_update_cpld.py: Add axi_bitq supportMoritz Fischer2018-02-071-19/+65
| | | | | | | | | | | | Add axi_bitq support. In order for this to work we need several conditions to be true: - Updated openocd - FPGA image with axi_bitq built in and hooked up to correct pins - Updated overlays matching the FPGA image - An svf file with correct max frequency <= 10MHz Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: n310: Return CHDR addresses as part of device_infoMartin Braun2018-02-074-1/+56
| | | | Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* fixup! mpm: Fixup for argument parsing in N310Martin Braun2018-02-071-1/+9
|
* mpm: rpc_server: Declare local connection for *all* local IPsMartin Braun2018-02-071-2/+3
| | | | | | Before, it was possible to trick the RPC server in believing a connection was remote when the incoming connection was from a local IP address that was not 127.0.0.1.
* mpm: net: Add get_local_ip_addrs() methodMartin Braun2018-02-071-1/+15
|
* mpm: n310: Removed superfluous importMartin Braun2018-02-071-1/+0
|
* mpm: Fixup for argument parsing in N310Brent Stapleton2018-02-072-3/+5
| | | | | | | Adding helper function to parse strings to a boolean value. We can then use that function to parse MPM's default_args, and set enable_gps and enable_fp_gpio. This replaces the usages of the Python builtin bool(), which returns True for any non-empty string.
* mpm: n310: bist: Add error_msg for temp bist if no sensores were foundMartin Braun2018-02-071-1/+3
|
* mpm: convert to string explicitly in GPIOBankTrung N Tran2018-01-241-1/+1
|
* usrp3: Changes for Vivado 2017.4Ashish Chaudhari2018-01-241-1/+1
| | | | | | - Bumped compat number for e3xx, n230, x3xx, n3xx - Updated images package for e3xx, n230, x3xx, n3xx - Updated fpga-src submodule
* fixup! mpm: Log timeouts during API calls, reset timer on claimed callsMartin Braun2018-01-232-1/+8
|
* mpm: mg: Remove superfluous importMartin Braun2018-01-231-1/+1
|
* mg: ease the usage of init and tracking calTrung N Tran2018-01-231-9/+94
| | | | | | | | Using string expression instead of passing in a total hex value. Now user can passed in for example: init_cals=DEFAULT or init_cals=BASIC|TX_QEC_INIT Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: Log timeouts during API calls, reset timer on claimed callsMartin Braun2018-01-221-0/+7
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* mpm: n310: Fix setting time source depending on clock sourceMartin Braun2018-01-221-7/+4
| | | | | | | | - When clock source is set, but time source is not, still set time source to guarantee correct ref clock freq - Enable unconditional setting of time source Reviewed-by: Daniel Jepson <daniel.jepson@ettus.com>
* fixup! mpm: Harmonize imports, tidy + sort modulesMartin Braun2018-01-221-1/+1
| | | | - Fixes n3xx_bist, which failed on a an import
* n310: removed orphaned commentsBrent Stapleton2018-01-191-4/+0
|
* n310: Update the dboard UIO usageBrent Stapleton2018-01-191-25/+22
| | | | | Updating the UIO usage in the debug functions in magnesium.py. Somehow this didn't get updated before.
* mpm: Demoting watchdog related log message to DEBUGMartin Braun2018-01-191-1/+2
|
* mpm: Update unclaim timeout logicMartin Braun2018-01-181-9/+30
| | | | | | | - Allow configurable timeout values from the command line - Add flag to disable timeouts for long calls; this fixes the case where reclaimers re-initialize a disabled timer - Add methods for timeout event for better tracking
* mpm: mg: Demote notice on LMK not being locked b/c of lacking initMartin Braun2018-01-181-1/+1
|
* mpm: Demoted some log statements from INFO to TRACE or DEBUGMartin Braun2018-01-172-3/+2
|
* mpm: Refactored RPC serverMartin Braun2018-01-171-66/+80
| | | | | | - No functional changes - Grouped methods by function - Improved some comments
* mpm: n310: Bump compat number to 2.0Martin Braun2018-01-161-1/+1
| | | | - Updated fpga-src submodule pointer
* mpm/mpmd: Report device state using get_init_status() and verifyMartin Braun2018-01-161-1/+7
| | | | | | When trying to run init(), mpmd will first query the initialization status of the MPM device. If it is found to be in a bad state, it will not go forward with initialization, but instead print the error message.
* mpm: n310: Refactor N3xx periph managerMartin Braun2018-01-161-20/+32
| | | | | | | - Sort methods by functional groups - Reorder init from less likely to fail to more likely (this enables the LINK LED on claim for when FPGA fails to initialize, e.g. on compat errors)
* mpm: Refactor PeriphManager classesMartin Braun2018-01-162-39/+72
| | | | | - Sort methods by functional groups - Removed some cruft
* mpm: add init clock and time source from argsTrung N Tran2018-01-161-0/+4
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mpm: Enable systemd watchdog and update it from MPMMartin Braun2018-01-154-7/+30
| | | | | | | | - Updated systemd service file - Added health status flag in shared data object - Added thread in RPC process to update watchdog Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: sys_utils: Add watchdog moduleMartin Braun2018-01-152-0/+64
| | | | Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: n310: Check all periphs for initialization statusMartin Braun2018-01-122-7/+22
|
* mpm: mg: Pass deserializer_lane_xbar to ad937x_configTrung N Tran2018-01-121-0/+8
| | | | | | | | | Slot A and Slot B are different in how the JESD lanes are connected. We now pass in different deserializer_lane_xbar config values for each slot. Reviewed-by: Martin Braun <martin.braun@ettus.com> Reviewed-by: Daniel Jepson <daniel.jepson@ettus.com> Reviewed-by: Mark Meserve <mark.meserve@ni.com>
* mpm: n310: Fix various bugs in sensor APIMartin Braun2018-01-122-6/+3
|
* mpm: tdc: add signature/revision checks and master reset routinedjepson12018-01-122-1/+62
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* fixup! mpm: adding GPS sensor functionsBrent Stapleton2018-01-111-1/+1
|
* mpm: periph_manager: Pass default args to dboard managerMartin Braun2018-01-111-2/+3
|
* mpm: utils: Fix to_native_str for non-string typesMartin Braun2018-01-111-2/+5
| | | | | Before, you couldn't use to_native_str for objects such as integers (i.e., anything that was not a bytes-like object).
* mpm: dboard_manager: Use mpmutils.to_native_str instead of local hackMartin Braun2018-01-111-10/+2
|
* mpm: usrp_hwd: Fix logging issue on default_args failureMartin Braun2018-01-111-3/+7
| | | | | | Failure to provide valid default args no longer results in an unexpected error. Also fixed minor formatting issues (PyLint).