History log of /openbsd-current/sys/dev/ic/bwireg.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.11 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.10 10-May-2019 bcook

Explicitly disable BCM4331 chips present in 2011-2012 Apple Mac systems.

The Mac EFI firmware enables the wireless controller, but does not disable it,
so it continues to receive packets and signal interrupts. This
was originally seen as an interrupt storm that consumes about 50% of
CPU0 on affected machines. The issue was originally discovered in 2012 by
Matthew Garret with a partial fix in Grub, then Lukas Wunner added a fix for
the Linux kernel in 2016.

This piggy-backs on the most-related driver (bwi) for the purpose of detection
and mapping the control registers, but does not actually register the driver if
the affected chip is detected.

See this archived discussion for further analysis of the bug:
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1165355.html

ok kettenis stsp


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.9 07-Jun-2014 stsp

Document bwi(4) interrupt error flags by using named constants
instead of magic numbers. Constants found in Linux brcmsmac.
ok claudio@


Revision tags: OPENBSD_5_5_BASE
# 1.8 26-Nov-2013 deraadt

1 << 31 cleanup. Eitan Adler pointed out that there has been a
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.7 17-Nov-2007 mglocker

- Add more LED support, like activity blinking (though just supporting
some devices yet).
- Calculate RX rate which can be used later in bpf_mtap().

Diff ported from DragonFlyBSD, tested by some.


# 1.6 18-Oct-2007 mglocker

Add some first LEDs support. Tested on my cardbus Linksys WPC54G Ver 3.

Diff ported from DragonFlyBSD


# 1.5 30-Sep-2007 mglocker

Shows the real size of a register in the hex define.

OK jsg@


# 1.4 27-Sep-2007 mglocker

Spacing.


# 1.3 27-Sep-2007 mglocker

Kill __BIT* macros.

Help and OK jsg@


# 1.2 12-Sep-2007 mglocker

Spacing run.


# 1.1 12-Sep-2007 jsg

Initial port of Sepherosa Ziehau's DragonFlyBSD driver
for Broadcom AirForce wireless devices.

Not yet functional, things like DMA and firmware handling
haven't been converted yet.

ok mglocker@


# 1.10 10-May-2019 bcook

Explicitly disable BCM4331 chips present in 2011-2012 Apple Mac systems.

The Mac EFI firmware enables the wireless controller, but does not disable it,
so it continues to receive packets and signal interrupts. This
was originally seen as an interrupt storm that consumes about 50% of
CPU0 on affected machines. The issue was originally discovered in 2012 by
Matthew Garret with a partial fix in Grub, then Lukas Wunner added a fix for
the Linux kernel in 2016.

This piggy-backs on the most-related driver (bwi) for the purpose of detection
and mapping the control registers, but does not actually register the driver if
the affected chip is detected.

See this archived discussion for further analysis of the bug:
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1165355.html

ok kettenis stsp


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.9 07-Jun-2014 stsp

Document bwi(4) interrupt error flags by using named constants
instead of magic numbers. Constants found in Linux brcmsmac.
ok claudio@


Revision tags: OPENBSD_5_5_BASE
# 1.8 26-Nov-2013 deraadt

1 << 31 cleanup. Eitan Adler pointed out that there has been a
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.7 17-Nov-2007 mglocker

- Add more LED support, like activity blinking (though just supporting
some devices yet).
- Calculate RX rate which can be used later in bpf_mtap().

Diff ported from DragonFlyBSD, tested by some.


# 1.6 18-Oct-2007 mglocker

Add some first LEDs support. Tested on my cardbus Linksys WPC54G Ver 3.

Diff ported from DragonFlyBSD


# 1.5 30-Sep-2007 mglocker

Shows the real size of a register in the hex define.

OK jsg@


# 1.4 27-Sep-2007 mglocker

Spacing.


# 1.3 27-Sep-2007 mglocker

Kill __BIT* macros.

Help and OK jsg@


# 1.2 12-Sep-2007 mglocker

Spacing run.


# 1.1 12-Sep-2007 jsg

Initial port of Sepherosa Ziehau's DragonFlyBSD driver
for Broadcom AirForce wireless devices.

Not yet functional, things like DMA and firmware handling
haven't been converted yet.

ok mglocker@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.9 07-Jun-2014 stsp

Document bwi(4) interrupt error flags by using named constants
instead of magic numbers. Constants found in Linux brcmsmac.
ok claudio@


Revision tags: OPENBSD_5_5_BASE
# 1.8 26-Nov-2013 deraadt

1 << 31 cleanup. Eitan Adler pointed out that there has been a
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.7 17-Nov-2007 mglocker

- Add more LED support, like activity blinking (though just supporting
some devices yet).
- Calculate RX rate which can be used later in bpf_mtap().

Diff ported from DragonFlyBSD, tested by some.


# 1.6 18-Oct-2007 mglocker

Add some first LEDs support. Tested on my cardbus Linksys WPC54G Ver 3.

Diff ported from DragonFlyBSD


# 1.5 30-Sep-2007 mglocker

Shows the real size of a register in the hex define.

OK jsg@


# 1.4 27-Sep-2007 mglocker

Spacing.


# 1.3 27-Sep-2007 mglocker

Kill __BIT* macros.

Help and OK jsg@


# 1.2 12-Sep-2007 mglocker

Spacing run.


# 1.1 12-Sep-2007 jsg

Initial port of Sepherosa Ziehau's DragonFlyBSD driver
for Broadcom AirForce wireless devices.

Not yet functional, things like DMA and firmware handling
haven't been converted yet.

ok mglocker@