summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2011-07-08add support for HUAWEI E1752 seriese modemYojiro Uo
ok jsg@
2011-07-08regenYojiro Uo
2011-07-08add HUAWEI E1752Yojiro Uo
ok jsg@
2011-07-08regenYojiro Uo
2011-07-08add entry for YUBICO yubikeyYojiro Uo
2011-07-08First batch of converting SCSI HBAs from setting saa_targets andMatthew Dempsky
saa_luns instead of adapter_buswidth and luns in the prototype link. ok dlg@, miod@
2011-07-08Ack, my last change used size_t for file offsets, but size_t is onlyMatthew Dempsky
32-bit on 32-bit architectures; we need off_t to support >4GB vnd(4) images. Discovered by, tested, and ok bluhm@
2011-07-08Fix WoL support in xl(4). Now works with my hardware (3Com 3c905C).Stefan Sperling
ok deraadt
2011-07-08ansi, no binary changeJonathan Gray
2011-07-08fill in the ata vpd page as best we can. i dont know how to fill in theDavid Gwynne
device signature so i left it blank, and the identify is the cached copy in the port structure. i filled the SAT vendor stuff in as "OpenBSD", "atascsi", osrelease.
2011-07-08provide the thin provisining vpd page if the disk does trim. only claimDavid Gwynne
to do WRITE SAME 16 for now (which is all we do).
2011-07-08macros for TRIMDavid Gwynne
2011-07-08some trim cleanups and additions.David Gwynne
use less magic numbers when check the block limits for trim. fill in the block limits vpd page with some conservative numbers about how much unmap we can do at a time (~32MB over 64 descriptors).
2011-07-08Refactor vnd(4) to use vn_rdwr() instead of setting up the uio/iovecMatthew Dempsky
structs and calling vn_lock+VOP_READ/WRITE+VOP_UNLOCK.
2011-07-08Validate DISKUNIT(dev) in vndstrategy() like we do in otherMatthew Dempsky
xxstrategy() methods, and punt in validating it in vndread() and vndwrite() (also like we do in other xx{read,write}() methods...).
2011-07-08Add a vndencryptbuf() function, and refactor vndstrategy() slightly toMatthew Dempsky
use it instead.
2011-07-08update the firmware to 1.4.50 via freebsd.David Gwynne
the freebsd firmwares are compressed and get the kernel to uncompress them to use them. we uncompress in build.c so the kernel can just read off disk onto the card without any extra work. this lets us copy future fbsd fw updates directly without any extra work. myri have also rescinded one of the clauses on their license. ok claudio@ deraadt@
2011-07-07Add new syscall entries to support the openat(2) family of functionsMatthew Dempsky
added in POSIX Issue 7: openat(), mknodat(), mkfifoat(), linkat(), symlinkat(), unlinkat(), faccessat(), fstatat(), readlinkat(), fchmodat(), fchownat(), utimensat(), renameat(), and mkdirat(). This diff mostly just refactors the existing sys_foo() logic into a common dofooat() function that can then be called by both sys_foo() and sys_fooat(). Some of the new system calls support new flags to control their behavior, and proper support for these will be added in subsequent diffs. Incorporating suggestions from thib@, guenther@, and tedu@. ok tedu@, thib@, deraadt@, guenther@
2011-07-07use IF_LEN/IFQ_LEN to access and ifqueue's length field. ryan okHenning Brauer
with this nothing in the tree fiddles if ifqueue internals any more, of course except if.c and if.h (and some altq)
2011-07-07remove mvmeppc; it is really rough shape. ok drahn miodTheo de Raadt
2011-07-07get rid of a debug printf that keeps giving me flase psotives becauseHenning Brauer
it is the only place in the tree (minus if.{c,h} which are allowed to) that reads ifq_maxlen without setting it, ryan ok
2011-07-07i NEVER NEVER NEVER want to see ifqueue->ifq_len = anything. sorry, that isHenning Brauer
horrid and must be wrong. now in this case it is actually harmless - but setting them to 0 just after having malloc'd it with M_ZERO is pointless to begin with. ok claudio
2011-07-07There is a bunch of places in the kernel entry points where we don'tArtur Grabowski
hold the kernel lock, but still need call one function that needs it. Instead of grabbing the lock all over the place, move the locks into the affected functions: trapsignal, scdebug*, ktrsyscall, ktrsysret, systrace_redirect and ADDUPROF. In the cases we already hold the biglock we'll just recurse. kettenis@, beck@ ok
2011-07-07Fix the LBA offset calculation for the last block in a rebuild, if thereJoel Sing
is a partial block. Also correctly handle the case where there is no partial block. Whilst here remove a pointless variable. Issues spotted by and based on diffs from Piotr Durlej - thanks! ok marco@
2011-07-07Make sr_shutdown() a general function and use this from sr_detach() toJoel Sing
avoid duplication. Implement a sr_shutdownhook() function that simply calls sr_shutdown() and use this for the shutdown hook. ok marco@
2011-07-07reorder two fieldsTed Unangst
2011-07-07allow AOE config to be specified by userland. ok marco.Ted Unangst
use consistent network types as requested and ok deraadt.
2011-07-07only allocate and copyin the length of kdfinfo data.Ted Unangst
ok deraadt matthew
2011-07-06When checking if a chunk is in use, do not match on NODEV.Joel Sing
2011-07-06Use a single shutdown hook for the softraid controller instead ofJoel Sing
having one per volume. ok marco@
2011-07-06vndsize() can just return -1; we don't support swapping to vndMatthew Dempsky
anymore.
2011-07-06Compact the vnd sc_flags bits.Matthew Dempsky
ok krw@
2011-07-06Actually make sr_detach() work. At this stage we never detach softraid(4),Joel Sing
however since this code exists it still should work correctly.
2011-07-06Retain a reference to the registered sensor task so that we can unregisterJoel Sing
it again.
2011-07-06Move all volume shutdown code into sr_shutdown_discipline() and use a flagJoel Sing
to indicate if we should force a metadata write. ok marco@
2011-07-06Add a new kqfilter for random which returns ARC4_MAIN_MAX_BYTES for readNicholas Marriott
and POOLBYTES for write. looks right to deraadt
2011-07-06Eliminate some sanity checks in vndstrategy() that are now handled byMatthew Dempsky
bounds_check_with_label().
2011-07-06vndstrategy() should fail if VNF_HAVELABEL isn't set. This simplifiesMatthew Dempsky
the logic slightly and makes vnd(4) more like any other disk driver. To avoid races, this means vndopen() can only set VNF_HAVELABEL if dk_openmask == 0. Otherwise, it's possible for userspace to open rvnd0c, call VNDIOCSET, open vnd0a, then while vndreaddisklabel() (via vndstrategy) is waiting for VOP_READ() to finish, you could issue a read or write on the still open rvnd0c and have VNF_HAVELABEL set but the disklabel might be in a weird state. Note that this makes VNF_HAVELABEL nicely analogous to sd(4)/cd(4)'s SDEV_MEDIA_LOADED flag, which is handled similarly in {sd,cd}{open,close,strategy}. ok dlg@, krw@, deraadt@
2011-07-06Eliminate redundant buf validation checks in xxstrategy() methods nowMatthew Dempsky
that they're implemented consistently in bounds_check_with_label(). Also, per krw's request, change bounds_check_with_label() to return 0 if the checks succeed, and change the drivers to test == -1 instead of <= 0. (Man page update to follow; intentionally omitting arch/vax/mba/hp.c from this commit because it doesn't even build currently and miod@ promises to kill it soon.) ok krw@
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.