dragonfly.git
10 years agovkernel - Module loading for vkernel64
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

10 years agokernel - Add missing reltoken/LWPRELE in signal error path
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.

10 years agoUpdate the pciconf(8) database.
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/

10 years agohammer - Fix filesystem selection path bug in cleanup directive
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).

10 years agokernel/linux: Use #ifdef (fixes -Wundef).
Sascha Wildner [Wed, 14 Aug 2013 21:41:02 +0000 (23:41 +0200)]
kernel/linux: Use #ifdef (fixes -Wundef).

10 years agomps.4: Sync with FreeBSD to document the current state of affairs.
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.

10 years agocputimer: Allow MP synchronized TSC to become cputimer on i386
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

10 years agodrm/i915: Use a spinlock for i915_file_priv locking
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

10 years agonrelease - Add delay before umounting
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.

10 years agosysctl_add_oid.9: Reduce diffs to Free a bit.
Sascha Wildner [Mon, 12 Aug 2013 20:04:19 +0000 (22:04 +0200)]
sysctl_add_oid.9: Reduce diffs to Free a bit.

10 years agoacpica: Fix buildworld issue introduced by previous commit
François Tigeot [Mon, 12 Aug 2013 17:39:40 +0000 (19:39 +0200)]
acpica: Fix buildworld issue introduced by previous commit

10 years agoacpica: Replace some include paths by full ones
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

10 years agokernel: Import pci_save_state and pci_restore_state from FreeBSD
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

10 years agokernel: Add bitcount32 to sys/systm.h
François Tigeot [Sat, 10 Aug 2013 17:22:20 +0000 (19:22 +0200)]
kernel: Add bitcount32 to sys/systm.h

10 years agodrm2: Remove dubious AGP locks
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.

10 years agodrm2: remove DRM_SPINXXX macros
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

10 years agouipc: Set up netmsg's socket properly before perform notify abort
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

10 years agokernel/x86_64: Display Standard Extended Features during CPU setup.
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
10 years agoiicbb: Update from FreeBSD
François Tigeot [Sat, 10 Aug 2013 15:15:14 +0000 (17:15 +0200)]
iicbb: Update from FreeBSD

10 years agotest: Test push
Sepherosa Ziehau [Sun, 11 Aug 2013 12:23:11 +0000 (20:23 +0800)]
test: Test push

10 years agoFix two prototypes in manual pages.
Sascha Wildner [Sun, 11 Aug 2013 01:42:51 +0000 (03:42 +0200)]
Fix two prototypes in manual pages.

10 years agokernel: Start removing syslink.
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
10 years agoGC a manpage backup that was created by passing -b when installing it.
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.

10 years agoshare/mk: Fix the creation of MLINKS for manpages of fschg'd stuff.
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.

10 years agoporting_drivers.txt: Reword the part about SVN IDs a bit.
Sascha Wildner [Sat, 10 Aug 2013 09:26:21 +0000 (11:26 +0200)]
porting_drivers.txt: Reword the part about SVN IDs a bit.

10 years agokernel: Adjust some header comments. SMP is default now for a while.
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.

10 years agoReduce diffs between GENERIC/X86_64_GENERIC a bit.
Sascha Wildner [Sat, 10 Aug 2013 09:11:36 +0000 (11:11 +0200)]
Reduce diffs between GENERIC/X86_64_GENERIC a bit.

10 years agoFix some prototypes in manpage synopses.
Sascha Wildner [Sat, 10 Aug 2013 08:39:53 +0000 (10:39 +0200)]
Fix some prototypes in manpage synopses.

10 years agostringlist.3: Fix prototype in the SYNOPSIS.
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.

10 years agoudev_enumerate.3: Fix prototypes in the SYNOPSIS.
Sascha Wildner [Fri, 9 Aug 2013 20:58:35 +0000 (22:58 +0200)]
udev_enumerate.3: Fix prototypes in the SYNOPSIS.

10 years agosystimer.9: 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.

10 years agobuild - Support INSTALLFLAGS for manual pages
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.

