summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-07-02kqueue attach functions should return an errno or 0, not a plain 1. FixNicholas Marriott
the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
2011-07-02Per recommandation in the the sparc docs, use unlocked reads whenPhilip Guenthe
spinning on a contended lock. ok kettenis@
2011-07-02Cleanup the softraid boot probe code. Rename the rather poorly namedJoel Sing
sr_metadata_list struct to sr_boot_chunk and use a sr_metadata struct rather than an array of u_int8_t when storing the metadata. Also rename some variables to keep the boot volume/boot chunk consistency. This diff also fixes a memory leak where the structures were never freed for key disks. Otherwise there should be no functional change. ok marco@
2011-07-02Use getvnode() instead of implementing our own file descriptor handlingJoel Sing
code. This gets us some additional validation and correct reference counting. Issue spotted by matthew@ ok thib@
2011-07-02Getting a disklabel to extract d_secsize to initialize a variable that is thenKenneth R Westerback
re-initialized before use is silly. ffs shouldn't know of or worry about the physical disk sector size. ok thib@
2011-07-02rename VFSDEBUG to VFLCKDEBUG;Thordur I. Bjornsson
prompted by tedu@
2011-07-02gc in_interfaces. doesnt seem to do anything except get incremented.David Gwynne
ok henning@ deraadt@
2011-07-01msi interrupts working on mfi(4)Theo de Raadt
2011-07-01The pf_headers union may also contain a mld_hdr or nd_neighbor_solicitAlexander Bluhm
struct. List those types explicitly to make sure that the union contains enough memory. Before we were just lucky. ok henning@
2011-06-30ansi, no binary changeJonathan Gray
2011-06-30Refactor some common open/close/detach disk driver code intoMatthew Dempsky
subr_disk.c. For now just the MI disk drivers. ok deraadt@, krw@; jsing@ liked the approach too
2011-06-30finish ansi in uvm. ok ariane ogaTed Unangst
2011-06-30Add DUID support for ext2fs mounts.Joel Sing
Initial diff from and tested by Luca Corti - thanks!
2011-06-30remove compat_35 filesTed Unangst
2011-06-30syncTed Unangst
2011-06-30compat_35 has not been enabled for sometime, time to remove itTed Unangst
2011-06-29Replace all instances of "scsibus* at hba?" with a single "scsibus* atMatthew Dempsky
scsi?" rule, similar to how ethernet PHY drivers attach at mii. Discussed on icb.
2011-06-29mark S8 encoding as emulated; only S16LE and U8 are natively supportedChristian Weisgerber
ok ratchov@
2011-06-29iop(4) is not a SCSI controller, so it shouldn't have the scsiMatthew Dempsky
attribute.
2011-06-29dmesg@ says pss has never been seen in the wild and the manpage says itTed Unangst
doesn't work. goodbye. ok miod
2011-06-29stop printing in apm, acpi doesn't do this. remove APM_NOPRINT option.Ted Unangst
kind of ok deraadt
2011-06-29notyet, notever. delete a bunch of code we won't be using.Ted Unangst
2011-06-29ansi with a little knf. ok deraadt jsgTed Unangst
2011-06-29ansi softdep, ok deraadtTed Unangst
2011-06-29always set sppp auth secret, as other code assumes it.Ted Unangst
confirmed to fix paul stoeber's crash. ok deraadt sthen
2011-06-28Remove the ega driver which is not referenced by any GENERIC kernel.Matthieu Herrb
ok tedu@, "I won't mourn it" miod@, "no objection" oga@, "I won't cry" todd@, "fine, even happy" nick@
2011-06-28change two function defs with () to (void)Ted Unangst
2011-06-28Rename FMARK to FIF_MARK and FDEFER to FIF_DEFER andThordur I. Bjornsson
move those flags to f_iflags; This makes rooms in the flag member of struct file for some goodies matthew@ as planned. ok matthew@, deraadt@.
2011-06-27Unbreak iopool conversion by putting the implicit yet missing importantMiod Vallat
initialization statements. Found the hard way by Sebastiaan Indesteege
2011-06-27If an shared interrupt handler returns -1, continue running other handlers.Theo de Raadt
If it returns 1, skip calling the handlers further down the list. The interrupt pin will remain asserted, and the handler will be called on the next go-around. This makes sparc64 "similar" to other architectures. ok kettenis jsing
2011-06-27When adding interrupt handlers to a chain, install them in priority order.Joel Sing
This results in the higher IPL handlers being run first. ok deraadt@ kettenis@
2011-06-27Mark ARP request broadcasts with M_BCAST in the mbuf flags.Camiel Dobbelaar
Fixes a case in bridge_output() where ARP requests are not broadcast on interfaces without the discovery flag. ok claudio deraadt
2011-06-27Fix chrtoblk() and blktochr() prototypes to reflect that they returnMatthew Dempsky
dev_t, not int.
2011-06-27repair after last commitTheo de Raadt
2011-06-27Make KERN_FILE and KERN_FILE2 behavior consistent: when the caller doesn'tPhilip Guenthe
have the necessary rights, return f_offset=-1 and f_seek=0. ok tedu@, matthew@
2011-06-27compat_vax1k goes to the atticTed Unangst
2011-06-27remove compat_vax1k. no more 4.3bsd reno support. ok deraadtTed Unangst
2011-06-27Ensure we don't re-issue a failed buf without clearing B_ERROR andKenneth R Westerback
b_error. Otherwise a good i/o will appear to have failed. Fixes problem with dkcsum.c being unable to read data to checksum from subsequent devices after an i/o fails. And thus failing to find correct root in some cases. Introduced at k2k11 with buf flags rectification. Scan of all biowait() calls finds no other obvious re-use of a buf that could have error'ed out. Just re-use of bufs that worked. So quick fix pending closer review of all uses. Problem noted by Jens A. Griepen. ok matthew@ deraadt@
2011-06-26kill mcd dead. ok krw matthew millert thibTed Unangst
2011-06-26There are some problems with ppb msi interrupts. For instance, i386 inTheo de Raadt
some situations can run out of vectors. On amd64, there is at least one machine that fails to resume. Yes, those problems need to be fixed. But other problems should be found, too. If we leave ppb msi off, we won't learn anything new. So use an #ifdef to enable ppb msi for non-i386, temporarily. Kind of discussed this with kettenis.
2011-06-26if_downall() cannot be done MI in sys_reboot() because vfs_shutdown()Theo de Raadt
might need network (ie. nfs). Move the call to the MD boot() routines. This cause for boot hangs diagnosed by kettenis.
2011-06-26First stab at MSI support for vpci(4). Still a few rough edges, but seemsMark Kettenis
to work fine on a t1k and a t5120, so let's enable this right from the start.
2011-06-261.500 was a good revision, let's stay there a little longer. (revert ↵Ted Unangst
accidental commit)
2011-06-26I see you hiding, scdTed Unangst
2011-06-26remove remnants of scd device, discovered by Frederic PerrinTed Unangst
2011-06-26In the shared interrupt handler, return the pil and ci_handled_intr_levelTheo de Raadt
to the level they were at before we started splraise'ing for the various handlers. with jsing, ok kettenis
2011-06-26constrain properly which machines get this firmwareTheo de Raadt
2011-06-26Fix some inconsistencies in how we build 64-bit addresses from OF properties.Mark Kettenis
2011-06-26Implement pci_intr_map_msi().Mark Kettenis
2011-06-26Missed a parameter in the pci_msi_setmsiq hypervisor call.Mark Kettenis