ibm-capi / pslse

Power Service Layer Simulation Engine
28 stars 22 forks source link

PSLSE for CAPI2.0 not responding with REORDER_PERCENT != 0 #91

Open ThomasFuchs opened 7 years ago

ThomasFuchs commented 7 years ago

PSLSE is working well with REORDER_PERCENT: 0, but if I use other values (REORDER_PERCENT: 80,90) it hangs. I see in the waveviewer only one response for all the commands! Below two short parts of the debug.lst:

GOOD ONE: afu0.0,0:CMD: New tag=0x00 code=0x0a00 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x00 afu0.0,0:CMD: New tag=0x01 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x00 afu0.0:MMIO: Ack afu0.0:CMD: Buffer Write request tag=0x00 afu0.0,0:CMD: Update tag=0x00 resp=0x00 afu0.0,0:CMD: New tag=0x02 code=0x0a00 afu0.0,0:SOCKET OUT: MMIO ACK afu0.0,0:MMIO: Return afu0.0:CMD: Response tag=0x00 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x01 afu0.0,0:CMD: New tag=0x03 code=0x0a00 afu0.0,0:SOCKET IN: READ32 afu0.0,0:MMIO: Added Read32 Address=0x003c00 afu0.0,0:CMD: New tag=0x04 code=0x0a00 afu0.0:MMIO: Sent Read32 Address=0x803c00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x01 afu0.0:CMD: Buffer Write request tag=0x01 afu0.0,0:CMD: Update tag=0x01 resp=0x00 afu0.0,0:CMD: New tag=0x05 code=0x0a00 afu0.0:CMD: Response tag=0x01 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x02 afu0.0,0:CMD: New tag=0x06 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x02 afu0.0:CMD: Buffer Write request tag=0x02 afu0.0,0:CMD: Update tag=0x02 resp=0x00 afu0.0,0:CMD: New tag=0x07 code=0x0a00 afu0.0:CMD: Response tag=0x02 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x03 afu0.0,0:CMD: New tag=0x08 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x03 afu0.0:CMD: Buffer Write request tag=0x03 afu0.0,0:CMD: Update tag=0x03 resp=0x00 afu0.0,0:CMD: New tag=0x09 code=0x0a00 afu0.0:CMD: Response tag=0x03 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x04 afu0.0,0:CMD: New tag=0x0a code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x04 afu0.0:CMD: Buffer Write request tag=0x04 afu0.0,0:CMD: Update tag=0x04 resp=0x00 afu0.0,0:CMD: New tag=0x0b code=0x0a00 afu0.0:CMD: Response tag=0x04 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x05 afu0.0,0:CMD: New tag=0x0c code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x05 afu0.0:CMD: Buffer Write request tag=0x05 afu0.0,0:CMD: Update tag=0x05 resp=0x00 afu0.0,0:CMD: New tag=0x0d code=0x0a00 afu0.0:CMD: Response tag=0x05 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x06 afu0.0,0:CMD: New tag=0x0e code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x06 afu0.0:CMD: Buffer Write request tag=0x06 afu0.0,0:CMD: Update tag=0x06 resp=0x00 afu0.0,0:CMD: New tag=0x0f code=0x0a00 afu0.0:CMD: Response tag=0x06 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x07 afu0.0,0:CMD: New tag=0x10 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x07 afu0.0:MMIO: Ack afu0.0:CMD: Buffer Write request tag=0x07 afu0.0,0:CMD: Update tag=0x07 resp=0x00 afu0.0,0:CMD: New tag=0x11 code=0x0a00 afu0.0,0:SOCKET OUT: MMIO ACK afu0.0,0:MMIO: Return afu0.0:CMD: Response tag=0x07 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x08 afu0.0,0:CMD: New tag=0x12 code=0x0a00 afu0.0,0:SOCKET IN: READ32 afu0.0,0:MMIO: Added Read32 Address=0x003c00 afu0.0,0:CMD: New tag=0x13 code=0x0a00 afu0.0:MMIO: Sent Read32 Address=0x803c00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x08 afu0.0:CMD: Buffer Write request tag=0x08 afu0.0,0:CMD: Update tag=0x08 resp=0x00 afu0.0,0:CMD: New tag=0x14 code=0x0a00 afu0.0:CMD: Response tag=0x08 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x09 afu0.0,0:CMD: New tag=0x15 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x09 afu0.0:CMD: Buffer Write request tag=0x09 afu0.0,0:CMD: Update tag=0x09 resp=0x00 afu0.0,0:CMD: New tag=0x16 code=0x0a00 afu0.0:CMD: Response tag=0x09 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x0a afu0.0,0:CMD: New tag=0x17 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x0a afu0.0:CMD: Buffer Write request tag=0x0a afu0.0,0:CMD: Update tag=0x0a resp=0x00 afu0.0,0:CMD: New tag=0x18 code=0x0a00 afu0.0:CMD: Response tag=0x0a afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x0b afu0.0,0:CMD: New tag=0x19 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x0b afu0.0:CMD: Buffer Write request tag=0x0b afu0.0,0:CMD: Update tag=0x0b resp=0x00 afu0.0,0:CMD: New tag=0x1a code=0x0a00 afu0.0:CMD: Response tag=0x0b afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x0c afu0.0,0:CMD: New tag=0x1b code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x0c afu0.0:CMD: Buffer Write request tag=0x0c afu0.0,0:CMD: Update tag=0x0c resp=0x00 afu0.0,0:CMD: New tag=0x1c code=0x0a00 afu0.0:CMD: Response tag=0x0c afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x0d afu0.0,0:CMD: New tag=0x1d code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x0d afu0.0:CMD: Buffer Write request tag=0x0d afu0.0,0:CMD: Update tag=0x0d resp=0x00 afu0.0,0:CMD: New tag=0x1e code=0x0a00 afu0.0:CMD: Response tag=0x0d

