summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clean up markup.ru2011-08-041-31/+30
| | | | Approved by: re (kib)
* Undo this for now. It's "right", but it means everything will rely onadrian2011-08-033-25/+1
| | | | | | | | | | | | | | | the ar9130 code. Since at least one kernel config specifies individual ath HAL chips rather than just "device ath_hal" (arm/AVILA), I'm doing this so people aren't caught out when they update to -HEAD or 9.0 and discover their ath setup doesn't compile. I'll revisit this with a proper fix sometime before 9.0-RELEASE. Approved by: re (kib, blanket) Pointed out by: ray@ Pointy hat to: adrian@
* Fix two more $FreeBSD$ keywords.brooks2011-08-032-2/+2
| | | | | Reported by: pluknet Approved by: re (implicit)
* The result of a joint work between rrs@ and myself at the IETF:tuexen2011-08-0322-1430/+1083
| | | | | | | | | | | * Decouple the path supervision using a separate HB timer per path. * Add support for potentially failed state. * Bring back RTO.min to 1 second. * Accept packets on IP-addresses already announced via an ASCONF * While there: do some cleanups. Approved by: re@ MFC after: 2 months.
* Enable keyword expansion for $FreeBSD$ on files where it was added itbrooks2011-08-030-0/+0
| | | | | | | | r224638. Submitted by: bz Approved by: re (implicit) Point hat to: brooks
* Unbreak catman(1) by removing calls to col(1).uqs2011-08-031-1/+1
| | | | | | | | | | | col(1) was mangling the SGR escapes and is not strictly required. See r222647, r222648, r222650, and r222653 for more details. Reported by: delphij Reviewed by: ru Approved by: re (kib) MFC after: 3 weeks
* Add support for dynamically adjusted buffers to allow the full use ofbrooks2011-08-0331-43/+747
| | | | | | | | | | | | | | | | | | | | | | | | | the bandwidth of long fat pipes (i.e. 100Mbps+ trans-oceanic or trans-continental links). Bandwidth-delay products up to 64MB are supported. Also add support (not compiled by default) for the None cypher. The None cypher can only be enabled on non-interactive sessions (those without a pty where -T was not used) and must be enabled in both the client and server configuration files and on the client command line. Additionally, the None cypher will only be activated after authentication is complete. To enable the None cypher you must add -DNONE_CIPHER_ENABLED to CFLAGS via the make command line or in /etc/make.conf. This code is a style(9) compliant version of these features extracted from the patches published at: http://www.psc.edu/networking/projects/hpn-ssh/ Merging this patch has been a collaboration between me and Bjoern. Reviewed by: bz Approved by: re (kib), des (maintainer)
* Fix an NFS server issue where it was not correctly setting the eof flag when azack2011-08-031-5/+5
| | | | | | | | READ had hit the end of the file. Also, clean up some cruft in the code. Approved by: re (kib) Reviewed by: rmacklem MFC after: 2 weeks
* Add in a dirty hack that allows for AR9280/AR9285/AR9287 embeddedadrian2011-08-033-1/+25
| | | | | | | | | | systems, in the same way that AR9130 embedded systems work. This isn't -everything- that is required - the PCI glue still needs to be taught about the eepromdata hint, along the same lines as the AHB glue. Approved by: re (kib, blanket)
* * Fix a clash in structure naming which occurs with (closed source)adrian2011-08-031-3/+3
| | | | | | | | | radar detection code. This is just to make porting the atheros radar code easier. * add a missing space. Approved by: re (kib, blanket)
* fix a serious bug in libproc's proc_attachavg2011-08-031-2/+1
| | | | | | | | | | proc_attach always frees any struct proc_handle data that it allocates, but that is supposed to be done only in error conditions. PR: bin/158431 Approved by: re (kib) MFC after: 1 week
* Remove the EEPROM minor >= 19 check for txgaintype; that's only needed foradrian2011-08-031-2/+1
| | | | | | Merlin / v14 eeprom formats. Approved by: re (kib, blanket)
* Cross a T and dot an I:marcel2011-08-021-2/+3
| | | | | | | | | | o Fix awkward use of braces in combination with mis-indentation. A mistake, that happened to yield the right behaviour? o Fix typo in comment. No functional change. Approved by: re (blanket)
* It's invalid to use GLOBAL() for kernload_ap, as the macro switchesmarcel2011-08-021-1/+2
| | | | | | to the .data section. We need kernload_ap in the boot page. Approved by: re (blanket)
* There's no ':' after GLOBAL(). Missed due to no SMP testing.marcel2011-08-021-1/+1
| | | | Approved by: re (blanket)
* Always disable mount and unmount for jails with enforce_statfs==2.mm2011-08-022-3/+9
| | | | | | | | A working statfs(2) is required for umount(8) in jail. Reviewed by: pjd, kib Approved by: re (kib) MFC after: 2 weeks
* For mount, discover f_mntonname from supplied path argumentmm2011-08-021-7/+42
| | | | | | | | | | | | using vn_fullpath_global(). This fixes f_mntonname if mounting inside chroot, jail or with relative path as argument. For unmount in jail, use vn_fullpath_global() to discover global path from supplied path argument. This fixes unmount in jail. Reviewed by: pjd, kib Approved by: re (kib) MFC after: 2 weeks
* Corrections for the iBCS2 support that seems to regressed from 4.x times.kib2011-08-021-30/+34
| | | | | | | | | | | | | | In particular: - fix format specifiers in the DPRINTFs; - do not use kernel_map for temporal mapping backed by the vnode, this cannot work since kernel map is a system map. Use exec_map instead. - ignore error code from an attempt to insert the hole. If supposed hole is located at the region already populated by .bss, it is not an error. - correctly translate vm error codes to errno, when appropriate. Reported and tested by: Rich Naill <rich enterprisesystems net> Approved by: re (kensmith) MFC after: 1 week
* Fix for arm and mips case the size of storage for sintrcnt/sintrnames.attilio2011-08-023-5/+5
| | | | | | | | | | It seems that "info as" is not much precise on what expect by pseudo-op .word, by the way. No MFC is previewed for this patch. Tested by: andreast, pluknet Approved by: re (kib)
* Add support for Juniper's loader. The difference between FreeBSD's andmarcel2011-08-023-125/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | Juniper's loader is that Juniper's loader maps all of the kernel and preloaded modules at the right virtual address before jumping into the kernel. FreeBSD's loader simply maps 16MB using the physical address and expects the kernel to jump through hoops to relocate itself to it's virtual address. The problem with the FreeBSD loader's approach is that it typically maps too much or too little. There's no harm if it's too much (other than wasting space), but if it's too little then the kernel will simply not boot, because the first thing the kernel needs is the bootinfo structure, which is never mapped in that case. The page fault that early is fatal. The changes constitute: 1. Do not remap the kernel in locore.S. We're mapped where we need to be so we can pretty much call into C code after setting up the stack. 2. With kernload and kernload_ap not set in locore.S, we need to set them in pmap.c: kernload gets defined when we preserve the TLB1. Here we also determine the size of the kernel mapped. kernload_ap is set first thing in the pmap_bootstrap() method. 3. Fix tlb1_map_region() and its use to properly externd the mapped kernel size to include low-level data structures. Approved by: re (blanket) Obtained from: Juniper Networks, Inc
* Provide a more user friendly URL to the IETF site in faithd(8).gjb2011-08-021-2/+2
| | | | | | Pointed out by: dougb Approved by: re (kib) MFC after: 3 days
* Fix a LOR in the NFS client which could cause a deadlock.rmacklem2011-08-022-2/+22
| | | | | | | | | | | | | | | | This was reported to the mailing list freebsd-net@freebsd.org on July 21, 2011 under the subject "LOR with nfsclient sillyrename". The LOR occurred when nfs_inactive() called vrele(sp->s_dvp) while holding the vnode lock on the file in s_dvp. This patch modifies the client so that it performs the vrele(sp->s_dvp) as a separate task to avoid the LOR. This fix was discussed with jhb@ and kib@, who both proposed variations of it. Tested by: pho, jlott at averesystems.com Submitted by: jhb (earlier version) Reviewed by: kib Approved by: re (kib) MFC after: 2 weeks
* Fix panic in zfs_read() if IO_SYNC flag supplied by checking formm2011-08-021-2/+3
| | | | | | | | | | zfsvfs->z_log before calling zil_commit(). [1] Do not call zfs_read() from zfs_getextattr() with the IO_SYNC flag. Submitted by: Alexander Zagrebin <alex@zagrebin.ru> [1] Reviewed by: pjd@ Approved by: re (kib) MFC after: 3 days
* Fix a LOR in the NFS client which could cause a deadlock.rmacklem2011-08-022-2/+21
| | | | | | | | | | | | | | | | This was reported to the mailing list freebsd-net@freebsd.org on July 21, 2011 under the subject "LOR with nfsclient sillyrename". The LOR occurred when nfs_inactive() called vrele(sp->s_dvp) while holding the vnode lock on the file in s_dvp. This patch modifies the client so that it performs the vrele(sp->s_dvp) as a separate task to avoid the LOR. This fix was discussed with jhb@ and kib@, who both proposed variations of it. Tested by: pho, jlott at averesystems.com Submitted by: jhb (earlier version) Reviewed by: kib Approved by: re (kib) MFC after: 2 weeks
* Do not force AHCI mode on NVIDIA MCP89 SATA controllers. Recent Applemav2011-08-022-4/+22
| | | | | | | | | Mac with this chipset does not initialize AHCI mode unless it is started from EFI loader. However, legacy ATA mode works. Submitted by: jkim@ (original version) Approved by: re (kib) MFC after: 1 week
* Fix a corner case in RXEOL handling which was likely introduced by yoursadrian2011-08-022-3/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | truly. Before 802.11n, the RX descriptor list would employ the "self-linked tail descriptor" trick which linked the last descriptor back to itself. This way, the RX engine would never hit the "end" of the list and stop processing RX (and assert RXEOL) as it never hit a descriptor whose next pointer was 0. It would just keep overwriting the last descriptor until the software freed up some more RX descriptors and chained them onto the end. For 802.11n, this needs to stop as a self-linked RX descriptor tickles the block-ack logic into ACK'ing whatever frames are received into that self-linked descriptor - so in very busy periods, you could end up with A-MPDU traffic that is ACKed but never received by the 802.11 stack. This would cause some confusion as the ADDBA windows would suddenly be out of sync. So when that occured here, the last descriptor would be hit and the PCU logic would stop. It would only start again when the RX descriptor list was updated and the PCU RX engine was re-tickled. That wasn't being done, so RXEOL would be continuously asserted and no RX would continue. This patch introduces a new flag - sc->sc_kickpcu - which when set, signals the RX task to kick the PCU after its processed whatever packets it can. This way completed packets aren't discarded. In case some other task gets called which resets the hardware, don't update sc->sc_imask - instead, just update the hardware interrupt mask directly and let either ath_rx_proc() or ath_reset() restore the imask to its former setting. Note: this bug was only triggered when doing a whole lot of frame snooping with serial console IO in the RX task. This would defer interrupt processing enough to cause an RX descriptor overflow. It doesn't happen in normal conditions. Approved by: re (kib, blanket)
* Provide a more user friendly URL to the IETF site in gif(4).gjb2011-08-021-2/+2
| | | | | | Pointed out by: dougb MFC after: 3 days Approved by: re (hrs)
* Fix broken mdoc.uqs2011-08-013-24/+41
| | | | | Found by: manlint Approved by: re (kib)
* Add PCI ID for RocketRAID 4321 and 4322. A FreeNAS user have tested thedelphij2011-08-012-1/+7
| | | | | | | | change on RocketRAID 4322. Sponsored by: iXsystems, Inc. MFC after: 3 days Approved by: re (kib)
* Implement the linprocfs swaps file, providing information about thekib2011-08-013-21/+69
| | | | | | | | | | configured swap devices in the Linux-compatible format. Based on the submission by: Robert Millan <rmh debian org> PR: kern/159281 Reviewed by: bde Approved by: re (kensmith) MFC after: 2 weeks
* Fix the LK_NOSHARE lockmgr flag interaction with LK_UPGRADE andkib2011-08-011-2/+12
| | | | | | | | | | | LK_DOWNGRADE lock ops. Namely, the ops should be NOP since LK_NOSHARE locks are always exclusive. Reported by: rmacklem Reviewed by: attilio Tested by: pho Approved by: re (kensmith) MFC after: 1 week
* I've rewritten most of this file so assign the copyright to me.joel2011-08-011-1/+1
| | | | Approved by: re (kib)
* Fix integer overflow in txg_delay() by initializingmm2011-08-011-1/+1
| | | | | | | | | | the variable "timeout" as clock_t. Filed as Illumos Bug #1313 Reviewed by: avg Approved by: re (kib) MFC after: 3 days
* Add missing break; in r223593.glebius2011-08-011-0/+1
| | | | | | Submitted by: sem Pointy hat to: glebius Approved by: re (kib)
* Add missing MODULE_VERSION() definition to protect against duplicatingpluknet2011-08-011-0/+1
| | | | | | | | | | module loads. PR: kern/159345 Reported by: Eugene Grosbein <egrosbein att rdtc ru> Tested by: Eugene Grosbein <egrosbein att rdtc ru> Approved by: re (kib) MFC after: 1 week
* Get rid of MAXCPU knowledge used for internal needs only. Switch topluknet2011-08-016-64/+41
| | | | | | | | | | | dynamic memory allocation to hold per-CPU memory types data (sized to mp_maxid for UMA, and to mp_maxcpus for malloc to match the kernel). That fixes libmemstat with arbitrary large MAXCPU values and therefore eliminates MEMSTAT_ERROR_TOOMANYCPUS error type. Reviewed by: jhb Approved by: re (kib)
* Fix markup.kib2011-08-011-1/+2
| | | | Approved by: re (hrs)
* Correctly link bsdcpio and bsdtar against libmd and libcrpytomm2011-08-012-4/+11
| | | | | | | | by applying the change from r221472 (libarchive). Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days
* Update vfs_getopt(9) to reflect 32-bit to 64-bit change fromgjb2011-07-311-2/+2
| | | | | | | | r224290. PR: 159324 Submitted by: Brandon Gooch (jamesbrandongooch % gmail ! com) Approved by: re (kib)
* Fix rename in the new NFS server so that it does not require armacklem2011-07-311-4/+20
| | | | | | | | | | | | | | | | | recursive vnode lock on the directory for the case where the new file name is in the same directory as the old one. The patch handles this as a special case, recognized by the new directory having the same file handle as the old one and just VREF()s the old dir vnode for this case, instead of doing a second VFS_FHTOVP() to get it. This is required so that the server will work for file systems like msdosfs, that do not support recursive vnode locking. This problem was discovered during recent testing by pho@ when exporting an msdosfs file system via the new NFS server. Tested by: pho Reviewed by: zkirsch Approved by: re (kib) MFC after: 2 weeks
* Apply r221124 to Book-E: switch to the new NFS client.marcel2011-07-311-1/+1
| | | | Approved by: re (blanket)
* Fix r222813: we need to include sys/cpuset.h. because the PIC interfacemarcel2011-07-311-2/+2
| | | | | | | uses cpuset_t. While here, fix the redundant inclusion of sys/bus.h and order the includes. Approved by: re (blanket)
* Fix r224187: .word defines a 16-bit object and size_t is defined asmarcel2011-07-311-2/+2
| | | | | | a 32-bit intergal. Use .long to define sintrcnt and sintrname. Approved by: re (blanket)
* Disable the RXORN/RXEOL interrupts if RXEOL occurs, preventing anadrian2011-07-311-0/+6
| | | | | | | | | | | | | | | | | | | | | interrupt storm. This is easily triggered by flipping on and off tcpdump -y IEEE802_11_RADIO w/ witness enabled. This causes a whole lot of console IO and when you're attached to a serial console (eg on my AR7161 embedded board), the RX interrupt doesn't get called quickly enough and the RX queue fills up. This wasn't a problem in the past because of the self-linked RX descriptor trick - the RX would never hit the "end" of the RX descriptor list. However this isn't possible for 802.11n (see previous commit history for why.) Both Linux ath9k and the Atheros reference driver code do this; I'm just looking now for where they then restart the PCU receive. Right now the RX will just stop until the interface is reset. Obtained from: Linux, Atheros Approved by: re (kib)
* mdoc(7) fix for the pcm(4) manualgjb2011-07-311-1/+2
| | | | | Spotted by: manlint Approved by: re (kib)
* Don't leak kld_sx lock in kldunloadf().glebius2011-07-311-1/+2
| | | | Approved by: re (kib)
* Remove two debugging printf()s which snuck in during the testing of theadrian2011-07-311-5/+0
| | | | | | | last commit. Approved by: re (kib) Pointy-hat-to: adrian@
* Implement the 4KB split transaction workaround for Merlin (AR9280).adrian2011-07-311-5/+40
| | | | | | | | | | | | | | | | | The AR9280 apparently has an issue with descriptors which straddle a page boundary (4k). I'm not yet sure whether I should use PAGE_SIZE in the calculations or whether I should use 4096; the reference code uses 4096. This patch fiddles with descriptor allocation so a descriptor entry doesn't straddle a 4kb address boundary. The descriptor memory allocation is made larger to contain extra descriptors and then the descriptor address is advanced to the next 4kb boundary where needed. I've tested this both on Merlin (AR9280) and non-Merlin (in this case, AR9160.) Obtained from: Linux, Atheros Approved by: re (kib)
* Fix typo!adrian2011-07-311-1/+1
| | | | Approved by: re (kib)
* Add extra flags for the radar event API.adrian2011-07-311-0/+3
| | | | | | (They're not used by any public code at the current time.) Approved by: re (kib)
OpenPOWER on IntegriCloud