summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-12-30Only disable I/O and memory space and bus mastering if we're actually goingMark Kettenis
to put the device into D3. Fixes PCI power management issues that prevented acpi (and perhaps apm) suspend on some machines. tested by & ok mlarkin@
2010-12-29remove two unnecessary comments that snuck in with previous.Thordur I. Bjornsson
2010-12-29knfTheo de Raadt
2010-12-29Since there is only one random_state, we can access it directly withoutTheo de Raadt
the rs-> song and dance. Exactly the same diff was written by djm.
2010-12-29arc4random_count is not used; other things inside rndstats do the accountingTheo de Raadt
2010-12-29the rnd_debug stuff was not usefulTheo de Raadt
2010-12-29kill RND_ARND_OLD, and decrease RND_NODEV to account for it; ok djmTheo de Raadt
2010-12-29Remove the get_random_bytes() API.Theo de Raadt
ok kjell djm
2010-12-29Bus clock doesn't matter on the Xeon 3600/5600 and Xeon 6500/7500, so don'tMark Kettenis
print the "can't get bus clock" message. While there, adjust comments for the i3/i5/i7 CPUs and include the relevant Xeon models. The Intel marketing people seem to have less influence on the Xeon names, so they describe the CPU generation much better. ok marco@, deraadt@
2010-12-29the random ioctl stuff is not very useful. I want to see all theTheo de Raadt
non-essential parts of rnd.c removed so that we can keep our eye on what the code should be doing. ok tedu who had a similar diff in the past
2010-12-29implement timeouts of scsi commands.David Gwynne
timed out scsi commands get put on a list and an iohandler is scheduled. that iohandler pulls the timed out scsi command off the list and issues a task management request to kill all outstanding io on the target with the timed out io. all io killed as a result of this request will be returned to the midlayer with their status set to XS_RESET, which in turn will cause the midlayer to retry the command. this relies on the previous commit.
2010-12-29make mpii properly detach devices, which helps a lot if they have commands ↵David Gwynne
in flight. to relevant changes are: - call the activate(DVACT_DEACTIVATE) function against all the luns on the target that is going away as soon as possible. - issue the target reset BEFORE detaching the children devices. this is needed now tha the midlayer will sleep until all outstanding commands on a device come back from the adapter before calling the child devices attach routine. tested on straight disks and on disks in enclosures. ok and moral support from krw@
2010-12-28Previous diff had a buglet, found the hard way by pea@Miod Vallat
2010-12-27Correct x86_atomic_*_ul() to operate on 64bit integers, eliminatePhilip Guenthe
x86_atomic_*_l(), and update the callers of all of those to use the underlying x86_atomic_*_u32() functions that they were expecting anyway. Whether the x86_atomic_*_ul() macros should be eliminated has been deferred. ok kettenis@, tedu@
2010-12-27Eliminate x86_multicast_ipi() as unused and broken (doesn't handle #cpu>32).Philip Guenthe
The i386 version was removed some time ago, so kill its declaration too. ok tedu@ kettenis@
2010-12-27Do not issue a cache maintainance operation until the last one is notMiod Vallat
completed; this used to be the case, but revision 1.25 of this file, close to four years ago, changed this behaviour by mistake. The side effects of this mishandling of the cache did not show up until the kernel memory allocation strategy moved towards fast reuse of freed pages. Took me a while to track this down, maybe I'm getting too old to write code, I probably should write backdoors instead.
2010-12-27Properly initialize MXCSR and XMM registers if we only write the x87 FPU stateMark Kettenis
and the process has not used the FPU yet. ok guenther@
2010-12-27cleanup pms_enable_intelli: magic numbers -> definesAlexandr Shadchin
ok krw, miod
2010-12-27remove unneeded MakefileAlexandr Shadchin
ok krw, miod
2010-12-27* add cfattach activate functions and call usbd_deactivate() in theJacob Meuser
DVACT_DEACTIVATE case for drivers that don't have activate finctions * fill out cfattach activate functions and call usbd_deactivate() in the DVACT_DEACTIVATE case for drivers that don't have a dying flag "ok with the intent" miod@
2010-12-26Misplaced splx() in pmap_unsetbit().Miod Vallat
2010-12-26Kill pmap_phys_address(), and force every driver's mmap() routine to returnMiod Vallat
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
2010-12-26Clean up how we print the sbus(4) clock speed. Purely cosmetic.Mark Kettenis
ok miod@, deraadt@
2010-12-25ntfs memory names were too long and make vmstat -m look uglyTed Unangst
2010-12-24add a param to uvm_map_hint to not skip over the heap, and use it as a lastTed Unangst
resort if mmap fails otherwise to enable more complete address space utilization. tested for a while with no ill effects.
2010-12-24the bsdi ldt entry is no longer interesting. from valdimir kirillovTed Unangst
2010-12-24in pf_src_connlimit, the indices to sk->addr were swapped.Henning Brauer
tracked down and diff sent by Robert B Mills <rbmills at sdf.lonestar.org> thanks, very good work! ok claudio
2010-12-24fix crash:Alexandr Shadchin
after boot and before the first activation (wsmoused or X), sc->protocol is not initialized, and any call ioctl lead to crash (example 'wsconsctl -a') thanks and ok krw@
2010-12-24Advertise printk() as a printf-like function.Alexander Yurchenko
Diff from miod@, thanks.
2010-12-24Add missing argument to printk(). Spotted while porting on linux 2.6.Alexander Yurchenko
ok miod@
2010-12-24try to update the monster comment at the top of this file to explainTheo de Raadt
what it is we are doing ok djm
2010-12-24regenAlexandr Shadchin
2010-12-24Add info for Intel (Core Host), ATI (Radeon HD 5670)Alexandr Shadchin
ok krw@
2010-12-24Have sd(4) devices check for and respect read-only information theKenneth R Westerback
way st(4) does. Have both decline to open read-only devices for anything but read-only access. Suggestion to fail opens rather than individual i/o's from deraadt@. Problem USB device found and donated by chefren, who also tested diffs. Thanks! ok dlg@ marco@
2010-12-23Better malloc the right size, overruns are so 200x... Pass the brown paperMiod Vallat
bag, please.
2010-12-23The exception vector page on m88k systems has always been the same page asMiod Vallat
the one used by the firmware, which (at least on mvme88k) is at address zero. This is unfortunate, since this means that NULL pointer dereferences in the kernel are not caught, and writes cause havoc. This behaviour was necessary to be able to use the PROM system call interface during early bootstrap, without having to disassemble the VBR page and update branches - which use pc-relative displacement - if we were to use a different VBR address. On mvme88k, change this and actually set up two VBR pages: one, over the PROM page (except for the system call vectors), and another one in the kernel image (which will be mapped read-only). We'll run with the PROM page until the end of autoconf, and then switch to the kernel one, and unmap all the PROM below it. As a bonus, the final kernel page can use optimized data access fault handlers, which do not have to check for faults caused by badaddr(), since badaddr() is only used during device probe on buses which do not support hotplug. There are a few infrastructure collateral damage on aviion and luna88k, but these ports do not change their behaviour yet.
2010-12-23Add a common interface for various devicesAlexandr Shadchin
This is to make it easier to add additional mice types in future ok krw@, miod@, nicm@
2010-12-23Check for pcb_onfault being set for genuine kernel data faults, copyout()Miod Vallat
may be invoked with an address under the kernel text and we're about to stop having such pages always mapped.
2010-12-23Make the pte created by pmap_map() wired, and count them in pmap_kernel()'sMiod Vallat
statistics. This allows these mappings to be removed with pmap_kremove() without messing with accounting.
2010-12-23regenJasper Lievisse Adriaanse
2010-12-23- sort previousJasper Lievisse Adriaanse
- add my sata controller ok krw@
2010-12-23SyncKenneth R Westerback
2010-12-23Add info for Intel (CORE DMI), nVidia (GT425M, GF108 audio), JMicronKenneth R Westerback
(SD, SD/MMC, MS, xD) parts on Dell XSP L401X that were showing up as 'unknown'. ok deraadt@
2010-12-22rewrite randomwrite() for clarity after discussion with mikebTheo de Raadt
ok djm
2010-12-22When configuring a vnd(4) disk, populate the disk name based on the modeJoel Sing
in which it was configured. If this is a "safe" vnd disk the name should be "svndX" whereas a standard vnd disk should be named "vndX". ok deraadt@ todd@ thib@
2010-12-22* recognize/support the Dynex DX-SC51 in envy(4)Jacob Meuser
* allow ac97(4) flags to be set in envy(4), if there is an ac97 codec * configure the vt1616 codec on the Dynex DX-SC51 for multi-channel operation ok ratchov
2010-12-22use the do {} while construct in the copying macrosTheo de Raadt
ok mikeb
2010-12-21remove dead code (ivp did always point to iv in the decrypt path).Markus Friedl
instead save one bcopy() per block by alternating between two iv buffers; ok mikeb@
2010-12-21Bring back the "End the VOP experiment." diff, naddy's issues whereThordur I. Bjornsson
unrelated, and his alpha is much happier now. OK deraadt@
2010-12-21don't leak short packets; ok mikeb@Markus Friedl