diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2018-01-08 11:02:34 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-08 11:52:49 -0800 |
commit | 7cb9af05ec89c88d81cb7bca77dec7c1504ef8d2 (patch) | |
tree | 12167e131350928d6ad47baff9ec2145f99e48e7 /host | |
parent | ca5054248fc5eb58c04b81f43dd7215e1c325b18 (diff) | |
download | uhd-7cb9af05ec89c88d81cb7bca77dec7c1504ef8d2.tar.gz uhd-7cb9af05ec89c88d81cb7bca77dec7c1504ef8d2.tar.bz2 uhd-7cb9af05ec89c88d81cb7bca77dec7c1504ef8d2.zip |
Revert "rfnoc: compat: Disable DMA FIFO if more radios than DMA channels exist"
This reverts commit c8cdbfc4d4e307017e02dd48c449d3e3f38118af.
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/rfnoc/legacy_compat.cpp | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/host/lib/rfnoc/legacy_compat.cpp b/host/lib/rfnoc/legacy_compat.cpp index 31297f271..137909d8b 100644 --- a/host/lib/rfnoc/legacy_compat.cpp +++ b/host/lib/rfnoc/legacy_compat.cpp @@ -86,36 +86,6 @@ size_t calc_num_tx_chans_per_radio( ); } -bool check_if_has_dma_fifo( - const uhd::device_addr_t &args, - uhd::device3::sptr device, - uhd::property_tree::sptr tree -) { - if (device->find_blocks(DFIFO_BLOCK_NAME).empty()) { - return false; - } - - if (args.has_key("skip_dram")) { - UHD_LOG_DEBUG("RFNOC", - "[legacy_compat] Skipping DRAM at user request."); - return false; - } - - const size_t num_radios_per_board = - device->find_blocks<radio_ctrl>("0/Radio").size(); - const size_t num_radio_ports = (num_radios_per_board > 0) - ? num_ports(tree, RADIO_BLOCK_NAME, "in") - : 0; - const size_t num_dmafifo_ports = num_ports(tree, DFIFO_BLOCK_NAME, "in"); - if (num_dmafifo_ports < num_radios_per_board * num_radio_ports) { - UHD_LOG_WARNING("RFNOC", - "[legacy_compat] More radio channels than DMA FIFO channels. " - "Skipping DMA FIFO."); - return false; - } - return true; -} - /*! Recreate passed property without bound subscribers. Maintains current property value. */ template <typename T> @@ -141,7 +111,7 @@ public: _tree(device->get_tree()), _has_ducs(not args.has_key("skip_duc") and not device->find_blocks(DUC_BLOCK_NAME).empty()), _has_ddcs(not args.has_key("skip_ddc") and not device->find_blocks(DDC_BLOCK_NAME).empty()), - _has_dmafifo(check_if_has_dma_fifo(args, device, _tree)), + _has_dmafifo(not args.has_key("skip_dram") and not device->find_blocks(DFIFO_BLOCK_NAME).empty()), _has_sramfifo(not args.has_key("skip_sram") and not device->find_blocks(SFIFO_BLOCK_NAME).empty()), _num_mboards(_tree->list("/mboards").size()), _num_radios_per_board(device->find_blocks<radio_ctrl>("0/Radio").size()), // These might throw, maybe we catch that and provide a nicer error message. |