summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2011-07-06cosnistently use IFQ_SET_MAXLEN, surfaced in a discussion with + ok bluhmHenning Brauer
2011-07-06so... there is some crazy bug exposed on non-ironlake chips, when theTheo de Raadt
ironlake interrupt handler is changed. some nasty bug lurks in here, and any binary change randomly exposes this and screws up the chip. back this out for now; until it is found. ok oga
2011-07-05Call bzero(&saa, sizeof(saa)) each time we use saa to attachMatthew Dempsky
something. Doesn't matter right now because scsibus_attach_args only has one field and it's mandatory, but I'm planning to move some more fields from scsi_link to scsibus_attach_args+scsibus_softc. ok dlg@
2011-07-05Replace last remaining users of link->scsibus withMatthew Dempsky
link->bus->sc_dev.dv_unit.
2011-07-05ENOMEM causing EIO errors is bad juju. Softraid crypto did this.Owain Ainsworth
Instead of allocating a crypto op and the optional dma buffer on each and every io, preallocate a list of softraid crypto wus that contain a buffer of the max size we will use (MAXPHYS). since we know the number of openings we have in advance this means that on each io we just pick one, shorten the list of crypto descs, init any values then do the io. ok jsing (who provided many useful comments. he also provided a smarter way of handling the cryptop lists which is not in this diff but will be implemented soonish), marco@. dlg@ pointed out that this should probably use iopools but letting disciplines allocate their own iopool involves more softraid rejigging that will have to be done first. For now this is sufficient.
2011-07-05Stupid driver makes a copy of struct pci_attach_args. Make sure we clearMark Kettenis
the MSI enabled flag there such that the driver actually pays attention to it. Found out the hard way by Chris Smith on an 82540EM, which defenitely does not like MSI. ok deraadt@
2011-07-05When the kernel runs out of mbuf clusters, the hme receive ring mayAlexander Bluhm
become empty. In that case, the hme driver could not recover as the ring was only filled after receiving data. Check and potentially fill an empty receive ring every second in hme_tick(). ok kettenis@
2011-07-05i forgot to set the sector_count when translating WRITE SAME 16David Gwynne
into DSM/TRIM commands. found by tedu
2011-07-04Temporarily back out msi for inteldrm.Owain Ainsworth
Some gm45 and 965 are having issues and this fixes it for halex at least. Art's machine (945gm) is also playing up but he didn't update for a year (and the problem doesn't look like what i would expect).
2011-07-04Fix debugging prints in softraid(4) so that it can compile withMatthew Dempsky
SR_DEBUG enabled. Broken since r1.227.
2011-07-04Use the SDEV_2NDBUS flag like isp(4) instead of the currentMatthew Dempsky
scsi_link::scsibus hack to determine which channel the link is associated with. "looks sane" dlg@, but haven't found any testers yet; committing so further SCSI refactorings can go in. dlg@ or I will back out or fix if anything breaks.
2011-07-04Intel AHCIs don't support port multipliers so far, yet some (mostly ICH9 and ↵Jonathan Matthew
3400 series) report that they do, and some BIOSes for those chipsets don't clear the capability bit like they're supposed to. Since we know it doesn't work, don't check for port multipliers on these controllers. Replaces my earlier hack for a specific 3400 series device. ok kettenis@ phessler@
2011-07-04move the specfs code to a place people can see it; ok guenther thib krwTheo de Raadt
2011-07-04Nuke the useless D_KQFILTER flag and just check that d_kqfilter isNicholas Marriott
filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib
2011-07-04Remove orphaned splbios that have no matching splx,Jonathan Gray
this has been a problem since internal xfer queues got removed back in 2008. ok matthew@ krw@
2011-07-04Convert to ANSI.Matthew Dempsky
ok md5
2011-07-04assemble is a more appropriate place for the setup code than allocate.Ted Unangst
not that it works any better.
2011-07-04remove unneeded cast.David Hill
no binary change. ok jmatthew@
2011-07-04redo the timeout and input handling. unify them and fix some bugs.Ted Unangst
we no longer retry commands, somebody else can worry about that.
2011-07-04make it look like other softraid codeTed Unangst
2011-07-04whack the collider stuff for nowTed Unangst
2011-07-03avoid void * pointer arithmetic.David Hill
ok claudio@
2011-07-03Enter nvt(4), a driver for the W83795G and W83795ADG hardware monitor.Mark Kettenis
ok deraadt@, miod@
2011-07-03change void * to a caddr_tDavid Hill
no change in binary OK claudio@
2011-07-03in the ironlake interrupt handler, do not do unneccesary registerTheo de Raadt
accesses. we don't need to disable the interrupt on the chip. if the interrupt isn't for us, then we should not write to lots of registers, either. ok oga, tested by lots of people in snapshots
2011-07-03ucom(4) did not understand the last-close semantics. repair that, andTheo de Raadt
add a bit more locking in the open function. originally spotted by matthew, ok matthew miod
2011-07-03Rip out and burn support for UVM_HIST.Owain Ainsworth
The vm hackers don't use it, don't maintain it and have to look at it all the time. About time this 800 lines of code hit /dev/null. ``never liked it'' tedu@. ariane@ was very happy when i told her i wrote this diff.
2011-07-03Fix return values of wsdisplaykqfilter and move some code so it matchesNicholas Marriott
wsdisplaypoll. ok miod deraadt
2011-07-03Cleanup vnd(4) a bit now that it only has one mode of operation andMatthew Dempsky
uses standard disk device numbering. ok deraadt@
2011-07-03Fix vnd(4) support for read-only files. We can't clear sc_flagsMatthew Dempsky
before closing the vnode, because VNDRW() checks for the VNF_READONLY bit and the vnode layer doesn't like it when you close a read-only vnode with FREAD|FWRITE. ok deraadt@
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
2011-07-03Call config_detach() on the child scsibus in sr_detach().Matthew Dempsky
ok jsing@
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-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-01msi interrupts working on mfi(4)Theo de Raadt
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-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-29notyet, notever. delete a bunch of code we won't be using.Ted Unangst
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-27Unbreak iopool conversion by putting the implicit yet missing importantMiod Vallat
initialization statements. Found the hard way by Sebastiaan Indesteege
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-26I see you hiding, scdTed Unangst
2011-06-26constrain properly which machines get this firmwareTheo de Raadt
2011-06-24printf -> DPRINTF in the SIGKILL pathDamien Miller
2011-06-24machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andChristian Weisgerber
i386. Stop abusing it on other archs for controling a shutdown by pressing the soft power button: * Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it allows a power button shutdown. * Make acpi(4)/acpibtn(4) honor hw.allowpowerdown. * Switch the various power button intercepts on landisk, sgi, sparc64 and zaurus over to hw.allowpowerdown. * Garbage collect the machdep.kbdreset sysctl on all archs other than amd64 and i386. ok miod@
2011-06-24Avoid a possible null dereference.Joel Sing
ok marco@