bluecmd / fejkon

Fibre Channel / FICON HBA implemented on FPGA
GNU General Public License v3.0
35 stars 2 forks source link

FC traffic generator #39

Closed bluecmd closed 4 years ago

bluecmd commented 4 years ago

State:

When sending 1 packet the machine locks up.

Setting generator to 100 the packet counter stops at 4 but the TLP TX Data counter is spinning freely.


 TLP RX               : 0x0001001c
 TLP Unsupported RX   : 0x00000000
 TLP TX Data          : 0x3271be88
 TLP TX Instant       : 0x00000000
 TLP TX Response      : 0x00010009

 Last TLP RX          : 0x40000001 0x0000000f 0xfbe008a8 0x00000000 0x34480000 0xd6e5b546 0xffffffff 0xffffffff
 Last TLP TX Data     : 0x4000000c 0xb3000000 0x34480000 0x00000000 0x00000084 0x00000000 0x00000000 0x00000000
 Last TLP TX Instant  : 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
 Last TLP TX Response : 0x4a000001 0xb3000004 0xb200004c 0x00000000 0xffffffff 0xffffffff 0xffffffff 0xffffffff

 C2H Packet counter   : 0x00000004
 C2H Start address    : 0x34480000
 C2H End address      : 0x34500000
 C2H Host read ptr    : 0x34480000
 C2H Card write ptr   : 0x34480000
bluecmd commented 4 years ago

Currently generating a weird TLP:

 Last TLP TX Data     : 0x4000000c 0x000000ff 0x34481000 0x00000000 0x00000084 0x00000000 0x00000000 0x00000000

It doesn't have a good requester ID. Possibly happened during reboot.

bluecmd commented 4 years ago

Also the staging counter does not increase while the PCIe part is stalled. Should add a test case that stalls the PCIe part and ensures that the data_tx line is consumed anyway.

bluecmd commented 4 years ago

The one that freezes the host is:

 Last TLP TX Data     : 0x4000000c 0xb30000ff 0x34480000 0x00000000 0x00000084 0x00000000 0x00000000 0x00000000
bluecmd commented 4 years ago

Things left to do, but this adds the generator and it seems to work fine-ish.