summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-06-30Instead of failing immediately , check for ENOTTY from the parent (umodem)Nicholas Marriott
ioctl function and fall through to pick up the tty ioctls. ok deraadt beck
2010-06-30Add mostly working support for ironlake (integrated graphics on core i5 and i3Owain Ainsworth
cpus) to inteldrm. This mostly works, but the suspend/resume handler doesn't put the registers back 100% (this is being worked on) and with the X driver code that is in snapshots (and soon to be on tech) we don't do vt switch in a 100% sane way. Similarly there are some vblank issues that aren't solved yet, but for most usage this works with the correct Xorg DDX. tested on two x201's, a t510 and a t410 all work given the correct userland. Suspend works once (due to crazy crap done in the ddx) but doesn't come back the second time and text vts are screwed post suspend. this will be fixed shortly when a non-sucky solution has been found. for now, this allows non-vesa X on ironlake graphics and makes us the only accelerated but non-kms OS that works on ironlake.
2010-06-30add support for ironlake (clarkdale and arrandale, i.e. core i3 and coreOwain Ainsworth
i5 internal graphics) to intagp. While technically this acts like a g4X here, add our own flag because I anticipate crazy errata and practically costs nothing. Including other diffs this was tested on two different x201's, a t510 and a t410, worked on all.
2010-06-30tweak previous;Jason McIntyre
2010-06-30If the device has the PCI Express capability, save the slot control and statusMark Kettenis
register upon suspend and restore it upon resume. Makes ExpressCard hotplug work on my Dell after a suspend/resume cycle.
2010-06-30Preserve and restore BARs on suspend/resume for all devices, not justMike Larkin
those that have the power management capability. Fixes UHCI(USB 1.1) on a bunch of machines. Tested on a wide variety of amd64 and i386 machines. ok kettenis@, deraadt@
2010-06-30Call msleep(9) with PNORELOCK rather than calling mtx_leave()Matthew Dempsky
immediately afterwards. ok thib@, tedu@
2010-06-30Switch bufq FIFO disclipline from using TAILQs to SIMPLEQs.Matthew Dempsky
ok thib@
2010-06-30Prune some dead assignments in st_interpret_sense(); st(4) alreadyMatthew Dempsky
always explicitly sets bp->b_resid before calling biodone(), so these are unneeded. ok krw@
2010-06-30Add support for naming images and setting the type, including boot scripts.Dale Rahn
Input from deraadt@ and mk@
2010-06-30lots of SCARG simplification. ok matthewTed Unangst
2010-06-30Move the plimit and pcred bits in fork1() into process_new() and makePhilip Guenthe
process_new() handle the new struct process like fork1() does struct proc, with a range of members zeroed and a range copied from the parent process. ok tedu@
2010-06-30switch ss over to using xshandlers for queuing io. this brings it into lineDavid Gwynne
with sd/cd/st. largely a mechanical change, untested due to a complete lack of hardware anywhere. ok krw@ matthew@
2010-06-29Use new ACPI PCI mapping to get _PRT busJordan Hargrave
Delete old unused code ok kettenis
2010-06-29Fix ramdisks (new code was placed inside a SMALL_KERNEL chunk)Theo de Raadt
2010-06-29make the xcrypt match the jsg code in opensslTheo de Raadt
2010-06-29Add some missing UHCI and EHCI register restores on resume. Fixes at leastMike Larkin
one broken UHCI on resume. Tested by myself, kettenis, phessler, jsg, pirofti. Doesn't help all machines, but no worse than before on any of them. ok kettenis@, deraadt@
2010-06-29Add support for mapping ACPI to PCI devicesJordan Hargrave
ok kettenis, deraadt
2010-06-29keeping a TODO file here implies somebody caresTed Unangst
2010-06-29Add missing include.Joel Sing
2010-06-29Don't use SUBDIR to traverse tags builds, but punt them straight toTheo de Raadt
the specific target in kern/Makefile. Be more cautious and block tags builds in m68k in case something tries to build them there. ok drahn
2010-06-29aesni, a driver for the crypto framework, similar to theThordur I. Bjornsson
via driver for supporting the AES-NI instructions found on recent Intel cores. I would like to thank Huang Ying at Intel for getting the assembly code relicensed from GPL to a more suitable license! Inital diff by myself, but Mike Belopuhov beat this into a usable shape and fixed many bugs. Not enabled yet.
2010-06-29In the boot blocks, stop assuming we have a 1:1 mapping of low physicalMiod Vallat
memory, but instead gather memory layout information and work with the MMU (or the PROM) to make sure we can actually load the kernel image in a proper contiguous physical memory area. In order to do this, we look at the kernel image twice; during the first pass, the kernel footprint is computed, and then after making sure it can be loaded, the second pass loads the actual image. Since such a logic doesn't work on media which can not seek backwards, such as tapes, we check for the boot device being a tape and, in that case, assume a fixed (generous) image size and don't load the kernel symbol table (to avoid seeking backwards); since tape boot is supposed to be only used to boot bsd.rd, this is something we can live with. While there, lower the address the boot blocks are loaded in memory, because the last crank did not work with some early sun4c OpenPROM, which only map about 3.5MB of memory. Memory games logic from NetBSD, tape handling by me.
2010-06-29Replace enc(4) with a new implementation as a cloner device. We stillReyk Floeter
create enc0 by default, but it is possible to add additional enc interfaces. This will be used later to allow alternative encs per policy or to have an enc per rdomain when IPsec becomes rdomain-aware. manpage bits ok jmc@ input from henning@ deraadt@ toby@ naddy@ ok henning@ claudio@
2010-06-29During kernel bootstrap, stop assuming the kernel image has been loaded inMiod Vallat
low physical memory, but instead figure out where it has been loaded from the current MMU setup. From NetBSD.
2010-06-29There is absolutely no need to double map DVMA addresses into the kernel addressMiod Vallat
space on SRMMU systems (i.e. sun4m), so don't do it anymore and update misleading comments.
2010-06-29Add PADDR_IS_DMA_REACHABLE macro so art stops whiningThordur I. Bjornsson
2010-06-29Rework cypress cpu cache setup, and enable writeback mode. Adapted fromMiod Vallat
NetBSD; tested on SM100.
2010-06-29fpu_kernel_{enter,exit}; Functions to allow the use ofThordur I. Bjornsson
the FPU in the kernel. From Mike Belopuhov; Little bits by myself. Comments/OK kettenis@
2010-06-29Shrink struct scsi_sense_data and thus the sense member of scsi_xfer,Kenneth R Westerback
to 18 bytes by removing the extra_bytes field. sbic.c was the only consumer, and that was in a DEBUG message. 18 bytes is the minimum length mandated by the SCSI spec. Anything more is vendor/device specific information. This fixes a usb key that yuo@ had, and probably others. Any device that decides to pay attention to extra sense data must allocate its own space. ok marco@ matthew@ miod@ yuo@
2010-06-29Shave off some instructions:Jasper Lievisse Adriaanse
- Use dt to loop over md_upte in sh3_vector_tlbmiss. - Shrink number of instructions for ldtlb from netbsd "commit it" miod@
2010-06-29skip empty ranges in uvm_pmr_assertvalid;Thordur I. Bjornsson
ok oga@
2010-06-29Strip out ancient bits in struct user that were still used only byPhilip Guenthe
the now-removed HPUX compat code. ok and build testing deraadt@
2010-06-29Add a no_constraint uvm_constraint_range; use it in the pool code.Thordur I. Bjornsson
ok tedu@, beck@, oga@
2010-06-29Remove COMPAT_HPUX. No one wanted to support it and its fewmets werePhilip Guenthe
blocking other cleanups ok miod@
2010-06-29We always copy struct pcred when creating a new process, so the referencePhilip Guenthe
count was always one. That's pointless, so remove the member and the code. ok tedu@
2010-06-29Eliminate struct plimit's PL_SHAREMOD flag: it was for COMPAT_IRIXPhilip Guenthe
sproc() support, but we don't have COMPAT_IRIX. ok krw@ tedu@
2010-06-29More workarounds adapted from FreeBSD to make the 82577/82578 happy,Jonathan Gray
from Mike Belopuhov and me. looks good reyk@ ok claudio@
2010-06-29remove the compat43 ifdef around some code. in effect, it's always beenTed Unangst
in compat mode and there's no harm continuing that way. ok dlg deraadt guenther miod thib
2010-06-29Add code to make ahci(4) suspend/resume properly. Probably not perfect yet,Mark Kettenis
but it seems to work reliably on several laptops. ok dlg@ (a while ago), tested by mlarkin@ and marco@
2010-06-29Call bufq_quiesce() on suspend to stop all I/O and bufq_restart on resume.Mark Kettenis
Makes suspend/resume work much better while doing disk I/O. ok mlarkin@
2010-06-29Introduce bufq_quiesce(), which will block I/O ifrom getting on the queues,Mark Kettenis
and waits until all I/O currently on the queues has been completed. To get I/O going again, call bufq_restart(). To be used for suspend/resume. Joint effort with thib@, tedu@; tested by mlarkin@, marco@
2010-06-29and the ultrix files go into the attic. ok deraadt miodTed Unangst
2010-06-29COMPAT_ULTRIX is not used, time to retire it. ok deraadt miodTed Unangst
2010-06-29move a little code around, eventually it will be betterTed Unangst
2010-06-29Remove the "if the string address faulted, see if it looks like an int"Ted Unangst
4.3 compat code in mount. This is a flag day for those of you still running 4.3 BSD binaries on your vaxen. :) ok deraadt dlg guenther thib
2010-06-29Fail instead of lying if a process asks sysctl()'s KERN_PROC2 orPhilip Guenthe
KERN_FILE2 (or their libkvm wrappers) for more information than the running implementation knows how to provide. ok millert@ deraadt@
2010-06-29remove lies. the arguments are actually used.Thordur I. Bjornsson
2010-06-29fix a logic error found by lintJonathan Gray
2010-06-29Interface drivers should use DV_IFNET, not DV_DULL.Matthew Dempsky
ok deraadt@