From: Arend van Spriel <arend@broadcom.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: "Maximilian Engelhardt" <maxi@daemonizer.de>,
"Rafał Miłecki" <zajec5@gmail.com>,
"Seth Forshee" <seth.forshee@canonical.com>,
"brcm80211 development" <brcm80211-dev-list@broadcom.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"Network Development" <netdev@vger.kernel.org>
Subject: Re: BCM4313 & brcmsmac & 3.12: only semi-working?
Date: Wed, 19 Nov 2014 18:54:21 +0100 [thread overview]
Message-ID: <546CD94D.9060509@broadcom.com> (raw)
In-Reply-To: <546C5D1F.108@msgid.tls.msk.ru>
[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]
On 11/19/14 10:04, Michael Tokarev wrote:
> 18.11.2014 01:36, Maximilian Engelhardt wrote:
> []
>> I just wanted to ask if there is any progress on this issue since I haven't
>> heard anything for a month. Please let me know if you need any additional
>> information.
>
> I've no idea if there's any progress. Meanwhile I've an easy way of
> testing of my brcm4313 card in a mini-itx board with mini-PCIe slot.
> It works rather nicely and the stalls are easy to trigger.
> Running 3.16 kernel right now, tried to d/load a file from the
> AP, -- boom, it stalled after 77Kb.
>
> Since the previous discussion apparently ended prematurely and no patches
> to try emerged, I don't have anything to try on it...
In our last email exchange I got the impression you switch to Intel
board and did not want to keep replacing cards for testing. Nice to hear
you have an alternative setup for this and I assume are willing to do
some testing.
I submitted two patches upstream and additionally I have attached two
other that are still under review. Could you try these patches and sent
me the content of the two debugfs files 'macstat' and 'hardware' after a
stall has occurred.
Regards,
Arend
[-- Attachment #2: 0001-brcmutil-add-helper-function-to-format-board-revisio.patch --]
[-- Type: text/plain, Size: 2045 bytes --]
From dbc69f9769b92f3ce115fabf880f767d6bd4c436 Mon Sep 17 00:00:00 2001
From: Arend van Spriel <arend@broadcom.com>
Date: Thu, 13 Nov 2014 14:16:34 +0100
Subject: [PATCH 1/2] brcmutil: add helper function to format board revision
The board revision that is available in hardware can be translated
so it matches the labelling on the board. This is accomplished by
this helper function.
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
---
drivers/net/wireless/brcm80211/brcmutil/utils.c | 16 ++++++++++++++++
drivers/net/wireless/brcm80211/include/brcmu_utils.h | 2 ++
2 files changed, 18 insertions(+)
diff --git a/drivers/net/wireless/brcm80211/brcmutil/utils.c b/drivers/net/wireless/brcm80211/brcmutil/utils.c
index 0f7e1c7..1575a1d 100644
--- a/drivers/net/wireless/brcm80211/brcmutil/utils.c
+++ b/drivers/net/wireless/brcm80211/brcmutil/utils.c
@@ -292,4 +292,20 @@ void brcmu_dbg_hex_dump(const void *data, size_t size, const char *fmt, ...)
print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, data, size);
}
EXPORT_SYMBOL(brcmu_dbg_hex_dump);
+
+/* Produce a human-readable string for boardrev */
+char *brcmu_boardrev_str(u32 brev, char *buf)
+{
+ char c;
+
+ if (brev < 0x100) {
+ snprintf(buf, 8, "%d.%d", (brev & 0xf0) >> 4, brev & 0xf);
+ } else {
+ c = (brev & 0xf000) == 0x1000 ? 'P' : 'A';
+ snprintf(buf, 8, "%c%03x", c, brev & 0xfff);
+ }
+ return (buf);
+}
+EXPORT_SYMBOL(brcmu_boardrev_str);
+
#endif /* defined(DEBUG) */
diff --git a/drivers/net/wireless/brcm80211/include/brcmu_utils.h b/drivers/net/wireless/brcm80211/include/brcmu_utils.h
index 8ba445b..a043e29 100644
--- a/drivers/net/wireless/brcm80211/include/brcmu_utils.h
+++ b/drivers/net/wireless/brcm80211/include/brcmu_utils.h
@@ -218,4 +218,6 @@ void brcmu_dbg_hex_dump(const void *data, size_t size, const char *fmt, ...)
}
#endif
+char *brcmu_boardrev_str(u32 brev, char *buf);
+
#endif /* _BRCMU_UTILS_H_ */
--
1.9.1
[-- Attachment #3: 0002-brcmsmac-extend-hardware-info-shown-in-debugfs.patch --]
[-- Type: text/plain, Size: 2491 bytes --]
From a197cf44ef058942928b48223fce9d3f112be9d0 Mon Sep 17 00:00:00 2001
From: Arend van Spriel <arend@broadcom.com>
Date: Thu, 13 Nov 2014 14:19:49 +0100
Subject: [PATCH 2/2] brcmsmac: extend hardware info shown in debugfs
The hardware info now also include radio and phy information, which
can be helpful in debugging issues.
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
---
drivers/net/wireless/brcm80211/brcmsmac/debug.c | 40 +++++++++++++++++--------
1 file changed, 27 insertions(+), 13 deletions(-)
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/debug.c b/drivers/net/wireless/brcm80211/brcmsmac/debug.c
index 19740c1..c9a8b93 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/debug.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/debug.c
@@ -30,6 +30,7 @@
#include "main.h"
#include "debug.h"
#include "brcms_trace_events.h"
+#include "phy/phy_int.h"
static struct dentry *root_folder;
@@ -74,20 +75,33 @@ static
int brcms_debugfs_hardware_read(struct seq_file *s, void *data)
{
struct brcms_pub *drvr = s->private;
+ struct brcms_hardware *hw = drvr->wlc->hw;
+ struct bcma_device *core = hw->d11core;
+ struct bcma_bus *bus = core->bus;
+ char boardrev[10];
- seq_printf(s, "board vendor: %x\n"
- "board type: %x\n"
- "board revision: %x\n"
- "board flags: %x\n"
- "board flags2: %x\n"
- "firmware revision: %x\n",
- drvr->wlc->hw->d11core->bus->boardinfo.vendor,
- drvr->wlc->hw->d11core->bus->boardinfo.type,
- drvr->wlc->hw->boardrev,
- drvr->wlc->hw->boardflags,
- drvr->wlc->hw->boardflags2,
- drvr->wlc->ucode_rev);
-
+ seq_printf(s, "chipnum 0x%x\n"
+ "chiprev 0x%x\n"
+ "chippackage 0x%x\n"
+ "corerev 0x%x\n"
+ "boardid 0x%x\n"
+ "boardvendor 0x%x\n"
+ "boardrev %s\n"
+ "boardflags 0x%x\n"
+ "boardflags2 0x%x\n"
+ "ucoderev 0x%x\n"
+ "radiorev 0x%x\n"
+ "phytype 0x%x\n"
+ "phyrev 0x%x\n"
+ "anarev 0x%x\n"
+ "nvramrev %d\n",
+ bus->chipinfo.id, bus->chipinfo.rev, bus->chipinfo.pkg,
+ core->id.rev, bus->boardinfo.type, bus->boardinfo.vendor,
+ brcmu_boardrev_str(hw->boardrev, boardrev),
+ drvr->wlc->hw->boardflags, drvr->wlc->hw->boardflags2,
+ drvr->wlc->ucode_rev, hw->band->radiorev,
+ hw->band->phytype, hw->band->phyrev, hw->band->pi->ana_rev,
+ hw->sromrev);
return 0;
}
--
1.9.1
next prev parent reply other threads:[~2014-11-19 17:54 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <52BDE9DC.5040206@msgid.tls.msk.ru>
[not found] ` <52BE9CF9.7030305@broadcom.com>
[not found] ` <52BEC2F6.7010505@msgid.tls.msk.ru>
[not found] ` <52D4FC8B.6090301@msgid.tls.msk.ru>
[not found] ` <52F925A9.1030707@msgid.tls.msk.ru>
[not found] ` <53526124.6050407@msgid.tls.msk.ru>
2014-08-26 5:13 ` BCM4313 & brcmsmac & 3.12: only semi-working? Michael Tokarev
[not found] ` <53FC1789.6020407-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
2014-08-26 14:56 ` Arend van Spriel
2014-08-26 16:15 ` Michael Tokarev
2014-08-26 21:37 ` Arend van Spriel
2014-08-27 10:02 ` Michael Tokarev
2014-08-27 15:27 ` Arend van Spriel
2014-09-15 8:03 ` Arend van Spriel
2014-09-21 15:30 ` Michael Tokarev
2014-09-23 10:04 ` Michael Tokarev
2014-09-23 12:47 ` Arend van Spriel
[not found] ` <54216BF1.3060500-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-09-23 13:44 ` Seth Forshee
2014-09-23 13:50 ` Arend van Spriel
2014-09-23 14:25 ` Michael Tokarev
2014-09-23 14:28 ` Michael Tokarev
2014-09-23 14:31 ` Seth Forshee
2014-09-23 16:02 ` Michael Tokarev
2014-09-23 17:35 ` Arend van Spriel
2014-09-23 18:10 ` Michael Tokarev
[not found] ` <5421B78E.4050908-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
2014-09-24 13:28 ` Arend van Spriel
[not found] ` <5422C6E0.3080002-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-09-24 14:51 ` Michael Tokarev
2014-09-26 14:26 ` Michael Tokarev
2014-09-26 14:42 ` Arend van Spriel
[not found] ` <54257B69.3070607-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-09-26 15:20 ` Michael Tokarev
2014-09-29 13:44 ` Arend van Spriel
2014-09-29 19:40 ` Maximilian Engelhardt
2014-09-30 10:06 ` Arend van Spriel
2014-10-08 22:19 ` Maximilian Engelhardt
2014-10-09 7:52 ` Arend van Spriel
2014-10-09 8:21 ` Rafał Miłecki
2014-11-17 22:36 ` Maximilian Engelhardt
2014-11-19 9:04 ` Michael Tokarev
2014-11-19 17:54 ` Arend van Spriel [this message]
2014-11-19 19:58 ` Michael Tokarev
2014-11-19 21:00 ` Michael Tokarev
2014-11-23 9:43 ` Arend van Spriel
2014-11-26 9:52 ` Michael Tokarev
[not found] ` <5475A2DC.80502-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
2014-11-30 12:04 ` Arend van Spriel
[not found] ` <547B07CF.90501-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-12-02 21:40 ` Michael Tokarev
2014-12-03 12:43 ` Arend van Spriel
2014-12-16 16:51 ` Arend van Spriel
[not found] ` <549062FE.2000808-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-12-21 9:58 ` Michael Tokarev
[not found] ` <549699D9.2060106-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
2014-12-21 10:12 ` Arend van Spriel
[not found] ` <54969D18.3060000-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-12-21 14:08 ` Maximilian Engelhardt
2014-12-21 14:13 ` Arend van Spriel
2014-12-21 14:24 ` Maximilian Engelhardt
2014-12-21 15:03 ` Arend van Spriel
2014-12-21 17:34 ` Maximilian Engelhardt
2015-03-09 20:54 ` Daniel Glöckner
2015-03-10 21:27 ` Arend van Spriel
2014-12-01 22:06 ` Maximilian Engelhardt
2014-11-19 13:46 ` Arend van Spriel
[not found] ` <546C9F2B.8090104-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-11-19 13:49 ` Arend van Spriel
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=546CD94D.9060509@broadcom.com \
--to=arend@broadcom.com \
--cc=brcm80211-dev-list@broadcom.com \
--cc=linux-wireless@vger.kernel.org \
--cc=maxi@daemonizer.de \
--cc=mjt@tls.msk.ru \
--cc=netdev@vger.kernel.org \
--cc=seth.forshee@canonical.com \
--cc=zajec5@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).