10 years agokernacc.9: Fix prototypes in the SYNOPSIS.
Sascha Wildner [Fri, 9 Aug 2013 17:10:00 +0000 (19:10 +0200)]
kernacc.9: Fix prototypes in the SYNOPSIS.

10 years agohexdump.[39]: 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.

10 years agoftpio.3: 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.

10 years agokernel: Add pmap_page_set_memattr() stubs for the vkernel platforms
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

10 years agoTest commit
Sascha Wildner [Fri, 9 Aug 2013 12:06:29 +0000 (14:06 +0200)]
Test commit

10 years agotest - test commit
Matthew Dillon [Fri, 9 Aug 2013 06:15:15 +0000 (23:15 -0700)]
test - test commit

10 years agokernel/libutil: UNIX98_PTYS has been default long enough, remove defines.
Sascha Wildner [Thu, 8 Aug 2013 20:56:42 +0000 (22:56 +0200)]
kernel/libutil: UNIX98_PTYS has been default long enough, remove defines.

10 years agodoc: Update porting_drivers.txt
François Tigeot [Mon, 5 Aug 2013 20:22:52 +0000 (22:22 +0200)]
doc: Update porting_drivers.txt

10 years agottm porting: Small changes (3/3)
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()

10 years agottm porting: Small changes (2/3)
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

10 years agottm porting: Small changes (1/3)
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]

10 years agottm porting: Fix vm_page_alloc_contig() calls
François Tigeot [Wed, 7 Aug 2013 07:54:47 +0000 (09:54 +0200)]
ttm porting: Fix vm_page_alloc_contig() calls

10 years agottm porting: msleep => lksleep
François Tigeot [Tue, 6 Aug 2013 06:38:18 +0000 (08:38 +0200)]
ttm porting: msleep => lksleep

10 years agottm porting: Translate locking primitives
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.

10 years agottm porting: malloc / free / printf
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()

10 years agottm porting: MPASS -> KKASSERT
François Tigeot [Mon, 5 Aug 2013 18:28:00 +0000 (20:28 +0200)]
ttm porting: MPASS -> KKASSERT

10 years agottm porting: Fix include files
François Tigeot [Wed, 7 Aug 2013 09:38:05 +0000 (11:38 +0200)]
ttm porting: Fix include files

10 years agodrm: Import the ttm memory manager from FreeBSD
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

10 years agodrm: Locally implement VM_OBJECT_LOCK variants
François Tigeot [Thu, 8 Aug 2013 15:51:25 +0000 (17:51 +0200)]
drm: Locally implement VM_OBJECT_LOCK variants

10 years agodrm: Move PROC_LOCK define to common file
François Tigeot [Wed, 7 Aug 2013 15:19:24 +0000 (17:19 +0200)]
drm: Move PROC_LOCK define to common file

10 years agokernel: Add a memattr argument to vm_page_alloc_contig()
François Tigeot [Wed, 7 Aug 2013 12:36:50 +0000 (14:36 +0200)]
kernel: Add a memattr argument to vm_page_alloc_contig()

10 years agoroute/inet: Add comment about read/write shared global variables
Sepherosa Ziehau [Thu, 8 Aug 2013 14:28:50 +0000 (22:28 +0800)]
route/inet: Add comment about read/write shared global variables

10 years agoroute/inet: Dispatch PRCLONed route expiration to netisr
Sepherosa Ziehau [Thu, 8 Aug 2013 14:25:02 +0000 (22:25 +0800)]
route/inet: Dispatch PRCLONed route expiration to netisr

10 years agopmap/i386: Unbreak buildkernel
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.

10 years agolibc/db: Add missing MLINK for mpool_delete().
Sascha Wildner [Thu, 8 Aug 2013 12:32:03 +0000 (14:32 +0200)]
libc/db: Add missing MLINK for mpool_delete().

10 years agoAvoid potentially freeing NULL pointers in dmi_found()
François Tigeot [Thu, 8 Aug 2013 11:49:08 +0000 (13:49 +0200)]
Avoid potentially freeing NULL pointers in dmi_found()

