summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2017-07-08Remove duplicate typedesf that are now provided by linux_types.h.Mark Kettenis
2017-07-08- For RTL8188CUS/RTL8192CU, we have to force 8051 reset/enable before waitingKevin Lo
for firmware to get ready. It fixes "urtwn0: could not load firmware page" while running stsp@'s script: dhclient urtwn0; ifconfig urtwn0 down; ifconfig urtwn0 scan in a loop. - Minor cleanup for rtwn_read_rom()/rtwn_get_txpower(); no need to use callbacks. Tested by stsp@ and me. ok stsp@
2017-07-07You win some, you los some. The Linux 4.4 code is still sub-standard butMark Kettenis
triggers different warnings now. ok naddy@
2017-07-06sync the list of pci devices which don't require apertureJonathan Gray
ok kettenis@
2017-07-05Fix native/raw backlight support in inteldrm(4).Mark Kettenis
2017-07-05regenMark Kettenis
2017-07-05Add Intel Braswell Sensor Hub device.Mark Kettenis
2017-07-04Ignore entries with specific PCI subvendor/subdevice such that we don'tMark Kettenis
inadvertedly match the Intel HD Graphics P4000 as a "Quanta transcode" device. Thanks to Joe Gidi for figuring out that I inadvertedly brought this back. Hopefully fixing it this way prevents it from happening again.
2017-07-03blacklist MSI on intel m.2 optane parts. it just doesnt work there.David Gwynne
discovered by jmatthew@ tweaks and ok jsg@ kettenis@
2017-07-03merge error, revealed by clang; ok kettenis@Christian Weisgerber
2017-07-03Replace slot time durations with macros.Kevin Lo
ok stsp@
2017-07-03regenDavid Gwynne
2017-07-03intel optanes are a thingDavid Gwynne
2017-07-02Enable MIPI/DSI support for inteldrm(4). Makes the display on my ASUSMark Kettenis
Transformer Book T100HA work (with some ugly error/warning messages).
2017-07-02Add the definition of IEEE80211_DUR_DS_SHSLOT.Kevin Lo
From IEEE Std. 802.11-2016, Table 18-5 "ERP characteristics", p. 2332: aSlotTime characteristic: If dont11OperatingClassesRequired is false: Long = 20 us Short = 9 us ok stsp@
2017-07-01Update inteldrm(4) to code based on Linux 4.4.70. This brings us support forMark Kettenis
Skylake and Cherryview and better support for Broadwell and Valleyview. Also adds MST support. Some tweaks to the TTM code and radeondrm(4) to keep it working with the updated generic DRM code needed for inteldrm(4). Tested by many.
2017-07-01Update inteldrm(4) to code based on Linux 4.4.70. This brings us support forMark Kettenis
Skylake and Cherryview and better support for Broadwell and Valleyview. Also adds MST support. Some tweaks to the TTM code and radeondrm(4) to keep it working with the updated generic DRM code needed for inteldrm(4). Tested by many.
2017-07-01Update inteldrm(4) to code based on Linux 4.4.70. This brings us support forMark Kettenis
Skylake and Cherryview and better support for Broadwell and Valleyview. Also adds MST support. Some tweaks to the TTM code and radeondrm(4) to keep it working with the updated generic DRM code needed for inteldrm(4). Tested by many.
2017-07-01- Avoid possible use of uninitialized variable; noticed by jsg@Kevin Lo
- Only set value in R92C_FAST_EDCA_CTRL register if the device is combo WiFi/Bluetooth; confirmed by Yan-Hsuan Chuan from Realtek - There's no need to set the default value for the R92C_PIFS since default value is 0x1c; confirmed by Yan-Hsuan Chuan from Realtek - Disable usb Rx aggregation mode for rtl8188cu/rtl8192cu; vendor drivers use DMA Rx aggregation mode for rtl8188cu/rtl8192cu/rtl8188eu and use USB Rx aggregation mode for later chipsets. Tested by stsp and me. ok stsp@
2017-06-30Fix a format string specifier error in a debug printf.Mike Larkin
Noticed and reported by Fasse: fasse dot f2 at gmail dot com Thanks.
2017-06-29kill RCSID macros; discussed with millertTheo de Raadt
2017-06-29set c.c_maxrxlen to something. apparently lost a line somewhere.Ted Unangst
maybe it works now? :) from Colin Stolley via Paul B. Henson
2017-06-27Provide a handler stub for the "channel rescind" messageMike Belopuhov
2017-06-27Avoid testing an uninitialised variable in the SCSI_BUSY/SCSI_QUEUE_FULLJonathan Gray
paths of hvs_scsi_cmd_done(). ok mikeb@
2017-06-26Minor cleanup; when polling delay before calling the interrupt handlerMike Belopuhov
2017-06-26Rework the deferred interrupt loopMike Belopuhov
By performing a task_add an interrupt handler can rely on the taskq_thread to invoke it again with an additional benefit of being able to sched_pause when required. In the long run more than 99.8% of calls do not require an additional iteration.
2017-06-26Factor a variable assignment in audiopoll().Alexandre Ratchov
From Michael Bombardieri, thanks.
2017-06-23Event interrupt handler should call hv_channel_schedule nowMike Belopuhov
2017-06-23Request deferred interrupt processingMike Belopuhov
2017-06-23Introduce deferred interrupt processing capabilityMike Belopuhov
Hyper-V interrupts seem to be sometimes delivered before the message becomes available on the channel ring. This is reproducible on hvs(4) under load. This change is modelled on the workaround found in the Linux driver.
2017-06-23s/membar_sync/virtio_membar_sync/Mike Belopuhov
2017-06-23Finish up minor changes in the output and clear the BATCHED channel flagMike Belopuhov
2017-06-23- Fix Tx queues to USB endpoints mapping and merge urtwn_r92c_dma_init()Kevin Lo
and urtwn_r88e_dma_init() into one; from FreeBSD r291902. - Change the way the number of pages for public queue is calculated; Based on the vendor driver's _InitQueueReservedPage(), the formula for calculation of the number of pages for public priority queue is as follows: if the device has 3 endpoints: PUBQ = total number of Tx pages - HQ - LQ - NQ if the device has 2 endpoints (i.e. has high and normal priority queues): PUBQ = total number of Tx pages - HQ - NQ - Don't write MCS8..MCS15 Tx power if the WNIC is a 1-stream Tx; - Set R88E_TX_PAGE_COUNT to a correct value; - Minimal enhancement in urtwn_open_pipes() for upcoming rtl8192eu chipset support; Tested with USB-N10 Nano (rtl8188cu), DWA-131 rev B (rtl8192cu), and TL-WN725N v2 (rtl8188eu) on amd64. ok stsp@
2017-06-22Add a hypervisor-specific function pointer in pvbus(4) that gets called duringJonathan Matthew
cpu_hatch() on each cpu, allowing initialization of per-cpu features on each cpu as it starts up. input from reyk@ and mikeb@ ok mikeb@
2017-06-22Fix another ;; in sys/devTom Cosgrove
2017-06-22double ;;. xhci one found by geoffhillTheo de Raadt
2017-06-21Don't confuse SCSI command status and transfer error code.Mike Belopuhov
While here, make SCSI command completion routine more robust.
2017-06-21Return early from NVS command submission if no response is requiredMike Belopuhov
2017-06-21Include the request id in the I/O debug outputMike Belopuhov
2017-06-20Check the validity of the `qtd' pointer after each interrupt caseVisa Hankala
and bail out if the pointer has become invalid. This prevents use-after-free memory accesses that corrupted the dwc2qtd pool. This fix improves stability on the Raspberry Pi 3. From Linux commit dc8730846948e517169f630826cd2c97615f5ee8 OK kettenis@
2017-06-20Remove the IWM_FLAG_HW_INITED flag from iwm(4). This flag was redundant.Stefan Sperling
The IFF_RUNNING flag in struct ifnet serves the same purpose. ok mpi@ kettenis@ deraadt@
2017-06-19Add a handler for the WSDISPLAYIO_GINFO ioctl in radeondrm, allowingFrederic Cambus
to retrieve basic information about a framebuffer display. OK visa@, deraadt@
2017-06-19Add a handler for the WSDISPLAYIO_GINFO ioctl in inteldrm, allowingFrederic Cambus
to retrieve basic information about a framebuffer display. OK visa@, tedu@
2017-06-19Do not call txeof nor rxeof in the watchdog routine.Martin Pieuchot
They cannot be serialized with the interrupt routine and are useless because the driver is reinitialized right after. Pointed by and ok mikeb@
2017-06-18pms/alps: configure compat modeUlf Brosziewski
2017-06-18Remove remnants of old versions.Ulf Brosziewski
2017-06-17The fonts we are looping through in vga_selectfont() are the builtinFrederic Cambus
font which is using the IBM encoding, and some potentially loaded fonts which are either IBM or ISO encoded. Therefore the condition checked by vga_valid_font() is always true, and we can remove it. Thanks to miod@ for pointing this out. OK tb@
2017-06-16- Fix incorrect values in the computation of transmit power for theKevin Lo
rtl8188eu chipset. - Small code refactoring: - replace hardcoded rate indexes with their name, like athn(4). - replace fields offsets with the structure; from FreeBSD r294198. - be compliant with definitions of the efuse in vendor hal_pg.h and rename struct r92c_rom member names: s/channel_plan/reserved5/, s/xtal_calib/channel_plan. - no need to disable HWPDN twice in urtwn_r88e_power_on(). Tested by stsp@ and myself with RTL8188CUS, RTL8192CU, RTL8188EU, and RTL8188CE devices. ok stsp@
2017-06-16In iwm_init() save the generation counter once before looping overStefan Sperling
tsleep(9), instead of saving it during every iteration.
2017-06-15Don't defer attaching PV devicesMike Belopuhov
Now that both hvn(4) and hvs(4) can perform VMBus channel operations during autoconf, it's no longer necessary to defer their attachment.