summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2018-08-26Add plgpio(4), a driver for the ARM PrimeCell GPIO (PL061) peripheral.Mark Kettenis
ok jsg@, patrick@
2018-08-26Add support for HiSilicon Hi3660 (Kirin960) and Hi3670 (Kirin970).Mark Kettenis
2018-08-26return -1 from the interrupt handler if we didn't find any work to doJonathan Matthew
2018-08-25Add umt(4) for USB Windows Precision Touchpad devicesJoshua Stein
Based on imt(4) Rename HIDMT_INPUT_MODE_MT to HIDMT_INPUT_MODE_MT_TOUCHPAD ok deraadt
2018-08-25Use __HAVE_ACPI to decide whether ACPI support should be considered.Mark Kettenis
ok deraadt@, krw@, jca@
2018-08-25Move HID->bus constant conversion for HID report types out of ihidevJoshua Stein
into hidmt. The HID code uses hid_feature, hid_input, and hid_output constants to refer to report types internally that then need to be converted to their bus-level counterparts before actually getting sent out (so hid_feature becomes UHID_FEATURE_REPORT for USB, I2C_HID_REPORT_TYPE_FEATURE for i2c). This conversion was hard-coded in ihidev but ihidev_[gs]et_report should assume the type passed is already an i2c-level define, not a hid one. This is how uhidev does it. Add a conversion routine callback that any hidmt callers need to set so that hidmt can convert hid constants to the bus-level versions. Also add a similar conversion function to uhidev. ok deraadt
2018-08-25regenMark Kettenis
2018-08-25Audio as found on an "Oland" Radeon card. Naming is a bit arbitrary, butMark Kettenis
this one is present on several GCN gen 1 cards that have names that start in the HD 7700 range.
2018-08-25fix misplaced parenthesis inside an if-clause. already fixed in FreeBSD in revRicardo Mestre
295608. OK jca@
2018-08-25fix misplaced parenthesis inside an if-clause. already fixed in NetBSD in revRicardo Mestre
1.13. OK stsp@ jca@ claudio@
2018-08-25Change kcov semantics, kernel code coverage tracing is now enabled on a peranton
thread basis instead of process. The decision to enable on process made development easier initially but could lead to non-deterministic results for processes with more than one thread. This behavior matches the implementation found on both Linux and FreeBSD. With help and ok mpi@ visa@
2018-08-25The current rasops cursor implementation simply inverts the appropriateMark Kettenis
framebuffer pixels by doing an XOR with an all-ones bit pattern. This means the code has to read from the framebuffer which can be very slow. Add an implementation that simply redraws the character covered by the cursor with the foreground and background color swapped. While this doesn't necessarily have the same visual result, most people probably won't notice the difference (let's see). Use this implementation when the RI_WRONLY or the RI_VCONS flags are set. ok fcambus@
2018-08-25Match ACPI devices based on _CID if no match for _HID is found.Mark Kettenis
ok mpi@
2018-08-24Add common Ethernet interface attributes to vio(4)'s build config.Visa Hankala
OK deraadt@
2018-08-24Include the list of multicast groups in the rx filter configuration.Jonathan Matthew
The adapter reads this from host memory, so we allocate a new page for it. The rx filter code ends up looking a lot more like other drivers as a result.
2018-08-24Allocate framebuffer PCI BAR if left uninitialized by firmware.Mark Kettenis
ok mlarkin@
2018-08-24set the rx mask to always accept all vlan tags, making vlan interfacesJonathan Matthew
on top of bnxt work properly.
2018-08-23remove hwrm interface code for nvram reads and writes, firmware updates,Jonathan Matthew
and wol filters, none of which we're going to use.
2018-08-23rearrange txeof so it processes slots up to the index given in theJonathan Matthew
completion event, and only request completion events for the last packet we place on the ring in bnxt_start, which doesn't do anything now but will make tx faster when we get tx mitigation working.
2018-08-23set interrupt aggregation parameters so we get around 10000 interruptsJonathan Matthew
per second, which makes a pretty sizable improvement to rx performance.
2018-08-22Initialize bridge registers instead of relying on ppb(4) to do it for us.Mark Kettenis
This gives us more control over the I/O windows that we expose such that we can make enough address space available for graphics cards.
2018-08-22Work well with the Dynastream ANTUSB-m, from Jan Klemkow.Martin Pieuchot
2018-08-22regenMartin Pieuchot
2018-08-22Dynastream ANTUSB-m, from Jan Klemkow.Martin Pieuchot
2018-08-21Implement address translation. Makes I/O space access work.Mark Kettenis
2018-08-21Rework kcov kernel config. Instead of treating kcov as both an option and aanton
pseudo-device, get rid of the option. Enabling kcov now requires the following line to be added to the kernel config: pseudo-device kcov 1 This is how pseudo devices are enabled in general. A side-effect of this change is that dev/kcov.c will no longer be compiled by default. Prodded by deraadt@; ok mpi@ visa@
2018-08-20Memory barriers for arm64. These are somewhat stronger than strictlyMark Kettenis
necessary since we define the linux compat symbols in terms of a single set of macros. ok jsg@, mpi@, visa@
2018-08-20Add arm64 support. On ARM write-combining translates into the normal uncachedMark Kettenis
memory attribute and uncached translates into device-nGnRnE memory. This complicates the mapping onto PMAP_WC, PMAP_NOCACHE and PMAP_DEVICE a bit since the requirements of the drm(4) subsystem don't quite match the natural definitions for these. ok jsg@, mpi@, visa@
2018-08-20Attach bwfm(4) to Broadcom BCM4371.Patrick Wildt
ok kettenis@
2018-08-20regenPatrick Wildt
2018-08-20Add Broadcom BCM4371.Patrick Wildt
ok kettenis@
2018-08-20Enable I2C clocks in imxiic(4).Patrick Wildt
2018-08-20Add the i.MX8MQ eCSPI clocks.Patrick Wildt
2018-08-20Reorder checks in the read/write(2) family of syscalls to prepare makingMartin Pieuchot
file operations mp-safe. This change makes it clear that `f_offset' is only accessed in vn_read() and vn_write(), which will help taking it out of the KERNEL_LOCK(). This refactoring uncovered a race in vn_read() which is now documented and will be addressed in a later diff. ok visa@
2018-08-20Make fnew() return a new file with only one reference. This makesVisa Hankala
the API more logical. OK kettenis@ mpi@
2018-08-20drm_fourcc: Fix DRM_FORMAT_MOD_LINEAR #defineJonathan Gray
From Kristian H. Kristensen 771dacea92cd1b6107615aede467bdf62ef8907c in linux 4.4.y/4.4.91 af913418261d6d3e7a29f06cf35f04610ead667c in mainline linux
2018-08-20Cached tests moved from callers into ttm_io_prot() with linux 3.18Jonathan Gray
which was partly missed when the 4.4 ttm changes went in. Prompted by a patch from kettenis@
2018-08-20drm: Add DP PSR2 sink enable bitJonathan Gray
From Jose Roberto de Souza 5a3d1d67b3548e9dc1572c87527fa35b309feb0b in linux 4.4.y/4.4.146 4f212e40468650e220c1770876c7f25b8e0c1ff5 in mainline linux
2018-08-20drm/atomic: Handling the case when setting old crtc for planeJonathan Gray
From Satendra Singh Thakur f1a64c117f1363f17cfc7e5bd410ec6222031501 in linux 4.4.y/4.4.146 fc2a69f3903dfd97cd47f593e642b47918c949df in mainline linux
2018-08-20drm/radeon: fix mode_valid's return typeJonathan Gray
From Luc Van Oostenryck 1f5e33948005cd1b720fd58717bb971109432875 in linux 4.4.y/4.4.146 7a47f20eb1fb8fa8d7a8fe3a4fd8c721f04c2174 in mainline linux
2018-08-19Add kcov(4), a kernel code coverage tracing driver. It's used in conjunctionanton
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and fixed. This effort will continue. kcov is limited to architectures using Clang as their default compiler and is not enabled by default. With help from mpi@, thanks! ok kettenis@ mpi@ visa@
2018-08-19Add support for multiple PCI segments. Only really implemented for arm64Mark Kettenis
for now as amd64/i386 firmware still caters for legacy OSes that only support a single PCI segment. ok patrick@
2018-08-17The official name for the ssdfb(4) reset GPIO attribute uses plural form.Patrick Wildt
2018-08-17Support reading and using serveral device tree attributes for ssdfb(4),Patrick Wildt
since some OLED display controller settings can change depending on the actual hardware integration.
2018-08-15Partially revert previous, EM7455 is already handled by umb(4).Martin Pieuchot
Reported by Bryan Vyhmeister.
2018-08-15Grab the KERNEL_LOCK() in MP-unsafe fo_close routines. This preventsVisa Hankala
a scenario where MP-unsafe code gets run without the kernel lock as a consequence of an unlocked system call. OK mpi@, kettenis@
2018-08-15Introduce mue_eeprom_present to check if the EEPROM is present.Kevin Lo
When the EEPROM is not populated, set the MAC config register MUE_MAC_CR_AUTO_SPEED. While there, encode the MAC address for the onboard USB Ethernet for the Rasperry Pi, like smsc(4) does.
2018-08-14return ENOTTY rather than EINVAL to indicate an ioctl hasn't been handledJonathan Matthew
ok dlg@ deraadt@ kettenis@
2018-08-13Instead of using BYPASSUNVEIL at NDINIT time, use KERNELPATH to indicateTheo de Raadt
we want to skip all userland-related checks. Discussed with beck and semarie, tested by stsp.
2018-08-13Support CPU frequency scaling on NXP i.MX8M.Patrick Wildt
ok kettenis@