10 years agokernel: Add pmap_page_set_memattr()
François Tigeot [Tue, 6 Aug 2013 09:44:51 +0000 (11:44 +0200)]
kernel: Add pmap_page_set_memattr()

Obtained-from: FreeBSD

10 years agodrm: Improve dmi_found()
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

10 years agokernel: Add VM_MAX_ADDRESS and VM_MIN_ADDRESS constants
François Tigeot [Thu, 8 Aug 2013 06:28:44 +0000 (08:28 +0200)]
kernel: Add VM_MAX_ADDRESS and VM_MIN_ADDRESS constants

10 years agodrm: Use NELEM() in dmi_check_system()
François Tigeot [Thu, 8 Aug 2013 05:33:21 +0000 (07:33 +0200)]
drm: Use NELEM() in dmi_check_system()

Spotted-by: swildner
10 years agodrm: Implement dmi_check_system()
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.

10 years agoigb.4: This driver is not much related to em/emx
Sepherosa Ziehau [Wed, 7 Aug 2013 14:39:53 +0000 (22:39 +0800)]
igb.4: This driver is not much related to em/emx

10 years agobnx.4: Add missing .El
Sepherosa Ziehau [Wed, 7 Aug 2013 13:58:33 +0000 (21:58 +0800)]
bnx.4: Add missing .El

10 years agobnx.4: Add HARDWARE section
Sepherosa Ziehau [Wed, 7 Aug 2013 13:49:08 +0000 (21:49 +0800)]
bnx.4: Add HARDWARE section

10 years agobnx.4: Mention 5717C, which is quite similar to 5720
Sepherosa Ziehau [Wed, 7 Aug 2013 13:37:58 +0000 (21:37 +0800)]
bnx.4: Mention 5717C, which is quite similar to 5720

10 years agoshare/man/man9/Makefile: Keep MLINKS lines sorted.
Sascha Wildner [Wed, 7 Aug 2013 09:14:53 +0000 (11:14 +0200)]
share/man/man9/Makefile: Keep MLINKS lines sorted.

10 years agohammer2 - Add missing bzero() (2)
Matthew Dillon [Wed, 7 Aug 2013 03:14:48 +0000 (20:14 -0700)]
hammer2 - Add missing bzero() (2)

* Fix type-o

10 years agohammer2 - Add missing bzero()
Matthew Dillon [Wed, 7 Aug 2013 03:13:29 +0000 (20:13 -0700)]
hammer2 - Add missing bzero()

* In hammer2_chain_load_async_callback() we have to bzero the buffer
  if the chain is still in the INITIAL state.

10 years agohammer2 - Add missing bqrelse()
Matthew Dillon [Wed, 7 Aug 2013 03:07:44 +0000 (20:07 -0700)]
hammer2 - Add missing bqrelse()

* Add missing bqrelse() in hammer2_chain_load_async()

Reported-by: iostream
10 years agokprintf.9: %D was removed, so don't mention it.
Sascha Wildner [Tue, 6 Aug 2013 17:00:26 +0000 (19:00 +0200)]
kprintf.9: %D was removed, so don't mention it.

10 years agoarp: Dispatch arp cache expiration operation to netisr
Sepherosa Ziehau [Tue, 6 Aug 2013 14:10:50 +0000 (22:10 +0800)]
arp: Dispatch arp cache expiration operation to netisr

10 years agopthread.3: Fix typo from previous commit.
Sascha Wildner [Tue, 6 Aug 2013 11:53:52 +0000 (13:53 +0200)]
pthread.3: Fix typo from previous commit.

10 years agopthread.3: add pthread barrier routines
Joris GIOVANNANGELI [Tue, 6 Aug 2013 07:15:27 +0000 (09:15 +0200)]
pthread.3: add pthread barrier routines

10 years agokernel - Adjust impossible conditions in kdmsg_state_*()
Matthew Dillon [Tue, 6 Aug 2013 06:22:56 +0000 (23:22 -0700)]
kernel - Adjust impossible conditions in kdmsg_state_*()

