summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-06-30for scsibus, silence the activate function when unknown events are given.Theo de Raadt
they are supposed to do, or be silent. ok mlarkin
2010-06-30amd64_pa_used is weird.Owain Ainsworth
We check a bunch of things, where most archs are a lot more simple. Also, we get problems sometimes: My x201 can't map the framebuffer BAR from the aperture with the chunk that checks the bios sections, meaning the bios is claiming something about it. Kettenis@ and I are pretty sure that the rest of the checks are more than sufficient, so just nuke that one. for the record, in the same situation i386 just checks again VGA_START, BIOS_END and physmem. ok kettenis@
2010-06-30Cleaned up aml name parser, delete unused codeJordan Hargrave
ok marco
2010-06-30Use SLIST for the ccb free list.Michael Knudsen
ok krw, discontent grunts from marco.
2010-06-30Use a SLIST for the ccb free list.Michael Knudsen
ok krw
2010-06-30Flush cache before suspend.Mark Kettenis
ok krw@, marco@
2010-06-30Use SLIST instead of TAILQ for the ccb free list.Michael Knudsen
ok krw
2010-06-30fix route label awesomeness, issue also known as PR6416Henning Brauer
broken by ryan in australia problem found & nagging by sthen jsg found the fix but failed to apply the cluestick correctly ;) test & ok sthen
2010-06-30Make this compile after TTYHOG definition change (but the logic should be fixedMiod Vallat
to not depend on it).
2010-06-30Bring cd(4) into line with sd(4) and st(4) by implementing CDF_DYINGKenneth R Westerback
to better handle detaching. ok deraadt@
2010-06-30Remove #ifdef CRYPTO. config will do this for us.Thordur I. Bjornsson
2010-06-30get rid of a few c++ comments and a few spacing nitsThordur I. Bjornsson
2010-06-30remove two useless defines.Thordur I. Bjornsson
fixup arguments to the fpu_kernel_enter/exit. from mike
2010-06-30regenYojiro Uo
2010-06-30add MOSCHIP MCS7715Yojiro Uo
2010-06-30change a pair of timeout_add calls to timeout_add_{,m}secBret Lambert
ok dlg@
2010-06-30* use audio(9)'s DMA trigger methods instead of the init/startJacob Meuser
methods. the AD1848 DMA engine runs continuously and doesn't need to be started/stopped or otherwise manipulated for each block. makes the driver a bit more efficient. * allow "Mode 2" capable chips such as the CS4231 to work in "Mode 1" when there is only one DMA channel, instead of forcing it into "Mode 2", which expects two DMA channels. allows recording to work for "Mode 2" capable devices when there is only one DMA channel. * service both playback and recording interrupts in full-duplex mode, instead of only playback interrupts. allows "Mode 2" capable chips to work in full-duplex mode. * fix checks for sample rate/format recalibration completion. gets rid of busy loops that briefly "hang" the kernel when the device is opened and/or reconfigured.
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@