From: Christian Lamparter <chunkeey@googlemail.com>
To: Chris C <chris.a.cremer@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Carl9170fw loading error
Date: Fri, 08 Aug 2014 18:22:56 +0200 [thread overview]
Message-ID: <1956876.Pi2xLkHlKO@blech> (raw)
In-Reply-To: <CAMKDnrnZweYxca6UxKhTa9B-kMfFmea2EN=qSypkdA+8mX=n-A@mail.gmail.com>
On Friday, August 08, 2014 11:19:32 AM Chris C wrote:
> I am trying to very quickly stop/interrupt the transmission of packets
> then be able to restart the transmission.
> By 'very quickly' I mean faster then the time it takes to transmit a
> packet. So if a packet is being transmitted, the transmission should
> be interrupted before the packet is finished transmitting.
> I have tried setting the AR9170_PHY_REG_ACTIVE register to 0 then back
> to 1. Is there a better way?
I don't know the "ins and outs" of the baseband and mac logic to interrupt
a transmission in progress. But the datasheet mentions that it is possible
to prevent any queue from transmitting (Doesn't say it will interrupt it
though). The register which controls this is located at 0x1c3b40
(AR9170_MAC_REG_QOS_PRIORITY_VIRTUAL_CCA). In order to stop the transmission
of a queue 0, you have to set BIT(15). For queue 1 it's BIT(16) and so on.
To enable the transmission again, clear the bit of the queue.
> I am also trying to establish communications between the firmware and
> the driver so that the firmware can output some timing information.
> I have tried passing information through the registers. From the
> driver I use the functions carl9170_read_reg and carl9170_write_reg.
> From the firmware I use the functions get and set.
That's fine.
> The problem is that reading and writing to registers often crashes
> the computer. What's the better way of doing this?
Crashing your PC? Do you have an BUGs, PANIC or WARNING logs to
trace the culprit? The driver shouldn't crash the computer.
(Note: Check if you can reproduce the crashes in a virtual machine [0]).
Regards
Christian
[0] <https://blog.nelhage.com/2013/12/lightweight-linux-kernel-development-with-kvm/>
prev parent reply other threads:[~2014-08-08 16:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-07 15:28 Carl9170fw loading error Chris C
2014-08-07 18:08 ` Christian Lamparter
2014-08-08 15:19 ` Chris C
2014-08-08 16:22 ` Christian Lamparter [this message]
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=1956876.Pi2xLkHlKO@blech \
--to=chunkeey@googlemail.com \
--cc=chris.a.cremer@gmail.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).