Skip to content

Commit

Permalink
Update debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
freshLiver committed May 11, 2023
1 parent c665c01 commit 31d841b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Toshiba-8c8w/request_schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,10 @@ void SchedulingNandReqPerCh(unsigned int chNo)
}
}
}
else
{
pr_debug("Ch[%u]: No idle way can be used to issue new request ...", chNo);
}

/**
* In the last part, we now can try to issue the requests based on the priority of
Expand Down Expand Up @@ -1421,18 +1425,18 @@ void ExecuteNandReq(unsigned int chNo, unsigned int wayNo, unsigned int reqStatu
}

if (reqPoolPtr->reqPool[reqSlotTag].reqCode == REQ_CODE_READ)
xil_printf("Read Trigger FAIL on ");
pr_warn("Read Trigger FAIL on ");
else if (reqPoolPtr->reqPool[reqSlotTag].reqCode == REQ_CODE_READ_TRANSFER)
xil_printf("Read Transfer FAIL on ");
pr_warn("Read Transfer FAIL on ");
else if (reqPoolPtr->reqPool[reqSlotTag].reqCode == REQ_CODE_WRITE)
xil_printf("Write FAIL on ");
pr_warn("Write FAIL on ");
else if (reqPoolPtr->reqPool[reqSlotTag].reqCode == REQ_CODE_ERASE)
xil_printf("Erase FAIL on ");
pr_warn("Erase FAIL on ");

rowAddr = GenerateNandRowAddr(reqSlotTag);
pr_error("ch %x way %x rowAddr 0x%x: completeFlag 0x%x statusReport 0x%x", chNo, wayNo, rowAddr,
completeFlagTablePtr->completeFlag[chNo][wayNo],
statusReportTablePtr->statusReport[chNo][wayNo]);
pr_warn("ch %x way %x rowAddr 0x%x: completeFlag 0x%x statusReport 0x%x", chNo, wayNo, rowAddr,
completeFlagTablePtr->completeFlag[chNo][wayNo],
statusReportTablePtr->statusReport[chNo][wayNo]);

if (reqPoolPtr->reqPool[reqSlotTag].reqOpt.nandEcc == REQ_OPT_NAND_ECC_OFF)
if (reqPoolPtr->reqPool[reqSlotTag].reqOpt.dataBufFormat == REQ_OPT_DATA_BUF_ADDR)
Expand Down

0 comments on commit 31d841b

Please sign in to comment.