Skip to content

Commit 8641a1a

Browse files
authored
Enable PD exception logging by default (#243)
Previously, PD exception logging was only enabled when the PD_EXCEPTION_LOGGING compile-time flag was defined. This change enables PD exception logging by default, allowing DSP fatal logs to be redirected to the shared buffer for apps-side logging.
2 parents c5f6417 + 939b2a1 commit 8641a1a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/fastrpc_apps_user.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4040,15 +4040,13 @@ static int domain_init(int domain, int *dev) {
40404040
ret == (int)(DSP_AEE_EOFFSET + AEE_EUNSUPPORTED),
40414041
ret);
40424042
}
4043-
#ifdef PD_EXCEPTION_LOGGING
40444043
if ((dom != SDSP_DOMAIN_ID) && hlist[domain].dsppd == ROOT_PD) {
40454044
remote_handle64 handle = 0;
40464045
handle = get_adspmsgd_adsp1_handle(domain);
40474046
if (handle != INVALID_HANDLE) {
40484047
adspmsgd_init(handle, 0x10); // enable PD exception logging
40494048
}
40504049
}
4051-
#endif
40524050
fastrpc_perf_init(hlist[domain].dev, domain);
40534051
VERIFY(AEE_SUCCESS ==
40544052
(nErr = fastrpc_latency_init(hlist[domain].dev, &hlist[domain].qos)));

0 commit comments

Comments
 (0)