summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Joerg was my mentor way back when...jmg2013-08-261-0/+2
|
* kdump: Decode SOCK_CLOEXEC and SOCK_NONBLOCK in socket() and socketpair().jilles2013-08-262-2/+15
|
* Add more obsolete files.antoine2013-08-262-0/+14
|
* Regenerate src.conf.5antoine2013-08-261-7/+19
|
* Document WITHOUT_ICONV, WITH_LIBICONV_COMPAT and WITH_USB_GADGET_EXAMPLESantoine2013-08-264-2/+6
|
* Introduce superpages support for ARMv6/v7.raj2013-08-264-124/+1140
| | | | | | | | | | | | | | | | | | | | | Promoting base pages to superpages can increase TLB coverage and allow for efficient use of page table entries. This development provides FreeBSD/ARM with superpages management mechanism roughly equivalent to what we have for i386 and amd64 architectures. 1. Add mechanism for automatic promotion of 4KB page mappings to 1MB section mappings (and demotion when not needed, respectively). 2. Managed and non-kernel mappings are now superpages-aware. 3. The functionality can be enabled by setting "vm.pmap.sp_enabled" tunable to a non-zero value (either in loader.conf or by modifying "sp_enabled" variable in pmap-v6.c file). By default, automatic promotion is currently disabled. Submitted by: Zbigniew Bodek <zbb@semihalf.com> Reviewed by: alc Sponsored by: The FreeBSD Foundation, Semihalf
* Hook vm_page_busy.9 to the buildantoine2013-08-261-0/+1
|
* Provide settings for superpage reservation system on ARM.raj2013-08-261-2/+9
| | | | | | | | | | This allows for enabling and configuring superpages reservation mechanism in order to allocate and populate 256 4KB base pages (for the purpose of promotion to a 1MB superpage). Submitted by: Zbigniew Bodek <zbb@semihalf.com> Reviewed by: alc Sponsored by: The FreeBSD Foundation, Semihalf
* Add missing TAILQ initializer (omitted in r250634).raj2013-08-261-0/+1
| | | | | | Submitted by: Zbigniew Bodek <zbb@semihalf.com> Reviewed by: alc Sponsored by: The FreeBSD Foundation, Semihalf
* Remove comment that is no longer relevant since r254182.glebius2013-08-261-4/+0
|
* Fix mbuf debugging printf()'s after the recent mbuf header changes.andre2013-08-261-4/+4
|
* Add support to reconfigure a drive as SYSPD (real JBOD in LSIsbruno2013-08-263-2/+29
| | | | | | | | | | | | | | | terminology). Adds command "mfiutil syspd <drive#>" to change a drive to SYSPD. Drive will then be scanned/reported immediately as /dev/mfisyspdX by the host. "mfiutil good <drive#>" clears SYSPD mode, remove /dev/mfisyspdX and sets disk into UNCONFIGURED mode. Tested on Dell H310 SAS/SATA RAID controller. MFC after: 2 weeks Sponsored by: Yahoo! Inc.
* Update the root device to be correct for use with crochet.andrew2013-08-261-1/+1
|
* Revert r251370 as it contains a deadlock.andrew2013-08-261-120/+0
|
* Migrate the ff_encap1() routine out into the normal output code.adrian2013-08-263-39/+42
| | | | | This will eventually be used by the A-MSDU encapsulation code that I'm writing - the sub-frame encapsulation requirement is the same.
* drm/radeon: Disable build on i386/pc98dumbbell2013-08-261-2/+14
|
* drm/radeon: Rename the (S)DEBUG macros in atom.c to avoid conflictsdumbbell2013-08-261-100/+100
| | | | | For instance, DEBUG is already defined in the LINT kernel configuration. This fixes the build of LINT.
* The second last argument of udp:::receive is supposed to contain themarkj2013-08-261-1/+1
| | | | | | connection state, not the IP header. X-MFC with: r254889
* Implement the ip, tcp, and udp DTrace providers. The probe definitions usemarkj2013-08-2523-23/+888
| | | | | | | | | dynamic translation so that their arguments match the definitions for these providers in Solaris and illumos. Thus, existing scripts for these providers should work unmodified on FreeBSD. Tested by: gnn, hiren MFC after: 1 month
* Fix fcntl F_GETFL F_SETFL for files opened execute-only (O_EXEC).jilles2013-08-254-2/+129
| | | | | | | | | The FFLAGS and OFLAGS now work correctly also for files opened with O_EXEC. Except possibly fuse, the other users pass values without O_EXEC set. fuse appears to assume O_EXEC is handled correctly. Although F_SETFL may not be commonly used for execute-only file descriptors, F_GETFL may be useful to find the access mode.
* Bump __FreeBSD_version to 1000051 after Radeon KMS driver importdumbbell2013-08-251-1/+1
|
* drm/radeon: Import the Radeon KMS driverdumbbell2013-08-25350-2/+164981
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This driver is based on Linux 3.8 and a previous effort by kan@. More informations about this project can be found on the FreeBSD wiki: https://wiki.freebsd.org/AMD_GPU The driver is split into: sys/dev/drm2: The driver sources. sys/modules/drm2/radeonkmw: The driver main kernel module's Makefile. sys/modules/drm2/radeonkmsfw: All firmware kernel module Makefiles. There's one directory and one Makefile for each firmware. sys/contrib/dev/drm2/radeonkmsfw: All firmware binary sources. tools/tools/drm/radeon Tools to update firmwares or regenerate some headers. Merging the driver to FreeBSD 9.x may be possible but not a priority for now. Help from: kib@, kan@ Tested by: avg@, kwm@, ray@, Alexander Yerenkow <yerenkow@gmail.com>, Anders Bolt-Evensen <andersbo87@me.com>, Denis Djubajlo <stdedjub@googlemail.com>, J.R. Oldroyd <fbsd@opal.com>, Mikaël Urankar <mikael.urankar@gmail.com>, Pierre-Emmanuel Pédron <pepcitron@gmail.com>, Sam Fourman Jr. <sfourman@gmail.com>, Wade <wade-is-great@live.com>, (probably other I forgot...) HW donations: kyzh, Yakaz
* vga_pci: Remove left-over debugging printf()'sdumbbell2013-08-251-4/+0
|
* vga_pci: Add API to map the Video BIOSdumbbell2013-08-252-0/+105
| | | | | | | | | | | | | | Here are two new functions to map and unmap the Video BIOS: void * vga_pci_map_bios(device_t dev, size_t *size); void vga_pci_unmap_bios(device_t dev, void *bios); The BIOS is either taken from the shadow copy made by the System BIOS at boot time if the given device was used for the default display (i386, amd64 and ia64 only), or from the PCI expansion ROM. Additionally, one can determine if a given device was the default display at boot time using the following new function: void vga_pci_unmap_bios(device_t dev, void *bios);
* drm: Use the new drm_atomic.h, following the merge of projects/atomic64dumbbell2013-08-255-8/+11
| | | | Submitted by: jkim@
* drm/ttm: Remove unused VM_ALLOC_DMA32 definedumbbell2013-08-251-2/+0
|
* drm/ttm: Fix a reversed condition and add missing locksdumbbell2013-08-251-5/+7
| | | | | | | This allows to run OpenGL applications on at least two test machines with the Radeon driver. Approved by: kib@
* drm/ttm: Fix style in ttm_bo_release_mmap()dumbbell2013-08-251-2/+1
|
* drm/ttm: Fix unmap of buffer objectdumbbell2013-08-252-6/+28
| | | | | | | | | | | | | | | 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@
* ttm: "to_page->valid = VM_PAGE_BITS_ALL" before vm_page_dirty(to_page)dumbbell2013-08-251-1/+1
| | | | Approved by; kib@
* drm/ttm: Improve comment in ttm_bo_vm_ctor() about lack of ref acquisitiondumbbell2013-08-251-2/+10
| | | | Approved by: kib@
* drm/ttm: When removing a range of pages from a pool, remove all of themdumbbell2013-08-251-2/+5
| | | | | Submitted by: Mark Kettenis and Jonathan Gray from OpenBSD Approved by: kib@
* drm/ttm: Fix style errorsdumbbell2013-08-251-15/+15
|
* drm/ttm: Make ttm_bo_wait() call uninterruptible in page fault handlerdumbbell2013-08-251-1/+17
| | | | | | | | 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@
* drm/ttm: Import Linux commit ff7c60c580d9722f820d85c9c58ca55ecc1ee7c4dumbbell2013-08-251-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Daniel Vetter <daniel.vetter@ffwll.ch> 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 <daniel.vetter@ffwll.ch> 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 <airlied@gmail.com> Cc: Jerome Glisse <jglisse@redhat.com> Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com> Approved by: kib@
* drm/ttm: Import Linux commit 014b34409fb2015f63663b6cafdf557fdf289628dumbbell2013-08-251-0/+1
| | | | | | | | | | | | | | | | | Author: Dave Airlie <airlied@gmail.com> 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 <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Approved by: kib@
* drm/ttm: Import Linux commit 630541863b29f88c7ab34e647758344e4cd1eafddumbbell2013-08-251-2/+9
| | | | | | | | | | | | | | | | | | | | | Author: Dave Airlie <airlied@gmail.com> 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 <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Approved by: kib@
* drm/ttm: Import Linux commit cc4c0c4de3c775be22072ec3251f2e581b63d9a0dumbbell2013-08-252-13/+1
| | | | | | | | | | | | | | | Author: Maarten Lankhorst <maarten.lankhorst@canonical.com> 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 <maarten.lankhorst@canonical.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com> Approved by: kib@
* drm/ttm: Import Linux commit f2d476a110bc24fde008698ae9018c99e803e25cdumbbell2013-08-251-2/+20
| | | | | | | | | | | | | | | | | | | | | | | Author: Maarten Lankhorst <maarten.lankhorst@canonical.com> 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 <maarten.lankhorst@canonical.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com> Approved by: kib@
* drm/ttm: Import Linux commit 5e45d7dfd74100d622f9cdc70bfd1f9fae1671dedumbbell2013-08-252-0/+80
| | | | | | | | | | | | | | | | | Author: Maarten Lankhorst <maarten.lankhorst@canonical.com> 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 <maarten.lankhorst@canonical.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com> Approved by: kib@
* drm/ttm: Import Linux commit 7a1863084c9d90ce4b67d645bf9b0f1612e68f62dumbbell2013-08-252-31/+19
| | | | | | | | | | | | | | Author: Maarten Lankhorst <maarten.lankhorst@canonical.com> 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 <maarten.lankhorst@canonical.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com>
* drm/ttm: Import Linux commit 63d0a4195560362e2e00a3ad38fc331d34e1da9bdumbbell2013-08-253-33/+42
| | | | | | | | | | | | | | | Author: Maarten Lankhorst <maarten.lankhorst@canonical.com> 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 <maarten.lankhorst@canonical.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com>
* drm: Update drm_atomic.h, now that projects/atomic64 is in HEADdumbbell2013-08-251-46/+35
| | | | Submitted by: jkim@
* drm: Add missing bits to drmP.h, required by the Radeon driverdumbbell2013-08-252-114/+332
| | | | | | 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.
* Fix CSUM compatibility mapping. SCTP is a layer 4 protocol.andre2013-08-251-1/+1
| | | | Submitted by: tuexen
* Update the mis-predicted branch PMC names (for sandy bridge) to not clash.adrian2013-08-251-2/+2
| | | | | | | | | | | | | | The SDM (June 2013) tables on these are rather confusing. Yes, they assign the same name (BR_MISP_RETIRED.ALL_BRANCHES) to two codes (C5H/00H and C5H/04H.) The latter however is the PEBS version. So, to make it easier to see the difference - and yes, we can use both without having to actually enable the PEBS specific bits! - just rename the PEBS one to _PS so there's no clashing. Tested: * Sandy bridge
* Provide human readable debug output.tuexen2013-08-252-4/+4
|
* drm: Import drm_fixed.h from Linux 3.8dumbbell2013-08-251-0/+72
|
* drm: Update drm_pciids.h based on Linux 3.8dumbbell2013-08-254-457/+863
| | | | | | | | | | | | | | This header can be easily updated using the new "gen-drm_pciids" script, available in tools/tools/drm. The script uses the Linux' drm_pciids.h header for new IDs, the FreeBSD's one because we add the name of the device to each IDs, and the PCI IDs database (misc/pciids port) to fill this name automatically for new IDS. To call the script: tools/tools/drm/gen-drm_pciids \ /path/to/linux/drm_pciids.h \ /path/to/freebsd/drm_pciids.h \ /path/to/pciids/pci.ids
* Disable lldb target support not (currently) of interestemaste2013-08-252-14/+2
| | | | | | | | | - Remote iOS debugging - OS X symbol provider, core files - PECOFF object files - Linux platform support Sponsored by: DARPA, AFRL
OpenPOWER on IntegriCloud