Browse Source

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
Lin Bai 4 years ago
parent
commit
2d1f2a224b
1 changed files with 11 additions and 0 deletions
  1. 11 0
      core/wma/src/wma_features.c

+ 11 - 0
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));