summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-04-25update ttm and radeondrm(4) to Linux 4.4.129Jonathan Gray
Compared to the previous Linux 3.8 based port this adds support for KAVERI/KABINI/MULLINS APUs and OLAND/BONAIRE/HAINAN/HAWAII GPUs. Thanks to the OpenBSD Foundation for sponsoring this work.
2018-04-25Add a way to reattach efifb(4). This will be used when radeondrm(4)Jonathan Gray
attaches and claims glass console but after root is mounted if firmware is not found efifb gets reattached to have a useable glass console.
2018-04-24Use pf_rm_rule() instead of pool_put() to decrement references byAlexander Bluhm
the rule created in pf_rule_copyin(). Plugs a potential kif memory leak in pf(4) ioctl. OK sashan@
2018-04-24Move code into inline functions to hide #ifdefs and improve readability.Philip Guenther
Constipate a couple variables. Delete IDTVEC() macro and code handling 32bit-only traps (panic instead). ok mlarkin@
2018-04-24vmm(4): fix lockups on SVM hosts when booting Linux guestsMike Larkin
The previous version of the code used "disable_intr" as a protection around the FPU state saving routine, which left host RFLAGS.IF=0 when entering the guest. If the guest ended up in a non-exitable condition, the machine could hang due to missed TLB flush IPIs (and eventual kernel lock contention and starvation). tested by brynet@ ok guenther@
2018-04-24<machine/i82489reg.h> isn't used herePhilip Guenther
ok mlarkin@
2018-04-24Fix copy and paste typo in pfi_kif_unref route error message.Alexander Bluhm
2018-04-24Make the ramdisks compile again, we don't have MROUTING on them.Florian Obser
Found the hard way.
2018-04-24Fill the 'card' member of v4l2_capability struct with the usb productLandry Breuil
name coming from usbd_devinfo_vp() instead of the dummy "Generic USB video class device" string, makes it easier to differentiate multiple webcams in firefox's webrtc permission dialog. ok/help mpi@
2018-04-24Make futex(2) also return ECANCELED in case SA_RESTART was set.Paul Irofti
Prodded by and ok mpi@
2018-04-24account for FPU context switch (uvm statistic only)Mike Larkin
2018-04-24Validate timespec and return ECANCELED when interrupted with SA_RESTART.Paul Irofti
Discussing with mpi@ and guenther@, we decided to first fix the existing semaphore implementation with regards to SA_RESTART and POSIX compliant returns in the case where we deal with restartable signals. Currently we return EINTR everywhere which is mostly incorrect as the user can not know if she needs to recall the syscall or not. Return ECANCELED to signal that SA_RESTART was set and EINTR otherwise. Regression tests pass and so does the posixsuite. Timespec validation bits are needed to pass the later. OK mpi@, guenther@
2018-04-24Push NET_LOCK down in the default ifioctl case.Paul Irofti
For the PRU_CONTROL bit the NET_LOCK surrounds in[6]_control() and on the ENOTSUPP case we guard the driver if_ioctl functions. OK mpi@
2018-04-24make the check for XSAVE the same as it is later in the file, forMike Larkin
consistency. ok guenther note - there is no equivalent diff here for i386 since XSAVE is not used there.
2018-04-24Enable gpioiic(4) and gpioow(4). From Artturi Alm.Mark Kettenis
2018-04-24Run duplicate address detection again if an existing address getsFlorian Obser
updated from userland that was marked duplicated or tentative. Otherwise we would just lose the duplicated / tentative state and assume that the address is now unique and usable. OK kn
2018-04-24Remove unused rtentry parameter.Florian Obser
Input bluhm OK benno, kn, claudio
2018-04-24Enable em(4) on loongson.Visa Hankala
2018-04-24Do not lock the kernel when expanding the working buffer.Visa Hankala
malloc(9) and free(9) are MP-safe nowadays. OK mpi@
2018-04-23Move efi_cleanup() to before the mem_pass() since efi_cleanup() mightYASUOKA Masahiko
change the memory map. diff from Ryan Lennox ok kettenis
2018-04-23regenccardenas
2018-04-23Add ids for AMD 15h 3xh family along with Kaveri graphicsccardenas
Ok mlarkin@ jsg@
2018-04-22Use free(9) size argument in azalia_codec_select_dacs(). FromAlexandre Ratchov
Michael W. Bombardieri. Thanks.
2018-04-22Wrap debug-only variable definition in #ifdef AZALIA_DEBUG. FromAlexandre Ratchov
Michael W. Bombardieri. Thanks.
2018-04-22Add reference counting that prevents freeing of busy aesni sessions.Visa Hankala
The early freeing has become possible because aesni_process() and crypto_freesession() are no longer serialized by the kernel lock. The flaw has caused kernel panics with IPsec traffic. Issue seen by some, fix tested by mabi on bugs@ OK mikeb@, mpi@
2018-04-20revert to 2018/04/20 10:00:00, before oopsChristian Weisgerber
2018-04-20oops, snapshot tests not ready yetTheo de Raadt
2018-04-20syncTheo de Raadt
2018-04-20Add a workaround that lets loongson bootblocks work with PMON thatVisa Hankala
uses the O32 calling convention. Such firmware comes at least on some Loongson 3A development boards. This differs from the LS2F-based machines made by Lemote whose PMON uses the GCC O64 calling convention.
2018-04-20Make loongson bootblocks use disklabel duid instead of PMON device nameVisa Hankala
when indicating the boot device to the kernel. This should reduce ambiguity in root device selection.
2018-04-20remove the background scan timeout on detach, so we don't crash shortlyJonathan Matthew
afterwards. crash reported by Piotr Isajew ok stsp@
2018-04-20grammar fixes PTE's -> PTEsMike Larkin
ok guenther, jmc, tom, millert, deraadt
2018-04-20enable ccp(4) as found on recent amd chipsDavid Gwynne
2018-04-20enable ccp(4) as found on amd seattle platforms, eg, overdrive 1000sDavid Gwynne
ok kettenis@ jmatthew@
2018-04-20add a small driver for AMDs cryptographic co processor.David Gwynne
the hardware provides crypto offload, zlib offload, and an rng. this code only supports the rng at the moment. this device is present on their amd seatlle platforms, and very present on their epyc stuff. ok kettenis@ jmatthew@
2018-04-20regenDavid Gwynne
2018-04-20add and update amd cryptographic co-processor devicesDavid Gwynne
2018-04-19when adding span ports, restrict them to ether and mplstunnel interfaces.David Gwynne
this is the same check that's done when adding normal members to the bridge. it prevents things like gif(4) being added to the bridge, which in turn prevents panics when shoving ethernet packets down a layer 3 interface. reported and tested by jasper@
2018-04-18crank versionTheo de Raadt
2018-04-18re-enable ucode loading. The problem is the standard memory allocatorTheo de Raadt
cannot handle the larger firmwares, so we must place them somewhere else where the kernel can read them. Let's use 1MB. And pay attention if someone gets burned by this decision. Other solutions get a lot more hairy ok mlarkin jsing
2018-04-18Some programs create a PROT_NONE guard page at the far-end of the providedTheo de Raadt
stack buffer. With a page-aligned buffer, creating a MAP_STACK sub-region would undo the PROT_NONE guard. Ignore that last page. (We could check if the last page is non-RW before choosing to skip it. But we've already elected to grow STK sizes to compensate. Always ignoring the last page makes it a non-MAP_STACK guard page which can be opportunistically discovered) ok semarie stefan kettenis
2018-04-18If m_pullup() changes the mbuf in gif_input(), also adjust the mbufAlexander Bluhm
pointer in the IP protocol loop. Reset the loop's mbuf when the mbuf is freed. The latter is not necessary, but clearing a pointer to freed data is safer. OK dlg@
2018-04-18handle failure better in release_firmware()/request_firmware()Jonathan Gray
Alloc the containing struct with M_ZERO so if loadfirmware() fails and doesn't set the pointer we won't try to free an address based on uninitialised memory. Use M_DEVBUF not M_DRM when freeing the buffer allocated by loadfirmware().
2018-04-18Stop modifying vm page flags using mixed atomic and non-atomicPatrick Wildt
operations. This resolves one of the failures frequently seen on QEMU where spawning processes while another process is working can lead to crashes. Committing on behalf of drahn@ ok kettenis@ jsg@
2018-04-18Introduce a pmap lock on pmap_fault_fixup(). Heavily threadedPatrick Wildt
applications will crash without this lock as other threads attempt to walk the tree while another thread is adding/removing mappings. Committing on behalf of drahn@ ok kettenis@
2018-04-18Try to get the layout from the default mux when attaching a consoleMartin Pieuchot
keyboard late. This makes keyboard re-attaching due to the machdep.forceukbd sysctl(2) respect /etc/kbdtype. Issue reported by Artturi Alm, jmc@ and landry@. ok kettenis@
2018-04-18Do a FREF()/FRELE() dance after fd_getfile() in sys_fcntl().Martin Pieuchot
ok visa@
2018-04-18Call FREF(9) earlier instead of incrementing `f_count' by hand.Martin Pieuchot
ok millert@, visa@
2018-04-18vmm: Fix interrupt window exiting for AMD / SVMpd
* define V_IGN_TPR (ignore virtual TPR) * set V_IGN_TPR while configuring window exiting (was missed in one location along with setting of the intr vector) This should fix unresponsive network / console issues with guests on SVM.
2018-04-17- Make rnd hints avoid the brk area. The rnd allocator refuses to allocate inOtto Moerbeek
the brk area anyway. - Use a larger hint bound to spread the allocations more for the 32-bit case - Simplified the overy abstracted brs/stack allocator and switch of guard pages for the brk case. This allows i386 some extra space, depending on memory usage patterns. - Reduce brk area on i386 to give the rnd space more room ok stefan@ sthen@