summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Spell extensions correctly.brooks2013-05-201-2/+2
| | | | | | | | | | | | | | | | Submitted by: dim
* | | | popen(): Add 'e' mode character to set close-on-exec on the new fd.jilles2013-05-203-14/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If 'e' is used, the kernel must support the recently added pipe2() system call. The use of pipe2() with O_CLOEXEC also fixes race conditions between concurrent popen() calls from different threads, even if the close-on-exec flag on the fd of the returned FILE is later cleared (because popen() closes all file descriptors from earlier popen() calls in the child process). Therefore, this approach should be used in all cases when pipe2() can be assumed present. The old version of popen() rejects "re" and "we" but treats "r+e" like "r+".
* | | | NetBSD 6.1 added.maxim2013-05-201-1/+2
| | | |
* | | | Add a test program for popen().jilles2013-05-202-1/+228
| | | |
* | | | Make the HT rate duration calculation work for MCS rates > 15.adrian2013-05-201-2/+2
| | | |
* | | | grep: change some int types.pfg2013-05-203-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change several int variables to size_t, ssize_t, or ptrdiff_t. This should fix the bug described in CVE-2012-5667 when an input line is so long that its length cannot be stored in an int variable. This is based on NetBSD's revision which says: This change to NetBSD's version of GNU grep 2.5.1 (licenced under GPLv2) was made without direct reference to any code licenced under GPLv3. Obtained from: NetBSD MFC after: 3 days
* | | | Remove a block of code that was not intended to be part of the previousmarkj2013-05-201-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | revision. X-MFC with: r250812
* | | | Fix vdc->Secondary_Element_Count metadata field access from 16 to 8 bit.mav2013-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases it could cause kernel panic during failed drive replacement. Reported by: trasz MFC after: 1 week
* | | | Style nits.pjd2013-05-191-6/+5
| | | |
* | | | Use SDT_PROBE1() instead of SDT_PROBE().pjd2013-05-191-7/+4
| | | |
* | | | Protect SDT_PROBE() with do { } while (0) loop.pjd2013-05-191-2/+3
| | | |
* | | | Really fix netmask address family this time.melifaro2013-05-191-1/+1
| | | | | | | | | | | | | | | | MFC with: r250813
* | | | Finish r85740 : Make IPv6 netmask has address family set.melifaro2013-05-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This pleases routing daemons like bird. MFC after: 2 weeks
* | | | Re-introduce another part of r249367. This commit fixes a register leak inmarkj2013-05-198-97/+242
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dt_cg_ptrsize() and generally cleans up some of the error handling around register allocation. This change corresponds to part of illumos-gate commit e5803b76927480: 3025 register leak in D code generation Reviewed by: pfg Obtained from: illumos MFC after: 1 month
* | | | | Add a comment explaining why stack_capture is empty for EABI and clang.andrew2013-05-191-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While here add a comment pointing out that, while r11 is not the frame pointer on EABI as there is no frame pointer, it's value is unused so is safe.
* | | | | Initialize the fibnum for outgoing packets to 0. This avoidstuexen2013-05-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | crashing due to the usage of uninitialized fibnum. This bugs became visiable after http://svnweb.freebsd.org/changeset/base/250700 MFC after: 2 weeks
* | | | | Remove lint case for _Thread_local.ed2013-05-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I added this block, knowing that lint does not support _Thread_local. When linting, we could argue that we don't care about TLS (yet). It seems, however, that external pieces of software also sometimes do a -Dlint, regex the output and compile it again. Reported by: swills
* | | | | Fix build after doc/projects/xml-tools integration.hrs2013-05-1920-30/+30
| | | | |
* | | | | Refine the "nojail" rc keyword, adding "nojailvnet" for files that don'tjamie2013-05-196-4/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apply to most jails but do apply to vnet jails. This includes adding a new sysctl "security.jail.vnet" to identify vnet jails. PR: conf/149050 Submitted by: mdodd MFC after: 3 days
* | | | | Update snd quirks for T520, T420, X220.sbruno2013-05-191-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Group onboard mic and headphone mic jack together. Creates association that will switch between microphone inputs depending on the state of the headphone jack being connected to a live mic. Fixes onboard mic not working at all on T520. Tested on T520, T420. Suspect X220 needs this too, untested on. MFC after: 1 month
* | | | | More non-ATH_DEBUG build fixes.adrian2013-05-191-3/+5
| | | | |
* | | | | Since we're now using the ah pointer, always declare it.adrian2013-05-191-2/+0
| | | | | | | | | | | | | | | | | | | | This fixes non-DEBUG builds.
* | | | | Added output of device QUIRKS for CAM and AHCI devices during boot.smh2013-05-188-2/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* | | | | Back out r250768 until I can further investigate why it mightkientzle2013-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | be causing problems with the BeagleBone Black boot.
* | | | | Add support for the second GPIO pin bank on the Wii and add support forrpaulo2013-05-182-21/+91
| | | | | | | | | | | | | | | | | | | | shutting down the system.
* | | | | Update location to ports INDEX file.bdrewery2013-05-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | PR: bin/164561 Approved by: bapt
* | | | | Add another obsolete file: nfs fha movedantoine2013-05-181-0/+2
| | | | |
* | | | | Be (very) careful about how to add more TX DMA work.adrian2013-05-185-149/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The list-based DMA engine has the following behaviour: * When the DMA engine is in the init state, you can write the first descriptor address to the QCU TxDP register and it will work. * Then when it hits the end of the list (ie, it either hits a NULL link pointer, OR it hits a descriptor with VEOL set) the QCU stops, and the TxDP points to the last descriptor that was transmitted. * Then when you want to transmit a new frame, you can then either: + write the head of the new list into TxDP, or + you write the head of the new list into the link pointer of the last completed descriptor (ie, where TxDP points), then kick TxE to restart transmission on that QCU> * The hardware then will re-read the descriptor to pick up the link pointer and then jump to that. Now, the quirks: * If you write a TxDP when there's been no previous TxDP (ie, it's 0), it works. * If you write a TxDP in any other instance, the TxDP write may actually fail. Thus, when you start transmission, it will re-read the last transmitted descriptor to get the link pointer, NOT just start a new transmission. So the correct thing to do here is: * ALWAYS use the holding descriptor (ie, the last transmitted descriptor that we've kept safe) and use the link pointer in _THAT_ to transmit the next frame. * NEVER write to the TxDP after you've done the initial write. * .. also, don't do this whilst you're also resetting the NIC. With this in mind, the following patch does basically the above. * Since this encapsulates Sam's issues with the QCU behaviour w/ TDMA, kill the TDMA special case and replace it with the above. * Add a new TXQ flag - PUTRUNNING - which indicates that we've started DMA. * Clear that flag when DMA has been shutdown. * Ensure that we're not restarting DMA with PUTRUNNING enabled. * Fix the link pointer logic during TXQ drain - we should always ensure the link pointer does point to something if there's a list of frames. Having it be NULL as an indication that DMA has finished or during a reset causes trouble. Now, given all of this, i want to nuke axq_link from orbit. There's now HAL methods to get and set the link pointer of a descriptor, so what we should do instead is to update the right link pointer. * If there's a holding descriptor and an empty TXQ list, set the link pointer of said holding descriptor to the new frame. * If there's a non-empty TXQ list, set the link pointer of the last descriptor in the list to the new frame. * Nuke axq_link from orbit. Note: * The AR9380 doesn't need this. FIFO TX writes are atomic. As long as we don't append to a list of frames that we've already passed to the hardware, all of the above doesn't apply. The holding descriptor stuff is still needed to ensure the hardware can re-read a completed descriptor to move onto the next one, but we restart DMA by pushing in a new FIFO entry into the TX QCU. That doesn't require any real gymnastics. Tested: * AR5210, AR5211, AR5212, AR5416, AR9380 - STA mode.
* | | | | Have the ipropd-master listen on an IPv6 socket in addition to an IPv4bz2013-05-181-6/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | socket to allow propagation of changes to a Heimdal Kerberos database from the KDC master to the slave(s) work on IPv6 as well. Update the stats logging to also handle IPv6 addresses. Reported by: peter (found on FreeBSD cluster) X-to-be-tested-by: peter MFC after: 3 weeks
* | | | | Use my @freebsd.org username, rather than ${WORK} username.adrian2013-05-181-2/+2
| | | | | | | | | | | | | | | | | | | | Pointy hat provided by: kib, thankyou!
* | | | | Re-add some code to exclude transmitting if we're in reset.adrian2013-05-181-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | This fixes some "transmitting during reset" bugs that crept in after I messed around with this part of the transmit path.
* | | | | Update maintainers with ath/net80211.adrian2013-05-181-0/+2
| | | | |
* | | | | Fix wildcard srcs for phony targetssjg2013-05-181-6/+6
| | | | |
* | | | | Match what is in netbsd.sjg2013-05-181-1/+1
| | | | |
* | | | | Var_Delete: expand name to delete if needed.sjg2013-05-181-3/+12
| | | | |
* | | | | Correct the spelling of "okay".kientzle2013-05-181-1/+2
| | | | | | | | | | | | | | | | | | | | Add pinmux setting for the Reset GPIO pin for MMC1.
* | | | | Label the mmc child after the parent.kientzle2013-05-181-1/+1
| | | | |
* | | | | Use separate function to update mbuf checksum flags instead ofmelifaro2013-05-181-24/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | duplicating the same code in different places. MFC after: 2 weeks
* | | | | Don't clear stall at first time use of USB MIDI endpoints.hselasky2013-05-181-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most likely some non-USB compliant devices will choke on it sooner or later. Clear stall is strictly speaking not needed. If the first MIDI command sent or transmitted is lost, this is not a big problem for us. MFC after: 1 week
* | | | | Fix rte leak introduced in r248070.melifaro2013-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks
* | | | | Fix issue with "Logitech Webcam C525":hselasky2013-05-181-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set a valid alternate interface setting when enumerating USB audio devices else the device mentioned will not work like expected. PR: usb/178722 MFC after: 1 week
* | | | | Fix ipfw(8) sets of ipv6 addresses handling.melifaro2013-05-181-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conditionally use stack buffer instead of calling strdup(). PR: bin/104921 MFC after: 2 weeks
* | | | | Set errno to ETIMEDOUT if an SCTP association times out duringtuexen2013-05-171-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setup. MFC after: 1 week
* | | | | Per the comment, we cannot rely on bsd.own.mksjg2013-05-171-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we could be on an old system that knows noting of MK_BMAKE or on an almost up to date one that is defaulting it to "no" neither of which will work.
* | | | | Don't send an ABORT chunk with verification 0.tuexen2013-05-171-2/+10
| | | | | | | | | | | | | | | | | | | | MFC after: 1 week
* | | | | For ARM, MIPS, and PowerPC, default to 32-byte alignment, but allow itimp2013-05-171-0/+4
| | | | | | | | | | | | | | | | | | | | to be as small as 8.
* | | | | Use readlocking now that assertions on vm_page_lookup() are relaxed.attilio2013-05-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: EMC / Isilon storage division Reviewed by: alc Tested by: flo, pho
* | | | | We really need to get the bsd.own.mk from this tree so thesjg2013-05-172-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | correct options are set. Also defined NO_PWD_OVERRIDE to match behavior of fmake.
* | | | | o Retrive the part number (CP2103 etc) from the hardware on attach.gavin2013-05-171-12/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o The CP2101 and CP2102 do not support GPIO pin use at all, enforce this. o Support reading the GPIO status on the second port of the CP2105. More work is needed before the CP2105 GPIO pins can be used as outputs. Hardware donated by: Silicon Labs MFC after: 3 weeks
* | | | | Relax the object locking in vm_fault_prefault(). A read lock suffices.alc2013-05-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: attilio Sponsored by: EMC / Isilon Storage Division
OpenPOWER on IntegriCloud