aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Activate IRQ 30 (non-secure private timer IRQ) for case we are runningRuslan Bukin2014-06-121-1/+2
| | | | | | | in non-secure state. Notes: svn path=/head/; revision=267389
* Add machine-dependent SMP part for Exynos5420Ruslan Bukin2014-06-122-8/+70
| | | | Notes: svn path=/head/; revision=267388
* Allocating new bucket for bucket zone, never take it from the zone itself,Alexander Motin2014-06-121-0/+2
| | | | | | | | | | | | | | since it will almost certanly fail. Take next bigger zone instead. This situation should not happen with original bucket zones configuration: "32 Bucket" zone uses "64 Bucket" and vice versa. But if "64 Bucket" zone lock is congested, zone may grow its bucket size and start biting itself. MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=267387
* Remove some Giant unlocks I missed in r267290.John Baldwin2014-06-121-3/+0
| | | | Notes: svn path=/head/; revision=267386
* - Don't compare bus_dma map pointers for static DMA allocations againstJohn Baldwin2014-06-127-13/+15
| | | | | | | | | | | NULL to determine if bus_dmamap_unload() or bus_dmamem_free() should be called. Instead, check the associated bus and virtual addresses. - Don't clear static DMA maps to NULL. Reviewed by: jfv Notes: svn path=/head/; revision=267385
* - Unmap static DMA buffers allocated via bus_dmemem_alloc() beforeJohn Baldwin2014-06-111-58/+42
| | | | | | | | | | | | freeing them instead of after. - Check the bus address of a static DMA buffer to decide if the associated map should be unloaded. - Don't try to destroy bus dma maps for static DMA buffers. Reviewed by: davidcs Notes: svn path=/head/; revision=267377
* Unload maps for DMA buffers allocated via bus_dmamem_alloc() beforeJohn Baldwin2014-06-113-0/+3
| | | | | | | | | freeing the buffers. Reviewed by: davidcs Notes: svn path=/head/; revision=267375
* Fix decoding of near CALL when address-size prefix (67h) is present.Xin LI2014-06-111-6/+13
| | | | | | | | | Submitted by: Wolf Ramovsky <wolf.ramovsky gmail.com> via core (peter) MFC after: 2 weeks Notes: svn path=/head/; revision=267374
* Fix decoding of LEA when address-size prefix (67h) is present.Xin LI2014-06-111-8/+11
| | | | | | | | | | | | This is loosly based on Xorg changeset f57bc0e by Christian Zander. Submitted by: Wolf Ramovsky <wolf.ramovsky gmail.com> via core (peter) MFC after: 2 weeks Notes: svn path=/head/; revision=267373
* Fix decoding of MOVSX.Xin LI2014-06-111-0/+1
| | | | | | | | | Submitted by: Wolf Ramovsky <wolf.ramovsky gmail.com> via core (peter) MFC after: 2 weeks Notes: svn path=/head/; revision=267372
* Apply vendor fixes to the High Point drivers:Xin LI2014-06-115-35/+33
| | | | | | | | | | | | | | | | | | - Don't call xpt_free_path() in os_query_remove_device() and always return TRUE. - Update os_buildsgl() to support build logical SG table which will be used by lower RAID module. - Return CAM_SEL_TIMEOUTstatus for SCSIcommand failed as target missing. Many thanks to HighPoint for providing this driver update. Submitted by: Steve Chang Reviewed by: mav MFC after: 3 days Notes: svn path=/head/; revision=267368
* Fix a few more drivers that were explicitly destroying the bus_dmaJohn Baldwin2014-06-115-12/+0
| | | | | | | map created by bus_dmamem_alloc(). Notes: svn path=/head/; revision=267365
* Correct a bug in the management of the population map on big-endianAlan Cox2014-06-111-8/+48
| | | | | | | | | | | | | | | | | | machines. Specifically, there was a mismatch between how the routine allocation and deallocation operations accessed the population map and how the aggressively optimized reservation-breaking operation accessed it. So, problems only occurred when reservations were broken. This change makes the routine operations access the population map in the same way as the reservation breaking operation. This bug was introduced in r259999. PR: 187080 Tested by: jmg (on an "armeb" machine) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=267364
* Fix various NIC drivers to properly cleanup static DMA resources.John Baldwin2014-06-1125-266/+222
| | | | | | | | | | | | | | | | | | In particular, don't check the value of the bus_dma map against NULL to determine if either bus_dmamem_alloc() or bus_dmamap_load() succeeded. Instead, assume that bus_dmamap_load() succeeeded (and thus that bus_dmamap_unload() should be called) if the bus address for a resource is non-zero, and assume that bus_dmamem_alloc() succeeded (and thus that bus_dmamem_free() should be called) if the virtual address for a resource is not NULL. In many cases these bugs could result in leaks when a driver was detached. Reviewed by: yongari MFC after: 2 weeks Notes: svn path=/head/; revision=267363
* Remove unneeded mountlist_mtx acquisition from sync_fsync().Alexander Motin2014-06-111-4/+1
| | | | | | | All struct mount fields accessed by sync_fsync() are protected by MNT_MTX. Notes: svn path=/head/; revision=267362
* Improve logic besides net.bpf.optimize_writers.Alexander V. Chernikov2014-06-111-12/+63
| | | | | | | | | | | | | Direct bpf(4) consumers should now work fine with this tunable turned on. In fact, the only case when optimized_writers can change program behavior is direct bpf(4) consumer setting its read filter to catch-all one. MFC after: 2 weeks Sponsored by: Yandex LLC Notes: svn path=/head/; revision=267361
* Add disklabel64 supportAndrey V. Elsukov2014-06-113-0/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=267360
* Add disklabel64 support to GEOM_PART class.Andrey V. Elsukov2014-06-113-0/+680
| | | | | | | | | | | | | | | | | This partitioning scheme is used in DragonFlyBSD. It is similar to BSD disklabel, but has the following improvements: * metadata has own dedicated place and isn't accessible through partitions; * all offsets are 64-bit; * supports 16 partitions by default (has reserved place for more); * has reserved place for backup label (but not yet implemented); * has UUIDs for partitions and partition types; No objections from: geom MFC after: 2 weeks Relnotes: yes Notes: svn path=/head/; revision=267359
* Allow swapping to DragonFlyBSD's swap partition.Andrey V. Elsukov2014-06-111-1/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=267358
* Add aliases for DragonFlyBSD's partition types.Andrey V. Elsukov2014-06-114-24/+57
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=267357
* Add DragonFlyBSD's Hammer FS types and type names.Andrey V. Elsukov2014-06-111-2/+4
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=267356
* Add UUIDs for DragonFlyBSD's partition types.Andrey V. Elsukov2014-06-111-0/+19
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=267355
* Add a driver for Serial Peripheral Interface (SPI).Ruslan Bukin2014-06-113-0/+298
| | | | Notes: svn path=/head/; revision=267354
* Move root_mount_hold() functionality to separate mutex.Alexander Motin2014-06-111-12/+15
| | | | | | | It has nothing to share with mutex protecting list of mounted file systems. Notes: svn path=/head/; revision=267351
* Use bitwise OR instead of logical OR when constructing value forJim Harris2014-06-101-1/+1
| | | | | | | | | | SET_FEATURES/NUMBER_OF_QUEUES command. Sponsored by: Intel MFC after: 3 days Notes: svn path=/head/; revision=267342
* Don't destroy bus_dma maps created by bus_dmamem_alloc(). In some cases,John Baldwin2014-06-1016-118/+18
| | | | | | | | | | | | don't create a map before calling bus_dmamem_alloc() (such maps were leaked). It is believed that the extra destroy of the map was generally harmless since bus_dmamem_alloc() often uses special maps for which bus_dmamap_destroy() is a no-op (e.g. on x86). Reviewed by: scottl Notes: svn path=/head/; revision=267340
* Replace enum forward declarations with complete definitions.Tycho Nightingale2014-06-101-50/+47
| | | | | | | Reviewed by: neel Notes: svn path=/head/; revision=267338
* PF_BLUETOOTH protocols: skip initialization of non-virtualized globalsMikolaj Golub2014-06-105-0/+27
| | | | | | | | | | | for non-default VNET instances. This fixes panic on a vnet initialization when ng_btsocket is loaded. MFC after: 1 week Notes: svn path=/head/; revision=267336
* Add helper functions to populate VM exit information for rendezvous andNeel Natu2014-06-103-32/+36
| | | | | | | | astpending exits. This is to reduce code duplication between VT-x and SVM implementations. Notes: svn path=/head/; revision=267330
* Add support for the SCTP_LOCAL_TRACE_BUF options.Michael Tuexen2014-06-101-2/+3
| | | | | | | | | While there, fix some whitespaces. MFC after: 1 week Notes: svn path=/head/; revision=267329
* change the netmap mbuf destructor so the same code works also on FreeBSD 9.Luigi Rizzo2014-06-101-9/+16
| | | | | | | | For head and 10 this change has no effect, but on stable/9 it would cause panics when using emulated netmap on top of a standard device driver. Notes: svn path=/head/; revision=267328
* Avoid the USB device disconnected and controller shutdown clutter on systemMarius Strobl2014-06-102-8/+13
| | | | | | | | | | | | shutdown by putting the former under !rebooting and turning the latter into debug messages. Reviewed by: hps MFC after: 1 week Sponsored by: Bally Wulff Games & Entertainment GmbH Notes: svn path=/head/; revision=267321
* Call cpp with -P to avoid printing line markings.Rui Paulo2014-06-101-1/+1
| | | | Notes: svn path=/head/; revision=267319
* Always append new bios to the tail of the queue, instead of sorting themBryan Venteicher2014-06-101-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=267313
* Turn on interrupt window exiting unconditionally when an ExtINT is beingNeel Natu2014-06-101-2/+6
| | | | | | | | | | | | | injected into the guest. This allows the hypervisor to inject another ExtINT or APIC vector as soon as the guest is able to process interrupts. This change is not to address any correctness issue but to guarantee that any pending APIC vector that was preempted by the ExtINT will be injected as soon as possible. Prior to this change such pending interrupts could be delayed until the next VM exit. Notes: svn path=/head/; revision=267311
* Correct unicode map for VGA ROM character 0x0eEd Maste2014-06-101-1/+2
| | | | | | | | The character is a beamed pair of sixteenth notes, so should be U+266C not U+266B (beamed eighth notes). Notes: svn path=/head/; revision=267310
* Add reserved bit checking when doing %CR8 emulation and inject #GP if required.Neel Natu2014-06-093-25/+51
| | | | | | | | Pointed out by: grehan Reviewed by: tychon Notes: svn path=/head/; revision=267300
* Re-enable -Werror for these modules. It is already enabled for the sameJohn Baldwin2014-06-094-4/+0
| | | | | | | files when built as part of a kernel. Notes: svn path=/head/; revision=267297
* mdoc: fix AUTHORS section.Joel Dahl2014-06-091-2/+2
| | | | Notes: svn path=/head/; revision=267293
* Use strcasecmp() instead of strcmp() when checking user-supplied encodingJohn Baldwin2014-06-092-4/+4
| | | | | | | | | | | | | names so that encoding names are treated as case-insensitive. This allows the use of 'utf-8' instead of 'UTF-8' for example and matches the behavior of iconv(1). PR: 167977 Submitted by: buganini@gmail.com MFC after: 1 week Notes: svn path=/head/; revision=267291
* Make the hpt27xx(4) driver MPSAFE.John Baldwin2014-06-093-47/+51
| | | | | | | | | | | | | - Use the existing vbus locks instead of Giant for the CAM sim lock. - Use callout(9) instead of timeout(9). - Mark the interrupt handler as MPSAFE. - Don't attempt to pass data in the softc from probe() to attach(). Reviewed by: Steve Chang <ychang@highpoint-tech.com> Assisted by: delphij Notes: svn path=/head/; revision=267290
* Fixes from Fanco Ficthner on transparent modeLuigi Rizzo2014-06-091-19/+7
| | | | | | | | | | | | | | | | | | | | * The way rings are updated changed with the last API bump. Also sync ->head when moving slots in netmap_sw_to_nic(). * Remove a crashing selrecord() call. * Unclog the logic surrounding netmap_rxsync_from_host(). * Add timestamping to RX host ring. * Remove a couple of obsolete comments. Submitted by: Franco Fichtner MFC after: 3 days Sponsored by: Packetwerk Notes: svn path=/head/; revision=267284
* sync the code with the one in stable/10Luigi Rizzo2014-06-091-1/+3
| | | | | | | | (wrap the if_t compatibilty function into a __FreeBSD_version conditional block) Notes: svn path=/head/; revision=267283
* Fix race in r267221.Alexander Motin2014-06-091-2/+4
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=267278
* Removed stale comment about multi-vdev root pool config not workingSteven Hartland2014-06-091-3/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=267267
* Devolatile as needed.Konstantin Belousov2014-06-091-4/+4
| | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 13 days Notes: svn path=/head/; revision=267264
* Change the nblock mutex, protecting the needsbuffer buffer deficitKonstantin Belousov2014-06-091-27/+42
| | | | | | | | | | | | | | | | | | | | | | flags, to rwlock. Lock it in read mode when used from subroutines called from buffer release code paths. The needsbuffer is now updated using atomics, while read lock of nblock prevents loosing the wakeups from bufspacewakeup() and bufcountadd() in getnewbuf_bufd_help(). In several interesting loads, needsbuffer flags are never set, while buffers are reused quickly. This causes brelse() and bqrelse() from different threads to content on the nblock. Now they take nblock in read mode, together with needsbuffer not needing an update, allowing higher parallelism. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=267255
* Make mmap(MAP_STACK) search for the available address space, similarKonstantin Belousov2014-06-092-40/+68
| | | | | | | | | | | | | | | | | | | | | to !MAP_STACK mapping requests. For MAP_STACK | MAP_FIXED, clear any mappings which could previously exist in the used range. For this, teach vm_map_find() and vm_map_fixed() to handle MAP_STACK_GROWS_DOWN or _UP cow flags, by calling a new vm_map_stack_locked() helper, which is factored out from vm_map_stack(). The side effect of the change is that MAP_STACK started obeying MAP_ALIGNMENT and MAP_32BIT flags. Reported by: rwatson Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=267254
* Fix TSO support on VMware FusionBryan Venteicher2014-06-091-9/+45
| | | | | | | | | | | | | | | | | | Apparently for VMware Fusion (and presumably VMware Workstation/Player since the PR states TSO is broken there too, but I cannot test), the TCP header pseudo checksum calculated should only include the protocol (IPPROTO_TCP) value, not also the lengths as the stack does instead. VMware ESXi seems to ignore whatever value is in the TCP header checksum, and it is a bit surprising there is a different behavior between the VMware products. And it is unfortunate that on ESXi we are forced to do this extra bit of work. PR: kern/185849 MFC after: 3 days Notes: svn path=/head/; revision=267253
* Remove an unnecessary variable reassignmentBryan Venteicher2014-06-091-1/+1
| | | | | | | | | | And it would be bad if 'm' was different from '*m0' at this point, since we've already populated the SG list. MFC after: 3 days Notes: svn path=/head/; revision=267252