summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2018-07-04Move allocation behind sanity check to address possible memory leak asPatrick Wildt
seen by Coverity CID 1470240. Cast the ieee80211_frame struct pointer to uint8_t to address concerns raised by Coverity CID 1470239 and CID 1470237. ok stsp@
2018-07-04Do not try to unlock the fdplock() in an error path if it isn't held.Martin Pieuchot
Found the hardway by mlarkin@, ok bluhm@
2018-07-03Add a new so_seek member to "struct file" such that we can have seekableMark Kettenis
files that aren't vnodes. Move the vnode-specific code into its own function. Add an implementation for the "DMA buffers" that can be used by DRI3/prime code to find out the size of the graphics buffer. This implementation is very limited and only supports offset 0 and only for SEEK_SET and SEEK_END. This doesn't really make sense; implementing stat(2) would be a more obvious choice. But this is what Linux does. ok guenther@, visa@
2018-07-03Use LIST_FOREACH construct instead of homebrew loop.Kevin Lo
ok bluhm@, mpi@
2018-07-03regenFrederic Cambus
2018-07-03Add device IDs of the VIA VX900 chipset.Frederic Cambus
OK mlarkin@
2018-07-03During attach, give the loop a while to settle before we start lookingJonathan Matthew
for targets. With some combinations of controllers and targets, the loop seems to bounce a bit, but with a short delay we can attach targets more reliably.
2018-07-03regenLandry Breuil
2018-07-03Add usb ids for the Logitech Webcams C210 and C270.Landry Breuil
Their audio isn't properly detected yet, but a new quirk will fix that. ok mpi@
2018-07-03If we're not on a fabric, we may still need to attach and detach targetsJonathan Matthew
as part of processing port database changes.
2018-07-03Instead of overwriting `f_data' replace the 'struct file' with a new one.Martin Pieuchot
With this change `f_data' is effectively immutable. While here prevent a lock ordering issue by not unterleaving the vnode's lock and the fdplock(). Tested by bluhm@, ok kettenis@, visa@, jsing@
2018-07-03Fix typo.Kevin Lo
ok claudio@, deraadt@, mpi@, rob@
2018-07-03Nuke unused variable.Kevin Lo
ok deraadt@, mpi@, rob@
2018-07-02Allow pluart(4) to attach to acpi(4).Mark Kettenis
ok mlarkin@, patrick@
2018-07-02Allow xhci(4) to attach to acpi(4).Mark Kettenis
ok dlg@, patrick@, mpi@
2018-07-01acpi: clean up some inconsistent style in the hid matching arraysMike Larkin
ok millert, kettenis, jcs, phessler, deraadt, mpi
2018-07-01Use generated string for the bus number extent.Mark Kettenis
2018-07-01Allow ahci(4) to attach to acpi(4).Mark Kettenis
ok deraadt@
2018-07-01Move acpi(4) attach glue into acpi_machdep.c.Mark Kettenis
ok guenther@, deraadt@
2018-07-01Use fnew() to allocate a struct file. Simplifies the code.Mark Kettenis
ok mpi@, visa@
2018-07-01Remove semicolon before printing the AML name.Mark Kettenis
spotted by deraadt@
2018-07-01Allow com(4) to attach to acpi(4). For now we will only use this on arm64Mark Kettenis
where this is needed to support serial console in ACPI mode. ok mlarkin@
2018-07-01Add support for _DSD Device Properties.Mark Kettenis
ok mlarkin@
2018-07-01Add definitions for SPCR tables.Mark Kettenis
ok mlarkin@
2018-06-30Typo in comment in previous file which I said I'd address in the originalMike Larkin
commit and forgot to do. (Sufrace -> Surface)
2018-06-30acpisurface(4): driver for Surface Pro 4 and Surface Book hardwareMike Larkin
buttons. ok phessler, deraadt, kettenis
2018-06-30Add intr_enable() function, intended for MI use to amd64 and i386 and useMark Kettenis
this in the acpi(4) suspend/resume code paths. ok deraadt@
2018-06-29Use <stdint.h> types.Mark Kettenis
ok mpi@, jung@, krw@, deraadt@
2018-06-29ACPI: Allow (with warning) GPE handler reassignment, instead of returningMike Larkin
a failure code. ok kettenis
2018-06-28regenKevin Lo
2018-06-28Add Microchip Ethernet device IDs.Kevin Lo
ok deraadt@
2018-06-28Remove unused/redundant prototypes.Mark Kettenis
Pointed out by patrick@
2018-06-26knfMike Larkin
2018-06-26Let acpi(4) pass down the bus dma tag.Mark Kettenis
ok deraadt@
2018-06-25Reorganize acpi(4) code a bit in preparation for upcoming arm64 support.Mark Kettenis
ok deraadt@
2018-06-25Implement DRI3/prime support. This allows graphics buffers to be passedMark Kettenis
between processes using file descriptors. This provides an alternative to eporting them with guesable 32-bit IDs. This implementation does not (yet) allow sharing of graphics buffers between GPUs. ok mpi@, visa@
2018-06-24Save all mixer elements in the suspend/resume array instead of onlyAlexandre Ratchov
enum, sets, and values. This is simpler and less error prone. This fixes the record.enable elements replacing the last few hardware mixer controls. Help from Laurence Tratt, tested by landry@
2018-06-24If ACPI tables are present, set a global variable to point at theirMark Kettenis
(physical) address such that acpidump(8) can read it and dump the tables on arm64 systems. ok deraadt@
2018-06-22set I2C_F_POLL when acquiring the iic bus in an interrupt handlerJoshua Stein
found by witness, reported and tested by bentley
2018-06-20drm/i915: Disable LVDS on Radiant P845Jonathan Gray
From Ondrej Zary e88640adf6fe0709466f814a26753d78184a598c in linux 4.4.y/4.4.136 b3fb22733ae61050f8d10a1d6a8af176c5c5db1a in mainline linux
2018-06-19Add support for SAS3.5 controllers. This involves reorderingJonathan Matthew
initialisation so we get the controller capabilities first, allowing a soft reset instead of hard reset. The new controllers don't work after a hard reset, and older generations seem fine either way. tested by robert@ on a sas3408, by dlg@ on a sas2008 (on sparc64) and by me on a sas3008. ok dlg@ robert@
2018-06-18Add an HP LD220 pole displayMike Belopuhov
Diff from Paul de Weerd (weerd@), tested by Jan-Piet Mens, thanks!
2018-06-18regenMike Belopuhov
2018-06-18Add an HP LD220 pole displayMike Belopuhov
Diff from Paul de Weerd (weerd@), tested by Jan-Piet Mens, thanks!
2018-06-18Run the code to handle interrupts directly from the interrupt handlerMark Kettenis
instead of from a task. The sdmmc(4) interrupt handler is already executed in process context and returning from the interrupt handler without acknowledging the interrupts may lead to an interrupt storm. ok patrick@
2018-06-17Use regmapMark Kettenis
2018-06-17Resetting fec(4) also resets the MII control register. Since wePatrick Wildt
continue to read the MII bus in the background we must make sure that the register is correctly set. Otherwise bringing down fec(4) leads to a complete system hang. ok kettenis@
2018-06-17Add curly braces to the if-condition to make sure the bus widthPatrick Wildt
is only bumped if the high-speed mode is available. ok kettenis@
2018-06-17Add another missing clock for i.MX7D. This particular clock lives on theMark Kettenis
"analog" part that is really covered by imxanatop(4). To keep all the clock logic together, use the regmap exposed by that device to access the registers. ok patrick@
2018-06-16regenJonathan Matthew