aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* DWARF emitted by clang 3.7 encodes array sizes using the DW_AT_countMark Johnston2015-10-241-0/+4
| | | | | | | | | | | attribute rather than DW_AT_upper_bound. Teach ctfconvert about this so that array type sizes are encoded correctly. PR: 203772 MFC after: 1 week Notes: svn path=/head/; revision=289866
* A few more whitespace, style, and comment cleanups. No functional changes.Ian Lepore2015-10-241-15/+10
| | | | Notes: svn path=/head/; revision=289865
* Bring in all the new(-ish) statistics code from armv6.Ian Lepore2015-10-241-64/+146
| | | | Notes: svn path=/head/; revision=289864
* Since no room left in the _flags, reuse __SALC for O_APPEND.Andrey A. Chernov2015-10-245-19/+31
| | | | | | | | | | It helps to remove _fcntl() call from _ftello() and optimize seek position calculation in _swrite(). MFC after: 3 weeks Notes: svn path=/head/; revision=289863
* Change the preallocation of a busdma segment mapping array from per-tag toIan Lepore2015-10-241-156/+93
| | | | | | | | | per-map. The per-tag scheme is not safe, and a mutex can't be used to protect it because the mapping routines can't sleep. Code brought in from armv6 implementation. Notes: svn path=/head/; revision=289862
* native-xtools: Replace common path with NXBDESTDIR.Bryan Drewery2015-10-241-9/+8
| | | | | | | | | Also combine some mkdir calls. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289861
* native-xtools: Fix build with WITH_DEBUG_FILES.Bryan Drewery2015-10-231-0/+4
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289859
* Instead of all memory allocations using M_DEVBUF, use new categoriesIan Lepore2015-10-231-14/+18
| | | | | | | | M_BUSDMA for allocations of metadata (tags, maps, segment tracking lists), and M_BOUNCE for bounce pages. Notes: svn path=/head/; revision=289858
* Instead of all memory allocations using M_DEVBUF, use new categoriesIan Lepore2015-10-231-21/+24
| | | | | | | | M_BUSDMA for allocations of metadata (tags, maps, segment tracking lists), and M_BOUNCE for bounce pages. Notes: svn path=/head/; revision=289857
* Rework r289778 to always parallelize known targets, without ordering.Bryan Drewery2015-10-231-14/+20
| | | | | | | | | | | | | | | | | - Rather than allow 'make clean*' to ignore dependencies, make a static list of targets in STANDALONE_SUBDIR_TARGETS that are known to be safe. This allows a user to override them if needed and avoids adding this feature to user-defined targets that are in ${SUBDIR_TARGETS}. [1] - This now also allows to force SUBDIR_PARALLEL when calling these targets, since no dependencies are needed. Reported by: ian [1] Sponsored by: EMC / Isilon Storage Division MFC after: 3 weeks X-MFC-With: r289778 Notes: svn path=/head/; revision=289856
* Minor additions to Status Type 0 IOCB.Alexander Motin2015-10-232-6/+7
| | | | Notes: svn path=/head/; revision=289855
* Catch up to r232356: change the boundary constraint type to bus_addr_t.Ian Lepore2015-10-231-2/+2
| | | | | | | | This code lived in the projects/armv6 branch when that change got applied to all the other arches. Notes: svn path=/head/; revision=289854
* Add aarch64 files to the hwpmc(4) module buildEd Maste2015-10-231-0/+4
| | | | | | | | | | This was probably missed because FreeBSD/arm64 did not yet support modules when aarch64 support was added to hwpmc(4). Submitted by: andrew Notes: svn path=/head/; revision=289853
* Missed addition for r289812.Alexander Motin2015-10-231-1/+1
| | | | Notes: svn path=/head/; revision=289852
* Whitespace and style nits, no functional changes.Ian Lepore2015-10-232-149/+131
| | | | | | | | | | | The goal is to make these two files cosmetically alike so that the actual implementation differences are visible. The only changes which aren't spaces<->tabs and rewrapping and reindenting lines are a couple fields shuffled around in the tag and map structs so that everything is in the same order in both versions (which should amount to no functional change). Notes: svn path=/head/; revision=289851
* Fix regression from r289734 that caused crunchgen "subdirs" to not beBryan Drewery2015-10-231-14/+8
| | | | | | | | | | | | | | | | | | | | | | properly recursed. The .for loop was defining a ${__dir} variable that was being set at a different evaluation time than the target itself, so every 'cd ${__dir}' became the last value that was in ${__dir}. This resulted in 'make obj' not properly being ran in the tree that would leave .depend files scattered around when 'make all' was ran in rescue/. To fix this, define a CRUNCH_SRCDIR_* for every prog if it does not already have one and then use that variable in every relevant place. This allows simplifying some logic as well. Reported by: emaste X-MFC-With: r289734 MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289846
* Fix various Coverity issues in sbin/savecore/savecore.c:Alan Somers2015-10-231-6/+6
| | | | | | | | | | | | | | | | CID1009429: Fix unchecked return value from lseek while clearing dump CID1007781: Fix file descriptor leak in DoFile CID1007261: Don't send potentially unterminated string to syslog(3) Coverity CID: 1009429 Coverity CID: 1007781 Coverity CID: 1007261 MFC after: 2 weeks Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D3991 Notes: svn path=/head/; revision=289845
* Add partial support for QUERY TMF to CAM and isp(4).Alexander Motin2015-10-236-10/+41
| | | | | | | | | | | This change allows to decode respective functions in isp(4) in target mode and pass them through CAM to CTL. Unfortunately neither CAM nor isp(4) support returning response info for those task management functions now. On the other side I just have no initiator to test this functionality. Notes: svn path=/head/; revision=289843
* Merge bmake 20151020Simon J. Gerraty2015-10-2336-278/+633
|\ | | | | | | Notes: svn path=/head/; revision=289842
| * Import bmake-20151020vendor/NetBSD/bmake/20151020Simon J. Gerraty2015-10-2135-276/+630
| | | | | | | | | | Notes: svn path=/vendor/NetBSD/bmake/dist/; revision=289720 svn path=/vendor/NetBSD/bmake/20151020/; revision=289721; tag=vendor/NetBSD/bmake/20151020
* | run(4): convert to ieee80211_tx_complete()Andriy Voskoboinyk2015-10-231-14/+5
| | | | | | | | | | | | | | | | Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3992 Notes: svn path=/head/; revision=289841
* | lldb: Add arm64 FreeBSD ProcessMonitor register contextEd Maste2015-10-231-0/+4
| | | | | | | | | | | | | | | | | | This is an adaptation of upstream LLDB commit r251088. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289840
* | dtc needs to be installed if MK_GPL_DTC is not set, which doesn't fit into theBryan Drewery2015-10-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | SUBDIR.yes pattern well. This fixes installation of the BSDL dtc after r288904. Reported by: jhibbits Discussed with: imp Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289839
* | Improve INOTs handling for 24xx and above chips.Alexander Motin2015-10-235-90/+87
| | | | | | | | Notes: svn path=/head/; revision=289838
* | resolver: abuse _res a little lessEric van Gyzen2015-10-231-39/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the past, _res was a global variable. Now, it's multiple function calls. Several functions in the resolver use _res multiple times and therefore call the function(s) far more than necessary. Fix those callers to store the result of _res in a local variable. Add __noinline to the definition of res_init() to avoid the code bloat that these changes would have otherwise incurred. Thanks to jilles for noticing this. Reviewed by: jilles MFC after: 1 week Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D3887 Notes: svn path=/head/; revision=289837
* | blkfront: add support for unmapped IORoger Pau Monné2015-10-231-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using unmapped IO is really beneficial when running inside of a VM, since it avoids IPIs to other vCPUs in order to invalidate the mappings. This patch adds unmapped IO support to blkfront. The following tests results have been obtained when running on a Xen host without HAP: PVHVM 3165.84 real 6354.17 user 4483.32 sys PVHVM with unmapped IO 2099.46 real 4624.52 user 2967.38 sys This is because when running using shadow page tables TLB flushes and range invalidations are much more expensive, so using unmapped IO provides a very important performance boost. Sponsored by: Citrix Systems R&D MFC after: 2 weeks X-MFC-with: r289834 Notes: svn path=/head/; revision=289836
* | sysctl(8): Fix style nitsConrad Meyer2015-10-231-5/+6
| | | | | | | | | | | | | | | | Suggested by: bde Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289835
* | x86/dma_bounce: rework _bus_dmamap_load_ma implementationRoger Pau Monné2015-10-231-16/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation of bus_dmamap_load_ma_triv currently calls _bus_dmamap_load_phys on each page that is part of the passed in buffer. Since each page is treated as an individual buffer, the resulting behaviour is different from the behaviour of _bus_dmamap_load_buffer. This breaks certain drivers, like Xen blkfront. If an unmapped buffer of size 4096 that starts at offset 13 into the first page is passed to the current _bus_dmamap_load_ma implementation (so the ma array contains two pages), the result is that two segments are created, one with a size of 4083 and the other with size 13 (because two independant calls to _bus_dmamap_load_phys are performed, one for each physical page). If the same is done with a mapped buffer and calling _bus_dmamap_load_buffer the result is that only one segment is created, with a size of 4096. This patch relegates the usage of bus_dmamap_load_ma_triv in x86 bounce buffer code to drivers requesting BUS_DMA_KEEP_PG_OFFSET and implements _bus_dmamap_load_ma so that it's behaviour is the same as the mapped version (_bus_dmamap_load_buffer). This patch only modifies the x86 bounce buffer code, other arches are left untouched. Reviewed by: kib, jah Differential Revision: https://reviews.freebsd.org/D888 Sponsored by: Citrix Systems R&D Notes: svn path=/head/; revision=289834
* | arm64: remove exception instruction length assertionEd Maste2015-10-231-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the (now removed) comment: * It is unclear in some cases if the bit is implementation defined. * The Foundation Model and QEMU disagree on if the IL bit should * be set when we are in a data fault from the same EL and the ISV * bit (bit 24) is also set. Instead of adding even more special cases just remove the assertion. Approved by: andrew Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289833
* | sysctl(9): Document U8/U16 types from r289773Conrad Meyer2015-10-232-1/+41
| | | | | | | | | | | | | | | | Suggested by: ngie Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289831
* | Build fix for non-i386 and non-amd64 platforms.Hans Petter Selasky2015-10-231-0/+6
| | | | | | | | | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=289830
* | Move dtrace/opensolaris/zfs module option to common sectionEd Maste2015-10-231-27/+12
| | | | | | | | | | | | | | | | | | | | These are not target-specific modules, so the logic to build them should be common. This also enables them for arm64. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289828
* | Fix capitalizationJason A. Harmening2015-10-231-1/+1
| | | | | | | | Notes: svn path=/head/; revision=289826
* | Remove unclear comment about address truncation in busdma. Add (hopefully ↵Jason A. Harmening2015-10-235-20/+5
| | | | | | | | | | | | | | | | | | much clearer) comment at declaration of PHYS_TO_VM_PAGE(). Noted by: avg Notes: svn path=/head/; revision=289825
* | Add CLFLUSHOPT instruction wrappers.Konstantin Belousov2015-10-232-0/+14
| | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=289824
* | Decode new values for CPUID leaf 2 cache and TLB descriptors, from theKonstantin Belousov2015-10-231-0/+12
| | | | | | | | | | | | | | | | | | | | Intel SDM revision 56. Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=289823
* | Fix build for the KTR-enabled kernels.Konstantin Belousov2015-10-231-2/+9
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289822
* | Fix kernel build by restoring a temporary variable which was not yetHans Petter Selasky2015-10-231-0/+1
| | | | | | | | | | | | | | ripe for removal. Notes: svn path=/head/; revision=289821
* | Fix LUN disable in CAM broken at r285155.Alexander Motin2015-10-231-1/+1
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=289819
* | Disable full bus scan by CAM for FC adapters.Alexander Motin2015-10-233-12/+9
| | | | | | | | | | | | | | | | | | FC port database code already notifies CAM about all devices. Additional full scan is just a waste of time, that by definition won't find anything that is not present in port database. Notes: svn path=/head/; revision=289817
* | urtwn(4): add DBM_ANTNOISE radiotap fieldAndriy Voskoboinyk2015-10-232-2/+5
| | | | | | | | | | | | | | | | | | Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3839 Notes: svn path=/head/; revision=289816
* | Some polishing and unification in ISR code.Alexander Motin2015-10-236-117/+71
| | | | | | | | Notes: svn path=/head/; revision=289812
* | - Split one 4-byte R92C_CR register into 2-byte R92C_CR and 1-byte R92C_MSRAndriy Voskoboinyk2015-10-232-26/+32
| | | | | | | | | | | | | | | | | | | | | | | | registers (they are used for different purposes). - Wrap R92C_MSR modifications into urtwn_set_mode(). Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3838 Notes: svn path=/head/; revision=289811
* | urtwn(4): fix the RSSI calculation for RTL8188EU.Andriy Voskoboinyk2015-10-232-13/+9
| | | | | | | | | | | | | | | | | | | | | | This change also reverts r252405 (causes integer underflow). Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3820 Notes: svn path=/head/; revision=289799
* | dpv(1) merged to stable/10 before release/10.2.0Devin Teske2015-10-231-3/+3
| | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=289797
* | figpar(3) merged to stable/10 before release/10.2.0Devin Teske2015-10-231-3/+3
| | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=289794
* | Bump date/copyright after correcting HISTORYDevin Teske2015-10-231-2/+2
| | | | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r289790 Notes: svn path=/head/; revision=289793
* | dpv(3) merged to stable/10 before release/10.2.0Devin Teske2015-10-231-1/+1
| | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=289790
* | A miss from r289764.Gleb Smirnoff2015-10-231-3/+3
| | | | | | | | Notes: svn path=/head/; revision=289783
* | otus(4) - add missing ieee80211_free_node() call.Adrian Chadd2015-10-231-0/+1
| | | | | | | | Notes: svn path=/head/; revision=289782