summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2018-01-31adjust container_of() for const useJonathan Gray
avoids -Wincompatible-pointer-types-discards-qualifiers build errors with radeon_ucode.c
2018-01-31add pci_is_root_bus()Jonathan Gray
2018-01-31add list_prev_entry()Jonathan Gray
2018-01-31add dmi_match() and change dmi_found() to use itJonathan Gray
2018-01-30syncVadim Zhukov
2018-01-30Add D-Link DWA-125 rev B2 to list of devices supported by run(4).Vadim Zhukov
Works for me on amd64. okay stsp@, who also noted this matches Linux commit fd7b9270120ca7e53fbf0469febe0c68acf6a0a2
2018-01-30add more pci defines and pci_pcie_cap()/pcie_capability_read_dword()Jonathan Gray
2018-01-30add module_init()/module_exit()/signal_pending()Jonathan Gray
2018-01-30add stubs for pci_clear_master()/pci_save_state()/pci_restore_state()/Jonathan Gray
pci_set_power_state()
2018-01-30add mutex_destroy()/down_read_trylock()Jonathan Gray
2018-01-30add create_singlethread_workqueue()/system_power_efficient_wqJonathan Gray
2018-01-30add pm_runtime_* stubsJonathan Gray
2018-01-30Don't limit vga_switcheroo stubs to amd64/i386 and addJonathan Gray
vga_switcheroo_fini_domain_pm_ops() stub.
2018-01-30add iowrite64()/writeq()Jonathan Gray
2018-01-30add GFP_USER/__user/vmalloc()Jonathan Gray
2018-01-30add ilog2()/order_base_2()/gcd()Jonathan Gray
2018-01-30disable -Wformat-zero-length when building with gccJonathan Gray
-Wformat includes -Wformat-zero-length with gcc 4.2 which breaks building unmodified atom.c with the SDEBUG macro "warning: zero-length kprintf format string"
2018-01-30add i2c_bit_add_bus()Jonathan Gray
2018-01-30add more endian macrosJonathan Gray
2018-01-30add drm_invalid_op()Jonathan Gray
2018-01-30add atomic_cmpxchg()/atomic64_add()/atomic64_sub()Jonathan Gray
2018-01-29pms: minor cleanups in the alps code.Ulf Brosziewski
1. Update the ALPS_*_BEZEL values, which don't match the actual limits accurately. The new values are used by Linux for all models with the protocols "V1" and "V2". 2. Models with the ID 0x7331 are not supported properly, remove it from the list. 3. Report to wsmouse that multiple contacts aren't recognized.
2018-01-28Store PSCI function ids as uint32_t not int in the softc.Jonathan Gray
Avoids unwanted sign extension on arm64 that resulted in qemu not recognising the function ids and matches the specification. Problem reported by semarie@ ok kettenis@
2018-01-24Do not print that the firmware was successfully loaded in the USB backendPatrick Wildt
driver. It is only useful to know if firmware loading has failed. This means fewer clutter in dmesg(8). Spotted by and ok stsp@
2018-01-24Put the default case, which prints information about an event we do not yetPatrick Wildt
handle, into a debug printf. Also do not print a pointer to kernel buffers so that we don't leak kernel addresses. Spotted by and ok stsp@
2018-01-24We don't do booleans in the kernel, so replace a few occurrences of 'true'Patrick Wildt
with nicer integer equivalents. Spotted by and ok stsp@
2018-01-23Fix underline rotation on CCW (quarter counter-clockwise) rotatedFrederic Cambus
screens. The "underline" was actually drawn above text. OK jcs@
2018-01-23Fix checks for error return from urtw_alloc_rx_data_list() andKevin Lo
urtw_alloc_tx_data_list() in 8187b init. From James Jerkins, thanks.
2018-01-22More sizes for free() in wscons(4).Frederic Cambus
OK visa@
2018-01-22Match on Iris Pro Graphics 580 and other skylake GT4 ids and correctJonathan Gray
the Iris Graphics P555 GT3 id. Derived from the following linux commits: drm/i915/skl: Add SKL GT4 PCI IDs From Mika Kuoppala 15620206ae87ba9643ffa6f5ddb5471be7192006 in mainline linux drm/i915: Update SKL SRV GT4 pci ids reference. From Rodrigo Vivi 5390974f981907cd02d1cb48145b03471279877a in mainline linux drm/i915/skl: Add missing SKL ID From Michal Winiarski ca7a45ba6fb9e7ceca56d10b91db29c2f3451a2e in mainline linux Expanded version of a diff from ccardenas@. Reported and tested by Bryan Vyhmeister. Tested by and ok ccardenas@
2018-01-21Release interrupt source if the interrupt task is already scheduledMike Belopuhov
Tested by Imre Oolberg, thanks!
2018-01-21Improve panic messageMike Belopuhov
2018-01-20Disable TCP and UDP transmit checksum offloadingMike Belopuhov
In certain configurations, transmit checksum offloading doesn't appear to work correctly, preventing correct TCP and UDP operation. Some of these issues involving VLAN tagging are documented by the Xen project. Problem reported and fix tested by Imre Oolberg, thanks!
2018-01-19dwiic: cleanup function prototypes after ACPI/PCI splitJoshua Stein
2018-01-18Remove quirk matching all Yamaha devices, as this prevents non-MIDIAlexandre Ratchov
devices from attaching (ex uaudio devices). ok mpi
2018-01-18Fix an off-by-one uncovered by the recent free(9) changeMike Belopuhov
From canacar@, thanks!
2018-01-17Add sizes for free() in wscons(4).Frederic Cambus
OK deraadt@, visa@, mpi@
2018-01-17Implement support for the PSCI_VERSION call and export the function such thatMark Kettenis
we can use it to defend against branch target injection attacks. ok patrick@, visa@
2018-01-17Disable ACPI burst mode on the 2015 Chromebook Pixel, where it freezes.Anthony J. Bentley
Diff from jcs@, ok pirofti@
2018-01-15Switch the inteldrm(4) i2c code over to the Linux code base. This gives usMark Kettenis
several quirks that wre absent in the old OpenBSD-specific reimplementation. Fixes several issues with external connectors on several generations of hardware. ok deraadt@, benno@
2018-01-14Pass our currently configured SSID to iwm(4) scan commands.Stefan Sperling
This makes connecting to silly "hidden" networks work, which was a long standing problem with iwm(4). My past observations where other SSIDs were filtered from scan results while associated can no longer be reproduced. ok robert phessler
2018-01-13Make things work when using the official device tree bindings used by theMark Kettenis
Linux kernel.
2018-01-13Add a linux compatible request_firmware() wrapper around loadfirmware(9).Jonathan Gray
ok deraadt@ kettenis@
2018-01-13add kqueue support to drm(4) by making the drm_sysfs_hotplug_event()Robert Nagy
available on OpenBSD well and by notifying listeners of a device state change using EVFILT_DEVICE and NOTE_CHANGE. drm_sysfs_hotplug_event() gets called when a state change of the device occured, like an hdmi cable has been plugged, this in the future will be used by the modesetting xorg driver to notify desktop environments via randr events to update their screen configuration ok kettenis@
2018-01-13coordinate again: polishingUlf Brosziewski
2018-01-12Constrain alloc_pages() to the dma_constraint range. Avoids aJonathan Gray
"Non dma-reachable buffer" panic when trying to use it from ttm code on a machine with 8GB of physmem and a radeon. ok kettenis@ dlg@ visa@ deraadt@
2018-01-12revert previous changes to enable dwiic on Dell precision as it seemsMike Larkin
to cause issues on Dell XPS 15 9560. Will investigate and recommit later if a better fix can be found.
2018-01-11Improve the handling of coordinate inputs and filters.Ulf Brosziewski
Single-touch and multi-touch coordinate inputs are treated more uniformly, and the hysteresis filters have a more consistent implementation. If possible, pointer control will be assigned to touches with coordinate updates that pass the default hysteresis filter (the function has been moved to wsmouse.c). The "strong" variant of hysteresis has been improved, the new version won't double the threshold when a movement changes the orientation on an axis. There is an additional change in wstpad_configure, which ensures that a zero size disables an edge area even if the coordinate limits are misconfigured.
2018-01-11Extract the control channel number from the chanspec information andPatrick Wildt
apply the channel to the node, like iwm(4) does, when supplying the scan response to the net80211 stack. Our stack uses this information for node selection so it's elementary for it to be correct. Tested by jcs@
2018-01-11The PCI bwfm(4) chips have no TX rings in the traditional sense, as onPatrick Wildt
the actual rings we only share messages. Sending a TX packet means putting a message on the ring which contains a pktid (which for us maps to an mbuf) and the physical address of the mbuf. On jcs@'s macbook he seems to run out of TX pktids pretty quickly during a speedtest. This would mean that there are 2048 TX packets in flight that we either want to send out or that have not been "acked" by the firmware yet. Either way, recover from that situation when we hit that arbitrary limit by restarting the queue after we free'd a packet from the TX pktid list. Tested by jcs@