summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2019-01-10Properly implement (as far as we can) Event()/Signal()/Wait() AML operations.Mark Kettenis
ok mpi@, tedu@, deraadt@
2019-01-10regen pcidevs*.hStefan Fritsch
2019-01-10Add virtio 1.x PCI IDsStefan Fritsch
Everything above 0x1040 is 1.x only. Also tweak descriptoin of memory balloon device. There will be a memory device, too ok mlarkin@
2019-01-10Fix previousStefan Fritsch
It accidentally contained a part of a different diff.
2019-01-10Move some PCI-specific defines to a new virtio_pcireg.h fileStefan Fritsch
Also add some virtio 1.0 status and feature bits
2019-01-10Remove some more code if VIRTIO_DEBUG is 0Stefan Fritsch
2019-01-10Move some common defines to virtiovar.hStefan Fritsch
And fix some comments
2019-01-10Use efifb_stolen() to prevent radeondrm from using aperture memoryJonathan Gray
overlapping the framebuffer. Prompted by ring tests failing. Diagnosed, fix suggested by and ok kettenis@
2019-01-09No need to call usbd_fill_deviceinfo() from a task, it doesn't generate I/O.Martin Pieuchot
ok visa@
2019-01-09Enable Spleen in wsfont and modify the font selection logic at runtimeFrederic Cambus
in rasops(9) to allow selecting larger fonts when available. Summary of the changes: - Enable spleen8x16 for all architectures, replacing bold8x16_iso1. - Enable spleen12x24 on all arches but sparc64, replacing gallant12x22. - Enable spleen16x32 and spleen32x64 on amd64, i386, and arm64 for GENERIC kernels. - Modify the font selection logic in rasops(9) so the 16x32 and 32x64 fonts are selected if at least 120 columns can be displayed. Screens with widths equal or larger than 1920px will use the 16x32 font, and screens with widths equal or larger than 3840px the 32x64 one. OK kettenis@, ratchov@, deraadt@
2019-01-08viocon: Remove obsolete handling of sc_intrhandStefan Fritsch
2019-01-08virtio: Don't include feature strings without VIRTIO_DEBUGStefan Fritsch
They are only used if VIRTIO_DEBUG is enabled. This should make the kernel slightly smaller.
2019-01-08RL (NAK count reload) field in QH should be zero when using periodicSASANO Takayoshi
(interrupt) transfer. When RL is not zero, interrupt transfer cannot work correctly. It causes USB2.0 hub cannot detect device attach/detach. ok by mpi@
2019-01-07Use the `iface' argument from the *attach() function instead of callingMartin Pieuchot
usbd_device2interface_handle(). ok visa@
2019-01-07tweak ohci_checkrev so it doesnt print a leading comma and space.David Gwynne
it assumes that it always followed an interrupt string, but we don't print that on fdt. having the bus responsible for the whitespace means the fdt glue can print a colon to separate the bus info from checkrev output, while every other glue keeps the comma. ok deraadt@
2019-01-06Unbreak SR_DEBUG buildskn
In arch/amd64/amd64/machdep.c r1.239 (21.02.2018) guenther added DPRINTF, redefining the one from dev/softraidvar.h. softraid(4) has been using DNPRINTF exclusively since import in 2007, so simply remove the DPRINTF macro definition from there. OK krw
2019-01-05fix previous commitMark Kettenis
"please commit asap" deraadt@
2019-01-05Add em_pch_cnp to IS_ICH8 macro. Missed when adding em_pch_cnp.Jonathan Gray
2019-01-05regenJonathan Gray
2019-01-05add more intel core and 300 series u idsJonathan Gray
2019-01-04add support for ohci, as found on the pine64David Gwynne
this currently relies on the usbphy code in the ehci fdt glue to work, but this is a work in progress. there's an extra printf of fdt in the dmesg to make the ohci checkrev code not look terrible. ok kettenis@
2019-01-03Favor ENOTTY for unknown ioctl commands.anton
2019-01-03if we run out of mbufs for the rx ring, run a timeout to refill themDavid Gwynne
claudio@ (i think) hit this a while back, and i've had this diff in my tree since then. i'm putting it in now since it empirically solved the problem and im sick of carrying the diff around.
2019-01-02abcrtc(4), a driver for the Abracon AB1805 RTC and similar variants.Patrick Wildt
ok kettenis@
2019-01-02Fix PCIe clock definitions.Patrick Wildt
2019-01-02Setting a fixed voltage regulator to the voltage it is fixed toPatrick Wildt
should not throw an error. ok kettenis@
2019-01-02A fixed regulator's minimum voltage attribute is called regulator-min-microvoltPatrick Wildt
instead of regulator-min-voltage. ok kettenis@
2019-01-01Add some additional RK3399 clocks that are used by the current LinuxMark Kettenis
mainline device tree.
2019-01-01Set assigned-clocks.Mark Kettenis
2019-01-01Add RK3399 TSADC clock.Mark Kettenis
2019-01-01Add RK3328 TSADC clock.Mark Kettenis
2019-01-01Implement switching to different parent clocks in order to get as closeMark Kettenis
to the desired frequency as possible when setting the frequency of a clock.
2019-01-01Make sure we don't exceed the maximum clock divider.Mark Kettenis
2019-01-01Fix typo in RK3328 fractional PLL frequency code.Mark Kettenis
2018-12-31Set assigned-clocks.Mark Kettenis
2018-12-31Set assigned-clocks on RK3328.Mark Kettenis
2018-12-31Force base clock to 50 MHz on Rockchip SoCs. This increases the chance thatMark Kettenis
we end up with an optimal clock frequency for SD and eMMC. ok patrick@
2018-12-31Use data structures for the RK3399 as well.Mark Kettenis
2018-12-31Implement fractional PLL frequencies for RK3328 and use them for APLL andMark Kettenis
GPLL like the Linux kernel does. Use NPLL for the CPU clock such that adjusting the CPU frequency doesn't change the clock of other devices anymore. Implement the last clocks that are used in the assigned-clocks property of clock controller. Don't enable the assigned-clocks processing yet as it results in a sub-optimal clock for for the SD and eMMC controllers. This clock handling in dwmcc(4) needs some further work before we can enable this.
2018-12-31Use the return value of task_add(9) to determine whether the task wasMark Kettenis
already scheduled and whether we have to unref the device ourselves. ok tedu@, ratchov@
2018-12-31Revamp the way we handle clocks on the RK3328. Instead of having code forMark Kettenis
each and every clock, use a data structure for each clock and generic code that handles muxing and clock division based on that data structure. This should reduce the amount of code and hopefully make the process of adding clocks less error prone as it is easy to check the data structures against the SoC documentation. This approach will be used for the other Rockchip SoCs in the future as well.
2018-12-30More RK3328 clock stuff.Mark Kettenis
2018-12-30Increase the reset timeout. The ROCK64 RK3328-based board seems to need aMark Kettenis
bit more time after a warm reset.
2018-12-30Implement setting CPU-related clocks for RK3328.Mark Kettenis
2018-12-29Cleanup: Initialize the pointers to position data early, and useUlf Brosziewski
them consistently.
2018-12-29Remove the hand-rolled maximum segment size handling in sximmc(4)Patrick Wildt
since we now have the possibility to specify it in the attach args. ok kettenis@
2018-12-29The i.MX SD/MMC host controller does not support zero-length DMAPatrick Wildt
descriptors, which are used to encode 64k transfers since it's a 16-bit value in the descriptor, which means that we only support a maximum segment size of 64k minus one. This fixes I/O errors on i.MX machines. ok kettenis@
2018-12-29Allow passing the maximum size of a segment that a SD/MMC hostPatrick Wildt
controller can handle for DMA tranfers, since not all support 64k. ok kettenis@
2018-12-27Make KIOENABLE accept a mode argument, currently limited to KCOV_MODE_TRACE_PC.anton
Thanks to jmc@ for improving the manual bits. ok deraadt@ mpi@
2018-12-27must remember to unref device if setting the task isn't done.Ted Unangst
ok anton