summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Both my EBH5200 and GE WANIC 6354 have a RTC as well. It looks fromimp2013-05-101-18/+3
| | | | | | the Linux tree that they always include this chip in their FDT, so make support for the ds1337 opt-out rather than opt-in. Now my boards boot with the correct time.
* Retire write-only PCB_GS32BIT pcb flag on amd64.dchagin2013-05-096-7/+3
|
* Fix two typoseadler2013-05-091-2/+2
| | | | Reviewed by: jilles
* posix_spawn_file_actions_adddup2(3): Document difference with dup2().jilles2013-05-091-2/+23
| | | | | | | | The ability to clear a file descriptor's close-on-exec flag via posix_spawn_file_actions_adddup2() is in fact proposed in Austin Group issue #411. MFC after: 1 week
* MFp4 CH=227440:bz2013-05-092-134/+134
| | | | | | | | | Convert the structures to C99 style initialisation, which makes it a lot easier to check that all of them are set and to generate a derived template from them. Sponsored by: DARPA, AFRL MFC after: 2 weeks
* Add some missing arge MDIO hints.adrian2013-05-091-0/+6
| | | | Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>
* Revision 233677 broke certain machines. Specifically, if the firmware/BIOSjhb2013-05-091-2/+29
| | | | | | | | | | | | | | | | | | | | assigned conflicting ranges to BARs then leaving the BARs alone could result in one device stealing mmio accesses intended to go to a second device. Prior to 233677 the PCI bus driver attempted to handle this case by clearing the BAR to 0 depending on BARs based at 0 not decoding (which is not guaranteed to be true). Now when a conflicting BAR is detected the following steps are taken: 1) If hw.pci.realloc_bars (a new tunable) is enabled (default is enabled), then ignore the current BAR setting from the firmware and attempt to allocate a fresh resource range for the BAR. 2) If 1) failed (or was disabled), disable decoding for the relevant BAR type (e.g. disable mem decoding for a memory BAR) and emit a warning if booting verbose. Tested by: Alex Keda <admin@lissyara.su> MFC after: 1 week
* Correct the type for the literal used on the left side of the shift upkib2013-05-091-2/+2
| | | | | | | | | | to 63 bit positions. Do not fill the save area and do not set the saved bit in the xstate bit vector for the state which is not marked as enabled in xsave_mask. Reported and tested by: Jim Ohlstein <jim@ohlste.in> MFC after: 3 days
* if_lem.c: make sure that lem_rxeof() can drain the entire rx queueluigi2013-05-094-5/+27
| | | | | | | | | | | | irrespective of the setting of lem_rx_process_limit, while giving a chance to the taskqueue scheduler to act after each chunk. This makes lem_rxeof similar to the one in if_em.c and if_igb.c . if_lem.c and if_em.c: add a sysctl to manually configure the 'itr' moderation register. Approved by: Jack Vogel
* simplify the code to initialize the RDT while in netmap mode.luigi2013-05-092-20/+9
|
* posix_spawn_file_actions_addopen(3): Correct error for bad file descriptor.jilles2013-05-091-2/+2
| | | | | | | | As per POSIX.1-2008, posix_spawn_file_actions_add* return [EBADF] if a file descriptor is negative, not [EINVAL]. The bug was only in the manual page; the code is correct. MFC after: 1 week
* Add option WITNESS_NO_VNODE to suppress printing LORs between VNODEmarcel2013-05-096-2/+19
| | | | | | | | | locks. To support this, VNODE locks are created with the LK_IS_VNODE flag. This flag is propagated down using the LO_IS_VNODE flag. Note that WITNESS still records the LOR. Only the printing and the optional entering into the kernel debugger is bypassed with the WITNESS_NO_VNODE option.
* Fix a bug that would cause the category menu to display the wrong valuedteske2013-05-091-4/+4
| | | | | for number of packages available in the "All" category. Problem caused by re-using a variable that was still needed; fixed by variable name change.
* Item 1 in r248830 causes earlier exits from the sendfile(2), beforekib2013-05-091-18/+29
| | | | | | | | | | | | | | | | | all requested data was sent. The reason is that xfsize <= 0 condition must not be tested at all if space == loopbytes. Otherwise, the done is set to 1, and sendfile(2) is aborted too early. Instead of moving the condition to exiting the inner loop after the xfersize check, directly check for the completed transfer before the testing of the available space in the socket buffer, and revert item 1 of r248830. It is arguably another bug to sleep waiting for socket buffer space (or return EAGAIN for non-blocking socket) if all bytes are already transferred. Reported by: pho Discussed with: scottl, gibbs Tested by: scottl (stable/9 backport), pho
* Update the holding buffer locking for EDMA.adrian2013-05-091-3/+3
|
* Remove duplicated copies of various NetBSD compatibility shims used bybrooks2013-05-098-1401/+16
| | | | | | | makefs and use libnetbsd, contrib/mtree, and contrib/mknod instead. Sponsored by: DARPA, AFRLo MFC after: 1 month
* wordexp(): Simplify code by deferring work to sh.jilles2013-05-091-13/+3
|
* Move snmp_hast manual to section 3, where all other manual pages fortrociny2013-05-092-3/+3
| | | | | | | | | | | | | | | bsnmp modules are located. Section 3 (Library Functions) looks wrong for this manual page, which contains only module description, that is why initially it was located to section 8 (System Manager's Manual). On the other hand manual pages for all other bsnmpd modules are already located in the section 3, and having all pages in one section looks more consistent. Also, currently, similarly to manuals for other modules, snmp_hast manual contains LIBRARY section, which is not good style for section 8. Requested by: joel X-MFC with: r250379
* Fix return value for setcontext and swapcontext.davidxu2013-05-091-4/+8
|
* Start sentences on new lines.eadler2013-05-091-2/+4
|
* Generalize the bitset operations, present in cpuset and offer a KPI toattilio2013-05-094-126/+243
| | | | | | | | | | redefine such operations for different consumers. This will be used when NUMA support will be finished and numaset will need to be used. Sponsored by: EMC / Isilon storage division Obtained from: jeff Reviewed by: alc
* Unbreak build - this can only build on i386 as-is due to use of libl inpeter2013-05-081-1/+0
| | | | a .so file, and we currently (intentionally) only build libl.a.
* When gcc 4.2.0 was imported, the 3DNow intrinsics header <mm3dnow.h> wasdim2013-05-081-1/+2
| | | | | | | not added to the list of intrinsics headers to install, so belatedly (5 years :) add it. MFC after: 1 week
* For some reason, the gcc intrinsics header tmmintrin.h was imported withdim2013-05-081-224/+0
| | | | | | two copies of itself pasted together. Remove the extraneous copy. MFC after: 3 days
* Fix the holding descriptor logic to actually be "right" (for valuesadrian2013-05-082-8/+55
| | | | | | | | | | | | | | | | | | | | of "right".) Flip back on the "always continue TX DMA using the holding descriptor" code - by always setting ATH_BUF_BUSY and never setting axq_link to NULL. Since the holding descriptor is accessed via txq->axq_link and _that_ is done behind the TXQ lock rather than the TX path lock, the holding descriptor stuff itself needs to be behind the TXQ lock. So, do the mental gymnastics needed to do this. I've not seen any of the hardware failures that I was seeing when I last tried to do this. Tested: * AR5416, STA mode
* Minor improvements.joel2013-05-081-4/+6
|
* Revert r250339 as apparently it is more clutter than help.attilio2013-05-081-42/+0
| | | | | Sponsored by: EMC / Isilon storage division Requested by: jhb
* Remove EOL whitespace.joel2013-05-081-1/+1
|
* mdoc: new sentence, new line.joel2013-05-081-2/+4
|
* Bring in a basic ethernet switch driver for the IP17x series ofadrian2013-05-0812-0/+1655
| | | | | | | | | switches. These are notably found on some AR71xx based Mikrotik boards. Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* Modify the routerstation config to use ukswitch for now.adrian2013-05-082-2/+13
| | | | | | | | Until an ADM6996 driver shows up, this allows for the two switch ports to be used. Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* Fix the ukswitch code to work with the new vlan changes:adrian2013-05-081-9/+9
| | | | | | | | | | | * Fix API changes; * remove unused code; * Allow some switches to be used that don't expose a set of PHY registers for the CPU facing port (eg the ADM6996 for the Ubiquiti Routerstation.) Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* Correctly mark the CPU port.adrian2013-05-081-0/+1
| | | | | Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* Add vlan configuration support to etherswitchcfg.adrian2013-05-082-10/+242
| | | | | | | | | | This adds the support to the config keyword (vlan operation mode), ports flags, prints the vlan mode and vlan capabilities. It also adds some basic information to usage() and support the keyword 'help' as a shortcut to usage(). The manual page is also updated with the new options. Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* Add the ability to change the vlan operation mode.adrian2013-05-083-1/+71
| | | | | | | | | | | | This adds a vlan capability field to etherswitch_info structure and some definitions of ports flags. It adds the support to global config parameters which right now is used only to switch between the vlan modes, but it is intended to be extended to support the setup of others parameters (STP, mirror, etc.). Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* Register OID for HAST module.trociny2013-05-081-0/+1
| | | | MFC after: 2 weeks
* HAST module for bsnmpd(1).trociny2013-05-086-0/+987
| | | | | Reviewed by: harti, pjd MFC after: 2 weeks
* Make errbuf optional, so if a caller is not interested in an errortrociny2013-05-081-14/+30
| | | | | | message she can pass NULL (procstat(1) already does this). MFC after: 2 weeks
* Allow the use of lowercase 'yes'eadler2013-05-081-1/+1
| | | | | PR: bin/178422 Submitted by: Garrett Cooper <yaneurabeya@gmail.com>
* No need to set if_mtu since it automatically updated by ether_ifattach().davidcs2013-05-081-2/+2
| | | | | | | | Use if_initbaudrate() to set baudrate. Add IFCAP_LINKSTATE to if_capabilities. Submitted by: David C Somayajulu <davidcs@freebsd.org> Approved by: George Neville-Neil <gnn@freebsd.org>
* According to the documentation, on Linux, cancel_delayed_work() does notdelphij2013-05-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | do drain (flush_workqueue() in Linux terms) but instead returns true if the work was removed before it is run, or false otherwise. Simulate this by removing the taskqueue_drain() and return the value derived from taskqueue_cancel()'s return value. This would solve a witness warning caused by calling taskqueue_drain() with a non-sleepable lock held, like: taskqueue_drain with the following non-sleepable locks held: exclusive rw lle (lle) r = 0 (0xfffffe001450b410) locked @ /usr/src/sys/netinet/in.c:1484 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffff848d4f7690 kdb_backtrace() at kdb_backtrace+0x39/frame 0xffffff848d4f7740 witness_warn() at witness_warn+0x4a8/frame 0xffffff848d4f7800 taskqueue_drain() at taskqueue_drain+0x3a/frame 0xffffff848d4f7840 set_timeout() at set_timeout+0x4a/frame 0xffffff848d4f7860 netevent_callback() at netevent_callback+0x16/frame 0xffffff848d4f7870 arpintr() at arpintr+0x9b5/frame 0xffffff848d4f7930 This do not affect kernel without OFED compiled in. Reported by: Garrett Cooper <yaneurabeya gmail com> (who also tested an earlier version of this patch, but bugs are mine) MFC after: 2 weeks
* s/Numer/Number/sbruno2013-05-081-1/+1
| | | | Submitted by: Jeremy Chadwick <jdc@koitsu.org>
* When the accept queue is full print the number of already pendingandre2013-05-081-1/+1
| | | | | | | | new connections instead of by how many we're over the limit, which is always 1. Noticed by: jmallet MFC after: 1 week
* Manual page for acpi_rapidstart(4) driver.takawata2013-05-081-0/+82
| | | | | | | | | | | | | | | ---- > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. AM acpi_rapidstart.4
* A driver for Intel Rapid Start Technology ACPI device.takawata2013-05-082-0/+141
| | | | Note that it is just for 'Advanced' configuration for Rapid start technology.
* Fix-up r250338 by completing the removal of VM_NDOMAIN in favor ofattilio2013-05-081-2/+2
| | | | | | | | MAXMEMDOM. This unbreak builds. Sponsored by: EMC / Isilon storage division Reported by: adrian, jeli
* Update copyright date.ray2013-05-0824-23/+24
|
* This shouldn't have made it into this commit, sorry.adrian2013-05-081-6/+0
|
* Revert a previous commit - this is causing hardware errors.adrian2013-05-082-14/+19
| | | | | | | | | | I'm not sure why this is failing. The holding descriptor should be being re-read when starting DMA of the next frame. Obviously something here isn't totally correct. I'll review the TX queue handling and see if I can figure out why this is failing. I'll then re-revert this patch out and use the holding descriptor again.
* Implement STBC receive frame statistics.adrian2013-05-086-2/+17
| | | | | | | The AR9280 and later can receive STBC. This adds some statistics tracking to count these frames. A patch to athstats will be forthcoming.
OpenPOWER on IntegriCloud