* kdmsg_state_reply() and kdmsg_state_result() require a non-NULL state.
  Assert the condition and remove the else clause that was broken in the
  first place.

Reported-by: Joris giovannang
10 years agohammer2 - Fix freemap bugs
Matthew Dillon [Tue, 6 Aug 2013 05:50:51 +0000 (22:50 -0700)]
hammer2 - Fix freemap bugs

* The linear iterator must not be used if aligned on an allocation
  chunk (16K) boundary.  Reserved areas just set the bitmap to all 1's
  but were leaving the iterator set to 0.  Fix both the boundary check
  and initialized bmap->linear for reserved areas to HAMMER2_SEGSIZE.

  This fixes a corruption issue where allocates were being made out of
  reserved areas and then overwritten by e.g. the freemap, and where
  the linear iterator would reallocate areas already allocated via the
  bitmap.

* Fix the code which marks device bufferse B_CACHE when freshly allocated.
  It wasn't handling the 32KB case properly.

* Our pre-caching gets and releases a block.  B_CACHE must be used in addition
  to calling vfs_bio_clrbuf() because we aren't holding onto the locked buffer.

10 years agohammer2 - fix crash in temporary code
Matthew Dillon [Tue, 6 Aug 2013 04:43:06 +0000 (21:43 -0700)]
hammer2 - fix crash in temporary code

* Fix a crash in the not-yet-working inode stats rollup code.

10 years agohammer2 - temorarily track free space (3)
Matthew Dillon [Tue, 6 Aug 2013 00:10:22 +0000 (17:10 -0700)]
hammer2 - temorarily track free space (3)

* Correct type-o, add missing assignment.

10 years agohammer2 - temorarily track free space (2)
Matthew Dillon [Tue, 6 Aug 2013 00:08:37 +0000 (17:08 -0700)]
hammer2 - temorarily track free space (2)

* Move the tracking to a better spot

10 years agohammer2 - temorarily track free space
Matthew Dillon [Mon, 5 Aug 2013 23:44:30 +0000 (16:44 -0700)]
hammer2 - temorarily track free space

* Temorarily track free space in the volume header.  This code will
  eventually inherit from the flush so it is properly synchronized to
  the transaction id.

10 years agohammer2 - Adjustments for freemap changes
Matthew Dillon [Mon, 5 Aug 2013 23:20:34 +0000 (16:20 -0700)]
hammer2 - Adjustments for freemap changes

* Adjustments to hammer2 debug/show stuff for freemap changes.

10 years agohammer2 - Change freemap segment delineation, other stuff
Matthew Dillon [Mon, 5 Aug 2013 22:46:07 +0000 (15:46 -0700)]
hammer2 - Change freemap segment delineation, other stuff

* Change the freemap delineation to encode the BREF type as
  well as the radix, in order to avoid mixing data and meta-data
  types together in the same device buffer.

* Reorganize the freemap to remove one indirection level.  Reserve
  two bits per block instead of one.  Change bitmap granularity to 16KB
  but leave allocation granularity at 1KB.

* Fix hammer2_devblksize() to match hammer2_devblkradix().

* Add hammer2_chain_iterate(), a chain iteration with a
  callback.

* Fix issue when hammer2_chain_get() is called with HAMMER2_LOOKUP_ALWAYS.

* Start working on proper statistics rollups during flush (not complete).

10 years agousb4bsd: Next attempt at fixing BIOS handoff for XHCI
Markus Pfeiffer [Sun, 2 Dec 2012 19:00:26 +0000 (19:00 +0000)]
usb4bsd: Next attempt at fixing BIOS handoff for XHCI

If the BIOS does not give up the XHCI, then force the takeover.
Linux does it that way. It might not be clean or correct, but
it works for the time being.
Conflicts:

sys/bus/pci/pci.c
sys/bus/u4b/controller/xhci_pci.c
sys/bus/u4b/controller/xhcireg.h

10 years agousb4bsd: more cleanup of superflous debug messages
Markus Pfeiffer [Sun, 2 Dec 2012 20:11:47 +0000 (20:11 +0000)]
usb4bsd: more cleanup of superflous debug messages

