From: Larry Finger <Larry.Finger@lwfinger.net>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: linux-wireless@vger.kernel.org,
"John W. Linville" <linville@tuxdriver.com>,
b43-dev@lists.infradead.org,
Gregory Bellier <gregory.bellier@gmail.com>
Subject: Re: [PATCH V2] b43: warn when forcing PIO mode
Date: Tue, 16 Aug 2011 16:47:56 -0500 [thread overview]
Message-ID: <4E4AE58C.3030008@lwfinger.net> (raw)
In-Reply-To: <1313523861-2526-1-git-send-email-zajec5@gmail.com>
On 08/16/2011 02:44 PM, Rafał Miłecki wrote:
> We have resolved all the known issues with DMA mode, however some users
> (or distros) are still forcing PIO mode by config files. Without
> debugging enabled it's not noticable at all. Add the warning for them.
>
> Cc: Gregory Bellier<gregory.bellier@gmail.com>
> Signed-off-by: Rafał Miłecki<zajec5@gmail.com>
ACKed-by: Larry Finger <Larry.Finger@lwfinger.net>
> ---
> V2: typo in "parameter". I have to install spell checker for vim ;)
> Thx Gregory.
> ---
> drivers/net/wireless/b43/main.c | 9 +++++++--
> 1 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
> index 1adadc8..e0b1156 100644
> --- a/drivers/net/wireless/b43/main.c
> +++ b/drivers/net/wireless/b43/main.c
> @@ -4636,8 +4636,13 @@ static int b43_wireless_core_init(struct b43_wldev *dev)
> b43_shm_write16(dev, B43_SHM_SCRATCH, B43_SHM_SC_MAXCONT, 0x3FF);
>
> if (b43_bus_host_is_pcmcia(dev->dev) ||
> - b43_bus_host_is_sdio(dev->dev) ||
> - dev->use_pio) {
> + b43_bus_host_is_sdio(dev->dev)) {
> + dev->__using_pio_transfers = 1;
> + err = b43_pio_init(dev);
> + } else if (dev->use_pio) {
> + b43warn(dev->wl, "Forced PIO by use_pio module parameter. "
> + "This should not be needed and will result in lower "
> + "performance.\n");
> dev->__using_pio_transfers = 1;
> err = b43_pio_init(dev);
> } else {
prev parent reply other threads:[~2011-08-16 21:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-16 19:44 [PATCH V2] b43: warn when forcing PIO mode Rafał Miłecki
2011-08-16 21:47 ` Larry Finger [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=4E4AE58C.3030008@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=b43-dev@lists.infradead.org \
--cc=gregory.bellier@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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).