linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Emmanuel Grumbach <egrumbach@gmail.com>
To: Nate Carlson <linux-wireless@natecarlson.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [ANN] new experimental firmware for 7260 / 3160 / 7265 - Core7
Date: Thu, 4 Sep 2014 08:57:34 +0300	[thread overview]
Message-ID: <CANUX_P0Ov+=80A4etd8h3Lc5xhX+G14UrxTiKHbpmyUAM7P9ag@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1409031720280.17274@admin.chi.technicality.org>

[-- Attachment #1: Type: text/plain, Size: 7564 bytes --]

On Thu, Sep 4, 2014 at 1:21 AM, Nate Carlson
<linux-wireless@natecarlson.com> wrote:
> On Tue, 2 Sep 2014, Emmanuel Grumbach wrote:
>>
>> The firmware is here:
>>
>> https://git.kernel.org/cgit/linux/kernel/git/egrumbach/linux-firmware.git/log/?h=Core7
>
>
> Gave this a shot on 3.17-rc3 plus the patch to support the new firmware.. it
> seemed to work well for a while, and then I got disconnected with the error
> below; after that I had to unload and reload iwlmvm and iwlwifi to get
> connected again..

Ok - thanks for testing.
I'll communicate this to the firmware team.

If you want, you can apply this:

diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
index cf74dbd..9e599e9 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
@@ -3336,8 +3336,10 @@ static void iwl_mvm_mac_flush(struct ieee80211_hw *hw,
                if (iwl_mvm_flush_tx_path(mvm, mvmsta->tfd_queue_msk, true))
                        IWL_ERR(mvm, "flush request fail\n");
        } else {
-               iwl_trans_wait_tx_queue_empty(mvm->trans,
-                                             mvmsta->tfd_queue_msk);
+               if (iwl_trans_wait_tx_queue_empty(mvm->trans,
+                                                 mvmsta->tfd_queue_msk))
+               iwl_force_nmi(mvm->trans);
+
        }
 done:
        mutex_unlock(&mvm->mutex);

Then, you'll be able to use FW monitor as explained here
http://wireless.kernel.org/en/users/Drivers/iwlwifi#Debugging.
You'll need the firmware attached, and load the driver with fw_monitor=1.
Then, when the error you mentioned will occur, it will crash the
firmware on purpose so that we can get the logs. You'll see lots of
junk in dmesg.

Once this happened, you can take the data from
/sys/kernel/debug/iwlwifi/0000\:01\:00.0/iwlmvm/fw_error_dump.
This will weigh around 4MB depending on the available memory in your
system, this is the data I need to give to the firmware team.

Note the privacy aspects at the very bottom of the aforementioned webpage.

Thanks!

>
> [ 4685.025024] iwlwifi 0000:03:00.0: fail to flush all tx fifo queues Q 2
> [ 4685.025037] iwlwifi 0000:03:00.0: Current SW read_ptr 62 write_ptr 63
> [ 4685.025077] iwl data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 40 00 00
> 00 00  ...........@....
> [ 4685.025104] iwlwifi 0000:03:00.0: FH TRBs(0) = 0x00000000
> [ 4685.025129] iwlwifi 0000:03:00.0: FH TRBs(1) = 0xc0110006
> [ 4685.025155] iwlwifi 0000:03:00.0: FH TRBs(2) = 0x00000000
> [ 4685.025181] iwlwifi 0000:03:00.0: FH TRBs(3) = 0x8030001a
> [ 4685.025207] iwlwifi 0000:03:00.0: FH TRBs(4) = 0x00000000
> [ 4685.025233] iwlwifi 0000:03:00.0: FH TRBs(5) = 0x00000000
> [ 4685.025259] iwlwifi 0000:03:00.0: FH TRBs(6) = 0x00000000
> [ 4685.025285] iwlwifi 0000:03:00.0: FH TRBs(7) = 0x00709072
> [ 4685.025355] iwlwifi 0000:03:00.0: Q 0 is active and mapped to fifo 3
> ra_tid 0x0000 [27,27]
> [ 4685.025424] iwlwifi 0000:03:00.0: Q 1 is active and mapped to fifo 2
> ra_tid 0x0000 [0,0]
> [ 4685.025493] iwlwifi 0000:03:00.0: Q 2 is active and mapped to fifo 1
> ra_tid 0x0000 [62,63]
> [ 4685.025561] iwlwifi 0000:03:00.0: Q 3 is active and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.025630] iwlwifi 0000:03:00.0: Q 4 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.025698] iwlwifi 0000:03:00.0: Q 5 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.025767] iwlwifi 0000:03:00.0: Q 6 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.025835] iwlwifi 0000:03:00.0: Q 7 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.025904] iwlwifi 0000:03:00.0: Q 8 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.025972] iwlwifi 0000:03:00.0: Q 9 is active and mapped to fifo 7
> ra_tid 0x0000 [115,115]
> [ 4685.026041] iwlwifi 0000:03:00.0: Q 10 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.026110] iwlwifi 0000:03:00.0: Q 11 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.026180] iwlwifi 0000:03:00.0: Q 12 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.026249] iwlwifi 0000:03:00.0: Q 13 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.026318] iwlwifi 0000:03:00.0: Q 14 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.026386] iwlwifi 0000:03:00.0: Q 15 is active and mapped to fifo 5
> ra_tid 0x0000 [0,0]
> [ 4685.026454] iwlwifi 0000:03:00.0: Q 16 is active and mapped to fifo 1
> ra_tid 0x0000 [5,7]
> [ 4685.026523] iwlwifi 0000:03:00.0: Q 17 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.026591] iwlwifi 0000:03:00.0: Q 18 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4685.026666] iwlwifi 0000:03:00.0: Q 19 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.030789] iwlwifi 0000:03:00.0: fail to flush all tx fifo queues Q 16
> [ 4687.030802] iwlwifi 0000:03:00.0: Current SW read_ptr 6 write_ptr 11
> [ 4687.030854] iwl data: 00000000: 80 07 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00  ................
> [ 4687.030881] iwlwifi 0000:03:00.0: FH TRBs(0) = 0x00000000
> [ 4687.030907] iwlwifi 0000:03:00.0: FH TRBs(1) = 0xc011000a
> [ 4687.030924] iwlwifi 0000:03:00.0: FH TRBs(2) = 0x00000000
> [ 4687.030970] iwlwifi 0000:03:00.0: FH TRBs(3) = 0x8030001b
> [ 4687.030984] iwlwifi 0000:03:00.0: FH TRBs(4) = 0x00000000
> [ 4687.031019] iwlwifi 0000:03:00.0: FH TRBs(5) = 0x00000000
> [ 4687.031044] iwlwifi 0000:03:00.0: FH TRBs(6) = 0x00000000
> [ 4687.031070] iwlwifi 0000:03:00.0: FH TRBs(7) = 0x00709072
> [ 4687.031140] iwlwifi 0000:03:00.0: Q 0 is active and mapped to fifo 3
> ra_tid 0x0000 [28,28]
> [ 4687.031207] iwlwifi 0000:03:00.0: Q 1 is active and mapped to fifo 2
> ra_tid 0x0000 [0,0]
> [ 4687.031276] iwlwifi 0000:03:00.0: Q 2 is active and mapped to fifo 1
> ra_tid 0x0000 [63,63]
> [ 4687.031345] iwlwifi 0000:03:00.0: Q 3 is active and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.031414] iwlwifi 0000:03:00.0: Q 4 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.031481] iwlwifi 0000:03:00.0: Q 5 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.031550] iwlwifi 0000:03:00.0: Q 6 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.031625] iwlwifi 0000:03:00.0: Q 7 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.031696] iwlwifi 0000:03:00.0: Q 8 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.031764] iwlwifi 0000:03:00.0: Q 9 is active and mapped to fifo 7
> ra_tid 0x0000 [115,115]
> [ 4687.031833] iwlwifi 0000:03:00.0: Q 10 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.031901] iwlwifi 0000:03:00.0: Q 11 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.031970] iwlwifi 0000:03:00.0: Q 12 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.032038] iwlwifi 0000:03:00.0: Q 13 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.032107] iwlwifi 0000:03:00.0: Q 14 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.032176] iwlwifi 0000:03:00.0: Q 15 is active and mapped to fifo 5
> ra_tid 0x0000 [0,0]
> [ 4687.032245] iwlwifi 0000:03:00.0: Q 16 is active and mapped to fifo 1
> ra_tid 0x0000 [7,11]
> [ 4687.032313] iwlwifi 0000:03:00.0: Q 17 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.032382] iwlwifi 0000:03:00.0: Q 18 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
> [ 4687.032451] iwlwifi 0000:03:00.0: Q 19 is inactive and mapped to fifo 0
> ra_tid 0x0000 [0,0]
>

[-- Attachment #2: iwlwifi-7260-10.ucode --]
[-- Type: application/octet-stream, Size: 672040 bytes --]

  reply	other threads:[~2014-09-04  5:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-02 13:43 [ANN] new experimental firmware for 7260 / 3160 / 7265 - Core7 Emmanuel Grumbach
2014-09-03 22:21 ` Nate Carlson
2014-09-04  5:57   ` Emmanuel Grumbach [this message]
2014-09-04  6:06   ` Emmanuel Grumbach
2014-09-04 15:02     ` Nate Carlson
2014-09-04 18:11       ` Emmanuel Grumbach
2014-09-05 14:58         ` Nate Carlson

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='CANUX_P0Ov+=80A4etd8h3Lc5xhX+G14UrxTiKHbpmyUAM7P9ag@mail.gmail.com' \
    --to=egrumbach@gmail.com \
    --cc=linux-wireless@natecarlson.com \
    --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 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).