summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-09-10implement handling of rescan events on fc controllers. allows "hotplug" ofDavid Gwynne
fc devices.
2010-09-10the open() functions give us flags like FREAD and FWRITE from sys/fcntl.h.Jacob Meuser
the AUOPEN_ macros from sys/dev/audiovar.h are for something else.
2010-09-10scsi_xsh_del the io handler in deactivate to prevent it from being run onDavid Gwynne
a device thats now gone, or from being on the list of pending io when the device is actually detached. found and fix tested by jakemsr@ "go for it" jakemsr@
2010-09-10#defines for the bits inside the flags field in mpi_cfg_fc_port_pg1David Gwynne
2010-09-09Sync suspend logic with current practice, and try to handle failureMiod Vallat
consistently; discussed with pirofti and deraadt.
2010-09-09nessesary -> necessary.Miod Vallat
2010-09-09Move cache settings into hw_cpu_init_secondary() ok miod@Takuya ASADA
2010-09-09Fix compile error on option DEBUG ok miod@Takuya ASADA
2010-09-09Rename lookup/relookup to vfs_lookup/vfs_relookup.Thordur I. Bjornsson
OK oga@, beck@, matthew@
2010-09-09Why ip6_input.c includes netinet/ip_icmp.h is beyond my imagination.Claudio Jeker
Compiles fine without it so remove it.
2010-09-09The resume powerhooks were always in the wrong place. Then when replacedTheo de Raadt
by the device-tree activate walk it even worse since we were doing so much more work. apm_suspend() could return into the event handler and thus tsleep() -- all this while we are supposedly trying to maintain splhigh because our DVACT_SUSPEND mechanism has temporarily totally wrecked the machine. Move the hardware restoration code (DVACT_RESUME + other goo) to the same function, and recognize that apm_resume() is just a boring event handler which punts the event to userland. ok oga
2010-09-08merge apm_standby() into apm_suspend()Theo de Raadt
vague ok from kettenis, but it is just mechanical
2010-09-08No need for vfs_syncwait() in a bufq_quiesce() worldTheo de Raadt
ok thib kettenis
2010-09-08Add support for Terratec EWX 24/96 based on initial diff from ratchov@.Stefan Sperling
ok ratchov@
2010-09-08Document that the resume case is waking children which may have beenTheo de Raadt
ejected, and that this needs to be solved.
2010-09-08Split out the guts of pccbbintr() so that we can call it carefully atTheo de Raadt
resume time. ok kettenis
2010-09-08During suspend, do not call children's interrupt handlers after we haveTheo de Raadt
told them to suspend. In some drivers, this "wakes" them up. ok kettenis
2010-09-08better to break out of the casesTheo de Raadt
2010-09-08activate NTFS, let's hope it gets less experimental soon (as beck@ said)Marc Espie
okay'd by thib@, who now owns a spanking new ntfs image... deraadt@ 'okay if thib@ lets you'
2010-09-08remove a useless commentTheo de Raadt
2010-09-08Crank ofwboot version after recent changes.Joel Sing
2010-09-08Use the offset value passed into search_label() and call it withJoel Sing
LABELSECTOR instead of a hardcoded 0. No functional change.
2010-09-08Introduce a disk_lookup() function which calls device_lookup(), beforeJoel Sing
verifying that the resulting device is present on the disklist. This avoids a race whereby the disk driver can be accessed as soon as the softc has been allocated, but before the disk has completed initialisation and has called disk_attach() (up until this point dk_label is still a null pointer). Cut cd(4), sd(4) and wd(4) across to disk_lookup(). All callers of disk_attach() need to be tested and cut over in due course. ok deraadt@ krw@
2010-09-08Sync disklabel_sun_to_bsd() with sparc64/disksubr.c. This gives us accessJoel Sing
to the extended partition information and allows for correct identification of parition types.
2010-09-08Store a struct device pointer within struct disk and populate this whenJoel Sing
disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@
2010-09-08Nuke bogus comment.Joel Sing
2010-09-08Reintroduce most crypto/crypto.c r1.55:Joel Sing
Move pool initialization to init_crypto and zap the crypto_pool_initialized variable. This way we don't have to check if the pool are initialized every time we do a crypto_getreq(). However, also perform the crypto initialisation earlier in init_main so that the crypto pools are initialised before they are used. ok mikeb@ thib@ deraadt@
2010-09-08let things request the detach of everything on the whole bus, rather thanDavid Gwynne
just a target/lun.
2010-09-08Add $OpenBSD$ prompted by mikeb@Thordur I. Bjornsson
2010-09-08creating a pfsync interface is always done from process context, soBret Lambert
we can pass M_WAITOK to malloc(9) (which was already done a few lines down, which set off my aesthetic alarm). While here, include malloc.h, since we're calling malloc. ok dlg@
2010-09-08Return EACCES when pf_test() blocks a packet in ip_output(). This allowsClaudio Jeker
ip_forward() to know the difference between blocked packets and those that can't be forwarded (EHOSTUNREACH). Only in the latter case an ICMP should be sent. In the other callers of ip_output() change the error back to EHOSTUNREACH since userland may not expect EACCES on a sendto(). OK henning@, markus@
2010-09-08Switch the MPLS blocks for RTM_CHANGE. Do not always remove the MPLSClaudio Jeker
information if the gateway changes, since real MPLS routes need to change gateway and outgoing label on topology changes. So if there is MPLS information and an outgoing label do a proper change but if the gateway of a non-MPLS route is changed remove the MPLS path since it is no longer valid. OK michele@
2010-09-08Map the TTL when building the initial MPLS stack from the encapsulatedClaudio Jeker
packet. For IP and IPv6 the corresponding mapttl sysctl needs to be set. This is needed to make traceroute work over MPLS. OK michele@
2010-09-08stray spaces no code changeMarco Peereboom
2010-09-08activate hooks should return a value.David Gwynne
all from deraadt@ tested by me with hotplugged disks on mpi(4)
2010-09-07no need for an activate function if it just returns 0Theo de Raadt
2010-09-07having a ca_activate function which just returns 1 is wrong on about 8 ↵Theo de Raadt
different levels; ok oga kettenis
2010-09-07rename function parameter to be more like all the others in the treeTheo de Raadt
2010-09-07Restore msr unconditionnaly, why bother checking if they have changed; deraadtMiod Vallat
2010-09-07Join the cf_activate() crowd and preserve a few msr around suspend.Miod Vallat
2010-09-07enable aesni.Mike Belopuhov
that means that all users running ipsec on amd64 with 'aes' cpu flag will have aes encryption accelerated in cbc and ctr modes for all three key sizes: 128, 192 and 256. for debug purposed a number of operations performed by the driver is visible throught the pstat(8) utility: pstat -d u aesni_ops note that you need to run config(8) to hook up new files. ok kettenis thib deraadt
2010-09-07remove the powerhook code. All architectures now use the ca_activate treeTheo de Raadt
traversal code to suspend/resume ok oga kettenis blambert
2010-09-07shorten fpu critical sections so that all frees and other manipulationsMike Belopuhov
won't interfere with an actual fp code. reminder from kettenis: fpu_kernel_enter and fpu_kernel_exit should be thought of as if they were mutex_enter and mutex_leave in regard to the length of critical section and sleeps. ok kettenis thib
2010-09-07Bring the promiscuous/multicast handling code in line with the current OpenBSDMiod Vallat
practice; from brad
2010-09-07rely on SCSI_AUTOCONF for cd_resume instead of wrapping it in a workqTheo de Raadt
(which creates a potential race against cd detach) discussed with krw and dlg seperately
2010-09-07Allow NTFS to compile by cutting it over to the new VOP world order.Thordur I. Bjornsson
Small cleanup while here, nuke the ntfs_bypass function and just use eopnotsupp like every other filesystem, it makes no sense to return ENOTTY for unimplemented VOPs.
2010-09-06End the VOP experiment. Instead of the ridicolusly complicated operationThordur I. Bjornsson
vector setup that has questionable features (that have, as far as I can tell never been used in practice, atleast not in OpenBSD), remove all the gunk and favor a simple struct full of function pointers that get set directly by each of the filesystems. Removes gobs of ugly code and makes things simpler by a magnitude. The only downside of this is that we loose the vnoperate feature so the spec/fifo operations of the filesystems need to be kept in sync with specfs and fifofs, this is no big deal as the API it self is pretty static. Many thanks to armani@ who pulled an earlier version of this diff to current after c2k10 and Gabriel Kihlman on tech@ for testing. Liked by many. "come on, find your balls" deraadt@.
2010-09-06All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}Theo de Raadt
2010-09-06Make sure bus_dmamap_sync() always involves a function call, to prevent theMark Kettenis
compiler from doing stupid things like reordering stores around it. There is some debate whether this will be enough for newer versions of GCC and LLVM. If this is indeed deemed necessary, this will be addressed in a future diff. ok miod@, oga@
2010-09-06Save and restore pci config space registers common to all PCI-CardBusMark Kettenis
bridges when we do suspend and resume. ok deraadt@