summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2022-07-14Protect all writers to ifm_cur with a mutex. ifmedia_match() doesAlexander Bluhm
not return any pointers without lock anymore. OK mvs@ mbuhl@
2022-07-12Protect interface media list with a mutex. This is just a startAlexander Bluhm
to make make media structures MP safe. OK mvs@
2022-07-10Remove trailing whitespace. No code change.Mike Larkin
2022-07-02Remove unused device poll functions.Visa Hankala
Also remove unneeded includes of <sys/poll.h> and <sys/select.h>. Some addenda from jsg@. OK miod@ mpi@
2022-06-30Fix bwfm(4) crash during detach on USB.Stefan Sperling
The net80211 stack detach routine can trigger more tasks to be scheduled, e.g. to delete WPA keys. So let's not free the driver's taskq before net80211 has been detached. fixed with and ok by mpi@ Crash reported by mlarkin@ who yanked the USB cable to test our fix.
2022-06-28constify miscellaneous arm64 pin and clock tablesChristian Weisgerber
ok miod@
2022-06-28Remove commented out variables and excessive blank lines inAnton Lindqvist
pluart_param().
2022-06-27Fix comment.Miod Vallat
2022-06-27Allow the pluart(4) baud rate to be changed.Anton Lindqvist
It's most likely that users have the wrong baud rate in /etc/ttys as this was corrected in revision 1.11 of sys/dev/ic/pluart.c. Make sure to change the console baud rate from 38400 to 115200 in /etc/ttys before upgrading. ok visa@
2022-06-27Fix bwfm(4) ifconfig media display on devices with sta_info command version 3.Stefan Sperling
ok jsg@
2022-06-21Revert part of r1.212, which caused a regression in a previously workingBjorn Ketelaars
setup OK dlg@
2022-06-19pluart(4) does not report the correct baudrate for the hardware consoleAnton Lindqvist
but instead defaults to 38400. This in turn causes the same baudrate to end up in /etc/ttys during installation. Note that this is not a problem as of now since pluart does not support changing the baudrate just yet. Instead, honor and propagate the baudrate given to pluartcnattach() while attaching the hardware console. ok visa@
2022-06-11Bring back PL011 UART FIFO support to pluart(4). This time with workingAnton Lindqvist
tx interrupts. Special treatment of Server Base System Architecture (SBSA) generic UART devices is required as presence of the interrupt trigger level register is not guaranteed. Therefore treat such devices of having a 1-byte FIFO. ok visa@
2022-06-05use the write lemtohXX functions for bits of the stats structure.David Gwynne
unbreaks the build on bigendian archs. found by deraadt@
2022-06-03expose hardware counters as kstats.David Gwynne
some of them are 16 bit, so check frequently. now i can see what packets my apu1 is dropping in hardware. ok claudio@
2022-05-02Disable DMA as part of the hardware reset, preventing the device fromAnton Lindqvist
ending up in an odd state during netboot in which u-boot (in my case) hands of the device in a somewhat initialized state. ok kettenis@
2022-05-02Use the given queue id argument which happen to already be equal toAnton Lindqvist
GENET_DMA_DEFAULT_QUEUE. ok kettenis@
2022-04-21Use memset() to initialize struct ieee80211_rxinfo properly.Stefan Sperling
Sven Wolf noticed that scans on ral(4) are buggy ever since I added a new field to this struct. Turns out a lot of drivers were initializing fields one-by-one, leaving any newly added fields uninitialized by default. Affected drivers may report wrong channel numbers for received beacons. The net80211 stack will discard such beacons, assuming they were received on the wrong channel due to signal leakage. Scanning is broken as result. ok miod@
2022-04-16constify SCSI adapter entry pointsChristian Weisgerber
ok krw@
2022-04-09atascsi: constify method tablesChristian Weisgerber
ok miod@
2022-04-08lm, uguru, fins, wbenv: constify sensor tablesChristian Weisgerber
ok miod@
2022-03-21Constify struct {audio,midi,radio,video}_hw_if. No functional change.Miod Vallat
ok mpi@ ratchov@ "More const is good" deraadt@
2022-03-20Introduce an alternative mechanism for wifi drivers to communicateStefan Sperling
the channel on which a frame was received. ieee80211_inputm() was expecting that ic->ic_bss->ni_chan would correspond to the channel which is currently being scanned. This dates back to older devices which are manually tuned to the next channel by the driver during SCAN->SCAN state transitions. However, this approach is very awkward for drivers which scan across a whole range of channels in firmware. Such drivers had an ugly workaround in place which tweaked ni_chan for each received frame. Introduce a channel number field in the Rx info struct which drivers can use to indicate the channel on which a frame was received. If this field is set, net80211 will use it instead of using the current channel of ic_bss. Use this new mechanism in all affected drivers. Tested by jmc@, sthen@, and myself on iwm(4) and iwx(4). Changes to iwn(4) and bwfm(4) are the same mechanical changes to get rid of the ni_chan tweak, and are therefore expected to work. ok sthen@ dlg@
2022-03-14Fix Tx performance on urtwn(4) RTL8192EU devices.Stefan Sperling
The "driver rate" bit which tells firmware to use the driver-provided Tx rate is in a different spot of Tx descriptor double word 3. Fix the corresponding macro definition. The device was sending all frames at CCK1 because of this bug, regardless of the Tx rate the driver had chosen. tcpbench before: Conn: 1 Mbps: 0.808 Peak Mbps: 1.108 Avg Mbps: 0.808 tcpbench with fix: Conn: 1 Mbps: 21.078 Peak Mbps: 21.078 Avg Mbps: 21.078 ok jmatthew@
2022-03-13Revert previous commit. It breaks the serial console on my rpi4.Mark Kettenis
2022-03-11Enable PL011 UART FIF0 support in pluart(4). The FIFO depth depends onAnton Lindqvist
the revision and ranges from 16 to 32 bytes. Special treatment of Server Base System Architecture (SBSA) generic UART devices is required as presence of the interrupt trigger level register is not guaranteed. Therefore treat such devices of having a 1-byte FIFO. With help from kettenis@ and ok visa@
2022-03-08remove files used by isa radio drivers removed in 2016Jonathan Gray
lm700x: az, rt tc921x: sfr pt2254a: sfr, sf2r
2022-03-07remove WD33C93 SCSI codeJonathan Gray
used by wdsc on sgi (removed in 2021) ok krw@
2022-03-06Look for firmware for Apple Silicon devices in /etc/firmware/apple-bwfm.Mark Kettenis
ok deraadt@
2022-03-04Add support for the BCM4387. The firmware for this variant uses a new scanMark Kettenis
command, which is indicated by the "scan_ver" firmware variable. ok patrick@
2022-03-02The firmware for the bwfm(4) variants in Apple Silicon Macs has variantsMark Kettenis
for different module types, module vendors and module revisions. Make our driver use the same naming scheme as Asahi Linux. ok patrick@
2022-02-22Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>Philip Guenther
net/if_pppx.c pointed out by jsg@ ok gnezdo@ deraadt@ jsg@ mpi@ millert@
2022-02-16Make room for a cookie argument passed to audio_attach_mi(). CurrentlyAnton Lindqvist
unused but intended to be used to correlate audio and wskbd devices. ok ratchov@
2022-02-15unifdef __OpenBSD__Jonathan Gray
2022-01-14update drm to linux 5.15.14Jonathan Gray
new hardware support includes Intel ehl/Elkhart Lake (embedded) jsl/Jasper Lake (atom) rkl/Rocket Lake (desktop) AMD van gogh APU (gfx1033) yellow carp / rembrandt APU (gfx1035?) Ryzen 6000 APU navy flounder / navi 22 (gfx1031) RX 6700, RX 6700 XT, RX 6700M, RX 6800M, RX 6850M XT dimgrey cavefish / navi 23 (gfx1032) Pro W6600, Pro W6600M, RX 6600, RX 6600 XT, RX 6600M, RX 6600S, RX 6650M, RX 6650M XT, RX 6700S, RX 6800S beige goby / navi 24 (gfx1034) RX 6500 XT, RX 6400, RX 6500M, RX 6300M Thanks to the OpenBSD Foundation for sponsoring this work niklas@ for helping with ttm and amdgpu and patrick@ for adapting rockchip drm.
2022-01-11add Synopsys Degisnware UART (dw-apb-uart) supportSASANO Takayoshi
To fix Allwinner H6's UART problem, need to add dw-apb-uart special code. ok kettenis@
2022-01-09spellingJonathan Gray
feedback and ok tb@ jmc@ ok ratchov@
2022-01-07fix aac build after -Wno-uninitialized was removedJonathan Gray
2022-01-05rename ETHERTYPE_PAE to ETHERTYPE_EAPOL.David Gwynne
everyone else seems to use ETHERTYPE_EAPOL, and as a bonus it also appears to be more correct. ok deraadt@ stsp@
2022-01-04remove the last part of driver for aic-6250 scsi on aviionJonathan Gray
2022-01-04remove files missed when sgi was removedJonathan Gray
ok visa@
2022-01-03the prism54 domain is long abandonedJonathan Gray
don't give any traffic to whoever registered it afterwards ok claudio@ stsp@
2021-12-27Support reading OTP information from a few more chips, necessary to learnPatrick Wildt
firmare names on Apple M1 Pro/Max and Apple T2 Macs.
2021-12-27Fix off-by-one in blob download, where in the case that the blob is evenlyPatrick Wildt
divisible by 1400, the last chunk isn't marked with an end flag. ok tobhe@
2021-12-27BCM4387 needs the D11 cores to be held in reset by us, the firmwarePatrick Wildt
will take care of releasing them, as otherwise initialization would fail some of the time. That chip also contains 3 of these, so make sure we reset all of them. Necessary on Apple M1 Pro/Max.
2021-12-27Send TxCap and WiFi calibration blobs to the chip.Patrick Wildt
2021-12-27Handle trailing odd-sized 1024 byte blocks when calculating TCM RAM size.Patrick Wildt
2021-12-26Add information about TCM rambase and how to check the SR capability forPatrick Wildt
a few more chips.
2021-12-22Disable minimum power consumption in hostap mode. This improves connectionTobias Heider
reliability when bwfm is used as an access point. ok patrick@
2021-12-20bus_dmamem_unmap() should not be called from interrupt context, so freePatrick Wildt
and close flowrings using bwfm_do_async(). Reported by and ok kettenis@