:262960 40 623 440 215 173 269 188 263 456 443 1101 159 126 225 184 124 121 130 139 241 520 734 203 107 230 154 265 241 453 10369 201 244 254 190 275 361 292 368 143 159 261 K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-03-09T22:05:23.456789Z K 7 svn:log V 529 Fix yacc tests so that they run cleanly with prove. First, change the driver to run the installed yacc instead of the one from /usr/obj (which might not be there), just as we (intend to) do with all other tests. Second, regenerate the expected output files from scratch. Based on visual inspection, the differences seem OK. But this highlights that the tests in here are too fragile and, possibly, useless: we should be testing the behavior of the generated program, not the literal output. Something to be addressed later. END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-03-09T22:14:20.217295Z K 7 svn:log V 346 Fix pkill tests so that they run cleanly with prove. This fixes a pgrep test that assumed that PID 2 was named g_event. This does not seem to be the case any longer (and I don't know if it ever was in all possible setups). Change this test to use the idle loop instead and determine its expected PID using ps without assuming any specific ID. END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-03-09T22:16:39.496347Z K 7 svn:log V 121 Fix ncal tests so that they run cleanly with prove. Basically just make the test plan match what is actually being run. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2014-03-09T22:38:11.170643Z K 7 svn:log V 78 ttys(5): Pseudo-terminals are not listed and the network keyword is obsolete. END K 10 svn:author V 4 ache K 8 svn:date V 27 2014-03-09T23:47:34.082773Z K 7 svn:log V 175 MFC r262689: Add fetch and patch to .PHONY and .NOTMAIN only if PORTNAME is defined. Unconditional addition cause real fetch(1) and patch(1) programs are builded every time. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-03-10T00:53:37.196581Z K 7 svn:log V 93 MFC r262890: libc man pages: Remove reference to non-existent FreeBSD Security Architecture END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-03-10T01:34:38.110116Z K 7 svn:log V 170 Make the default exception handler vectors point to where I thought they were already pointing: the default handlers (not a panic that says there is no default handler). END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-03-10T02:31:50.198869Z K 7 svn:log V 361 MFC r261535: Add support for MegaRAID Fury cards. The main change needed to boot from a 9341-4i controller was to ensure that scatter/gather lists are ended with an end-of-list marker. Both the mrsas and Linux megaraid_sas drivers use this marker with Invader cards as well, so we do the same thing, though it is apparently not strictly necessary. PR: 187312 END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-03-10T02:38:41.186320Z K 7 svn:log V 348 MFC r261535: Add support for MegaRAID Fury cards. The main change needed to boot from a 9341-4i controller was to ensure that scatter/gather lists are ended with an end-of-list marker. Both the mrsas and Linux megaraid_sas drivers use this marker with Invader cards as well, so we do the same thing, though it is apparently not strictly necessary. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-03-10T06:03:35.657097Z K 7 svn:log V 1004 Migrate the chip power mode status to public ath_hal, rather than the private per-chip HAL. This allows the ah_osdep.[ch] code to check whether the power state is valid for doing chip programming. It should be a no-op for normal driver work but it does require a clean kernel/module rebuild, as the size of HAL structures have changed. Now, this doesn't track whether the hardware is ACTUALLY awake, as NETWORK_SLEEP wakes the chip up for a short period when traffic is received. This doesn't actually set the power mode to AWAKE, so we have to be careful about how we touch things. But it's enough to start down the path of implementing station mode chipset power savings, as a large part of the silliness is making sure the chip is awake during periodic calibration / ANI and random places where transmit may be occuring. I'd rather not a repeat of debugging power save on ath9k, where races with calibration and transmit path stuff took a couple years to shake out. Tested: * AR5416, STA mode END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-03-10T06:05:26.393699Z K 7 svn:log V 64 Also tag the current HAL power mode in ar9300_set_power_mode(). END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-03-10T06:41:48.715197Z K 7 svn:log V 31 Update this to an updated head END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-03-10T08:52:30.203684Z K 7 svn:log V 127 Ignore USB keyboard driver calls from critical sections. Reported by: Oliver Pinter MFC after: 1 week END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-03-10T10:23:43.132481Z K 7 svn:log V 91 Update libucl to 2014-03-02 version which fixes an important bug when parsing empty arrays END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-03-10T10:24:22.380387Z K 7 svn:log V 31 Tag import for libucl 20140302 END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-03-10T10:39:29.227648Z K 7 svn:log V 28 Update libucl to 2014-03-03 END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-03-10T14:36:27.428786Z K 7 svn:log V 37 Add a mailer.conf example to use dma END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-03-10T15:59:50.860701Z K 7 svn:log V 46 Add the makefile forgotten in previous commit END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-03-10T16:07:45.020257Z K 7 svn:log V 148 Pass the size of the top-level table to map when mapping the table instead of the size of the pointer. Reported by: Coverity Coverity CID: 1147171 END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-03-10T18:10:09.352527Z K 7 svn:log V 427 Eliminate irq_dispatch.S. Move the data items it contained into arm/intr.c and the functionality it provided into arm/exception.S. Rename the main irq handling routine from arm_handler_execute() to arm_irq_handler() to make it more congruent with how other exception handlers are named, and also update its signature to reflect what has long been reality: it is passed just a trapframe pointer, no interrupt number argument. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-03-10T19:36:26.613791Z K 7 svn:log V 641 Move the exception vector table (so-called "page0" data) into exception.S and eliminate vectors.S. All low-level exception handling is now consolidated into exception.S. Along with moving the default FIQ handler, change it to disable FIQs before returning. An FIQ should never happen, but if it does, it's got to be disabled as part of ignoring it. In general, we have hand-wavy support for FIQs that probably hasn't been used for 10 years and probably doesn't work (almost certainly doesn't work for SMP because it only updates the vector on the current cpu). This change doesn't really make the overall situation any better or worse. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2014-03-10T20:47:24.983399Z K 7 svn:log V 109 MFC: r262746, r262748, r262750, r262752 Move fpusave() wrapper for suspend hander to sys/amd64/amd64/fpu.c. END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-03-10T21:35:27.679808Z K 7 svn:log V 12 Whitespace. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-03-10T21:37:07.124798Z K 7 svn:log V 133 4638 Panic in ZFS via rfs3_setattr()/rfs3_write(): dirtying snapshot! illumos/illumos-gate@2144b121c08e0eb676cc6ca4662ebbc9f9c22fe3 END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-03-10T21:37:40.425368Z K 7 svn:log V 59 Remove vestigial global, no-longer used since SVN r262904. END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-03-10T21:58:38.673224Z K 7 svn:log V 172 Repair a few minor mismerges from r262261 in the clang-sparc64 project branch. This is also to minimize differences with upstream. MFC after: 3 weeks X-MFC-With: r262613 END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-03-10T22:38:07.982121Z K 7 svn:log V 148 Change the way the asm GET_CURTHREAD_PTR() macro is defined so that code using it doesn't have to have an "AST_LOCALS" macro somewhere in the file. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-03-10T22:52:32.245036Z K 7 svn:log V 360 Arrange for arm fork_trampoline() to return to userland via the standard swi_exit code in exception.S instead of having its own inline expansion of the DO_AST and PULLFRAME macros. That means that now all references to the PUSH/PULLFRAME and DO_AST macros are localized to exception.S, so move the macros themselves into there and remove them from asmacros.h END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-03-10T23:16:19.861385Z K 7 svn:log V 10269 MFC TTM, a memory manager used by video drivers This is the last step before the merge of the Radeon KMS driver. Other changes to TTM will be merged with radeonkms. The following revisions were merged in this single commit: r247835: Import the preliminary port of the TTM. The early commit is done to facilitate the off-tree work on the porting of the Radeon driver. Sponsored by: The FreeBSD Foundation Debugged and tested by: dumbbell MFC after: 1 month r247848: Fix build with gcc, remove redundand declarations. Reported and tested by: gjb MFC after: 1 month r247849: Fix build with gcc, do not use unnamed union. Reported and tested by: gjb MFC after: 1 month r248060: drm: Fix a call to free(9) with an incorrect malloc type While here, the call to free(9) is moved to drm_global.c, near the initial malloc(9). Reviewed by: Konstantin Belousov (kib@) r248657: drm/ttm: Fix TTM buffer object refcount This fixes memory leaks in the radeonkms driver. Reviewed by: Konstantin Belousov (kib@) Tested by: J.R. Oldroyd r248661: drm/ttm: Explain why we don't need to acquire a ref in ttm_bo_vm_ctor() r248663: drm/ttm: Fix a typo: s/pTTM]/[TTM]/ r248666: Do not call malloc(M_WAITOK) while bodev->fence_lock mutex is held. The ttm_buffer_object_transfer() does not need the mutex locked at all, except for the call to the driver sync_obj_ref() method. Reported and tested by: dumbbell MFC after: 2 weeks r252864: Remove unneeded page lock around vm_page_insert(). Submitted by: alc r253710: MFgem r251960: re-check the mgt device object for the requested page after the object was relocked. Tested by: dumbbell Sponsored by: The FreeBSD Foundation MFC after: 1 week r254822: drm: In drm_mmap_single, try ttm_bo_mmap_single() before drm_gem_mmap_single() In drivers such as the Radeon driver, the DRIVER_GEM features flag is set but TTM is used to mmap buffer object. r254858: drm: Add missing bits to drmP.h, required by the Radeon driver Some of the FreeBSD-specific definitions are moved to drm_os_freebsd.h. But there's still work to do to clean it up and reduce the diff with Linux' drmP.h. r254860: drm: Update drm_atomic.h, now that projects/atomic64 is in HEAD Submitted by: jkim@ r254861: drm/ttm: Import Linux commit 63d0a4195560362e2e00a3ad38fc331d34e1da9b Author: Maarten Lankhorst Date: Tue Jan 15 14:56:37 2013 +0100 drm/ttm: remove lru_lock around ttm_bo_reserve There should no longer be assumptions that reserve will always succeed with the lru lock held, so we can safely break the whole atomic reserve/lru thing. As a bonus this fixes most lockdep annotations for reservations. Signed-off-by: Maarten Lankhorst Reviewed-by: Jerome Glisse r254862: drm/ttm: Import Linux commit 7a1863084c9d90ce4b67d645bf9b0f1612e68f62 Author: Maarten Lankhorst Date: Tue Jan 15 14:56:48 2013 +0100 drm/ttm: cleanup ttm_eu_reserve_buffers handling With the lru lock no longer required for protecting reservations we can just do a ttm_bo_reserve_nolru on -EBUSY, and handle all errors in a single path. Signed-off-by: Maarten Lankhorst Reviewed-by: Jerome Glisse r254863: drm/ttm: Import Linux commit 5e45d7dfd74100d622f9cdc70bfd1f9fae1671de Author: Maarten Lankhorst Date: Tue Jan 15 14:57:05 2013 +0100 drm/ttm: add ttm_bo_reserve_slowpath Instead of dropping everything, waiting for the bo to be unreserved and trying over, a better strategy would be to do a blocking wait. This can be mapped a lot better to a mutex_lock-like call. Signed-off-by: Maarten Lankhorst Reviewed-by: Jerome Glisse Approved by: kib@ r254864: drm/ttm: Import Linux commit f2d476a110bc24fde008698ae9018c99e803e25c Author: Maarten Lankhorst Date: Tue Jan 15 14:57:10 2013 +0100 drm/ttm: use ttm_bo_reserve_slowpath_nolru in ttm_eu_reserve_buffers, v2 This requires re-use of the seqno, which increases fairness slightly. Instead of spinning with a new seqno every time we keep the current one, but still drop all other reservations we hold. Only when we succeed, we try to get back our other reservations again. This should increase fairness slightly as well. Changes since v1: - Increase val_seq before calling ttm_bo_reserve_slowpath_nolru and retrying to take all entries to prevent a race. Signed-off-by: Maarten Lankhorst Reviewed-by: Jerome Glisse Approved by: kib@ r254865: drm/ttm: Import Linux commit cc4c0c4de3c775be22072ec3251f2e581b63d9a0 Author: Maarten Lankhorst Date: Tue Jan 15 14:57:28 2013 +0100 drm/ttm: unexport ttm_bo_wait_unreserved All legitimate users of this function outside ttm_bo.c are gone, now it's only an implementation detail. Signed-off-by: Maarten Lankhorst Reviewed-by: Jerome Glisse Approved by: kib@ r254866: drm/ttm: Import Linux commit 630541863b29f88c7ab34e647758344e4cd1eafd Author: Dave Airlie Date: Wed Jan 16 14:25:44 2013 +1000 ttm: don't destroy old mm_node on memcpy failure When we are using memcpy to move objects around, and we fail to memcpy due to lack of memory to populate or failure to finish the copy, we don't want to destroy the mm_node that has been copied into old_copy. While working on a new kms driver that uses memcpy, if I overallocated bo's up to the memory limits, and eviction failed, then machine would oops soon after due to having an active bo with an already freed drm_mm embedded in it, freeing it a second time didn't end well. Reviewed-by: Jerome Glisse Signed-off-by: Dave Airlie Approved by: kib@ r254867: drm/ttm: Import Linux commit 014b34409fb2015f63663b6cafdf557fdf289628 Author: Dave Airlie Date: Wed Jan 16 15:58:34 2013 +1000 ttm: on move memory failure don't leave a node dangling if we have a move notify callback, when moving fails, we call move notify the opposite way around, however this ends up with *mem containing the mm_node from the bo, which means we double free it. This is a follow on to the previous fix. Reviewed-by: Jerome Glisse Signed-off-by: Dave Airlie Approved by: kib@ r254868: drm/ttm: Import Linux commit ff7c60c580d9722f820d85c9c58ca55ecc1ee7c4 Author: Daniel Vetter Date: Mon Jan 14 15:08:14 2013 +0100 drm/ttm: fix fence locking in ttm_buffer_object_transfer, 2nd try This fixes up commit e8e89622ed361c46bf90ba4828e685a8b603f7e5 Author: Daniel Vetter Date: Tue Dec 18 22:25:11 2012 +0100 drm/ttm: fix fence locking in ttm_buffer_object_transfer which leaves behind a might_sleep in atomic context, since the fence_lock spinlock is held over a kmalloc(GFP_KERNEL) call. The fix is to revert the above commit and only take the lock where we need it, around the call to ->sync_obj_ref. v2: Fixup things noticed by Maarten Lankhorst: - Brown paper bag locking bug. - No need for kzalloc if we clear the entire thing on the next line. - check for bo->sync_obj (totally unlikely race, but still someone else could have snuck in) and clear fbo->sync_obj if it's cleared already. Reported-by: Dave Airlie Cc: Jerome Glisse Cc: Maarten Lankhorst Signed-off-by: Daniel Vetter Signed-off-by: Dave Airlie Approved by: kib@ r254870: drm/ttm: Make ttm_bo_wait() call uninterruptible in page fault handler This fixes a crash where a SIGLALRM, heavily used by X.Org, would interrupt the wait, causing the page fault to fail and the "Xorg" process to receive a SIGSEGV. Approved by: kib@ r254871: drm/ttm: Fix style errors r254873: drm/ttm: When removing a range of pages from a pool, remove all of them Submitted by: Mark Kettenis and Jonathan Gray from OpenBSD Approved by: kib@ r254874: drm/ttm: Improve comment in ttm_bo_vm_ctor() about lack of ref acquisition Approved by: kib@ r254875: ttm: "to_page->valid = VM_PAGE_BITS_ALL" before vm_page_dirty(to_page) Approved by; kib@ r254876: drm/ttm: Fix unmap of buffer object Add a new ttm_bo_release_mmap() function to unmap pages in a vm_object_t. Pages are freed when the buffer object is later released. This function is called in ttm_bo_unmap_virtual_locked(), replacing Linux' unmap_mapping_range(). In particular this is called when a buffer object is about to be moved, so that its mapping is invalidated. However, we don't use this function in ttm_bo_vm_dtor(), because the vm_object_t is already marked as OBJ_DEAD and the pages will be unmapped. Approved by: kib@ r254877: drm/ttm: Fix style in ttm_bo_release_mmap() r254878: drm/ttm: Fix a reversed condition and add missing locks This allows to run OpenGL applications on at least two test machines with the Radeon driver. Approved by: kib@ r254879: drm/ttm: Remove unused VM_ALLOC_DMA32 define r254880: drm: Use the new drm_atomic.h, following the merge of projects/atomic64 Submitted by: jkim@ r259612: ttm_bo_vm_lookup_rb: actually make use of the red-black tree Previously the code would just iterate over the whole tree as if it were just a list. Without this change I would observe X server becoming more and more jerky over time. MFC after: 5 days END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-03-11T00:21:49.524397Z K 7 svn:log V 105 Export _libc_arm_fpu_present as a private symbol to be used by other system libraries, for example libm. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-03-11T00:23:50.237353Z K 7 svn:log V 147 MFV r262983: 4638 Panic in ZFS via rfs3_setattr()/rfs3_write(): dirtying snapshot! illumos/illumos-gate@2144b121c08e0eb676cc6ca4662ebbc9f9c22fe3 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-03-11T00:25:55.230428Z K 7 svn:log V 157 Correct a typo in nlm_find_host_by_addr(): the intention of the code is to give "" rather than comparing the buffer against it. MFC after: 2 weeks END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-03-11T01:10:44.730881Z K 7 svn:log V 95 libbsdstat: fix warnings, set WARNS libbsdstat can build with WARNS=6 with a one line change. END K 10 svn:author V 3 jmg K 8 svn:date V 27 2014-03-11T01:41:09.890419Z K 7 svn:log V 182 some minor clean up.. Always _ZERO memory so mtx_init won't panic... use the proper macro instead of hand rolling it... Reviewed by: jhb (only the malloc change) MFC after: 1 week END K 10 svn:author V 3 jmg K 8 svn:date V 27 2014-03-11T01:45:46.719529Z K 7 svn:log V 268 allow the kern.cryptodevallowsoft sysctl to enable symetric/hashes too... This will allow us to more easily test the software versions of these routines... Considering that we've never had an software asymetric implmentation, it's doubtful anyone has this enabled... END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-03-11T03:19:43.740742Z K 7 svn:log V 199 Now that the PUSHFRAME and PULLFRAME macros are used only in the swi entry/exit code, they don't need to be macros. Now they're just inline code, and rewritten to use shorter instruction sequences. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-03-11T03:20:10.656004Z K 7 svn:log V 272 Pass the actual baudrate to tty_init_console(). This defines the initial baudrate of the device special file, and makes sure that on open(2) the UART is programmed with the correct baudrate. This then eliminates the need in uart_tty_param() to override the speed setting. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-03-11T04:25:12.349710Z K 7 svn:log V 51 Revert r262994 for now, it fails to boot on armv5. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-03-11T05:58:52.941331Z K 7 svn:log V 64 MFC r262930 Call ieee80211_dump_pkt() based on IFF_DUMPPKTS(). END K 10 svn:author V 6 edavis K 8 svn:date V 27 2014-03-11T06:07:12.237707Z K 7 svn:log V 165 Fixed MSI interrupt allocation and handling. Fixed a DMA mapping leak that occurs when defragmenting packet chains. Approved by: davidch (mentor) MFC after: 1 week END