From: greearb@candelatech.com
To: linux-wireless@vger.kernel.org
Cc: Ben Greear <greearb@candelatech.com>, ath10k@lists.infradead.org
Subject: [PATCH] ath10k: improve logging in firmware crash routine.
Date: Tue, 5 Aug 2014 13:49:32 -0700 [thread overview]
Message-ID: <1407271772-14874-1-git-send-email-greearb@candelatech.com> (raw)
From: Ben Greear <greearb@candelatech.com>
Only print error message upon failure, and print more
details in case it does find an error.
Signed-off-by: Ben Greear <greearb@candelatech.com>
---
This is on top of the firmware crash reporting patches,
not sure it would apply clean until those get in.
drivers/net/wireless/ath/ath10k/pci.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 24688b7..085c0c8 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -929,12 +929,11 @@ static void ath10k_pci_hif_dump_area(struct ath10k *ar)
ret = ath10k_pci_diag_read_mem(ar, host_addr,
®_dump_area, sizeof(u32));
if (ret) {
- ath10k_err("failed to read FW dump area address: %d\n", ret);
+ ath10k_err("failed to read FW dump area address: %d (hostaddr 0x%08X hi-failure-state 0x%08lX)\n",
+ ret, host_addr, HI_ITEM(hi_failure_state));
goto exit;
}
- ath10k_err("target register Dump Location: 0x%08X\n", reg_dump_area);
-
ret = ath10k_pci_diag_read_mem(ar, reg_dump_area,
®_dump_values[0],
REG_DUMP_COUNT_QCA988X * sizeof(u32));
--
1.7.11.7
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
WARNING: multiple messages have this Message-ID (diff)
From: greearb@candelatech.com
To: linux-wireless@vger.kernel.org
Cc: ath10k@lists.infradead.org, Ben Greear <greearb@candelatech.com>
Subject: [PATCH] ath10k: improve logging in firmware crash routine.
Date: Tue, 5 Aug 2014 13:49:32 -0700 [thread overview]
Message-ID: <1407271772-14874-1-git-send-email-greearb@candelatech.com> (raw)
From: Ben Greear <greearb@candelatech.com>
Only print error message upon failure, and print more
details in case it does find an error.
Signed-off-by: Ben Greear <greearb@candelatech.com>
---
This is on top of the firmware crash reporting patches,
not sure it would apply clean until those get in.
drivers/net/wireless/ath/ath10k/pci.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 24688b7..085c0c8 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -929,12 +929,11 @@ static void ath10k_pci_hif_dump_area(struct ath10k *ar)
ret = ath10k_pci_diag_read_mem(ar, host_addr,
®_dump_area, sizeof(u32));
if (ret) {
- ath10k_err("failed to read FW dump area address: %d\n", ret);
+ ath10k_err("failed to read FW dump area address: %d (hostaddr 0x%08X hi-failure-state 0x%08lX)\n",
+ ret, host_addr, HI_ITEM(hi_failure_state));
goto exit;
}
- ath10k_err("target register Dump Location: 0x%08X\n", reg_dump_area);
-
ret = ath10k_pci_diag_read_mem(ar, reg_dump_area,
®_dump_values[0],
REG_DUMP_COUNT_QCA988X * sizeof(u32));
--
1.7.11.7
next reply other threads:[~2014-08-05 20:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-05 20:49 greearb [this message]
2014-08-05 20:49 ` [PATCH] ath10k: improve logging in firmware crash routine greearb
2014-08-19 12:11 ` Kalle Valo
2014-08-19 12:11 ` Kalle Valo
2014-08-19 14:16 ` Ben Greear
2014-08-19 14:16 ` Ben Greear
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=1407271772-14874-1-git-send-email-greearb@candelatech.com \
--to=greearb@candelatech.com \
--cc=ath10k@lists.infradead.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.