summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-06-20make the interrupt handler look more like what the doco suggests. seems toDavid Gwynne
fix a bad lockup i kept getting.
2011-06-20Fix softraid(4) to set xs->cmd = &xs->cmdstore rather than pointing itMatthew Dempsky
to a separately allocated SCSI command structure. ok marco@, jsing@
2011-06-20Update mcd(4) to use disk_lock, etc. instead of its own tsleep(9)Matthew Dempsky
based locking. ok gcc
2011-06-20dont need debug, the myx_cmd stuff works fine.David Gwynne
2011-06-20Call bufq_drain() in wddetach() instead of reimplementing the sameMatthew Dempsky
logic.
2011-06-20enable myx(4)David Gwynne
certainly deraadt@
2011-06-20enable myx(4).David Gwynne
requested by deraadt@
2011-06-20i got myx working!David Gwynne
2011-06-20build firmware for myx(4)Theo de Raadt
2011-06-20isa(4) is an indirect bus, which means that drivers that attach to itMatthew Dempsky
need to provide an xxxprobe() method instead of an xxxmatch() method. The critical difference is xxxprobe() is given a device softc for the second argument, whereas a xxxmatch() is given the cfdata as the second argument. This commit fixes the handful of ISA device drivers that incorrectly cast the second argument to a "struct cfdata *" instead of a "struct device *". (Minor complication: unlike isa(4), isapnp(4) is a direct bus, and if_we.c used the same probe/match code for both; now separate we_probe and we_match methods are used as appropriate.) "makes sense to me" krw@; ok miod@
2011-06-19UnbreakMiod Vallat
2011-06-19fix up unbalanced format stringsJonathan Gray
ok deraadt@
2011-06-19Don't assume no interrupts if the command processor is not running.Owain Ainsworth
While this means we are on the way to vt switch a few things want vblanks interrupts between disabling the cp and the vt switch (modeset_ctl ioctls for example) tested by jsg@, found and ok kettenis@.
2011-06-19Fix typo in the "fixed" HyperTransport MSI Mapping Capability address.Mark Kettenis
2011-06-19Use disk_lock_nointr() in the xxclose() routines so that they cannotTheo de Raadt
be interrupted. ok matthew
2011-06-19Minor cleanup for disk_lock() and disk_unlock().Matthew Dempsky
ok deraadt@
2011-06-19Add disk_lock_nointr() as a way to acquire the disk lock without beingMatthew Dempsky
interrupted by signals. ok deraadt@
2011-06-19Use disk_lock/disk_unlock directly and in the same way in these drivers,Theo de Raadt
rather than using various wrappings. Convert vnd to using the sc_dk rwlock instead of using one of its own. ok matthew
2011-06-19and in debug code, tooTheo de Raadt
2011-06-19stop trying to be clever with the softc nameTheo de Raadt
2011-06-19Kill the "lockname" argument to disk_construct().Matthew Dempsky
ok deraadt@
2011-06-19Clean up ioctl handler a bit and rearrange the receive filter callback toYASUOKA Masahiko
the proper location. this diff from brad@ ok and tested by yasuoka@
2011-06-19Fix a typo: change "!(reg >> pin) & 1" to "!((reg >> pin) & 1)" asMatthew Dempsky
intended. ok damien@
2011-06-18pass the correct size to memsetJonathan Gray
spotted by clang, ok matthew@
2011-06-18Change sizeof(&kdfinfo2) to sizeof(kdfinfo2).Matthew Dempsky
ok deraadt@
2011-06-18Use MSI interrupts when available. Tested by deraadt@ and jsg@.Claudio Jeker
Removing a leftover M from my tree makes also my machine happy.
2011-06-18Cleanup MSI code a bit by moving the code to eanble/disable MSIs intoMark Kettenis
separate functions and install them as route/unroute functions for the MIS pseudo-PIC.
2011-06-17Remove obsolete mbuf PF_TAG_FRAGCACHE flag.Alexander Bluhm
ok henning@
2011-06-17Explicitly clear 1000baseT control register for F1 PHY used inKevin Lo
AR8132 FastEthernet controller. The PHY has no ability to establish a gigabit link. Previously only link parters which support down-shifting was able to establish link. This change should fix a long standing link establishment issue of AR8132. From Brad via FreeBSD Tested by krw@, edd@, Abel Abraham Camarillo Ojeda, Gabriel Linder
2011-06-17Enable MSI support; tested by krw@, Mark Peoples, andKevin Lo
Abel Abraham Camarillo Ojeda. From Brad
2011-06-17Enable MSI support; tested by Thomas PfaffKevin Lo
From Brad
2011-06-17M_WAITOK cleanup of two cases:Michael Knudsen
1) Allocating with M_WAITOK, checking for NULL, and calling panic() is pointless (malloc() will panic if it can't allocate) so remove the check and the call. 2) Allocating with M_WAITOK, checking for NULL, and then gracefully handling failure to allocate is pointless. Instead also pass M_CANFAIL so malloc() doesn't panic so we can actually handle it gracefully. 1) was done using Coccinelle. Input from oga. ok miod.
2011-06-17add missing the copyright notice.YASUOKA Masahiko
delete garbage lines. ok syuu@
2011-06-17Unbreak tree. $OpenBSD$ tag needs to be in a comment! BadKenneth R Westerback
pirofti@.
2011-06-17Update ch(4) to use ISO C style function definitions to avoidMatthew Dempsky
confusing Coccinelle. No binary change. ok dlg@
2011-06-16Enable acpitoshiba by default in GENERIC.Paul Irofti
Prodded by deraadt@ and the lack of testers on tech@.
2011-06-16Import acpitoshiba driver.Paul Irofti
This is originally written by Hiroyuki Aizu, ported and integrated in our tree by Javier Vazquez <javama4 AT gmail> with tweaks and suggestions by me. Import prodded by deraadt@ and the lack of testers on tech@.
2011-06-16Use the current page not he first page when working out whether toOwain Ainsworth
deactivate pages after syncing. While here, don't check flags for PQ_INACTIVE (this is the only place outside uvm_page.c where this is done) because pagedeactivate does this already. First part from Christian Ehrhart, second from me. Both ok ariane@. I meant to commit this about a week ago, but accidentally commited to my local cvs mirror then forgot about it.
2011-06-16QEMU pretends to emulate a different prehistoric Intel host bridge.Mark Kettenis
From Brad.
2011-06-16Enable msi support on iwn.Owain Ainsworth
tested by many for over a week. ok kettenis@ phessler@.
2011-06-16Raise the number of interrupt sources per CPU from 32 to 64. This effectivelyMark Kettenis
triples the number of interrupt vectors that can be handled by the primary CPU. Important for MSI, but could also fix some issues with large machines loaded with a lot of devices. tested by many; ok deraadt@, marco@
2011-06-16Enable MSI on newish PCIe hardware, essentially everything handled by the LinuxMark Kettenis
e1000e driver (which enables MSI as well), leaving everything handled by the old Linux e1000 driver (which doesn't enable MSI) use legacy interrupts. tested by many; ok jsg@
2011-06-16Ethernet driver merged from IIJ's contribution code.Takuya ASADA
2011-06-16Removes unused variables.Martin Pieuchot
ok miod@
2011-06-16Removes the always-set-to-1 adbSoftPower variable.Martin Pieuchot
ok miod@
2011-06-16Uses generic confargs to attach the apm(4) and piic(4) drivers instead ofMartin Pieuchot
the specifics adb arguments. Now apm(4) no longer depends on adb stuff and piic(4) doesn't attach on a via-cuda machine (e.g. my color G3 iMac). ok miod@
2011-06-16pass the dma_alloced memory rather than a pointer to its pointer.David Gwynne
2011-06-16dont respond to VPD inquiries with standard inquiry data. add aDavid Gwynne
check to make sure cmdlen is correct while there. ok miod@
2011-06-15Add a const char* as first member of struct adb_attach_args, so that we canMiod Vallat
pass a struct confargs * on macppc for some specific children of the adb node, and not confuse real adb device attachments. ok mpi@
2011-06-15Add support for ZTE AC2746.Jonathan Gray
Slightly changed version of a diff from Martin Furter.