summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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
2018-05-23Wait for write operations to complete.Mark Kettenis
ok mlarkin@
2018-05-23add missing newlines for debug printfsPeter Hessler
OK stsp@
2018-05-23Add monitor mode support to iwm(4).Stefan Sperling
Tests: 7260 ccardenas, 7265 myself, 3165 Bruno Flueckiger, 8265 Tracey Emery. ok ccardenas@, "ich bitte darum" benno@
2018-05-23Align libsa ctime output with libc ctime output.cheloha
Use zero-padding to get double-digit HH:MM:SS and space-padding for the DOM. ok visa@
2018-05-23Fix build without DIAGNOSTIC, ok mikeb@Reyk Floeter
2018-05-23Don't leak the RX pipe in case we have issues opening the TX pipe.Patrick Wildt
2018-05-23Only react to deauthentication/disassociation and link changes if we arePatrick Wildt
not in INIT state. Otherwise we can have bogus state changes on ifconfig down. Also don't try to end a scan if we were not scanning.
2018-05-23Select correct channel in Host AP mode. One part of that is creatingPatrick Wildt
the channel specification (channel, freq, bandwidth, control channel) which is parsed and understood by the bwfm(4) firmware. Another part is that we shouldn't start a scan if the channel is selected by the user, otherwise we override the chosen channel. The remaining part is bringing the device down properly. If it's not disabled properly, we cannot bring it up again. ok stsp@
2018-05-23Change wait text when waiting for FUSE file system daemon to respond.helg
ok mpi@
2018-05-23Implement a separate initialization stage so that we can still usePatrick Wildt
and initialize bwfm(4) later in the case that the firmware was not available on bootup and was only later installed. ok stsp@
2018-05-23Simplify the CVE-2017-5715 workaround code. Marvell backported SMSCCC 1.1Mark Kettenis
support to their ATF fork and I expect other vendors that bothered to backport the early workaround to do the same. And another ATF update is needed anyway to implement the workaround for Spectre variant 4i (CVE-2018-3639). ok patrick@, mlarkin@, jsg@
2018-05-23Extend list of supported bwfm(4) SDIO chips.Patrick Wildt
2018-05-23Enable bwfm(4).Patrick Wildt
ok stsp@
2018-05-23Map the second bwfm(4) BAR first. The bwfm(4) PCIe devices have twoPatrick Wildt
BARs, where the second one is much larger than the first. Both need to be properly aligned in the given extent. Since the first one is smaller, it will "unalign" the next free space and thus create a gap so that the second BAR cannot be properly aligned in the given space. By mapping the second BAR first, it will automatically have proper alignment. The first BAR, which has fewer alignment requirements, fits well after the initial allocation. Fixes bwfm(4) on APU 1. Debugged and solved by kettenis@
2018-05-23Remove unused pmap_steal_memory_implementation(). It doesn't actually workMark Kettenis
and implementing this interface only really makes sense for architectures that use a direct map. ok patrick@, visa@
2018-05-23Move CR4_DEFAULT to specialreg.h where the CR4_* values are definedPhilip Guenther
ok mlarkin@
2018-05-23Add back a local change to prevent interrupt handlers claiming anJonathan Gray
interrupt when it is shared by other devices. Fixes a regression reported by nigel@ where USB stopped working after the radeondrm update on a machine where ohci shared an interrupt with radeondrm.
2018-05-22Call acpi_attach_deps() for the child devices before attempting to powerMark Kettenis
them on. Prevents a panic on the AZW Z83-S that is somewhat buggy and checks whether the GPO3 controller is available and then pokes a pin on GPO2. It shouldn't do that but we should make sure all the devices that it depends on attach first anyway. ok patrick@
2018-05-22Turns out lucky me picked the Asus T100HA to implement the heuristic toMark Kettenis
rotate the inteldrm(4) framebuffer console. And judging from (somewhat) recent commits to Linux, this happens to be the only machine where the display needs to be rotated counterclockwise. So change the heuristic to rotate clockwise and add a quirk for the Asus T100HA. ok stsp@, mlarkin@, jsg@
2018-05-22kevent: correctly check that timeout's nanoseconds are on [0, 1000000000)cheloha
Validate the input with timespecfix before truncating to a timeval. timespecfix does not round, so we need to to it by hand after validation. FreeBSD and NetBSD check the input with this range, we ought to as well. Also add a regression test for this case. ok tb@
2018-05-22nanosleep: ensure tv_nsec input is on [0, 1000000000)cheloha
Instead of converting timespec -> timeval and truncating the input, check with timespecfix and use tstohz(9) for the tsleep. All other contemporary systems check this correctly. Also add a regression test for this case. ok tb@
2018-05-22Define CR0_DEFAULT with our default CR0_* flags for various .S files.Philip Guenther
Replace a hex constant with the correct CR0_* define in mptramp.S. Clean up lots and lots of whitespace glitches. no binary change. ok mlarkin@
2018-05-22Implement support for libfuse use_ino option. This returns the filehelg
system's ino for VOP_GETATTR(9) and VOP_READDIR(9) rather than the internally generated fuse ino. ok mpi@
2018-05-22Do not overwrite `table' in the non-translating case.Martin Pieuchot
This ensures the keyboard is using the expected scancode. From miod@, problem also noticed by Markus Hennecke, ok otto@
2018-05-22Prevent NET_LOCK() recursion when releasing the last `fp' reference.Martin Pieuchot
ok bluhm@, visa@
2018-05-22Factor out the common FPU handling from vcpu_run_{vmx,svm}() intoPhilip Guenther
vmm_fpu{restore,save}() ok mlarkin@
2018-05-22Delete antique sigdebug definitionsPhilip Guenther
ok kettenis@