summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-05-28Initialize FIFO watermark thresholds. Fixes DMA issues on controllers thatMark Kettenis
are not initialized by U-Boot.
2018-05-28More steps for i386 Meltdown fix:Alexander Bluhm
- name gdt explicitly in struct cpu_info_full - identfiy ARCH_CAPABILITIES_RDCL_NO and print in identifycpu() - in pmap.c build U-K table, handle PG_G accordingly - in pmap_switch() do not unmap the kernel, yet; but all pieces are in place - pmapae.c: on boostrap transfer pmap to pmapae tables, build U-K table and wire it, handle PG_G from hshoexer@; OK mlarkin@
2018-05-28Cleanup bootconfig.h and use strlcpy() to copy boot arguments.Mark Kettenis
ok drahn@
2018-05-28Remove unused include file.Mark Kettenis
ok drahn@
2018-05-28Drop include of <arm64/swi.h> and remove it.Mark Kettenis
ok drahm@
2018-05-28Call readdisksector() instead of rolling our own. Drop <sys/systm.h>Mark Kettenis
include. Reduces the diffs to the amd64/i386 version of this code. ok drahn@
2018-05-28rwsleep: generalize to support both read- and write-locks.cheloha
Wanted for tentative clock_nanosleep(2) diff, but maybe useful elsewhere in the future. ok mpi@
2018-05-28Constipate a bunch of time functionsPhilip Guenther
ok tb@ kettenis@
2018-05-28Call vput(dvp) in vnode operation functions instead of calling it inVisa Hankala
the file allocation routine. This allows stepwise changing of the vnode locking discipline. OK mpi@
2018-05-28When mounting an ext2 filesystem, lock the device vnode for the durationVisa Hankala
of the vinvalbuf() call, just like is done by other filesystems. This prevents a kernel panic with VFSLCKDEBUG. OK mpi@
2018-05-28regenMartin Pieuchot
2018-05-28Next step in disentangling the switches in in_ioctl(). Split out theTheo Buehler
handling of SIOCAIFADDR, SIOCDIFADDR, SIOCSIFADDR into a separate function, analogously to what was done in in6_ioctl(). tested by hrvoje ok visa
2018-05-28regenMartin Pieuchot
2018-05-28Grab the KERNEL_LOCK() after socreate() and soconnect2() in socket(2)Martin Pieuchot
and socketpair(2). Tested by many as part of a larger diff, ok visa@ some time ago.
2018-05-28Add clock support for i.MX8MQ. Most of the clocks can be configuredPatrick Wildt
using a single register which consists of root, div, pre-div, clock gate and src (mux). The device tree node references the root clock, and an "enable" call has to enable the clock's parents so that the clock gate is toggled as well. ok kettenis@
2018-05-28Returns EBUSY if dup2(2) is called for a LARVAL file.Martin Pieuchot
This prevents a panic due to a double free if a program exits after having called accept(2) and dup2(2) on the same fd but without the corresponding connect(5). It will also allows us to simplify file descriptor locking. The error code has been choosed to match Linux's behavior. Pointed by Mathieu on tech@ after a discussion with guenther@. ok visa@
2018-05-28Get MAC address from "local-mac-address" property if provided.Mark Kettenis
ok patrick@, visa@
2018-05-28implement support for MikroTik's Ethernet over IP protocol as eoip(4)David Gwynne
it is sort of like egre(4), but different enough to warrant separate handling. more specifically, eoip sits under gre 1, not 0, and has it's own protocol id (0x6400). the gre key field is mandantory (the rest cannot be set) which is split into a 16 bit length field and a 16 bit tunnel id. lastly, it has a keepalive mechanism where peers send 0 length packets as hellos to each other periodically, which has no equivalent in egre(4) and is different to the gre(4) keepalives. ok sthen@
2018-05-27Add 20 MHz MMC clock.Mark Kettenis
2018-05-27Add Allwinner A64 support.Mark Kettenis
2018-05-27Implement A64 thermal sensor clocks.Mark Kettenis
2018-05-27Add support for the Allwinner H3 SoC.Mark Kettenis
2018-05-27Add SDIO support:Mark Kettenis
- Implement SDIO interrupt handling - Set control bit that allows CPU access to the FIFO - Fix PIO transfers that are not a multiple of 4 bytes - Handle vqmmc-supply ok patrick@
2018-05-27BCM43430 SDIO works if we load the appropriate firmware.Mark Kettenis
ok patrick@
2018-05-27Add support for the GMAC on Allwinner R40/V40 SoCs.Mark Kettenis
ok patrick@
2018-05-27On Allwinner R40, export a regmap covering the GMAC_CLK_REG.Mark Kettenis
Add a few more R40 clocks needed by the GMAC.
2018-05-27Add missing #include "audio.h" needed for the NAUDIO macro.Alexandre Ratchov
suggested by jsg, ok sthen.
2018-05-27Drop unnecessary `p' parameter from vget(9).Visa Hankala
OK mpi@
2018-05-26Delete obsolete reference to setting segment registersPhilip Guenther
2018-05-26Only set fpu_save_len once and assert if it's too big or would differPhilip Guenther
between CPUs ok kettenis@ mlarkin@
2018-05-26Add DMA support. For some reason this doesn't work on Exynos, so disableMark Kettenis
it there.
2018-05-26CR0_WP is already set in CR0_DEFAULTPhilip Guenther
2018-05-26Initialize ci_idle_pcb->pcb_cr0 just once, in cpu_attach().Philip Guenther
For secondary CPUs, %cr0 is initially loaded in cpu_spinup_trampoline so don't load it again in cpu_hatch(). ok kettenis@
2018-05-26Update comment to reflect xsavePhilip Guenther
2018-05-26Add SDIO support.Mark Kettenis
2018-05-26Condition the new audio_record_enable pieces on NAUDIO > 0, fixingStuart Henderson
kernel builds without audio (for example, ramdisks). ok florian@
2018-05-26BCM4356 SDIO works if we load the appropriate firmware.Mark Kettenis
ok patrick@
2018-05-26Add clocks for RK3399 SDIO controller.Mark Kettenis
2018-05-26In addition to "on" and "off", allow the audio "record.enable" mixerAlexandre Ratchov
knob to take the new "sysctl" value, which is the default. In this case, the device behavior is determined by the new "kern.audio.record" sysctl(2), which defaults to zero. ok florian
2018-05-26Add a "record.enable" mixer knob to control recording. When recordingAlexandre Ratchov
is disabled, the device records silence. The control may be modified only by root and defaults to "off", ie. recording is disabled by default. ok florian, deraadt
2018-05-25Prepare in_ioctl() for further refactoring with the goal of merging theTheo Buehler
two big switches in this function. Error out early in the default case without grabbing the NET_LOCK() and move SIOCSIFNETMASK a bit up. This will reduce the noise in an upcoming diff. ok visa
2018-05-25So far the SDIO stack issued one transfer for every 64 byte to bePatrick Wildt
copied. This severely limits the speed over the bus. By using block mode we can issue block-sized transfers, which bumps the transfer size to at least 512 bytes. By using multi-block mode we can copy up to 511 blocks per transfer. ok kettenis@
2018-05-25For SDIO multi-blocks we must not use the AUTO CMD12 feature,Patrick Wildt
this is only for memory card read/writes. ok kettenis@
2018-05-24Delay the vput() of the directory vnode until the vnode has beenVisa Hankala
processed by the knote() hook. This ensures the vnode does not get freed or reused too early. OK mpi@, guenther@
2018-05-24Release rwlock on bwfm(4) SDIO initialization error. Fixes hang foundPatrick Wildt
by florian@ when firmware isn't present initially.
2018-05-24vmm(4): unbreak i386 VMM_DEBUG buildMike Larkin
2018-05-24regenMike Larkin
2018-05-24Add AMD SR5690/5670/5650 IOMMU to pcidevsMike Larkin
Display name taken from existing pcidevs context (previous devices in same family) and verified against AMD's "43871 Register Reference Guide" for this platform
2018-05-23Print a message if AML attempts to access a part of the Operation RegionMark Kettenis
that we haven't implemented yet.
2018-05-23Enable ccpmic(4) and tipmic(4).Mark Kettenis