HANG: afu0.0,0:CMD: New tag=0x00 code=0x0a00 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x00 afu0.0,0:CMD: New tag=0x01 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x00 afu0.0:MMIO: Ack afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x01 afu0.0,0:CMD: New tag=0x02 code=0x0a00 afu0.0,0:SOCKET OUT: MMIO ACK afu0.0,0:MMIO: Return afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x01 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x02 afu0.0,0:CMD: New tag=0x03 code=0x0a00 afu0.0,0:CMD: New tag=0x04 code=0x0a00 afu0.0,0:SOCKET IN: READ32 afu0.0,0:MMIO: Added Read32 Address=0x003c00 afu0.0,0:CMD: New tag=0x05 code=0x0a00 afu0.0:MMIO: Sent Read32 Address=0x803c00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x02 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x05 afu0.0,0:CMD: New tag=0x06 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x05 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x06 afu0.0,0:CMD: New tag=0x07 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x06 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x07 afu0.0,0:CMD: New tag=0x08 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x07 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x08 afu0.0,0:CMD: New tag=0x09 code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x08 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x09 afu0.0,0:CMD: New tag=0x0a code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x09 afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x0a afu0.0,0:CMD: New tag=0x0b code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x0a afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x0b afu0.0,0:CMD: New tag=0x0c code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x0b afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x0c afu0.0,0:CMD: New tag=0x0d code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x0c afu0.0,0:SOCKET OUT: READ afu0.0,0:CMD: Client Request tag=0x0d afu0.0,0:CMD: New tag=0x0e code=0x0a00 afu0.0,0:SOCKET IN: MEM ACK afu0.0,0:CMD: Client Return tag=0x0d

ThomasFuchs commented 7 years ago

To recreate the failure: 1) go to SNAP https://github.com/open-power/snap 2) checkout the branch psl9_capi2.0 3) make a model (make model) 4) start simulation (make sim) 5) type software/tools/snap_maint; actions/hdl_example/sw/snap_example -v -t 60 into the xterm that pops up ==> now you should have the log files

helenaps commented 7 years ago

I do not have access to a Power system, and don't use Xilinx Vivado. Is there a way to recreate using ncsim to simulate your example afu?  
HelenaHelena Purgatoriohelena@us.ibm.com 720-349-7944 (t/l 964-7944)IBM Systems
    ----- Original message -----From: Thomas Fuchs notifications@github.comTo: ibm-capi/pslse pslse@noreply.github.comCc: Subscribed subscribed@noreply.github.comSubject: Re: [ibm-capi/pslse] PSLSE for CAPI2.0 not responding with REORDER_PERCENT != 0 (#91)Date: Tue, Nov 7, 2017 11:37 AM  To recreate the failure: go to SNAP https://github.com/open-power/snap checkout the branch psl9_capi2.0 make a model (make model) start simulation (make sim) type software/tools/snap_maint; actions/hdl_example/sw/snap_example -v -t 60 into the xterm that pops up ==> now you should have the log files —You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.