From 2d1f2a224b73c0256fe8f3e31e89ac19dff70de2 Mon Sep 17 00:00:00 2001 From: Lin Bai Date: Wed, 20 May 2020 19:39:15 +0800 Subject: [PATCH] qcacld-3.0: Dump PAGE_FAULT event buffer On non-DRV platform, host will be waked when page fault occurs in firmware side. Need to dump event buffer which contains more debug info regarding current page fault. Change-Id: I46d724c58000b3faafc0f5eead550acb37eafe3a CRs-Fixed: 2690966 --- core/wma/src/wma_features.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 708291c1e74c..3e9d68ddc202 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -2441,6 +2441,17 @@ static int wma_wake_event_packet( packet, packet_len); break; + case WOW_REASON_PAGE_FAULT: + /* + * In case PAGE_FAULT occurs on non-DRV platform, + * dump event buffer which contains more info regarding + * current page fault. + */ + WMA_LOGD("PAGE_FAULT occurs during suspend:"); + qdf_trace_hex_dump(QDF_MODULE_ID_WMA, QDF_TRACE_LEVEL_DEBUG, + packet, packet_len); + break; + default: WMA_LOGE("Wake reason %s is not a packet event", wma_wow_wake_reason_str(wake_info->wake_reason));