Sascha Wildner [Fri, 23 Aug 2013 23:33:22 +0000 (01:33 +0200)]
kernel/usb4bsd: Switch to generating usbdevs{,_data}.h during the build.
Taken-from: FreeBSD
Sascha Wildner [Thu, 22 Aug 2013 11:55:41 +0000 (13:55 +0200)]
kernel/drm2: Fix for kernels that don't have DDB compiled in.
Sascha Wildner [Wed, 21 Aug 2013 17:36:00 +0000 (19:36 +0200)]
top.1: mdoc conversion
unixtop has gone to sleep since 2008 and most changes we did to its
manual page were documenting stuff we added ourselves.
Convert it to mdoc to make this process easier in the future.
Submitted-by: Franco Fichtner <franco@lastsummer.de>
Sascha Wildner [Tue, 20 Aug 2013 14:36:42 +0000 (16:36 +0200)]
usb4bsd: Add a usb_quirk(4) manual page (from FreeBSD).
Sepherosa Ziehau [Tue, 20 Aug 2013 10:59:08 +0000 (18:59 +0800)]
uipc: Reference the originator thread if asynchronized pru_send is used
It is required for UDP asynchronized pru_send, which could access the
originator's thread.
Sascha Wildner [Mon, 19 Aug 2013 19:53:36 +0000 (21:53 +0200)]
kernel/usb4bsd: Bring in urtwn(4) and firmware.
It passes initial testing, but of course there might still be uncaught
issues.
Taken-from: FreeBSD
Sascha Wildner [Mon, 19 Aug 2013 19:29:07 +0000 (21:29 +0200)]
iwi.4: Fix wording.
Sascha Wildner [Mon, 19 Aug 2013 03:01:37 +0000 (05:01 +0200)]
hier.7: Move .Pp to the right place.
Sascha Wildner [Mon, 19 Aug 2013 02:46:43 +0000 (04:46 +0200)]
kernel/usb4bsd: Remove forgotten wlan_serialize_exit() in run(4).
Spotted-by: sephe
Sascha Wildner [Mon, 19 Aug 2013 00:45:39 +0000 (02:45 +0200)]
hier.7: Add missing .Pp
Sascha Wildner [Mon, 19 Aug 2013 02:41:27 +0000 (04:41 +0200)]
Another typo fixing round (in messages and manpages) across the tree.
Sascha Wildner [Sun, 18 Aug 2013 18:46:25 +0000 (20:46 +0200)]
kernel/usb4bsd: Warning fix and minor adjustments from FreeBSD for xhci.
Sascha Wildner [Sun, 18 Aug 2013 16:12:56 +0000 (18:12 +0200)]
kernel/usb4bsd: Remove unnecessary NULL checks in rum(4) and run(4).
Sascha Wildner [Sun, 18 Aug 2013 13:53:40 +0000 (15:53 +0200)]
kernel/usb4bsd: Port run(4), add firmware too.
Some minor issues might remain, but it works good here with various
compatible adapters.
While here, sync with FreeBSD's latest.
Taken-from: FreeBSD
Sascha Wildner [Sun, 18 Aug 2013 00:41:42 +0000 (02:41 +0200)]
kernel: Align backslashes in 'files' a bit better for firmwares.
Sascha Wildner [Sun, 18 Aug 2013 00:16:55 +0000 (02:16 +0200)]
kernel/firmware: Add NORMAL_FW and NORMAL_FWO for firmware.
Taken-from: FreeBSD
Sascha Wildner [Sat, 17 Aug 2013 21:40:19 +0000 (23:40 +0200)]
kernel/usb4bsd: Remove unused variable.
Sascha Wildner [Sat, 17 Aug 2013 18:52:53 +0000 (20:52 +0200)]
kernel/usb4bsd: Omit 'if_' in building directories of network drivers.
Sascha Wildner [Sat, 17 Aug 2013 18:01:15 +0000 (20:01 +0200)]
kernel/usb4bsd: Port rum(4).
The driver behaves mostly stable but a few issues remain, such as
kldunloading cleanly.
Sascha Wildner [Sat, 17 Aug 2013 17:44:03 +0000 (19:44 +0200)]
kernel/files: Comment out two lines for old USB wlan drivers.
In preparation for some usb4bsd wlan work.
Sascha Wildner [Sat, 17 Aug 2013 17:18:17 +0000 (19:18 +0200)]
sbin: Use socklen_t in a few places.
John Marino [Sat, 17 Aug 2013 14:45:10 +0000 (16:45 +0200)]
Remove last two references to legacy make
This last two LEGACY MAKE conditions slipped by. The others were removed
in a previous commit.
François Tigeot [Sat, 17 Aug 2013 12:46:11 +0000 (14:46 +0200)]
make.conf: Use MACHINE_ARCH instead of ARCH
It is already defined by bmake itself
François Tigeot [Sat, 17 Aug 2013 11:41:00 +0000 (13:41 +0200)]
make.conf: Switch dports to building new Xorg/KMS packages by default
François Tigeot [Sat, 17 Aug 2013 10:51:07 +0000 (12:51 +0200)]
Bump __DragonFly_version for i915 KMS support
Sascha Wildner [Sat, 17 Aug 2013 02:51:37 +0000 (04:51 +0200)]
kernel/i386: Remove BDE_DEBUGGER remains.
Matthew Dillon [Sat, 17 Aug 2013 01:22:47 +0000 (18:22 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Sat, 17 Aug 2013 01:21:17 +0000 (03:21 +0200)]
Remove the uhidev.4 manual page. We never had this driver.
Matthew Dillon [Sat, 17 Aug 2013 01:21:34 +0000 (18:21 -0700)]
kernel - Fix SMP race in mtx*() code.
* Fix a SMP race due to forgetting to set the PINTERLOCKED flag.
Sascha Wildner [Sat, 17 Aug 2013 00:08:35 +0000 (02:08 +0200)]
smp.4: Mention that APIC I/O is disabled by default in virtual machines.
Sascha Wildner [Fri, 16 Aug 2013 23:57:20 +0000 (01:57 +0200)]
ath_hal.4: Comment out some config lines which we do not offer.
Sascha Wildner [Fri, 16 Aug 2013 23:53:17 +0000 (01:53 +0200)]
Add ath(4) and associated options/devices to our default configs.
Sascha Wildner [Fri, 16 Aug 2013 14:54:49 +0000 (16:54 +0200)]
style.9: Remove wcswcs(3) reference.
Matthew Dillon [Fri, 16 Aug 2013 04:16:12 +0000 (21:16 -0700)]
kernel - Fix bug in SO_NOSIGPIPE when socket fp called from kernel thread
* SO_NOSIGPIPE assumed that soo_write() was being called from a user
process. It can also be called from a kernel thread.
* Fixes hammer2 kdmsg thread crashes.
Matthew Dillon [Fri, 16 Aug 2013 02:35:52 +0000 (19:35 -0700)]
vkernel - Module loading for vkernel64
* Fix a missing vm_object_drop() in the kldload error path.
* Load modules using sbrk()'d memory (for now).
* Hack rtld to accept a new environment variable, LD_SHAREDLIB_BASE,
which forces shared libraries to be mmap()'d at the specified address.
* Hack the vkernel64 binary to re-exec itself in order to set
LD_SHAREDLIB_BASE to low memory. This forces shared libraries into
low memory which the KLD module loader can relocate against, instead
of high memory which it can't.
* test/vkernel/Makefile now builds and installs modules by default
With-fixes-from: tuxillo
Matthew Dillon [Thu, 15 Aug 2013 21:08:51 +0000 (14:08 -0700)]
kernel - Add missing reltoken/LWPRELE in signal error path
* Add missing releases in the signal error path which can be triggered
when a dying process is signalled.
Sascha Wildner [Thu, 15 Aug 2013 13:08:17 +0000 (15:08 +0200)]
Update the pciconf(8) database.
August 9, 2013 snapshot from http://pciids.sourceforge.net/
Matthew Dillon [Thu, 15 Aug 2013 07:57:53 +0000 (00:57 -0700)]
hammer - Fix filesystem selection path bug in cleanup directive
* When being asked to cleanup a hammer filesystem, hammer checks the
/var/hammer/<filesystem>/ directory for manual snapshots and is able
to extract the target filesystem from the softlinks it finds.
If no softlinks are found hammer incorrectly calls 'hammer prune'
with the /var/hammer/* path instead of the target filesystem path
which causes the prune code to prune the wrong filesystem.
* Issue only happened when snapshots were disabled but snapshot aging
was being enforced. e.g. in the hammer config for the filesystem,
something like 'snapshots 0d 60d'. This feature tends to be used
only on slaves that are the target of a mirror-stream backup.
Other combinations will either have created snapshot softlinks
in /var/hammer/* or would have disabled snapshots entirely (which
causes a prune-everything to happen and doesn't have the bug).
Sascha Wildner [Wed, 14 Aug 2013 21:41:02 +0000 (23:41 +0200)]
kernel/linux: Use #ifdef (fixes -Wundef).
Sascha Wildner [Wed, 14 Aug 2013 15:38:22 +0000 (17:38 +0200)]
mps.4: Sync with FreeBSD to document the current state of affairs.
Sepherosa Ziehau [Wed, 14 Aug 2013 14:41:59 +0000 (22:41 +0800)]
cputimer: Allow MP synchronized TSC to become cputimer on i386
See also
8d23b56caf513f5c15f56fb053479cc00fe2eaf4
François Tigeot [Wed, 14 Aug 2013 08:13:03 +0000 (10:13 +0200)]
drm/i915: Use a spinlock for i915_file_priv locking
* This is also what Linux uses
* Sync struct drm_i915_file_private and i915_gem_ring_throttle() a bit
with Linux while I'm at it
Matthew Dillon [Tue, 13 Aug 2013 21:22:29 +0000 (14:22 -0700)]
nrelease - Add delay before umounting
* Add a delay before unmounting the usb image filesystem.
Sascha Wildner [Mon, 12 Aug 2013 20:04:19 +0000 (22:04 +0200)]
sysctl_add_oid.9: Reduce diffs to Free a bit.
François Tigeot [Mon, 12 Aug 2013 17:39:40 +0000 (19:39 +0200)]
acpica: Fix buildworld issue introduced by previous commit
François Tigeot [Sun, 11 Aug 2013 16:29:00 +0000 (18:29 +0200)]
acpica: Replace some include paths by full ones
To allow the ACPI header files to be used in the whole kernel
François Tigeot [Sun, 11 Aug 2013 08:45:10 +0000 (10:45 +0200)]
kernel: Import pci_save_state and pci_restore_state from FreeBSD
François Tigeot [Sat, 10 Aug 2013 17:22:20 +0000 (19:22 +0200)]
kernel: Add bitcount32 to sys/systm.h
François Tigeot [Mon, 12 Aug 2013 06:28:00 +0000 (08:28 +0200)]
drm2: Remove dubious AGP locks
They are not present in the original Linux code.
François Tigeot [Sat, 10 Aug 2013 21:51:04 +0000 (23:51 +0200)]
drm2: remove DRM_SPINXXX macros
* They did not apply 1:1 to DragonFly locking directives; keeping them
in the drivers would have meant lockmgr locks would have had to be be
used in situations where spinlocks could have done the job.
* Besides the obvious performance pessimization issues, they had the
unfortunate effect of obscuring the source code
* The original DRM code in the Linux kernel doesn't even use them, they
were purely a FreeBSD addition
Sepherosa Ziehau [Mon, 12 Aug 2013 02:42:04 +0000 (10:42 +0800)]
uipc: Set up netmsg's socket properly before perform notify abort
Mainly to make the netisr so_port change chasing work
Sascha Wildner [Sun, 11 Aug 2013 21:15:46 +0000 (23:15 +0200)]
kernel/x86_64: Display Standard Extended Features during CPU setup.
Taken-from: FreeBSD
Tested-by: Mihai Carabas <mihai.carabas@gmail.com>, ftigeot
François Tigeot [Sat, 10 Aug 2013 15:15:14 +0000 (17:15 +0200)]
iicbb: Update from FreeBSD
Sepherosa Ziehau [Sun, 11 Aug 2013 12:23:11 +0000 (20:23 +0800)]
test: Test push
Sascha Wildner [Sun, 11 Aug 2013 01:42:51 +0000 (03:42 +0200)]
Fix two prototypes in manual pages.
Sascha Wildner [Sat, 10 Aug 2013 20:19:05 +0000 (22:19 +0200)]
kernel: Start removing syslink.
It's tied in with a few things that we don't want to break, so care is
needed.
Approved-by: dillon
Sascha Wildner [Sat, 10 Aug 2013 11:18:31 +0000 (13:18 +0200)]
GC a manpage backup that was created by passing -b when installing it.
Sascha Wildner [Sat, 10 Aug 2013 11:07:15 +0000 (13:07 +0200)]
share/mk: Fix the creation of MLINKS for manpages of fschg'd stuff.
We cannot pass INSTALLFLAGS directly for manual page installation because
when INSTALLFLAGS contains -fschg (such as for init(8)), it will cause the
manual page to be fschg'd too which breaks subsequent MLINKS creation.
Therefore, use MANINSTALLFLAGS for manual pages. While here, document it
too.
Sascha Wildner [Sat, 10 Aug 2013 09:26:21 +0000 (11:26 +0200)]
porting_drivers.txt: Reword the part about SVN IDs a bit.
Sascha Wildner [Sat, 10 Aug 2013 09:21:06 +0000 (11:21 +0200)]
kernel: Adjust some header comments. SMP is default now for a while.
Sascha Wildner [Sat, 10 Aug 2013 09:11:36 +0000 (11:11 +0200)]
Reduce diffs between GENERIC/X86_64_GENERIC a bit.
Sascha Wildner [Sat, 10 Aug 2013 08:39:53 +0000 (10:39 +0200)]
Fix some prototypes in manpage synopses.
Sascha Wildner [Fri, 9 Aug 2013 21:14:56 +0000 (23:14 +0200)]
stringlist.3: Fix prototype in the SYNOPSIS.
Also bring in selected fixes from FreeBSD.
Sascha Wildner [Fri, 9 Aug 2013 20:58:35 +0000 (22:58 +0200)]
udev_enumerate.3: Fix prototypes in the SYNOPSIS.
Sascha Wildner [Fri, 9 Aug 2013 20:51:15 +0000 (22:51 +0200)]
systimer.9: Fix prototypes in the SYNOPSIS.
Matthew Dillon [Fri, 9 Aug 2013 20:03:50 +0000 (13:03 -0700)]
build - Support INSTALLFLAGS for manual pages
* Support INSTALLFLAGS for manual pages, allows leaf to efficiently
keep unchanged manual pages intact when regenerating.
Sascha Wildner [Fri, 9 Aug 2013 17:10:00 +0000 (19:10 +0200)]
kernacc.9: Fix prototypes in the SYNOPSIS.
Sascha Wildner [Fri, 9 Aug 2013 17:01:27 +0000 (19:01 +0200)]
hexdump.[39]: Fix prototypes in the SYNOPSIS.
Sascha Wildner [Fri, 9 Aug 2013 16:52:47 +0000 (18:52 +0200)]
ftpio.3: Fix prototypes in the SYNOPSIS.
François Tigeot [Fri, 9 Aug 2013 12:01:41 +0000 (14:01 +0200)]
kernel: Add pmap_page_set_memattr() stubs for the vkernel platforms
Sascha Wildner [Fri, 9 Aug 2013 12:06:29 +0000 (14:06 +0200)]
Test commit
Matthew Dillon [Fri, 9 Aug 2013 06:15:15 +0000 (23:15 -0700)]
test - test commit
Sascha Wildner [Thu, 8 Aug 2013 20:56:42 +0000 (22:56 +0200)]
kernel/libutil: UNIX98_PTYS has been default long enough, remove defines.
François Tigeot [Mon, 5 Aug 2013 20:22:52 +0000 (22:22 +0200)]
doc: Update porting_drivers.txt
François Tigeot [Wed, 7 Aug 2013 11:00:58 +0000 (13:00 +0200)]
ttm porting: Small changes (3/3)
* Fix taskqueue_start_threads() calls
* Remove VPO_UNMANAGED
* Remove VM_ALLOC_WIRED and VM_ALLOC_NOOBJ
* Remove VM_ALLOC_NOBUSY
* Replace VPO_BUSY by PG_BUSY
* Fix calls to pmap_copy_page()
* Fix calls to pmap_zero_page()
François Tigeot [Wed, 7 Aug 2013 09:47:43 +0000 (11:47 +0200)]
ttm porting: Small changes (2/3)
* Remove vm_page_lock() and vm_page_unlock()
* vm_page_busy() => vm_page_busy_try()
* Replace kern_yield() by lwkt_yield()
* Remove vm_page_sleep() calls
* vm_pager_allocate() => swap_pager_alloc()
* vm_pager_get_pages() => vm_pager_get_page()
* Fix vm_pager_has_page() call
François Tigeot [Wed, 7 Aug 2013 15:33:41 +0000 (17:33 +0200)]
ttm porting: Small changes (1/3)
* fix kern_psignal()
* fix sf_buf.h
* TAILQ_FOREACH_XXX_SAFE => TAILQ_FOREACH_XXX_MUTABLE()
* mb() => cpu_mfence()
* kernel_map => &kernel_map
* fix kmem_alloc_nofault() calls
* taskqueue_thread => taskqueue_thread[mycpuid]
François Tigeot [Wed, 7 Aug 2013 07:54:47 +0000 (09:54 +0200)]
ttm porting: Fix vm_page_alloc_contig() calls
François Tigeot [Tue, 6 Aug 2013 06:38:18 +0000 (08:38 +0200)]
ttm porting: msleep => lksleep
François Tigeot [Mon, 5 Aug 2013 19:12:10 +0000 (21:12 +0200)]
ttm porting: Translate locking primitives
* rw locks to lockmgr locks
* sx locks to lockmgr locks
* Some mtx locks to lockmgr locks
* Some mtx_locks to spinlocks
Some more locks could probably be converted to spinlocks but this
can be dangerous.
Better use lockmgr locks first and be sure the code runs without any
issue before trying to optimize it.
François Tigeot [Tue, 6 Aug 2013 07:38:49 +0000 (09:38 +0200)]
ttm porting: malloc / free / printf
* printf() => kprintf()
* malloc() => kmalloc()
* free() => drm_free()
François Tigeot [Mon, 5 Aug 2013 18:28:00 +0000 (20:28 +0200)]
ttm porting: MPASS -> KKASSERT
François Tigeot [Wed, 7 Aug 2013 09:38:05 +0000 (11:38 +0200)]
ttm porting: Fix include files
François Tigeot [Sun, 4 Aug 2013 06:11:28 +0000 (08:11 +0200)]
drm: Import the ttm memory manager from FreeBSD
It is needed by some recent GPU drivers such as nouveau and radeon
for nvidia and AMD hardware
François Tigeot [Thu, 8 Aug 2013 15:51:25 +0000 (17:51 +0200)]
drm: Locally implement VM_OBJECT_LOCK variants
François Tigeot [Wed, 7 Aug 2013 15:19:24 +0000 (17:19 +0200)]
drm: Move PROC_LOCK define to common file
François Tigeot [Wed, 7 Aug 2013 12:36:50 +0000 (14:36 +0200)]
kernel: Add a memattr argument to vm_page_alloc_contig()
Sepherosa Ziehau [Thu, 8 Aug 2013 14:28:50 +0000 (22:28 +0800)]
route/inet: Add comment about read/write shared global variables
Sepherosa Ziehau [Thu, 8 Aug 2013 14:25:02 +0000 (22:25 +0800)]
route/inet: Dispatch PRCLONed route expiration to netisr
Sepherosa Ziehau [Thu, 8 Aug 2013 14:23:04 +0000 (22:23 +0800)]
pmap/i386: Unbreak buildkernel
- Comment out pmap_change_attr function call. Add notes about what
needs fix.
- Minor style change.
Sascha Wildner [Thu, 8 Aug 2013 12:32:03 +0000 (14:32 +0200)]
libc/db: Add missing MLINK for mpool_delete().
François Tigeot [Thu, 8 Aug 2013 11:49:08 +0000 (13:49 +0200)]
Avoid potentially freeing NULL pointers in dmi_found()
François Tigeot [Tue, 6 Aug 2013 09:44:51 +0000 (11:44 +0200)]
kernel: Add pmap_page_set_memattr()
Obtained-from: FreeBSD
François Tigeot [Thu, 8 Aug 2013 08:48:59 +0000 (10:48 +0200)]
drm: Improve dmi_found()
* The OpenBSD code didn't distinguish between board and system names as
well as board and system vendors
* Properly release memory allocated by kgetenv() while I'm at it
François Tigeot [Thu, 8 Aug 2013 06:28:44 +0000 (08:28 +0200)]
kernel: Add VM_MAX_ADDRESS and VM_MIN_ADDRESS constants
François Tigeot [Thu, 8 Aug 2013 05:33:21 +0000 (07:33 +0200)]
drm: Use NELEM() in dmi_check_system()
Spotted-by: swildner
François Tigeot [Wed, 7 Aug 2013 16:55:41 +0000 (18:55 +0200)]
drm: Implement dmi_check_system()
* The original function imported from FreeBSD was just a stub
* Replace it by a working implementation from OpenBSD
* And modify it slightly to use SMBIOS information from the loader
* This makes it possible to avoid display detection issues on some
slightly broken hardware reporting phantom outputs or other weird
invalid data.
Sepherosa Ziehau [Wed, 7 Aug 2013 14:39:53 +0000 (22:39 +0800)]
igb.4: This driver is not much related to em/emx
Sepherosa Ziehau [Wed, 7 Aug 2013 13:58:33 +0000 (21:58 +0800)]
bnx.4: Add missing .El
Sepherosa Ziehau [Wed, 7 Aug 2013 13:49:08 +0000 (21:49 +0800)]
bnx.4: Add HARDWARE section