Conflicts:

sys/bus/u4b/usb_hub.c

10 years agousb4bsd: fix breakage caused by earlier commit
Markus Pfeiffer [Sun, 2 Dec 2012 19:07:42 +0000 (19:07 +0000)]
usb4bsd: fix breakage caused by earlier commit

10 years agousb4bsd: xhci cleanup
Markus Pfeiffer [Sat, 1 Dec 2012 21:39:52 +0000 (21:39 +0000)]
usb4bsd: xhci cleanup

Conflicts:

sys/bus/u4b/controller/xhci.c
sys/bus/u4b/controller/xhci_pci.c
sys/bus/u4b/controller/xhcireg.h

10 years agousb4bsd: Bring in fix for endpoint setup on Etron XHCI
Markus Pfeiffer [Sat, 1 Dec 2012 21:00:32 +0000 (21:00 +0000)]
usb4bsd: Bring in fix for endpoint setup on Etron XHCI

This makes usb2 devices work on Etron xhci controllers. The Etron controller expects the maximum valid endpoint to be set in the slot context when an endpoint is configured.

This patch has gone into FreeBSD as well.

Conflicts:

sys/bus/u4b/controller/xhci.c

10 years agousb4bsd, pci: pull in bios takeover code from FreeBSD
Markus Pfeiffer [Mon, 5 Nov 2012 21:00:49 +0000 (21:00 +0000)]
usb4bsd, pci: pull in bios takeover code from FreeBSD

Submitted-By: swildner
10 years agousb4bsd: Fix EHCI
Markus Pfeiffer [Wed, 31 Oct 2012 23:06:40 +0000 (23:06 +0000)]
usb4bsd: Fix EHCI

This is a part of the sync with FreeBSD svn r242385

10 years agousb4bsd: Fix scsi sense handling in umass
Markus Pfeiffer [Wed, 31 Oct 2012 03:55:02 +0000 (03:55 +0000)]
usb4bsd: Fix scsi sense handling in umass

10 years agousb4bsd: sync with FreeBSD svn r242385
Markus Pfeiffer [Tue, 30 Oct 2012 22:39:07 +0000 (22:39 +0000)]
usb4bsd: sync with FreeBSD svn r242385

10 years agousb4bsd: Add detection for Etron EJ168 controller
Markus Pfeiffer [Mon, 29 Oct 2012 00:45:52 +0000 (00:45 +0000)]
usb4bsd: Add detection for Etron EJ168 controller

10 years agokernel: Move some header files to the drivers that only need them.
Sascha Wildner [Mon, 5 Aug 2013 19:37:54 +0000 (21:37 +0200)]
kernel: Move some header files to the drivers that only need them.

10 years agokernel: Remove some unused externs.
Sascha Wildner [Mon, 5 Aug 2013 18:24:02 +0000 (20:24 +0200)]
kernel: Remove some unused externs.

10 years agosocket: SO_LINGER only affects sockets that have been connected
Sepherosa Ziehau [Mon, 5 Aug 2013 15:11:24 +0000 (23:11 +0800)]
socket: SO_LINGER only affects sockets that have been connected

10 years agoUpdate UPDATING a bit.
Sascha Wildner [Mon, 5 Aug 2013 14:03:40 +0000 (16:03 +0200)]
Update UPDATING a bit.

10 years agoRemove some unused externs.
Sascha Wildner [Mon, 5 Aug 2013 11:48:48 +0000 (13:48 +0200)]
Remove some unused externs.

10 years agorp(4): Remove ISA attachment and some dead code, too.
Sascha Wildner [Mon, 5 Aug 2013 11:48:18 +0000 (13:48 +0200)]
rp(4): Remove ISA attachment and some dead code, too.

10 years agokernel/raid: Match xpt_alloc_ccb() and xpt_free_ccb() for rescan callbacks.
Sascha Wildner [Sun, 4 Aug 2013 20:24:17 +0000 (22:24 +0200)]
kernel/raid: Match xpt_alloc_ccb() and xpt_free_ccb() for rescan callbacks.