aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Copy releng/8.2 to release/8.2.0 for 8.2-RELEASE.release/8.2.0_cvsKen Smith2011-02-167744-7795/+7778
| | | | | | Approved by: re (implicit) This commit was manufactured to restore the state of the 8.2-RELEASE image.
* Ready for 8.2-RELEASE builds to start.release/8.2.0Ken Smith2011-02-161-1/+1
| | | | | | | | Approved by: re (implcit) Notes: svn path=/releng/8.2/; revision=218738 svn path=/release/8.2.0/; revision=218742; tag=release/8.2.0
* MFC 218271:John Baldwin2011-02-111-2/+3
| | | | | | | | | | When turning off TCP_NOPUSH, only call tcp_output() to immediately flush any pending data if the connection is established. Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=218575
* Ready for 8.2-RC3.Ken Smith2011-01-291-1/+1
| | | | | | | Approved by: re (implicit) Notes: svn path=/releng/8.2/; revision=218071
* MFC: r217587Jung-uk Kim2011-01-281-3/+2
| | | | | | | | | | Fix yet another fallout from r208833. VM86 BIOS call may cause page fault when FPU is in use. Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=218032
* MFC ixgbe cummulative patch from stable/8Jack F Vogel2011-01-278-667/+367
| | | | | | | | | | | | | | | | | | | | 217712 Fix a couple of incorrect variable names in the sysctl code. 217713 - Panic on the 82598 adapter due to reading FCOE registers that don't exit - Make phy detection dynamic so adapters that support multiple types of media can be properly identified by the interface layer - Performance patch to the flow director (ixgbe_atr) code - Fix intermittent data corruption on the 82599 - Add missing support code for buffer size and descriptors when doing jumbo frames, also add 16K cluster support. - Release RX lock when calling stack, this removes LOR problems. 217795 Remove TX_UNLOCK from the error path in local_timer, there is no LOCK 217796 Add missing case for Direct Attach 82598 in the dynamic phy detection 217797 Performance: don't run flow control shared code if nothing has changed Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=217917
* MFC r217511:Bernhard Schmidt2011-01-2610-54/+4
| | | | | | | | | | | | Pull ieee80211_ratectl_node_init() calls from drivers into net80211. This fixes hostap mode for at least ral(4) and run(4), because there is no sufficient call into drivers which could be used initialize the node related ratectl variables. Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=217887
* MFC stable/8 r217711Jack F Vogel2011-01-251-5/+10
| | | | | | | | | | | Fix for kern/152853, pullup in the wrong place in em_xmit causes UDP failure. Thanks to Petr Lampa for the patch. Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=217865
* MFC stable/8 r217710Jack F Vogel2011-01-251-3/+11
| | | | | | | | | | | | - Pieces of the failure path in em_xmit got deleted along the way, correct this. - local_timer had a leftover TX_UNLOCK without matching LOCK in the error path, remove it. Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=217860
* MFC r217727Andrew Thompson2011-01-251-1/+0
| | | | | | | | | | Revert the ndis part of r212122, windrv_stub.c already adds a MODULE_VERSION and this breaks loading miniport drivers from loader.conf Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=217837
* MFC r217548:Pyun YongHyeon2011-01-241-91/+90
| | | | | | | | | | | | | | | | | | | | Rework RX filter programming by providing separate handler for DP8381[56] and SiS 900/7016 controllers. After r212119, sis(4) no longer reinitializes controller if ALLMULTI/PROMISC was changed. However, RX filter handling code assumed some bits of the RX filter is programmed by driver initialization. This caused ALLMULTI/PROMISC configuration is ignored under certain conditions. Fix that issue by reprogramming all bits of RX filter register. While I'm here follow recommended RX filter programming steps recommended by National DP8381[56] data sheet(RX filter should be is disabled before programming). Reported by: Paul Schenkeveld < freebsd () psconsult dot nl > Tested by: Paul Schenkeveld < freebsd () psconsult dot nl > Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=217803
* MFC: r217415Marius Strobl2011-01-211-22/+29
| | | | | | | | | | | | | | | | | | | | | | | - Allow IFM_FLAG0 to be set indicating that auto-negotiation with manual configuration, which is used to work around issues with certain setups (see r161237) by default, should not be triggered as it may in turn cause harm in some edge cases. - Even after masking the media with IFM_GMASK the result may have bits besides the duplex ones set so just comparing it with IFM_FDX may lead to false negatives. - Announce PAUSE support also for manually selected 1000BASE-T, but for all manually selected media types only in full-duplex mode. Announce asymmetric PAUSE support only for manually selected 1000BASE-T. - Simplify setting the manual configuration bits to only once after we have figured them all out. This also means we no longer unnecessarily update the hardware along the road. - Remove a stale comment. Reviewed by: yongari (plus additional testing) Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=217666
* MFC r217296:Pyun YongHyeon2011-01-201-2/+7
| | | | | | | | | | | | | | | | | | | | | | | For re(4) controllers that uses new jumbo frame scheme(RTL8168C/D/E), limit maximum RX buffer size to RE_RX_DESC_BUFLEN instead of blindly configuring it to 16KB. Due to lack of documentation, re(4) didn't allow jumbo frame on these controllers. However it seems controller is confused with jumbo frame such that it can DMA the received frame to wrong address instead of splitting it into multiple RX buffers. Of course, this caused panic. Since re(4) does not support jumbo frames on these controllers, make controller drop frame that is longer than RE_RX_DESC_BUFLEN sized frame. Fortunately RTL810x controllers, which do not support jumbo frame, have no such issues but this change also limited maximum RX buffer size allowed to RTL810x controllers. Allowing 16KB RX buffer for controllers that have no such capability is meaningless. Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=217647
* MF8 r217553:Warner Losh2011-01-201-0/+2
| | | | | | | | | | The cxgb module wasn't being built. Now it is built on all !arm and !mips builds. It always built in a kernel config file. Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=217643
* MFC: r217242Rick Macklem2011-01-203-17/+10
| | | | | | | | | | | | | | | | | | Fix a bug in the client side krpc where it was, sometimes erroneously, assumed that 4 bytes of data were in the first mbuf of a list by replacing the bcopy() with m_copydata(). Also, replace the uses of m_pullup(), which can fail for reasons other than not enough data, with m_copydata(). For the cases where it isn't known that there is enough data in the mbuf list, check first via m_len and m_length(). This is believed to fix a problem reported by dpd at dpdtech.com and george+freebsd at m5p.com. Reviewed by: jhb (for head) Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=217617
* MFS r217408: Don't use amdc1e on XEN && !XEN_PRIVILEGED. This fixes aColin Percival2011-01-191-0/+4
| | | | | | | | | panic when booting FreeBSD/XEN on recent AMD CPUs. Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=217598
* MFC: 217169Daniel Eischen2011-01-111-8/+9
| | | | | | | | | | | | | | | | Make sure to always do source address selection on an unbound socket, regardless of any multicast options. If an address is specified via a multicast option, then let it override normal the source address selection. This fixes a bug where source address selection was not being performed when multicast options were present but without an interface being specified. Approved by: re Notes: svn path=/releng/8.2/; revision=217280
* Ready for 8.2-RC2.Ken Smith2011-01-111-1/+1
| | | | | | | Approved by: re (implicit) Notes: svn path=/releng/8.2/; revision=217255
* MFC r217226:Pyun YongHyeon2011-01-101-1/+11
| | | | | | | | | | | | | | | | | | | Apply DMA address space restriction to controllers that have 4GB DMA boundary bug and runs with PCI-X mode. watchdog timeout was observed on BCM5704 which lives behind certain PCI-X bridge(e.g. AMD 8131 PCI-X bridge). It's still not clear whether the root cause came from that PCI-X bridge or not. The watchdog timeout indicates the issue is in TX path. If the bridge reorders TX mailbox write accesses it would generate all kinds of problems but I'm not sure. This should be revisited. Early MFC requested by re@ for inclusion in 8.2-RC2/7.4-RC2. Tested by: Michael L. Squires (mikes <> siralan dot org) Approved by: re (kensmith) Notes: svn path=/releng/8.2/; revision=217233
* MFS r217050: Make minidumps work on i386/XEN.Colin Percival2011-01-073-5/+30
| | | | | | | Approved by: re (rwatson) Notes: svn path=/releng/8.2/; revision=217130
* MFC r216919:Martin Matuska2011-01-072-3/+28
| | | | | | | | | | | | MFp4 186485, 186859: Fix a race by defining two tasks in the zio structure as we can still be returning from issue task when interrupt task is used. Reviewed by: pjd Approved by: re (kib), pjd Notes: svn path=/releng/8.2/; revision=217096
* MFS r217056: Make i386_set_ldt work (rather than panic) on i386/XEN.Colin Percival2011-01-064-5/+21
| | | | | | | Approved by: re (rwatson) Notes: svn path=/releng/8.2/; revision=217084
* MFS r217055: Don't panic when a disk is detached on XEN.Colin Percival2011-01-061-0/+16
| | | | | | | Approved by: re (rwatson) Notes: svn path=/releng/8.2/; revision=217083
* MFS r217053: Fix the Xen console to not spew \0 bytes when there is noColin Percival2011-01-061-3/+4
| | | | | | | | | input available. Approved by: re (rwatson) Notes: svn path=/releng/8.2/; revision=217082
* MFS r217052: Fix a panic when gstat exits or when 'mdconfig -l' is run,Colin Percival2011-01-061-15/+2
| | | | | | | | | | on i386/XEN. PR: kern/141328 Approved by: re (rwatson) Notes: svn path=/releng/8.2/; revision=217081
* MFS r217051: Fix panic when mlock(2) is used on i386/XEN.Colin Percival2011-01-061-0/+2
| | | | | | | | PR: kern/140313 Approved by: re (rwatson) Notes: svn path=/releng/8.2/; revision=217080
* MFC: r216940Jung-uk Kim2011-01-061-2/+2
| | | | | | | | | Fix parameters for wakeup(9) and tsleep(9). Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=217059
* MFC r216892 from head (Which is an MFi386 of r216012 by kib)Gavin Atkinson2011-01-051-1/+2
| | | | | | | | | | | Calling fill_fpregs() for curthread is legitimate, and ELF coredump does this. Discussed with: kib Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=217031
* MFC: r216891Marius Strobl2011-01-051-6/+6
| | | | | | | | | | | | | | | Extend the section in which interrupts are disabled in the TLB demap functions, otherwise if we get preempted after checking whether a certain pmap is active on the current CPU but before disabling interrupts we might operate on an outdated state as the pmap might have been deactivated in the meantime. As the same issue may arises when the TLB demap function is interrupted by a TLB demap IPI, just entering a critical section before the check isn't sufficient so we have to fully disable interrupts instead. Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=217006
* MFC 216679:John Baldwin2011-01-032-0/+4
| | | | | | | | | | Drop the icu_lock spinlock while pausing briefly after masking the interrupt in the I/O APIC before moving it to a different CPU. Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=216924
* MFC r216824:Bernhard Schmidt2011-01-021-3/+15
| | | | | | | | | | | | | | The RX path is missing a few bus_dmamap_*() calls, this results in modification of memory which was already free'd and eventually in: wpi0: could not map mbuf (error 12) wpi0: wpi_rx_intr: bus_dmamap_load failed, error 12 and an usuable device. PR: kern/144898 Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=216886
* MFC r216848:Bjoern A. Zeeb2010-12-311-2/+2
| | | | | | | | | | | Happy New Year 2011. Approved by: core (kib) Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=216852
* MFC: r216691Rick Macklem2010-12-291-2/+10
| | | | | | | | | | | | | | | | | | | Since VOP_READDIR() for ZFS does not return monotonically increasing directory offset cookies, disable the UFS related loop that skips over directory entries at the beginning of the block for the experimental NFS server. This loop is required for UFS since it always returns directory entries starting at the beginning of the block that the requested directory offset is in. In discussion with pjd@ and mckusick@ it seems that this behaviour of UFS should maybe change, with this fix being an interim patch until then. This patch only fixes the experimental server, since pjd@ is working on a patch for the regular server. Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=216808
* MFC r213265:Oleg Bulyzhin2010-12-281-1/+4
| | | | | | | | | | | | Fix handling of initial credit for an idle pipe. This fixes the bug where setting bw > 1 MTU/tick resulted in infinite bandwidth if io_fast=1 PR: kern/147245, kern/148429 Obtained from: Riccardo Panicucci Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=216759
* MFC r203548:Oleg Bulyzhin2010-12-272-0/+61
| | | | | | | | | | | Propagate the vlan events to the underlying interfaces/members so they can do initialization of hw related features. PR: kern/141646 Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=216741
* MFC r216249Andrew Thompson2010-12-261-0/+4
| | | | | | | | | | | Re-add a status check which sneaked out during r214804. This change can fix some USB error messages showing up during bootup. Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=216720
* MFC c216502:Michael Tuexen2010-12-261-1/+1
| | | | | | | | | Fix a flightsize bug related to the processing of PKTDRP reports. Approved by: re Notes: svn path=/releng/8.2/; revision=216715
* MFC r216572:Konstantin Belousov2010-12-261-0/+1
| | | | | | | | | Restore the ABI of struct kinfo_proc32 after r213536. Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=216713
* MFC r216454:Konstantin Belousov2010-12-261-2/+11
| | | | | | | | | | VOP_ISLOCKED() should not be used to determine if the vnode is locked. Explicitely track the locked status of the vnode. Approved by: re (bz) Notes: svn path=/releng/8.2/; revision=216712
* MFC r216557:Bernhard Schmidt2010-12-261-0/+2
| | | | | | | | | | | | Fix panic while trying to use monitor mode. The iwn_cmd() calls issued by iwn_config() want to msleep() on the mutex. PR: kern/138427 Submitted by: Henry Hu <henry.hu.sh at gmail.com> Approved by: re (kib) Notes: svn path=/releng/8.2/; revision=216710
* Ready for RC1 builds.Ken Smith2010-12-221-1/+1
| | | | | | | Approved by: re (implicit) Notes: svn path=/releng/8.2/; revision=216663
* Adjust __FreeBSD_version for the 8.2 release.Ken Smith2010-12-221-1/+1
| | | | | | | Approved by: re (implicit) Notes: svn path=/releng/8.2/; revision=216639
* MFC c216495:Michael Tuexen2010-12-212-10/+14
| | | | | | | | | Bugfix: Take also the nr-mapping array into account when detecting gaps. Approved by: re@ Notes: svn path=/stable/8/; revision=216613
* MFC r216371:Andrew Thompson2010-12-211-2/+2
| | | | | | | | | | | Fix race in devfs by using LIST_FIRST() instead of LIST_FOREACH_SAFE() when freeing the devfs private data entries. Approved by: re (kib) Notes: svn path=/stable/8/; revision=216611
* Add 2 missing bus_dmamap_sync() calls. Those fix random 'scan timeout',Bernhard Schmidt2010-12-211-0/+6
| | | | | | | | | | | 'could not set power mode', 'device config failed' and other errors due reading invalid memory. Approved by: re (kib) Obtained from: OpenBSD Notes: svn path=/stable/8/; revision=216610
* Fix association on 5GHz channels. The device is initially configured usingBernhard Schmidt2010-12-211-0/+3
| | | | | | | | | | | a 2GHz channel with appropriate flags set to sc->config. Due to not zeroing sc->config for auth/assoc those flags are still set while trying to connect on a 5GHz channel. Approved by: re (kib) Notes: svn path=/stable/8/; revision=216609
* Fix a panic while disabling the RF kill button, caller of theBernhard Schmidt2010-12-211-2/+0
| | | | | | | | | | wpi_rfkill_resume() function will take care of the lock. PR: kern/14489 Approved by: re (kib) Notes: svn path=/stable/8/; revision=216608
* MFC Xen-related commits r215470, r215472, r215525, r215663, r215813, r215819,Colin Percival2010-12-206-27/+53
| | | | | | | | | | | | | | | | | | | | | | | | | r215844, r216041, r216241, r216280, r216382, and r216385. * Make blkfront not advertise a larger maximum I/O size than it can handle for unaligned data (r216241) * Correctly reserve CPU #0's DPCPU pages (r216041) * Make machdep.independent_wallclock do what it claims (r216382) * Don't round xen timecounter to the nearest tick (r215663), but decrease its frequency to avoid wrapping at ~4.3s (r216385) * Remove debugging code which caused a massing slowdown in fork-heavy workloads (r215813) * Add a missing page table flush before invalidating TLBs in pmap_qremove (r215819+215844) * In pmap_release, don't unpin pages which weren't pinned (r215525) and don't KASSERT page mappings which don't exist (r215470); but do pmap_qremove all the relevant pages (r215472) * Don't unmask an event channel until after we register the interrupt handler for it (r216280) Approved by: re (rwatson) Notes: svn path=/stable/8/; revision=216602
* MFC 216504:John Baldwin2010-12-201-8/+6
| | | | | | | | | | | | Add back a bounds check on valid idle priorities that was lost in an earlier commit. While here, move the thread lock down in rtp_to_pri(). It is not needed for all of the priority value checks and the computation of newpri. Approved by: re (kib) Notes: svn path=/stable/8/; revision=216593
* Fix __retval vs. retval confusion: retval is meant to store the (userland)Joerg Wunsch2010-12-191-1/+9
| | | | | | | | | | | | | | | | | pointer where data is to be returned by ibask() (currently unimplemented), while __retval holds the value returned by the libgpib ibfoo() functions. The confusion resulted in the ibfoo() functions returning an uninitialized value except in situations where the GPIB activity has been terminated abnormally. Implement more of __ibsta: END and SRQI status bits (taken out of the uPD7210 IRQ status). Approved by: re (kib) Notes: svn path=/stable/8/; revision=216573