summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-06-21remove stupid casts, ok deraadtTed Unangst
2011-06-21report the controllers part number. eg, i now know i have aDavid Gwynne
10G-PCIE-8A-R. dmesg looks like this: myx0 at pci4 dev 0 function 0 "Myricom Z8E" rev 0x00: apic 1 int 8, model 10G-PCIE-8A-R, address 00:60:dd:47:c6:74
2011-06-21wire up jumbos properly. the hardware supports up to 9018 bytes offDavid Gwynne
the wire (9000 + ether header + vlan tag), but has some cool alignment requirements. if you want to use a single rx ring desc to point at a jumbo it needs to start on a 4k boundary and be physically contiguous. to ensure this im pulling frames from the 12k pool and waiting for arianes diff to ensure mbufs are contig. direction from andrew gallatin. tested locally.
2011-06-21i prefer 16k ints/sec to 32k ints/sec.David Gwynne
2011-06-21There is no need to handle fragmented TCP reset packets in a specialAlexander Bluhm
way. Remove PFDESC_IP_REAS and pf_pdesc flags completely. ok claudio@ henning@
2011-06-21minor cleanups; ok dlgTheo de Raadt
2011-06-21Laurence Tratt reported that his "Intel 6 Series AHCI" ahci(4) noMatthew Dempsky
longer detects his OCZ Vertex 3 after atascsi.c r1.104. For some reason, the first IDENTIFY command issued silently fails without any notification. In lieu of a better fix, workaround this for now by allowing IDENTIFY to be reissued a second time for non-PMP disks. Discussed with jmatthew@ and dlg@; ok dlg@
2011-06-21looks like the disk_lock method actually does workTheo de Raadt
2011-06-20explicit_bzero for the crypto keyTed Unangst
2011-06-20More cleanup in pf_test/pf_test6 this time mostly the fragmentClaudio Jeker
handling. More to come to make the two codepathes a bit more identical. tested by many (esp. krw@ and sthen@) input and OK bluhm@
2011-06-20serialize attach and detach of device sub-trees -- only one deviceTheo de Raadt
sub-tree may attach or detach at a time. attach and detach will sleep against each other. this is fixing (working around?) some bizzare corner cases that have been seen (but not fully diagnosed) where the device trees, disk registration subsystem, and other things could get messed up. one could argue though that this serialization is a very good thing; it is easier than adding piles of locks in various other places. ok matthew jsing
2011-06-20for now, move back to a private rw_lock rather than the disk_lock.Theo de Raadt
we have problems with instantiating new disks ok matthew
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.