aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/n3xx_bist
Commit message (Collapse)AuthorAgeFilesLines
* mpm: Remove references to rfnoc_num_blocksMartin Braun2021-04-121-3/+3
| | | | | | | | | | | rfnoc_num_blocks is a device arg that could be used in UHD 3.15 (and below) to artificially skip enumeration of RFNoC blocks. Since the block enumeration works very differently in UHD 4, this arg was never supported there. This removes references to this arg in some BIST files. It is not harmful, but also serves no purpose, and could be construed as being useful upon lecture of these codes.
* mpm: n3xx: bist: Read mboard and dboard eeprom to determine productSteve Czabaniuk2020-07-311-2/+12
| | | | | | | | The routine to identify products currently only reads the motherboard EEPROM. The N310 and N320/N321 use the same motherboard so these devices can't be distinguished using the motherboard EEPROM alone. This change makes get_product_id() read both the motherboard and daughterboard EEPROM in order to determine which N3xx it actually is.
* mpm/mpmd: Expose APIs to drive GPIO sourcesMartin Braun2020-01-231-6/+7
| | | | | | | | | | | | | | | | | | | The N310 has a feature that allows the front panel GPIOs to be driven by various sources: The PS, or any of the radio channels. The MPM-based APIs did not expose any way to change that. Changes: - Add MPM APIs to PeripheralManagerBase and n3xx classes - Improve comments and explanations - Add host-side hooks into these new APIs in mpmd_mb_controller - Implement these APIs for N3xx The N3xx devices will have the option to set the GPIO source to "PS", or to one of "RF0", "RF1", "RF2", "RF3" (if there are four channels; the N300 and N320 can only go up to RF1). Note: The N310 radio does not have separate FP-GPIO banks for channels 0 and 1, which needs to be fixed in a separate commit.
* mpm: n3xx: bist: Auto-load the AA image for the ddr3 BISTMartin Braun2019-02-201-0/+22
| | | | | | | | | | | | | | When running $ n3xx_bist ddr3 The test will now load the AA image if the BIST fails, unless the user specifies $ n3xx_bist ddr3 -o skip_load_fpga=1 The rationale is that by default, the AA image is the only one that includes the DmaFIFO block.
* mpm: n3xx: Remove DDR3 from standard BIST collectionMartin Braun2019-02-201-1/+1
| | | | | | | We can't guarantee that there is actually a DDR3/DRAM FIFO block on the image. So, don't run that test by default. In order to run the DDR3 bist, running `n3xx_bist ddr3` is still valid. However, it requires an image with the DRAM FIFO enabled.
* mpm: n3xx_bist: Add QSFP loopback to BIST testsAlex Williams2018-11-071-1/+45
|
* mpm: e320: n3xx: Factor BIST code to common moduleMartin Braun2018-10-241-562/+135
|
* n3xx_bist: add ref_clock bistTrung Tran2018-10-181-45/+107
|
* n3xx: Fix UIO usage in Aurora BISTBrent Stapleton2018-07-261-19/+23
|
* mpm: n3xx: bist: Only conditionally reload FPGA imageMartin Braun2018-07-191-3/+19
| | | | | | The tests for white rabbit and SFP loopback require a specific FPGA image. We now check if that image is already available before running uhd_image_loader.
* mpm: n3xx: bist: Provide switch for not reloading default FPGA imageMartin Braun2018-07-191-1/+7
|
* mpm: n3xx: bist: Add White Rabbit lock testMartin Braun2018-07-191-0/+33
|
* n3xx_bist: update sfp loopback testTrung Tran2018-07-181-0/+39
| | | | Load AA image before doing the bist and load HG image after the bist.
* n3x0: Pick different standard tests for BISTMartin Braun2018-05-141-1/+1
| | | | Replaced 'clock_int' (which is not implemented) with 'fan'.
* mpm: n3xx: Refactor n3xx_periphs into its own moduleMartin Braun2018-05-081-4/+4
|
* n3xx_bist: Ignore errors from uhd_usrp_probe on running ddr3 testsugandhagupta2018-03-061-5/+3
| | | | | we only care about getting a valid throughput regex match, and can ignore errors from uhd_usrp_probe, e.g. no daughterboards, etc.
* mpm: Rename n310 to n3xxMartin Braun2018-03-051-13/+15
| | | | | This module (and class) are, in fact, used for all N3xx-derivates so renaming it is the more correct thing to do.
* mpm: n3xx: Fix usage of UIO in Aurora testsMartin Braun2018-03-011-12/+23
|
* mpm: n3xx_bist: Fix regex to match with optional spacesugandhagupta2018-03-011-1/+1
| | | | | | Fix regex so it matches an optional additional space. Signed-off-by: Sugandha Gupta <sugandha.gupta@ettus.com>
* n3xx_bist: set fp_gpio master to PSTrung N Tran2018-02-211-0/+2
|
* mpm: remove GPIOBank.set_all functionTrung N Tran2018-02-091-1/+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: n310: bist: Add error_msg for temp bist if no sensores were foundMartin Braun2018-02-071-1/+3
|
* fixup! mpm: Harmonize imports, tidy + sort modulesMartin Braun2018-01-221-1/+1
| | | | - Fixes n3xx_bist, which failed on a an import
* mpm: Factor GPIO panel code into common moduleMartin Braun2018-01-101-1/+1
| | | | | | | | | | GPIOBank is the new class, n310.FrontpanelGPIO and BackpanelGPIO now derive from that. Other minor changes: - Renamed classes to FrontpanelGPIO and BackpanelGPIO in accordance with coding guidelines - Moved MboardRegsControl before n310 class for consistent code layout
* mpm: Harmonize all license headerMartin Braun2017-12-221-13/+2
| | | | Now uses SPDX headers everywhere.
* n3xx_bist: Fix spurious reference to self.REVMartin Braun2017-12-221-2/+1
|
* n3xx_bist: Specify localhost for opening UHD sessionsMartin Braun2017-12-221-1/+1
|
* mpm: add n310 motherboard revD supportTrung N Tran2017-12-221-3/+13
| | | | | | | | | | This will enable both RevC and RevD from an MPM perspective. The revision read back from the EEPROM is used to enable the code for either rev. The impact on the code is limited to the port expander GPIOs. Port expander objects are instantiated in both the N310 MPM module as well as the n3xx_bist executable.
* mpm: n3xx_bist: Added more comments, clarified timeout unitsMartin Braun2017-12-221-7/+18
|
* n3xx: BIST add GPS option and fix minor gps timing conversion bugTrung N Tran2017-12-221-2/+16
|
* mpm: n310 BIST change aurora default phy nameTrung N Tran2017-12-221-4/+4
| | | | ... to match dts spec
* n3xx bist: Fixed defaults for LV compat modeMartin Braun2017-12-221-7/+8
|
* n310_bist: add ddr3 bistTrung N Tran2017-12-221-4/+24
|
* n3xx bist: Refactored functions with timeoutMartin Braun2017-12-221-15/+28
|
* n3xx bist: Added socket read timeoutMartin Braun2017-12-221-9/+29
| | | | | | When the GPS chip is non-functional, gpsd could simply fail to return a value. In that case, the recv() call to the socket would hang indefinitely. This adds a graceful failure for that case.
* n3xx bist: Properly sequence GPSDO testMartin Braun2017-12-221-2/+30
| | | | | | | | It now does: - Power on GPS - Wait for WARMUP to go low - Wait for LOCKOK, with timeout - Read the TPV response and return it
* n3xx bist: Added LV compat modeMartin Braun2017-12-221-0/+96
|
* n3xx bist: Minor refactoring of GPIO codeMartin Braun2017-12-221-15/+15
|
* n3xx bist: Better pass/fail conditions, flattened resultsMartin Braun2017-12-221-15/+15
| | | | | | To placate fussy JSON consumers, we now avoid nested dictionaries. The dry-run results now return a more accurate representation of the N310 system responses.
* mpm: Made Python3 the default interpreter for all N3xx-related executablesMartin Braun2017-12-221-1/+1
|
* n310: gpio bistTrung N Tran2017-12-221-5/+28
|
* n3xx bist: Added --verbose and --debug optionsMartin Braun2017-12-221-5/+16
|
* n3xx bist: Added SFP loopback testsMartin Braun2017-12-221-15/+114
|
* n3xx bist: Make sure error_msg is in every resultMartin Braun2017-12-221-0/+1
| | | | | | Some downstream consumers of n3xx_bist output require the error_msg key to be in every result, even if no error occurred. The default value is an empty string.
* n3xx bist: Added both time and date to rtc test, added error_msg common keyMartin Braun2017-12-221-10/+14
|
* n3xx bist: Stubbed out all tests, implemented TPM testMartin Braun2017-12-221-55/+92
|
* n3xx bist: Added dry-run version of sfp testMartin Braun2017-12-221-7/+22
|
* n3xx bist: Added gpsd testMartin Braun2017-12-221-10/+51
|
* n3xx bist: Added dry-run feature, and implemented temp, rtc, and fan testsMartin Braun2017-12-221-39/+93
|
* n3xx_bist DocumentationDanielleB-NI-OOPL2017-12-221-3/+91
| | | | | Added comments to individual tests regarding JSON formatting, descriptions, and required equipment. No functional changes