summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't break the legacy applications which setume2014-05-281-1/+5
| | | | | | just 2 bytes to salt. MFC after: 1 week
* Fixes for ISP/SAF1761 host mode:hselasky2014-05-283-64/+133
| | | | | | | | | | | | | | - Make the USB hardware skip PTDs which are not allocated. - Peek host memory twice. Sometimes the PTD status is incorrectly returned as zero. - Ensure the host channel is always freed when software TD is completing. - Add correct configuration of interrupt polarity and type. - Set CERR to 2 for asynchronous traffic to avoid having to reactivate the PTD when a NAK token is received. - Fix detection of STALL PID. Sponsored by: DARPA, AFRL
* Actually, just merge r233362 and do away with the unnecessary uint8_tmarius2014-05-281-1/+1
| | | | pointer casting altogether.
* Use M_WAITOK for the NGM_PIPE_SET_CFG control message. We expect it toglebius2014-05-281-1/+1
| | | | | | arrive from userland only. Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>
* Remove nop.hselasky2014-05-281-1/+0
| | | | MFC after: 1 week
* Fixed IPv4-in-IPv6 and IPv6-in-IPv4 IPsec tunnels.vanhu2014-05-289-558/+276
| | | | | | | | | | | | | For IPv6-in-IPv4, you may need to do the following command on the tunnel interface if it is configured as IPv4 only: ifconfig <interface> inet6 -ifdisabled Code logic inspired from NetBSD. PR: kern/169438 Submitted by: emeric.poupon@netasq.com Reviewed by: fabient, ae Obtained from: NETASQ
* Commit the right version of r266793.marius2014-05-281-1/+1
|
* Fix for big endian architectures. The "up_address" field is 8-bit andhselasky2014-05-281-1/+1
| | | | | | does not need byte swapping. MFC after: 1 week
* - Fix compilation with PAE support enabled by improving the casting ofmarius2014-05-281-7/+8
| | | | | | | | | | physical addresses. - Nuke the unused softc of emujoy(4). - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH
* Fix DMA handling in radeon_dummy_page_init():marius2014-05-281-2/+2
| | | | | | | | | | | | | | | | | | | - Based on actual usage and on what Linux does, dummy_page.addr should contain the physical bus address of the dummy page rather than its virtual one. As a side-effect, correcting this bug fixes compilation with PAE support enabled by getting rid of an inappropriate cast. - Also based on actual usage of dummy_page.addr, theoretically Radeon devices could do a maximum of 44-bit DMA. In reality, though, it is more likely that they only support 32-bit DMA, at least that is what radeon_gart_table_ram_alloc() sets up for, too. However, passing ~0 to drm_pci_alloc() as maxaddr parameter translates to 64-bit DMA on amd64/64-bit machines. Thus, use BUS_SPACE_MAXSIZE_32BIT instead, which the existing 32-bit DMA limits within the drm2 code spelled as 0xFFFFFFFF should also be changed to. Reviewed by: dumbbell MFC after: 1 week Sponsored by: Bally Wulff Games & Entertainment GmbH
* reference the correct variable in a commentluigi2014-05-281-1/+1
| | | | MFC after: 3 days
* Add simple polling mechanism that works for KDB.br2014-05-281-1/+22
| | | | Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
* Document support for Intel Centrino Wireless-N 105, added in r266770.brueffer2014-05-281-1/+2
| | | | MFC after: 2 weeks
* Describe I2C arbitrator device in DTS and use it for Chromebook Snow only.br2014-05-282-11/+53
| | | | Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
* o Add kernel configuration for HP Chromebook 11br2014-05-286-3/+130
| | | | | | | o Use machine codename in filenames o Add GEOM_PART_GPT kernel option Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
* In r218101 I have not changed properly the futex syscall definition.dchagin2014-05-281-13/+16
| | | | | | | | | | | | | | Some Linux futex ops atomically verifies that the futex address uaddr (uval) contains the value val. Comparing signed uval and unsigned val may lead to an unexpected result, mostly to a deadlock. So copyin uaddr to an unsigned int to compare the parameters correctly. While here change ktr records to print parameters in more readable format. Tested by eadler@ MFC after: 3 days
* Remove the assert which can be triggered by the userspace. Thekib2014-05-281-4/+1
| | | | | | | | | | | situation checked by assert is verified to not take place in vm_map_wire(), and protection permissions on the wired entry can be revoked afterward. Reported by: markj Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week
* add '3wire' (no handshake lines) to gettytab and ttys so that afterluigi2014-05-282-3/+6
| | | | | | | svn 264175 bhyve etc. work -- without that, /usr/bin/login would stop in getpass() MFC after: 3 days
* Repair nested signal handling on PowerPC. The signal trampoline codenwhitehorn2014-05-272-4/+4
| | | | | | | | | | was not allocating space for the parameter save area in the stack frame. If the compiler chose to save the argument to the signal handler on the stack, it would overwrite the first 32 bits of the sigaction struct with it, corrupting it for a subsequent invocation. PR: powerpc/183040 MFC after: 8 days
* Move libworker_event_done_cb() from libworker.h to worker.h.des2014-05-272-4/+4
|
* Remove debugging printf that crept in in r266770.gavin2014-05-271-1/+1
| | | | | Submitted by: adrian, nwhitehorn MFC after: 2 weeks
* Eliminate the fake contig_dmamap and replace it with a new flag,scottl2014-05-271-12/+13
| | | | | | | | | BUS_DMA_KMEM_ALLOC. They serve the same purpose, but using the flag means that the map can be NULL again, which in turn enables significant optimizations for the common case of no bouncing. Obtained from: Netflix, Inc. MFC after: 3 days
* improve ifconfig(8) man page by describing special behaviour of -l etherallanjude2014-05-271-0/+17
| | | | | | PR: docs/187644 Submitted by: Andrew Merenbach (original patch) Approved by: bcr (mentor)
* Fix a couple of size_t != int warnings.jhb2014-05-271-2/+2
|
* Various cleanups and fixes:jhb2014-05-271-172/+102
| | | | | | | | | | | - Switch from timeout() to callout_*() for per-request timers. - Use device_find_child() in the identify routine. - Use device_printf() instead of passing device_get_nameunit() to printf(). - Expand the SBP_LOCK coverage simplifying the locking. - Uninline STAILQ_FOREACH_SAFE(). Tested by: sbruno
* MFV r266766:delphij2014-05-277-24/+125
| | | | | | | | | | | | | | | | | | | | | Add a new zfs property, "redundant_metadata" which can have values "all" or "most". The default will be "all", which is the current behavior. When set to all, ZFS stores an extra copy of all metadata. If a single on-disk block is corrupt, at worst a single block of user data (which is recordsize bytes long) can be lost. Setting to "most" will cause us to only store 1 copy of level-1 indirect blocks of user data files. This can improve performance of random writes, because less metadata has to be written. In practice, at worst about 100 blocks (of recordsize bytes each) of user data can be lost if a single on-disk block is corrupt. The exact behavior of which metadata blocks are stored redundantly may change in future releases. Illumos issue: 3835 zfs need not store 2 copies of all metadata MFC after: 2 weeks
* Add support for the Intel Centrino Wireless-N 105 chipset.gavin2014-05-272-1/+41
| | | | | MFC after: 2 weeks Relnotes: yes
* - Rework the XSAVE/XRSTOR emulation to only expose XCR0 features to thejhb2014-05-273-3/+50
| | | | | | | | | | | | | | | | | guest for which the rules regarding xsetbv emulation are known. In particular future extensions like AVX-512 have interdependencies among feature bits that could allow a guest to trigger a GP# in the host with the current approach of allowing anything the host supports. - Add proper checking of Intel MPX and AVX-512 XSAVE features in the xsetbv emulation and allow these features to be exposed to the guest if they are enabled in the host. - Expose a subset of known-safe features from leaf 0 of the structured extended features to guests if they are supported on the host including RDFSBASE/RDGSBASE, BMI1/2, AVX2, AVX-512, HLE, ERMS, and RTM. Aside from AVX-512, these features are all new instructions available for use in ring 3 with no additional hypervisor changes needed. Reviewed by: neel
* Portmgr no longer need the UL hack.sjg2014-05-271-45/+1
| | | | Reviewed by: obrien
* cxgbe(4): netmap support for Terminator 5 (T5) based 10G/40G cards.np2014-05-278-259/+1903
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Netmap gets its own hardware-assisted virtual interface and won't take over or disrupt the "normal" interface in any way. You can use both simultaneously. For kernels with DEV_NETMAP, cxgbe(4) carves out an ncxl<N> interface (note the 'n' prefix) in the hardware to accompany each cxl<N> interface. These two ifnet's per port share the same wire but really are separate interfaces in the hardware and software. Each gets its own L2 MAC addresses (unicast and multicast), MTU, checksum caps, etc. You should run netmap on the 'n' interfaces only, that's what they are for. With this, pkt-gen is able to transmit > 45Mpps out of a single 40G port of a T580 card. 2 port tx is at ~56Mpps total (28M + 28M) as of now. Single port receive is at 33Mpps but this is very much a work in progress. I expect it to be closer to 40Mpps once done. In any case the current effort can already saturate multiple 10G ports of a T5 card at the smallest legal packet size. T4 gear is totally untested. trantor:~# ./pkt-gen -i ncxl0 -f tx -D 00:07:43:ab:cd:ef 881.952141 main [1621] interface is ncxl0 881.952250 extract_ip_range [275] range is 10.0.0.1:0 to 10.0.0.1:0 881.952253 extract_ip_range [275] range is 10.1.0.1:0 to 10.1.0.1:0 881.962540 main [1804] mapped 334980KB at 0x801dff000 Sending on netmap:ncxl0: 4 queues, 1 threads and 1 cpus. 10.0.0.1 -> 10.1.0.1 (00:00:00:00:00:00 -> 00:07:43:ab:cd:ef) 881.962562 main [1882] Sending 512 packets every 0.000000000 s 881.962563 main [1884] Wait 2 secs for phy reset 884.088516 main [1886] Ready... 884.088535 nm_open [457] overriding ifname ncxl0 ringid 0x0 flags 0x1 884.088607 sender_body [996] start 884.093246 sender_body [1064] drop copy 885.090435 main_thread [1418] 45206353 pps (45289533 pkts in 1001840 usec) 886.091600 main_thread [1418] 45322792 pps (45375593 pkts in 1001165 usec) 887.092435 main_thread [1418] 45313992 pps (45351784 pkts in 1000834 usec) 888.094434 main_thread [1418] 45315765 pps (45406397 pkts in 1002000 usec) 889.095434 main_thread [1418] 45333218 pps (45378551 pkts in 1001000 usec) 890.097434 main_thread [1418] 45315247 pps (45405877 pkts in 1002000 usec) 891.099434 main_thread [1418] 45326515 pps (45417168 pkts in 1002000 usec) 892.101434 main_thread [1418] 45333039 pps (45423705 pkts in 1002000 usec) 893.103434 main_thread [1418] 45324105 pps (45414708 pkts in 1001999 usec) 894.105434 main_thread [1418] 45318042 pps (45408723 pkts in 1002001 usec) 895.106434 main_thread [1418] 45332430 pps (45377762 pkts in 1001000 usec) 896.107434 main_thread [1418] 45338072 pps (45383410 pkts in 1001000 usec) ... Relnotes: Yes Sponsored by: Chelsio Communications.
* Better documentation for why KERBEROS and OPENSSH are here, and whereimp2014-05-272-3/+8
| | | | | | | to look for all the other options that used to be here (well, in bsd.own.mk) Suggested by: des@
* Regen after r266752.gjb2014-05-271-11/+6
| | | | Sponsored by: The FreeBSD Foundation
* Remove empty lines that cause mdoc warnings.gjb2014-05-274-5/+0
| | | | Sponsored by: The FreeBSD Foundation
* Now that there are separate back-end implementations of busdma, the bouncescottl2014-05-271-18/+22
| | | | | | | | implementation shouldn't steal flags from the common front-end. Move those flags to the back-end. Obtained from: Netflix, Inc. MFC after: 3 days
* Revert r266481. It was based on faulty analysis of the problem. A correctscottl2014-05-271-25/+2
| | | | | | fix is forthcoming. Obtained from: Netflix, Inc.
* Add PCI ID for AMT based serial interface found on the Lenovo T61.sbruno2014-05-271-0/+1
| | | | | | | | uart2: <Intel AMT - PM965/GM965 KT Controller> port 0x1830-0x1837 mem 0xfe024000-0xfe024fff irq 17 at device 3.3 on pci0 uart2: console (115200,n,8,1) Tested as tty and serial console. Seems "fine"
* Disconnect the following geom classes from the kernel modules build:ae2014-05-271-6/+0
| | | | | | | BSD, FOX, MBR, PC98, SUNLABEL and VOL_FFS. They all have a modern replacement. Also it is still possible build them manually. Discussed with: geom
* - Correct bus space resource type for register access.hselasky2014-05-273-3/+17
| | | | | | - Add configuration of interrupt type and polarity via FDT. Sponsored by: DARPA, AFRL
* Multiple fixes and improvements:hselasky2014-05-273-360/+520
| | | | | | | | | | | | | | | | | | | | - Put "_LE_" into the register access macros to indicate little endian byte order is expected by the hardware. - Avoid using the bounce buffer when not strictly needed. Try to move data directly using bus-space functions first. - Ensure we preserve the reserved bits in the power down mode register. Else the hardware goes into a non-recoverable state. - Always use 32-bit access when writing or reading registers or FIFOs, because the hardware is 32-bit oriented and don't really understand 8- and 16-bit access. - Correct writes to the memory address register. There is no need to shift the register offset. - Correct interval for interrupt endpoints. - Optimise 90ns internal memory buffer read delay. - Rename PDT into PTD, which is how the datasheet writes it. - Add missing programming for activating host controller PTDs. Sponsored by: DARPA, AFRL
* - Improve performance by fixing incorrect Rx/Tx handlingkevlo2014-05-273-242/+190
| | | | | - Rename definition of AXGE_* to reflect reality - Add new USB IDs
* The users of RSS shouldn't be directly concerned about hash -> CPU IDadrian2014-05-272-0/+60
| | | | | | | | | | | | | | | | | | | | | | | mappings. Instead, they should be first mapping to an RSS bucket and then querying the RSS bucket -> CPU ID mapping to figure out the target CPU. When (if?) RSS rebalancing is implemented or some other (non round-robin) distribution of work from buckets to CPU IDs, various bits of code - both userland and kernel - will need to know how this mapping works. So, to support this: * Add a new function rss_m2bucket() - this maps an mbuf to a given bucket. Anything which is currently doing hash -> CPU work may instead wish to do hash -> bucket, and then query the bucket->cpuid map for which CPU it belongs on. Or, map it to a bucket, then re-pin that bucket -> CPU during a rebalance operation. * For userland applications which wish to exploit affinity to RSS buckets, the bucket -> CPU ID mapping is now available via a sysctl. net.inet.rss.bucket_mapping lists the bucket to CPU ID mapping via a list of bucket:cpu pairs.
* Update backend files and makefiles for apr 1.4.8 -> 1.5.1peter2014-05-273-5/+24
|
* Merge apr-1.4.8 -> apr-1.5.1 and update.peter2014-05-2771-5482/+13953
|\
| * Vendor import apr-1.5.1peter2014-05-2771-5482/+13953
| |
| * Import Apache apr-1.4.8 to vendor staging area.peter2013-07-2827-944/+619
| |
* | Xr bktr.4kevlo2014-05-271-0/+1
| |
* | Merge svn-1.8.8 -> 1.8.9peter2014-05-2745-1484/+2227
| |
* | Update serf 1.3.4 -> 1.3.5peter2014-05-276-24/+31
| |
* | Emphasis on 'do not' and 'complement' in the strcspn(3)allanjude2014-05-271-5/+6
| | | | | | | | | | | | Replace literal parentheses with .Po/.Pc Approved by: wblock (mentor)
* | Add segment protection and limits violation checks in vie_calculate_gla()neel2014-05-275-41/+96
| | | | | | | | | | | | for 32-bit x86 guests. Tested using ins/outs executed in a FreeBSD/i386 guest.
OpenPOWER on IntegriCloud