File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,6 +156,11 @@ uint32_t CruBar::getSuperpageSize(uint32_t link)
156156{
157157 writeRegister (Cru::Registers::LINK_SUPERPAGE_SIZE.get (link).index , 0xbadcafe ); // write a dummy value to update the FIFO
158158 uint32_t superpageSizeFifo = readRegister (Cru::Registers::LINK_SUPERPAGE_SIZE.get (link).index );
159+ uint32_t superpageSizeFifoCopy = readRegister (Cru::Registers::LINK_SUPERPAGE_SIZE.get (link).index );
160+ if (superpageSizeFifoCopy != superpageSizeFifo) {
161+ log (" superpageSize inconsistent: " + std::to_string (superpageSizeFifo) + " != " + std::to_string (superpageSizeFifoCopy), LogWarningDevel_ (4600 ));
162+ }
163+
159164 uint32_t superpageSize = Utilities::getBits (superpageSizeFifo, 0 , 23 ); // [0-23] -> superpage size (in bytes)
160165 if (superpageSize == 0 ) { // No reason to check for index -> superpageSize == 0 -> CRU FW < v3.4.0
161166 return 0 ;
You can’t perform that action at this time.
0 commit comments