linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Arend van Spriel" <arend@broadcom.com>
To: "Matthew Garrett" <mjg59@srcf.ucam.org>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"Brett Rudley" <brudley@broadcom.com>,
	"Henry Ptasinski" <henryp@broadcom.com>,
	"Roland Vossen" <rvossen@broadcom.com>,
	"Franky (Zhenhui) Lin" <frankyl@broadcom.com>
Subject: Re: brcmsmac hangs machine if loaded after busmastering disabled
Date: Wed, 11 Apr 2012 13:45:45 +0200	[thread overview]
Message-ID: <4F856EE9.2040407@broadcom.com> (raw)
In-Reply-To: <20120319215154.GA18508@srcf.ucam.org>

On 03/19/2012 10:51 PM, Matthew Garrett wrote:
>
> I'm dealing with a platform with some buggy system firmware that enables
> DMA on the wireless card and leaves it running even after OS handover,

 From what you showed me we are dealing with a MacBook Air using UEFI. 
As our meeting was brief I may have misunderstood, but am I correct to 
say the wireless card is active with UEFI mode to allow wireless network 
selection for netboot or something like that?

I also assume the proper fix should be to have the system firmware 
shutdown the wireless device properly before OS handover. My guess is 
that the device is still doing DMA transfers to some physical address 
space which is OK in UEFI context but the OS has assigned it for 
something else.

> triggering memory corruption. I'm working around that by disabling bus
> mastering on the device in the bootloader, but that results in the
> system hanging during brcmsmac init. pci_set_master() is being called in
> the bcma code, so it's nothing that straghtforward. Any idea what might
> be going wrong here?
>

You showed me a boot menu. So after selecting Fedora the system is 
moving to the grub bootloader first?

Are you disabling bus master or the entire wireless device? Could you 
try disabling the device in the bootloader, ie. pci_disable_device() or 
something equivalent.

Gr. AvS


  reply	other threads:[~2012-04-11 11:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-19 21:51 Matthew Garrett
2012-04-11 11:45 ` Arend van Spriel [this message]
2012-04-11 11:51   ` brcmsmac hangs machine if loaded after busmastering disabled Matthew Garrett
2012-04-18 11:32     ` Arend van Spriel
2012-04-18 12:34       ` Matthew Garrett
2012-04-18 15:29         ` Arend van Spriel
2012-04-18 15:37           ` Matthew Garrett
2012-04-18 16:35             ` 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=4F856EE9.2040407@broadcom.com \
    --to=arend@broadcom.com \
    --cc=brudley@broadcom.com \
    --cc=frankyl@broadcom.com \
    --cc=henryp@broadcom.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=rvossen@broadcom.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).