aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* tests: mark test jobs as an overall failure if there is a test failureMatthew Crymble2022-06-102-0/+13
| | | | | | | using the continueOnError option for test run steps is a convenient way to allow all subsequent steps to run despite a test failure. But this causes the job status to be 'SucceededWithIssues' and not a full 'Failed' status.
* N320: Revert PLL lock time reductionAaron Rossetto2022-06-101-2/+2
| | | | | | | | | | | | | | | | | This commit reverts the changes made in commit 81a9cc1f8 to reduce the time for the LMK PLL to report lock status. The decision to revert the change comes after an investigation found that reducing the overall time to detect lock correlates with an increase in an error reported by the TDC ('[ERROR] TDC measurements show a wide range of values! Check your clock rates for incompatibilities. ... Uncaught exception in method set_clock_source: TDC measurement out of expected range!'). Despite the LMK PLL reporting lock status, our investigation revealed that it takes additional time for the PLL to align the daughterboards' clocks closely enough to pass the TDC measurement's range limit (i.e., no samples exceeding the measurement mean +/- 500 ps). Reverting the change increases the amount of time between achieving lock status and taking the TDC measurements, thus greatly reducing the likelihood of the reported error.
* ci: Fix mgmt_addr=None entry for X310 DPDK caseSteven Koo2022-06-101-1/+7
| | | | | | | | X310 differs from X410 in that it doesn't require the mgmt_addr to function. This does a check to see if the field has been added, instead of assuming that it has a value. Signed-off-by: Steven Koo <steven.koo@ni.com>
* Revert "tests: streaming: temporarily mark b210 dropped samples as an xfail"Steven Koo2022-06-101-12/+4
| | | | This reverts commit 50bda84c75c2087caebc2bfd5f8e8cd64b41e739.
* ci: Add recv and send frame tuning for streamingSteven Koo2022-06-104-2/+44
| | | | | | | | This adds the ability to tune the recv and send frames as a parameter. This is useful since some rates will fail with jitter in the system with the default settings. Signed-off-by: Steven Koo <steven.koo@ni.com>
* ci: set benchmark rate priority to highSteven Koo2022-06-101-0/+1
| | | | | | | | This change increases the benchmark rate priority to high, which reduces the jitter. This prevents UI interactions from causing overruns and underruns. Signed-off-by: Steven Koo <steven.koo@ni.com>
* host/README.md: Fix links to knowledge baseStephane Fillod2022-06-101-2/+2
|
* lib: Remove stray file async_msg.hppMartin Braun2022-06-101-85/+0
|
* docs: Update section on radio transport protocolsMartin Braun2022-06-101-16/+14
|
* tests: Remove packet_handler_benchmarkMartin Braun2022-06-102-380/+0
| | | | | | This was a test written in the early stages of re-writing UHD for the 4.0 release. It tests things that are no longer in use for UHD 4, thus, the test can go as well.
* zbx: Remove stray includeMartin Braun2022-06-101-1/+0
|
* utils: Remove usrp_e3x0_network_modeMartin Braun2022-06-101-72/+0
| | | | | | This was removed from CMake ages ago, and hasn't been built in years. It also no longer compiles. And since we do MPM on E310, it is also completely pointless.
* ci: Add b210 hardware to rhombusmattprost2022-06-102-1/+32
| | | | | | | Installed a B210 and added support for usb-based devices in the devtest pipeline. Signed-off-by: mattprost <matt.prost@ni.com>
* fixup! examples: gpio: Refactor exampleMartin Braun2022-06-101-14/+32
| | | | | | The example refactoring required usage of the get/set source API, which isn't available on B2xx series. This patch tests for the existence of said API, and disables its usage if appropriate.
* fixup! examples: gpio: Refactor exampleMartin Braun2022-06-101-4/+13
| | | | | | | | | | The refactoring changed the behaviour of --bitbang: before, it would terminate after one readback unless --repeat was specified, in which case it would require a Ctrl-C (SIGINT). After the refactoring, it always required a SIGINT. This changes the behaviour back to prior to 727141d, and will now only read back once, unless --repeat is provided. This also fixes the bitbang devtest, which would go on indefinitely.
* rfnoc: Add atomic_item_size property to FFT blockMartin Braun2022-06-102-1/+41
| | | | | | The atomic item size for the FFT block is always equal to the length of the FFT, multiplied by bytes-per-sample (4). For now, this is all the FFT block supports.
* examples: gpio: Refactor exampleMartin Braun2022-06-101-286/+368
| | | | | | | | | | | | | | | | The example had organically grown and was getting hard to read, and also had some known issues. Summary of fixes: - Default GPIO bank and connector are now derived from the device. This allows this example to pass without throwing an exception on E3xx and X4xx series when using default arguments. - The bitbang test is moved into its own code section, to make the rest more readable. - We move all the streamer-related code into a helper struct - Some repetitive parts of the code are moved into their own functions - The argument --require-loopback is added, which will fail tests if GPIO pins are not correctly looped back externally - --list-banks is renamed to --list_banks for consistency
* x300: Change order of GPIO banksMartin Braun2022-06-101-1/+1
| | | | | FP0 is now listed first. This helps with determining a default GPIO bank.
* tests: streaming: temporarily mark b210 dropped samples as an xfailMatthew Crymble2022-06-101-4/+12
|
* tests: streaming: use assert instead of pytest.fail for underruns/overrunsMatthew Crymble2022-06-101-2/+2
| | | | | | | When an assert statement fails, pytest will determine whether that should be a fail or an xfail. By explicitly calling pytest.fail, we were preventing pytest from doing that determination, so an individual test case that had an xfail mark would have been a hard failure.
* rfnoc: Fix vector use in replay_block_control_implAaron Rossetto2022-06-101-2/+2
| | | | | | | | | | | | | This commit fixes an issue in `replay_block_control_impl` with the initialization of the `_cmd_fifo_spaces` vector member variable. `std::vector<>::reserve()` only allocates memory for the vector items; it does not resize the vector (i.e., instantiating an `std::vector<>` and then calling `reserve()` leaves it with a size of 0). Attempting to index a zero-sized vector causes some C++ debug mode runtimes to throw an index out-of-range exception. The commit instantiates the vector using the constructor variant that allocates memory sufficient for the entries and default initializes them so that it can be indexed without issue.
* rfnoc: Fix register_xport_hop_cfg_fns() usageMartin Braun2022-06-102-4/+11
| | | | | | Note: This function is currently unused. However, it is not correctly implemented. During init, it would call the routing configuration function instead of the init configuration function.
* ci: Add new x3xx hardware to rhombusmattprost2022-06-101-4/+26
| | | | | | Added an X310 with TwinRx dboards and moved the SBX dboards to an X300. Signed-off-by: mattprost <matt.prost@ni.com>
* rfnoc: Improve comments regarding streaming and mgmt. codeMartin Braun2022-06-108-13/+74
| | | | | This commit *only* touches comments in the code for RFNoC streaming, link management and management portal.
* tests: streaming: mark non-dpdk failures as xfailsMatthew Crymble2022-06-101-8/+20
|
* tests: streaming: select appropriate uhd config file before test runsMatthew Crymble2022-06-103-7/+65
|
* tests: streaming: don't set master clock rate on x310Matthew Crymble2022-06-101-2/+5
|
* tests: streaming: fix x310 test case valuesMatthew Crymble2022-06-101-3/+3
|
* tests: streaming: add support for B210 DUTsMatthew Crymble2022-06-103-2/+27
| | | | | | The use_dpdk will be false for all B210 test cases, but still needs to be defined since the main test_streaming() function requires a value for it.
* tests: streaming: include dual_SFP parameter for all casesMatthew Crymble2022-06-101-20/+18
| | | | | | The dual_SFP test case parameter will be false for all B210 and E320 test cases, but it still needs to be defined since the main test_streaming() function requires a value for it.
* tests: streaming: add support for more DUTsMatthew Crymble2022-06-103-19/+71
| | | | | | | | | | This commit enables runs for X310, X310 TwinRx, E320, and N310. By default, python's argparse module will expect a value to be provided for each argument defined. Specifying an nargs value of '?' for the pytest options allows us to use a single pytest invocation in our pipeline configuration, even though some options don't apply to some DUT types.
* n320: Fix reading DB serial in applying correctionsMartin Braun2022-06-101-2/+2
| | | | | | The frontend corrections for N320 (IQ imbalance, DC offset) require the DB serial. However, there was an error in reading the DB serial in the code that applies the corrections.
* rfnoc: fix double conversionsLars Amsel2022-06-101-4/+3
| | | | | result of get double was saved in an int value instead of double replaced C cast by static_cast
* n320: Improve comments regarding low bandMartin Braun2022-06-102-4/+6
| | | | | The N320 code include some constants that were either unused or incorrect. This clarifies the lowband frequency.
* fpga: rfnoc: Remove rfnoc_version from target YAMLWade Fife2022-06-1015-15/+0
| | | | | | This causes the latest RFNoC protocol version to be used by default and avoids the need to update YAML files every time the RFNoC protocol version gets bumped.
* python: Check rfnoc_version in rfnoc_image_builderWade Fife2022-06-102-1/+28
|
* mpm: Fix expected CPLD filename for x4xxWade Fife2022-06-101-2/+2
| | | | | Change the filename expected by x4xx_update_cpld to match the name used by package_images and downloaded by uhd_images_downloader.
* tests: streaming: pass the correct LD_LIBRARY_PATH to pytestMatthew Crymble2022-06-101-3/+8
| | | | | | We need to run the DPDK streaming tests with elevated permissions, but using sudo clears the environment before running. This prevented the streaming tests from accessing the libuhd binaries.
* utils: uhd_images_downloader: Increase default image download size limitmattprost2022-06-101-5/+4
| | | | | | | | | | Prompt users for download confirmation of files larger than 1 GiB instead of 100 MiB. Improve messaging to make this process less concerning for users. The defined limit is only for the user's convenience. A 1 GiB limit should allow users to download most uhd images and related files without being prompted. Signed-off-by: mattprost <matt.prost@ni.com>
* uhd: change default into option flag in register definitionLars Amsel2022-06-103-35/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for read only registers in generated interfaces. For this the default is extended to an option string. The old format is still supported for backward compability, so if options string is just a number it will be handled as a writable number. The option string is a comma separated list with key=value pairs. The value is optional and treated as None if missing. common.py now allows to pass in **kwargs to the generate method which is used by gen_zbx_cpld_regs.py to pass a filter function for registers used by mpm only. get_all_addr now has an additional (optional, defaults to false) flag to indicate whether read only addresses are to be returned or not. It also supports type generic for the result to align with get_changed_addr function. The ZBX CPLD CTRL map is adapted accordingly to reflect read only registers. The power registers are flagged as MPM scope only (and not used in ZBX CPLD control of UHD). Co-authored-by: Martin Braun <martin.braun@ettus.com>
* tests: streaming: add option to run streaming tests in dev pipelineMatthew Crymble2022-06-102-1/+31
|
* fixup! ci: Add fedora rpm installer buildmattprost2022-06-101-0/+32
|
* ci: Add fedora rpm installer buildmattprost2022-06-106-4/+43
| | | | | | | Builds fedora rpm files using CPack. Supports both release and development builds. Signed-off-by: mattprost <matt.prost@ni.com>
* cmake: Add support for fedora rpm versioningmattprost2022-06-103-16/+24
| | | | | | | | | Adds cmake option for replacing dashes in the UHD Component version with underscores. This is necessary as Fedora package management is now enforcing the format <Package>-<Version>-<Release> for all rpm builds, so dashes in the UHD_VERSION from dev branches is not supported. Signed-off-by: mattprost <matt.prost@ni.com>
* n310: Improve LO source control options for ALL and LO2 casesmattprost2022-06-101-19/+40
| | | | | | | | If ALL option is specified, set lo source for both lo's. Do not report an error if user sets LO2 to internal. Enforce single lo target for queries about lo state. Signed-off-by: mattprost <matt.prost@ni.com>
* cmake: Drop .deb generation via cpack in favour of better toolsMartin Braun2022-06-101-49/+18
| | | | | | Building .deb files has an entire ecosystem dedicated to it which is superior to cpack, and we don't test cpack, either. Users wanting to build .deb files should take a look at tools/debs/uhd_ubuntu_deb.py.
* utils: uhd_images_downloader: Print name of file that exceeds limitWade Fife2022-06-101-5/+5
| | | | | When a file exceeds the download limit, print the name of the file in the message that asks if we want to continue downloading.
* rfnoc: Improve documentation for chdr_ctrl_endpointMartin Braun2022-06-101-3/+23
|
* ci: Add package source support to pipelinesSteven Koo2022-06-102-0/+88
| | | | | | | This change adds support for building the release tarballs using pipelines using tools/package_source.sh Signed-off-by: Steven Koo <steven.koo@ni.com>
* ci: Add package builder container entrySteven Koo2022-06-105-0/+14
| | | | | | This container will be used to build the src tarballs. Signed-off-by: Steven Koo <steven.koo@ni.com>