DMA test failures #89

Closed
opened 2020-08-05 18:49:48 +08:00 by sb10q · 3 comments
Owner
======================================================================
FAIL: test_dma_delta (test_rtio.DMATest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pca006132/code/artiq/artiq/test/coredevice/test_rtio.py", line 699, in test_dma_delta
    self.assertEqual(exp.delta, 1000200)
AssertionError: 0 != 1000200

----------------------------------------------------------------------
======================================================================
FAIL: test_dma_trace (test_rtio.DMATest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pca006132/code/artiq/artiq/test/coredevice/test_rtio.py", line 683, in test_dma_trace
    self.assertEqual(dump.messages[0].channel, 1)
AssertionError: 5 != 1

----------------------------------------------------------------------

``` ====================================================================== FAIL: test_dma_delta (test_rtio.DMATest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pca006132/code/artiq/artiq/test/coredevice/test_rtio.py", line 699, in test_dma_delta self.assertEqual(exp.delta, 1000200) AssertionError: 0 != 1000200 ---------------------------------------------------------------------- ``` ``` ====================================================================== FAIL: test_dma_trace (test_rtio.DMATest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pca006132/code/artiq/artiq/test/coredevice/test_rtio.py", line 683, in test_dma_trace self.assertEqual(dump.messages[0].channel, 1) AssertionError: 5 != 1 ---------------------------------------------------------------------- ```
Author
Owner

I got underflows when trying to run them myself...

======================================================================
ERROR: test_dma_delta (test_rtio.DMATest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sb/artiq/artiq/test/coredevice/test_rtio.py", line 698, in test_dma_delta
    exp.playback(False)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/language/core.py", line 54, in run_on_core
    return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/core.py", line 137, in run
    self.comm.serve(embedding_map, symbolizer, demangler)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 502, in serve
    self._serve_exception(embedding_map, symbolizer, demangler)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 494, in _serve_exception
    raise python_exn
artiq.coredevice.exceptions.RTIOUnderflow: RTIO underflow at 35289695412 mu, channel 5

======================================================================
ERROR: test_dma_storage (test_rtio.DMATest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sb/artiq/artiq/test/coredevice/test_rtio.py", line 659, in test_dma_storage
    exp.playback()
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/language/core.py", line 54, in run_on_core
    return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/core.py", line 137, in run
    self.comm.serve(embedding_map, symbolizer, demangler)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 502, in serve
    self._serve_exception(embedding_map, symbolizer, demangler)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 494, in _serve_exception
    raise python_exn
artiq.coredevice.exceptions.RTIOUnderflow: RTIO underflow at 35962893852 mu, channel 5

======================================================================
ERROR: test_dma_trace (test_rtio.DMATest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sb/artiq/artiq/test/coredevice/test_rtio.py", line 677, in test_dma_trace
    exp.playback(use_handle)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/language/core.py", line 54, in run_on_core
    return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/core.py", line 137, in run
    self.comm.serve(embedding_map, symbolizer, demangler)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 502, in serve
    self._serve_exception(embedding_map, symbolizer, demangler)
  File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 494, in _serve_exception
    raise python_exn
artiq.coredevice.exceptions.RTIOUnderflow: RTIO underflow at 36465748268 mu, channel 5

@pca006132 Did you correctly load the nist_qc2 gateware and firmware variant? The ARTIQ tests do not work with the simple variant.

Note that the impure build process doesn't handle changing variants without deleting the build folder manually.

I got underflows when trying to run them myself... ```text ====================================================================== ERROR: test_dma_delta (test_rtio.DMATest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sb/artiq/artiq/test/coredevice/test_rtio.py", line 698, in test_dma_delta exp.playback(False) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/language/core.py", line 54, in run_on_core return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/core.py", line 137, in run self.comm.serve(embedding_map, symbolizer, demangler) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 502, in serve self._serve_exception(embedding_map, symbolizer, demangler) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 494, in _serve_exception raise python_exn artiq.coredevice.exceptions.RTIOUnderflow: RTIO underflow at 35289695412 mu, channel 5 ====================================================================== ERROR: test_dma_storage (test_rtio.DMATest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sb/artiq/artiq/test/coredevice/test_rtio.py", line 659, in test_dma_storage exp.playback() File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/language/core.py", line 54, in run_on_core return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/core.py", line 137, in run self.comm.serve(embedding_map, symbolizer, demangler) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 502, in serve self._serve_exception(embedding_map, symbolizer, demangler) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 494, in _serve_exception raise python_exn artiq.coredevice.exceptions.RTIOUnderflow: RTIO underflow at 35962893852 mu, channel 5 ====================================================================== ERROR: test_dma_trace (test_rtio.DMATest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sb/artiq/artiq/test/coredevice/test_rtio.py", line 677, in test_dma_trace exp.playback(use_handle) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/language/core.py", line 54, in run_on_core return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/core.py", line 137, in run self.comm.serve(embedding_map, symbolizer, demangler) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 502, in serve self._serve_exception(embedding_map, symbolizer, demangler) File "/nix/store/4clqw78wz4x3kdgfa5jf9yqc440r5l15-python3-3.7.6-env/lib/python3.7/site-packages/artiq/coredevice/comm_kernel.py", line 494, in _serve_exception raise python_exn artiq.coredevice.exceptions.RTIOUnderflow: RTIO underflow at 36465748268 mu, channel 5 ``` @pca006132 Did you correctly load the ``nist_qc2`` gateware and firmware variant? The ARTIQ tests do not work with the ``simple`` variant. Note that the impure build process doesn't handle changing variants without deleting the build folder manually.
Author
Owner

The underflows could be due simply to the very high Zynq AXI latency. I'll take a look.

The underflows could be due simply to the very high Zynq AXI latency. I'll take a look.
Author
Owner

Hmm, no. Then my best guess is DMA buffer corruption similar to #90

Hmm, no. Then my best guess is DMA buffer corruption similar to https://git.m-labs.hk/M-Labs/artiq-zynq/issues/90
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#89
No description provided.