drivers: nvadsp: Add msgs for logs from wfi

Add messages for states logged during wfi entry and exit.
This messages would be useful when ADSP fails to receive
wfi interrupts.

Bug 1893324

Change-Id: I3f7ade24b3d0b7bf2e5fe35d1d380ed51de38b70
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/1483708
(cherry picked from commit ea6a7d1566e57c23099ed09c06f64967d67d26da)
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: https://git-master/r/1513588
Reviewed-on: https://git-master.nvidia.com/r/1537332
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Ajay Nandakumar
2017-05-17 12:30:54 +05:30
committed by Laxman Dewangan
parent 412366151b
commit da4867a93c
2 changed files with 8 additions and 0 deletions

View File

@@ -74,6 +74,8 @@ ENUM_VALUE(ADSP_RESUME_AMISC_RESTORED, 0x331)
ENUM_VALUE(ADSP_RESUME_AMC_RESTORED, 0x332)
ENUM_VALUE(ADSP_RESUME_ARAM_RESTORED, 0x333)
ENUM_VALUE(ADSP_RESUME_COMPLETE, 0x334)
ENUM_VALUE(ADSP_WFI_ENTER, 0x335)
ENUM_VALUE(ADSP_WFI_EXIT, 0x336)
ENUM_END(adsp_state)

View File

@@ -1326,6 +1326,12 @@ static void get_adsp_state(void)
case ADSP_RESUME_COMPLETE:
msg = "resume: complete";
break;
case ADSP_WFI_ENTER:
msg = "WFI: Entering WFI";
break;
case ADSP_WFI_EXIT:
msg = "WFI: Exiting WFI, Failed to Enter";
break;
default:
msg = "Unrecognized ADSP state!!";
break;