]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor command for reporting firmware page fault informatin
authormukul sharma <quic_mukul@quicinc.com>
Mon, 18 Dec 2023 12:36:57 +0000 (18:06 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 21 Dec 2023 18:18:44 +0000 (20:18 +0200)
This is an event indicating to the user space firmware page fault
summary report that the driver has generated from firmware indications.
This summary report is used to analyze major cause of page faults and
associated debug information.

Signed-off-by: Mukul Sharma <quic_mukul@quicinc.com>
src/common/qca-vendor.h

index 1476d17f484acde0e6ffd8887c1d2c7560a98447..f03bf4e8fb612c4f4fd2215b7d0b99bdc6c58213 100644 (file)
@@ -1038,6 +1038,11 @@ enum qca_radiotap_vendor_ids {
  *     information will be set to target. Target will decide the final TX power
  *     based on this and chip specific power conformance test limits (CTL), and
  *     SAR limits.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the
+ *     driver to user space which is carrying firmware page fault related
+ *     summary report. The attributes for this command are defined in
+ *     enum qca_wlan_vendor_attr_fw_page_fault_report.
  */
 enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@@ -1259,6 +1264,7 @@ enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_SDWF_PHY_OPS = 235,
        QCA_NL80211_VENDOR_SUBCMD_SDWF_DEV_OPS = 236,
        QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237,
+       QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238,
 };
 
 /* Compatibility defines for previously used subcmd names.
@@ -16732,4 +16738,23 @@ enum qca_wlan_vendor_attr_tpc_links {
        QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
 };
 
+/**
+ * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor
+ * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data
+ * associated with the firmware page fault that is expected to contain the
+ * required dump to analyze frequent page faults.
+ * NLA_BINARY attribute, the maximum size is 1024 bytes.
+ */
+enum qca_wlan_vendor_attr_fw_page_fault_report {
+       QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0,
+       QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1,
+
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST,
+       QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX =
+       QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
+};
+
 #endif /* QCA_VENDOR_H */