|
@@ -6937,7 +6937,7 @@ ath10k_wmi_op_gen_force_fw_hang(struct ath10k *ar,
|
|
|
}
|
|
|
|
|
|
static struct sk_buff *
|
|
|
-ath10k_wmi_op_gen_dbglog_cfg(struct ath10k *ar, u32 module_enable,
|
|
|
+ath10k_wmi_op_gen_dbglog_cfg(struct ath10k *ar, u64 module_enable,
|
|
|
u32 log_level)
|
|
|
{
|
|
|
struct wmi_dbglog_cfg_cmd *cmd;
|
|
@@ -6974,6 +6974,44 @@ ath10k_wmi_op_gen_dbglog_cfg(struct ath10k *ar, u32 module_enable,
|
|
|
return skb;
|
|
|
}
|
|
|
|
|
|
+static struct sk_buff *
|
|
|
+ath10k_wmi_10_4_op_gen_dbglog_cfg(struct ath10k *ar, u64 module_enable,
|
|
|
+ u32 log_level)
|
|
|
+{
|
|
|
+ struct wmi_10_4_dbglog_cfg_cmd *cmd;
|
|
|
+ struct sk_buff *skb;
|
|
|
+ u32 cfg;
|
|
|
+
|
|
|
+ skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
|
|
|
+ if (!skb)
|
|
|
+ return ERR_PTR(-ENOMEM);
|
|
|
+
|
|
|
+ cmd = (struct wmi_10_4_dbglog_cfg_cmd *)skb->data;
|
|
|
+
|
|
|
+ if (module_enable) {
|
|
|
+ cfg = SM(log_level,
|
|
|
+ ATH10K_DBGLOG_CFG_LOG_LVL);
|
|
|
+ } else {
|
|
|
+ /* set back defaults, all modules with WARN level */
|
|
|
+ cfg = SM(ATH10K_DBGLOG_LEVEL_WARN,
|
|
|
+ ATH10K_DBGLOG_CFG_LOG_LVL);
|
|
|
+ module_enable = ~0;
|
|
|
+ }
|
|
|
+
|
|
|
+ cmd->module_enable = __cpu_to_le64(module_enable);
|
|
|
+ cmd->module_valid = __cpu_to_le64(~0);
|
|
|
+ cmd->config_enable = __cpu_to_le32(cfg);
|
|
|
+ cmd->config_valid = __cpu_to_le32(ATH10K_DBGLOG_CFG_LOG_LVL_MASK);
|
|
|
+
|
|
|
+ ath10k_dbg(ar, ATH10K_DBG_WMI,
|
|
|
+ "wmi dbglog cfg modules 0x%016llx 0x%016llx config %08x %08x\n",
|
|
|
+ __le64_to_cpu(cmd->module_enable),
|
|
|
+ __le64_to_cpu(cmd->module_valid),
|
|
|
+ __le32_to_cpu(cmd->config_enable),
|
|
|
+ __le32_to_cpu(cmd->config_valid));
|
|
|
+ return skb;
|
|
|
+}
|
|
|
+
|
|
|
static struct sk_buff *
|
|
|
ath10k_wmi_op_gen_pktlog_enable(struct ath10k *ar, u32 ev_bitmap)
|
|
|
{
|
|
@@ -8092,7 +8130,7 @@ static const struct wmi_ops wmi_10_4_ops = {
|
|
|
.gen_pdev_set_wmm = ath10k_wmi_op_gen_pdev_set_wmm,
|
|
|
.gen_force_fw_hang = ath10k_wmi_op_gen_force_fw_hang,
|
|
|
.gen_mgmt_tx = ath10k_wmi_op_gen_mgmt_tx,
|
|
|
- .gen_dbglog_cfg = ath10k_wmi_op_gen_dbglog_cfg,
|
|
|
+ .gen_dbglog_cfg = ath10k_wmi_10_4_op_gen_dbglog_cfg,
|
|
|
.gen_pktlog_enable = ath10k_wmi_op_gen_pktlog_enable,
|
|
|
.gen_pktlog_disable = ath10k_wmi_op_gen_pktlog_disable,
|
|
|
.gen_pdev_set_quiet_mode = ath10k_wmi_op_gen_pdev_set_quiet_mode,
|