summaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* MFC r211455:Alexander Motin2010-08-251-15/+0
| | | | | | | Remove bintime_cmp() function, unused since r200086. Notes: svn path=/stable/8/; revision=211803
* MFC r211339:Konstantin Belousov2010-08-221-1/+1
| | | | | | | Add missed dependency. Notes: svn path=/stable/8/; revision=211624
* MFC r211333:Andre Oppermann2010-08-222-6/+6
| | | | | | | | Fix the interaction between 'ICMP fragmentation needed' MTU updates, path MTU discovery and the tcp_minmss limiter for very small MTU's. Notes: svn path=/stable/8/; revision=211602
* MFC r211327:Andre Oppermann2010-08-221-5/+24
| | | | | | | | | Add more logging points for failures in syncache_socket() to report when a new socket couldn't be created because one of in_pcbinshash(), in6_pcbconnect() or in_pcbconnect() failed. Notes: svn path=/stable/8/; revision=211600
* Fix a mismerge in r211581, MFC of r210427Andriy Gapon2010-08-221-1/+0
| | | | | | | | | | This is a direct commit. Reported by: many Pointyhat to: avg Notes: svn path=/stable/8/; revision=211599
* MFC r209950:Nathan Whitehorn2010-08-227-1026/+686
| | | | | | | | | | Unify ABI-related bits of the Book-E and AIM machdep routines (exec_setregs, etc.) in order to simplify the addition of 64-bit support, and possible future extension of the Book-E code to handle hard floating point and Altivec. Notes: svn path=/stable/8/; revision=211595
* MFC r209812:Nathan Whitehorn2010-08-213-211/+834
| | | | | | | | | Replace the existing PowerPC busdma implementation with the one from amd64 (with slight modifications). This provides support for bounce buffers, which are required on systems with RAM above 4 GB. Notes: svn path=/stable/8/; revision=211593
* MFC r209963:Nathan Whitehorn2010-08-211-1/+1
| | | | | | | | Add a missing architecture declaration to the machine specification for sun4v. Notes: svn path=/stable/8/; revision=211591
* MFC r210423: completely ignore zero-sized elf sections in modules of elfAndriy Gapon2010-08-212-0/+8
| | | | | | | object type (amd64) Notes: svn path=/stable/8/; revision=211585
* MFC r210427: zfs arc_memory_throttle: available memory is free + cacheAndriy Gapon2010-08-211-0/+2
| | | | Notes: svn path=/stable/8/; revision=211581
* MFC r210422: cpufreq: allocate long-lived buffer for handling of sysctlAndriy Gapon2010-08-211-7/+6
| | | | | | | requests Notes: svn path=/stable/8/; revision=211578
* MFC r210454: ichwd: correct range check for timeout valueAndriy Gapon2010-08-211-2/+2
| | | | Notes: svn path=/stable/8/; revision=211574
* MFC r211317:Andre Oppermann2010-08-211-2/+5
| | | | | | | | Reset the internal tso flag in tcp_output() on every iteration of sendalot. Notes: svn path=/stable/8/; revision=211548
* MFC r211316:Andre Oppermann2010-08-211-1/+2
| | | | | | | | Change the messages of the ICMP bad port bandwidth limiter from a kernel printf to a log output with the priority of LOG_NOTICE. Notes: svn path=/stable/8/; revision=211542
* MFC r211315:Andre Oppermann2010-08-211-1/+1
| | | | | | | Disable TCP inflight limiter by default. Notes: svn path=/stable/8/; revision=211538
* MFC r211115:Bjoern A. Zeeb2010-08-201-0/+17
| | | | | | | | | | | | | | | MFp4 CH180235: Add proto spacers to inet6sw like we have for legacy IP. This allows us to dynamically pf_proto_register() for INET6 from modules, needed by upcoming CARP changes and SeND. MC and SCTP could make use of it as well in theory in the future after upcoming VIMAGE vnet teardown work. Discussed with: will, anchie Notes: svn path=/stable/8/; revision=211527
* MFC r208951:Jaakko Heinonen2010-08-193-9/+32
| | | | | | | | | Add a new function devfs_parent_dirent() for resolving devfs parent directory entry. Use the new function in devfs_fqpn(), devfs_lookupx() and devfs_vptocnp() instead of manually resolving the parent entry. Notes: svn path=/stable/8/; revision=211507
* MFC r210631:Konstantin Belousov2010-08-191-7/+266
| | | | | | | Add compat32 shims for opencrypto(4). Notes: svn path=/stable/8/; revision=211494
* Merge r210571 from head:Gavin Atkinson2010-08-182-0/+3
| | | | | | | | | | Add support for the Corega CG-USBRS232R to uplcom(4) PR: usb/129173 Submitted by: SHIMAOKA Shunsuke <shimaoka.shunsuke gmail.com> Notes: svn path=/stable/8/; revision=211472
* Merge r210556 from head:Gavin Atkinson2010-08-182-0/+2
| | | | | | | | | | Support the Pyramid KBS USB LCD under uftdi(4) PR: usb/129758 Submitted by: joao lima <jlima visionware.pt> Notes: svn path=/stable/8/; revision=211471
* Merge r210524 from head:Gavin Atkinson2010-08-182-5/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | - Support two devices made by West Mountain Radio in uslcom(4) [1] - Remove duplicate SILABS CP2102 define from usbdevs Merge r211022 from head: Sync the list of devices supported by uslcom(4) with NetBSD, Linux, OpenBSD and BeOS. The devices supported by uslcom(4) are now in sync with: NetBSD src/sys/dev/usb/uslsa.c 1.11 OpenBSD src/sys/dev/usb/uslcom.c 1.20 Linux source/drivers/usb/serial/cp210x.c from kernel 2.6.35 BeOS usb_serial/driver.c 1.32 Two vendor/product IDs from Linux have not been added to uslcom(4): SILABS SAEL - This device has special code in u3g to support it SILABS GSM2228 - I suspect this should also be covered by u3g(4). PR: usb/131912 [1] Submitted by: Jack Twilley <mathuin gmail.com> [1] Notes: svn path=/stable/8/; revision=211470
* Merge 210839 from head:Gavin Atkinson2010-08-181-1/+0
| | | | | | | | | | | | Do not free sc if attach failed, as it was allocated by the bus infrastructure, not us. This appears to be a leftover from an older version of the driver. Submitted by: avg Tested by: Anton Shterenlikht <mexas bristol.ac.uk> Notes: svn path=/stable/8/; revision=211466
* MFC r208818:Alexander Motin2010-08-181-0/+1
| | | | | | | | | | Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4137 Notes: svn path=/stable/8/; revision=211461
* MFC r208817:Alexander Motin2010-08-181-0/+1
| | | | | | | | | | Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4196 Notes: svn path=/stable/8/; revision=211460
* MFC r208816:Alexander Motin2010-08-181-3/+5
| | | | | | | | | | Fix attach errors handling. Found with: Coverity Prevent(tm) CID: 3477 Notes: svn path=/stable/8/; revision=211459
* MFC r208907:Alexander Motin2010-08-181-2/+2
| | | | | | | | Disable NCQ and PMP support for VIA VT8251 AHCI. It was reported to be unreliable under load. Linux does the same. Notes: svn path=/stable/8/; revision=211458
* MFC r208814:Alexander Motin2010-08-181-0/+1
| | | | | | | | | | Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4130 Notes: svn path=/stable/8/; revision=211457
* MFC r208813:Alexander Motin2010-08-181-3/+5
| | | | | | | | | | Fix attach errors handling. Found with: Coverity Prevent(tm) CID: 3424 Notes: svn path=/stable/8/; revision=211456
* MFC r211301:Bjoern A. Zeeb2010-08-171-0/+1
| | | | | | | | | | | | | | In rip6_input(), in case of multicast, we might skip the normal processing and go to the next iteration early if multicast filtering would decide that this socket shall not receive the data. Unlock the pcb in that case or we leak the read lock and next time trying to get a write lock, would hang forever. PR: kern/149608 Submitted by: Chris Luke (chrisy flirble.org) Notes: svn path=/stable/8/; revision=211411
* MFC r210747:Andrey V. Elsukov2010-08-161-0/+19
| | | | | | | | | | Forward ioctl requests to original geom. PR: 148540 Approved by: kib (mentor) Notes: svn path=/stable/8/; revision=211391
* MFC r210746:Andrey V. Elsukov2010-08-161-0/+4
| | | | | | | | | | | | | | | | Release access for consumers that are opened, but will be destroyed indirectly by orphan method. PR: 148688 MFC r210792: Check that table is not NULL before access, it can be NULL for some cases. Approved by: kib (mentor) Notes: svn path=/stable/8/; revision=211390
* MFC r210271:Pyun YongHyeon2010-08-152-1/+2
| | | | | | | | Specify BCE_RX_BUF_ALIGN alignment for RX buffers. All bce(4) controllers require RX buffers aligned on BCE_RX_BUF_ALIGN bytes. Notes: svn path=/stable/8/; revision=211387
* MFC r210263,210267,210269-210270:Pyun YongHyeon2010-08-151-22/+23
| | | | | | | | | | | | | | | | | | | | | | r210263: Do not report current link state if interface is not UP. r210267: Add KASSERT to check number of returned DMA segments. r210269: Use bus_get_dma_tag() to get parent tag. Also use BUS_SPACE_MAXSIZE_32BIT to specify sum of all segment lengths. Previously it used MAXBSIZE which was wrong. r210270: Specify BUS_DMA_ZERO flag to bus_dmamem_alloc(9) and remove bzero() calls. Also add BUS_DMA_COHERENT flag to bus_dmamem_alloc(9) to take advantage of efficient synchronization for architectures that support that feature. Notes: svn path=/stable/8/; revision=211385
* MFC r210257,210259-210261:Pyun YongHyeon2010-08-151-51/+34
| | | | | | | | | | | | | | | | | | | | | | | | r210257: When we didn't find a matching flash device, do not touch flash config data. While I'm here, use return code of bce_init_nvram() to set error instead of directly setting ENODEV. r210259: Have bce_init_ctx() return error code and make caller check the return code. If context was not setup correctly give up initialization. While I'm here move variable declarations to the beginning of the function. r210260: Don't change current media in bce_stop(). There is no need to do this here. r210261: Correctly check the result of media selection. Previously it always returned success. Notes: svn path=/stable/8/; revision=211383
* MFC r207411:Pyun YongHyeon2010-08-152-791/+962
| | | | | | | | | | | | | | | | | - Enable flow control. - Print device details only when verbose boot is enabled. - Add debug output for shared memory access. - Add debug statistics (checksum offload & VLAN frame counters). - Modify TX path to update consumer index for each frame completed rather than updating the consumer index only once for a group of frames to improve small packet performance. - Print driver/firmware pulse messages only when verbose boot is enabled. - Add debug sysctl to clear statistics. - Fix more style(9) violations. Notes: svn path=/stable/8/; revision=211381
* MFC r207391:Pyun YongHyeon2010-08-151-6/+4
| | | | | | | - Pass flow control settings back to bce(4). Notes: svn path=/stable/8/; revision=211379
* MFC r210244:Pyun YongHyeon2010-08-151-2/+139
| | | | | | | | | Implement WOL. WOL is supported on RTL8139B or newer controllers. PR: kern/148013 Notes: svn path=/stable/8/; revision=211377
* MFC r205651:Pyun YongHyeon2010-08-151-28/+2
| | | | | | | | Use pci_get_max_read_req() and pci_set_max_read_req() to set maximim read request size. Notes: svn path=/stable/8/; revision=211375
* MFC r210083,210152:Pyun YongHyeon2010-08-152-7/+5
| | | | | | | | | | | | | | | | | r210083: Remove enabling Data FIFO protection with indirect memory access. r165114 added that code and that change ignored the same logic committed in r135772. In addition, data FIFO protection should be selectively enabled instead of applying to all PCIe devices. While I'm here add BCM5785 to devices that do not require this fix. r210152: Use Miscellaneous Configuration Register bit definition instead of magic number. Notes: svn path=/stable/8/; revision=211373
* MFC r210011,210013-210015:Pyun YongHyeon2010-08-151-22/+20
| | | | | | | | | | | | | | | | | | r210011: Make bge_stop_fw() static. While I'm here use ANSI function definitions. r210013: style. r210014: Fix error message for jumbo buffer allocation failure. r210015: Prefer PCIR_BAR macro over BGE_PCI_BAR0. Notes: svn path=/stable/8/; revision=211371
* MFC r209741:Pyun YongHyeon2010-08-151-4/+8
| | | | | | | Zero entire status block and add missing bus_dmamap_sync(9). Notes: svn path=/stable/8/; revision=211369
* MFC r209714:Pyun YongHyeon2010-08-151-1/+5
| | | | | | | | | | | | It seems read DMA mode register requires both IPv4 TSO and IPv6 TSO configuration to get IPv4 TSO work on BCM57780. While I'm here apply the same fix to BCM5785 which shares similar hardware feature of BCM57780. This change makes TSO work on BCM57780. Tested by: Tong Liu <nemoliu <> gmail dot com> Notes: svn path=/stable/8/; revision=211367
* MFC r208917:Pyun YongHyeon2010-08-151-10/+1
| | | | | | | Remove unused macros. Notes: svn path=/stable/8/; revision=211365
* MFC r209818:Pyun YongHyeon2010-08-152-6/+5
| | | | | | | | | | | | Remove enabling RX checksum offloading in RX filter setup. RX checksum is enabled in sge_init_locked(). While I'm here do not set RX checksum bits in RX descriptor initialization. It is controller's job to set these bits. Tested by: xclin <xclin <> cs dot nctu dot edu dot tw > Notes: svn path=/stable/8/; revision=211361
* MFC r209865:Pyun YongHyeon2010-08-151-8/+21
| | | | | | | | | | | | | | Some revision of Yukon controller generates corrupted frame when TX checksum offloading is enabled. The frame has a valid checksum value so payload might be modified during TX checksum calculation. Disable TX checksum offloading but give users chance to enable it when they know their controller works without problems with TX checksum offloading. Reported by: Andrzej Tobola <ato <> iem dot pw dot edu dot pl> Notes: svn path=/stable/8/; revision=211359
* MFC r211089:Pyun YongHyeon2010-08-151-7/+20
| | | | | | | | | | | | | | | | | | | | | It seems some old Sundace(now IC Plus Corp.) controllers do not like memory mapped register access. Typical problem from the issue was MII access returned unreliable values. I'm not sure this comes from lack of register flushing in MII access after accessing STE_PHYCTL register though. To address the issue, read hints data that controls which type of memory mapping should be used in driver. ste(4) still prefers memory mapping to io mapping but honor hints entered by user except for controllers that have problems with memory mapping. The hint to use iomapping could be given by adding the following line to /boot/device.hints file. hint.ste.0.prefer_iomap="1" PR: kern/149285 Notes: svn path=/stable/8/; revision=211357
* Add lame COMPAT_IA32 lines to all the options.* files until I fix config.Warner Losh2010-08-156-0/+16
| | | | Notes: svn path=/stable/8/; revision=211324
* Need to add COMPAT_IA32 to options.i386 tooWarner Losh2010-08-151-0/+1
| | | | Notes: svn path=/stable/8/; revision=211323
* MFC r210666:Andre Oppermann2010-08-141-1/+2
| | | | | | | | | | Fix a bug in syncache where the initial CWND for new incoming connections was limited to one segment under the faulty assumption of a retransmit. Due to this the opportunity to initialize the increased congestion window according to RFC3390 was missed. Notes: svn path=/stable/8/; revision=211312
* Map COMPAT_IA32 to COMPAT_FREEBSD32Warner Losh2010-08-141-0/+2
| | | | Notes: svn path=/stable/8/; revision=211310