All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Coelho <luca@coelho.fi>
To: kvalo@codeaurora.org
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH 03/12] iwlwifi: fwrt: add suspend/resume time point
Date: Sun, 31 Jan 2021 20:22:03 +0200	[thread overview]
Message-ID: <iwlwifi.20210131201908.eaf378ed403c.I46fae3ee6da1a4b476515b8ad51ad1c0ea2d8381@changeid> (raw)
In-Reply-To: <20210131182212.929755-1-luca@coelho.fi>

From: Mordechay Goodstein <mordechay.goodstein@intel.com>

We should only collect debug data after exiting suspend state, that's
why we delete the current place in d3.c file, and add it to fwrt flows
that occur while we can still access the fw and collect debug data.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/fw/init.c | 2 ++
 drivers/net/wireless/intel/iwlwifi/mvm/d3.c  | 3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/fw/init.c b/drivers/net/wireless/intel/iwlwifi/fw/init.c
index e317b051b8ed..986913f2fbd5 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/init.c
+++ b/drivers/net/wireless/intel/iwlwifi/fw/init.c
@@ -36,11 +36,13 @@ IWL_EXPORT_SYMBOL(iwl_fw_runtime_init);
 void iwl_fw_runtime_suspend(struct iwl_fw_runtime *fwrt)
 {
 	iwl_fw_suspend_timestamp(fwrt);
+	iwl_dbg_tlv_time_point(fwrt, IWL_FW_INI_TIME_POINT_HOST_D3_START, NULL);
 }
 IWL_EXPORT_SYMBOL(iwl_fw_runtime_suspend);
 
 void iwl_fw_runtime_resume(struct iwl_fw_runtime *fwrt)
 {
+	iwl_dbg_tlv_time_point(fwrt, IWL_FW_INI_TIME_POINT_HOST_D3_END, NULL);
 	iwl_fw_resume_timestamp(fwrt);
 }
 IWL_EXPORT_SYMBOL(iwl_fw_runtime_resume);
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c
index f98eb7b71068..816a82db8252 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c
@@ -2048,9 +2048,6 @@ static int __iwl_mvm_resume(struct iwl_mvm *mvm, bool test)
 		goto err;
 	}
 
-	iwl_dbg_tlv_time_point(&mvm->fwrt, IWL_FW_INI_TIME_POINT_HOST_D3_END,
-			       NULL);
-
 	ret = iwl_trans_d3_resume(mvm->trans, &d3_status, test, !unified_image);
 	if (ret)
 		goto err;
-- 
2.29.2


  parent reply	other threads:[~2021-01-31 20:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-31 18:22 [PATCH 00/12] iwlwifi: updates intended for v5.12 2021-01-31 part 2 Luca Coelho
2021-01-31 18:22 ` [PATCH 01/12] iwlwifi: mvm: add IML/ROM information for other HW families Luca Coelho
2021-02-05  9:59   ` Luca Coelho
2021-01-31 18:22 ` [PATCH 02/12] iwlwifi: mvm: add triggers for MLME events Luca Coelho
2021-01-31 18:22 ` Luca Coelho [this message]
2021-01-31 18:22 ` [PATCH 04/12] iwlwifi: mvm: add tx fail time point Luca Coelho
2021-01-31 18:22 ` [PATCH 05/12] iwlwifi: mvm: add debugfs entry to trigger a dump as any time-point Luca Coelho
2021-01-31 18:22 ` [PATCH 06/12] iwlwifi: mvm: set enabled in the PPAG command properly Luca Coelho
2021-01-31 18:22 ` [PATCH 07/12] iwlwifi: mvm: implement approved list for the PPAG feature Luca Coelho
2021-01-31 18:22 ` [PATCH 08/12] iwlwifi: mvm: add HP to the PPAG approved list Luca Coelho
2021-01-31 18:22 ` [PATCH 09/12] iwlwifi: mvm: add Samsung " Luca Coelho
2021-01-31 18:22 ` [PATCH 10/12] iwlwifi: mvm: add Microsoft " Luca Coelho
2021-01-31 18:22 ` [PATCH 11/12] iwlwifi: mvm: add Asus " Luca Coelho
2021-01-31 18:22 ` [PATCH 12/12] iwlwifi: bump FW API to 61 for AX devices Luca Coelho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iwlwifi.20210131201908.eaf378ed403c.I46fae3ee6da1a4b476515b8ad51ad1c0ea2d8381@changeid \
    --to=luca@coelho.fi \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.