aes-stream-drivers: check for non-enumerated (or lost PCIe connection) in AxiMemMap() and AxiStreamDma()

XMLWordPrintable

    • Type: New Feature
    • Resolution: resolved
    • Priority: Trivial
    • Component/s: SW
    • None

      Consider you have a PCIe card that's not enumerated (like reprogramming it JTAG). When you cat the device, you get all ones for all registers

      $ cat /proc/datadev_0 
      -------------- Axi Version ----------------
           Firmware Version : 0xffffffff
                 ScratchPad : 0xffffffff
              Up Time Count : 4294967295
                   Fd Value : 0xffffffffffffffff
                  Device ID : 0xffffffff
                   Git Hash : ffffffffffffffffffffffffffffffffffffffff
                  DNA Value : 0xffffffffffffffffffffffffffffffff
      

      Could you add an error check in the "rogue.hardware.axi.AxiMemMap()" and "rogue.hardware.axi.AxiStreamDma()" that check for one of the registers being all ones? Maybe check if UpTimeCount = 0xFFFFFFFF = 4294967295 seconds = 136.2 years

              Assignee:
              Ryan Herbst
              Reporter:
              Larry Ruckman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: