Skip to content

Commit 8eca739

Browse files
committed
[crorc] "Randomize" CRORC channel creation timing
1 parent b705394 commit 8eca739

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Crorc/CrorcDmaChannel.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ CrorcDmaChannel::~CrorcDmaChannel()
113113

114114
void CrorcDmaChannel::deviceStartDma()
115115
{
116+
/* This sleep is an effort to reduce PCIe/BAR saturation during the DMA start
117+
of different channels, during which lost BAR operations were observed.
118+
If initialization of all 5 channels is triggered together, it will proceed in
119+
a sequential manner. */
120+
std::this_thread::sleep_for(getChannelNumber() * std::chrono::milliseconds(100));
116121
deviceResetChannel(ResetLevel::Internal);
117122

118123
startDataReceiving();

0 commit comments

Comments
 (0)