> This patch includes functions to record > contexts of incoming commands in a circular queue. > ufshcd.c has already some function tracer calls to get > command history. However ftrace would be pointless > when system dies before you get the information, > such as panic cases. This patch implements callbacks > compl_xfer_req to store IO contexts at completion times. > > When you turn on CONFIG_SCSI_UFS_EXYNOS_DBG, > the driver collects the information from incoming commands > in the circular queue. > > I also implemented dbg_register_dump callback to print > command history for abnormal cases. Currenty, I just add > command history print and you can add various vendor regions. > > Signed-off-by: Kiwoong Kim <kwmad.kim@xxxxxxxxxxx> Reviewed-by: Avri Altman <avri.altman@xxxxxxx>