dragonfly.git
5 years agopci: Remove PC98 code
Sepherosa Ziehau [Sat, 4 Jul 2009 09:09:58 +0000 (17:09 +0800)]
pci: Remove PC98 code

5 years agopci: Put back PCI Express related bits
Sepherosa Ziehau [Sat, 4 Jul 2009 09:02:22 +0000 (17:02 +0800)]
pci: Put back PCI Express related bits

5 years agopci: Reorganize PCI capabilities' extraction
Sepherosa Ziehau [Sat, 4 Jul 2009 08:25:02 +0000 (16:25 +0800)]
pci: Reorganize PCI capabilities' extraction

5 years agopci: Put back header gardian in header files
Sepherosa Ziehau [Sat, 4 Jul 2009 07:19:09 +0000 (15:19 +0800)]
pci: Put back header gardian in header files

5 years agopci: Bring back 3f607eb6e6bf8981c33dc29fd477005f364fa9ce
Sepherosa Ziehau [Sat, 4 Jul 2009 07:07:51 +0000 (15:07 +0800)]
pci: Bring back 3f607eb6e6bf8981c33dc29fd477005f364fa9ce

5 years agopci: Bring back 72876ce0680bbb61ce6bedfb36f18004c36e99fc
Sepherosa Ziehau [Sat, 4 Jul 2009 07:06:20 +0000 (15:06 +0800)]
pci: Bring back 72876ce0680bbb61ce6bedfb36f18004c36e99fc

5 years agopci: Bring back 978400d3b04daf8f91ba8bb2dcc382a37ef632f4
Sepherosa Ziehau [Sat, 4 Jul 2009 06:53:17 +0000 (14:53 +0800)]
pci: Bring back 978400d3b04daf8f91ba8bb2dcc382a37ef632f4

5 years agopci: Bring back b0486c83a8f6492dcc8941711cccc6cc3d2dea03
Sepherosa Ziehau [Sat, 4 Jul 2009 05:50:56 +0000 (13:50 +0800)]
pci: Bring back b0486c83a8f6492dcc8941711cccc6cc3d2dea03

5 years agopci: Bring back part of dbcd0c9b8a52c489e134c81386c900b1338da9e4
Sepherosa Ziehau [Sat, 4 Jul 2009 05:46:43 +0000 (13:46 +0800)]
pci: Bring back part of dbcd0c9b8a52c489e134c81386c900b1338da9e4

5 years agopci: device_identify method returns int
Sepherosa Ziehau [Sat, 4 Jul 2009 05:44:36 +0000 (13:44 +0800)]
pci: device_identify method returns int

5 years agopci: Put back APIC_IO PCI interrupt routine workaround
Sepherosa Ziehau [Sat, 4 Jul 2009 05:02:49 +0000 (13:02 +0800)]
pci: Put back APIC_IO PCI interrupt routine workaround

5 years agoRevoke kreallocf()
Sepherosa Ziehau [Sat, 4 Jul 2009 04:33:34 +0000 (12:33 +0800)]
Revoke kreallocf()

5 years agopci: Don't test whether acpi module is loaded; acpi-pci is not ready to go yet
Sepherosa Ziehau [Sat, 4 Jul 2009 04:19:45 +0000 (12:19 +0800)]
pci: Don't test whether acpi module is loaded; acpi-pci is not ready to go yet

5 years agoSync PCI code with FreeBSD 7.2
Sepherosa Ziehau [Sat, 4 Jul 2009 03:32:50 +0000 (11:32 +0800)]
Sync PCI code with FreeBSD 7.2

Submitted-by: Alexander Polakov <polachok@gmail.com>
5 years agoAMD64 - Fix trapframe, intrframe, and user mode cpu accounting.
Matthew Dillon [Wed, 8 Jul 2009 06:22:45 +0000 (23:22 -0700)]
AMD64 - Fix trapframe, intrframe, and user mode cpu accounting.

* Fix broken CLKF_USERMODE macro.  This was causing the cpu accounting
  code to mis-detect usermode interrupt frames.

* Fix trapframe, it was missing a field and not matching up against intrframe.
  This caused a bad intrframe to be passed to doreti.

* Fix calls to lwkt_process_ipiq_frame from doreti.  The intrframe was off
  by 8 bytes.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 8 Jul 2009 03:15:15 +0000 (20:15 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoAMD64 - Fix bug in pmap_release_free_page()
Matthew Dillon [Wed, 8 Jul 2009 03:13:31 +0000 (20:13 -0700)]
AMD64 - Fix bug in pmap_release_free_page()

The pmap_release_free_page() function was improperly conditionalizing
a test for (pindex == NUPDE + NUPDPE + PML4PML4I) which caused it to
fall through to an else clause, instead of doing nothing.  Make it
do nothing.

This fixes a hold count panic.

5 years agoAMD64 - Enable floating point context switching
Matthew Dillon [Wed, 8 Jul 2009 03:12:52 +0000 (20:12 -0700)]
AMD64 - Enable floating point context switching

The FP code was only partially enabled.  Enable all the code.  This fixes
FP context switching between user processes.

5 years agoAMD64 - stop the backtrace if the stack address is too low.
Matthew Dillon [Wed, 8 Jul 2009 03:11:28 +0000 (20:11 -0700)]
AMD64 - stop the backtrace if the stack address is too low.

Stop the backtrace if the stack address is too low.  This fixes at least
one panic when the debugger is asked to print kernel stack backtraces.

5 years agoJG64 - include ahci, sili, and usb devices
Matthew Dillon [Wed, 8 Jul 2009 03:10:46 +0000 (20:10 -0700)]
JG64 - include ahci, sili, and usb devices

5 years agohammerread.c: Fix WARNS regression (unused variable).
Sascha Wildner [Tue, 7 Jul 2009 22:09:27 +0000 (00:09 +0200)]
hammerread.c: Fix WARNS regression (unused variable).

5 years agoMerge commit 'smtms/amd64'
Matthew Dillon [Tue, 7 Jul 2009 18:19:59 +0000 (11:19 -0700)]
Merge commit 'smtms/amd64'

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Tue, 7 Jul 2009 18:02:40 +0000 (11:02 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoVKERNEL - vkernel test build, build SMP
Matthew Dillon [Tue, 7 Jul 2009 17:55:35 +0000 (10:55 -0700)]
VKERNEL - vkernel test build, build SMP

* Vkernel is built SMP by default, set default number of cpus to 2.

* Provide environment or make variable overrides for NCPUS and PHYSMEM.

* Change network default to /dev/vknet (for use w/ DHCP) instead of
  hardwiring 10.3.1.1.

5 years agombwtest - Attempt to detect the L3 cache.
Matthew Dillon [Tue, 7 Jul 2009 17:54:45 +0000 (10:54 -0700)]
mbwtest - Attempt to detect the L3 cache.

Attempt to detect the L3 cache.  This doesn't work very well yet.

5 years agoBOOT2 - adjust hammerread code to understand the new directory localization cap.
Matthew Dillon [Tue, 7 Jul 2009 17:53:41 +0000 (10:53 -0700)]
BOOT2 - adjust hammerread code to understand the new directory localization cap.

5 years agoAHCI - Set AE before doing hard reset (HR).
Matthew Dillon [Tue, 7 Jul 2009 17:51:20 +0000 (10:51 -0700)]
AHCI - Set AE before doing hard reset (HR).

NOTE on AE before HR. This is against the spec which neither
indicates nor implies any such requirement, but both the linux
and freebsd drivers do it so we will too.

5 years agoMerge branch 'master' of /home/www-data/gitweb/dragonfly
Peter Avalos [Mon, 6 Jul 2009 21:23:17 +0000 (11:23 -1000)]
Merge branch 'master' of /home/www-data/gitweb/dragonfly

5 years agoRemove tcpslice(1).
Peter Avalos [Mon, 6 Jul 2009 21:18:02 +0000 (11:18 -1000)]
Remove tcpslice(1).

The code is fairly ancient, and if people want it they can get it from
pkgsrc.

5 years ago"Sync" threading libaries.
Hasso Tepper [Mon, 6 Jul 2009 21:11:04 +0000 (00:11 +0300)]
"Sync" threading libaries.

* Introduce stubs returning error into libc_r for functions which don't
  exist there, but are there in libthread_xu.
* Compile POSIX spinlocks implementation in libthread_xu.
* Define _POSIX_BARRIERS and _POSIX_SPIN_LOCKS and modify sysconf(3)
  accordingly.

5 years agoffs.3: Fix SYNOPSIS.
Sascha Wildner [Mon, 6 Jul 2009 20:21:46 +0000 (22:21 +0200)]
ffs.3: Fix SYNOPSIS.

5 years agogetrlimit.2: Markup fixes.
Stathis Kamperis [Mon, 6 Jul 2009 19:26:36 +0000 (22:26 +0300)]
getrlimit.2: Markup fixes.

Reviewed-by: swildner@
5 years agoinstaller: Remove part that wasn't meant to be committed.
Sascha Wildner [Mon, 6 Jul 2009 17:12:45 +0000 (19:12 +0200)]
installer: Remove part that wasn't meant to be committed.

5 years agoinstaller: Fix configuration of a HAMMER system with UFS /boot.
Sascha Wildner [Mon, 6 Jul 2009 17:02:04 +0000 (19:02 +0200)]
installer: Fix configuration of a HAMMER system with UFS /boot.

The only thing we can rely upon is that /boot is partition a. So for
determining which partition is /, take a peek at /boot/loader.conf
for now.

While here, simplify the mounting part a bit.

Reported-by: dillon, hasso
5 years agoMerge branch 'master' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 15:17:09 +0000 (18:17 +0300)]
Merge branch 'master' into amd64

5 years agoMerge commit 'f447e7925783f3867b00d2b9cbd27f896a99205f' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 14:55:02 +0000 (17:55 +0300)]
Merge commit 'f447e7925783f3867b00d2b9cbd27f896a99205f' into amd64

5 years agoMerge commit '973c11b9c3cdde88fe6ca0ef2c5af56a8c49e014' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 14:54:20 +0000 (17:54 +0300)]
Merge commit '973c11b9c3cdde88fe6ca0ef2c5af56a8c49e014' into amd64

5 years agoMerge commit '1276d1e1a1b128f7093a3021d3f6bc27afa80d23' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 14:47:52 +0000 (17:47 +0300)]
Merge commit '1276d1e1a1b128f7093a3021d3f6bc27afa80d23' into amd64

5 years agoamd64: Change the way I/O APIC's are mapped.
Jordan Gordeev [Sat, 4 Jul 2009 19:38:53 +0000 (22:38 +0300)]
amd64: Change the way I/O APIC's are mapped.

5 years agoamd64: Fix UP kernel build.
Jordan Gordeev [Mon, 6 Jul 2009 12:42:50 +0000 (15:42 +0300)]
amd64: Fix UP kernel build.

5 years agoamd64: Use proper size for atomic ops.
Jordan Gordeev [Mon, 6 Jul 2009 10:46:07 +0000 (13:46 +0300)]
amd64: Use proper size for atomic ops.

5 years agoamd64: Properly size an array for SMP.
Jordan Gordeev [Mon, 6 Jul 2009 10:33:17 +0000 (13:33 +0300)]
amd64: Properly size an array for SMP.

5 years agoamd64: Correct an omission.
Jordan Gordeev [Mon, 6 Jul 2009 12:15:35 +0000 (15:15 +0300)]
amd64: Correct an omission.

5 years agoamd64: Fix invocations of setidt().
Jordan Gordeev [Mon, 6 Jul 2009 10:25:53 +0000 (13:25 +0300)]
amd64: Fix invocations of setidt().
setidt() has different interface on i386 and amd64.

5 years agoamd64: Fixes for init_secondary().
Jordan Gordeev [Mon, 6 Jul 2009 10:24:23 +0000 (13:24 +0300)]
amd64: Fixes for init_secondary().

5 years agoamd64: Use the proper form of 'iret' to return from interrupt handlers.
Jordan Gordeev [Mon, 6 Jul 2009 09:58:49 +0000 (12:58 +0300)]
amd64: Use the proper form of 'iret' to return from interrupt handlers.

5 years agoamd64: Fix improper saving of a register.
Jordan Gordeev [Mon, 6 Jul 2009 09:43:00 +0000 (12:43 +0300)]
amd64: Fix improper saving of a register.
%esi is not guaranteed to be preserved across function calls.

5 years agoamd64: Update cpu_mfence(), cpu_lfence(), cpu_sfence() for SMP.
Jordan Gordeev [Sun, 5 Jul 2009 16:08:23 +0000 (19:08 +0300)]
amd64: Update cpu_mfence(), cpu_lfence(), cpu_sfence() for SMP.

5 years agoamd64: Help mptable_pass2() find and read the mptable.
Jordan Gordeev [Mon, 6 Jul 2009 12:12:53 +0000 (15:12 +0300)]
amd64: Help mptable_pass2() find and read the mptable.

5 years agoamd64: Call mptable_pass2().
Jordan Gordeev [Mon, 6 Jul 2009 11:14:29 +0000 (14:14 +0300)]
amd64: Call mptable_pass2().

5 years agoamd64: Map the local APIC.
Jordan Gordeev [Fri, 3 Jul 2009 19:23:20 +0000 (22:23 +0300)]
amd64: Map the local APIC.
Introduce a new function - pmap_mapdev_uncacheable(). It's a copy of pmap_mapdev(), but creates PT entries that disable caching.
Use pmap_mapdev_uncacheable() when mapping the local APIC.

5 years agoamd64: Sync mp_bootaddress() with FreeBSD.
Jordan Gordeev [Mon, 6 Jul 2009 11:12:33 +0000 (14:12 +0300)]
amd64: Sync mp_bootaddress() with FreeBSD.
Changed to match invocation in 'machdep.c'.

5 years agoamd64: Don't forget to call mp_probe().
Jordan Gordeev [Fri, 3 Jul 2009 18:38:48 +0000 (21:38 +0300)]
amd64: Don't forget to call mp_probe().

5 years agoamd64: Allow search_for_sig() to return 64-bit quantities.
Jordan Gordeev [Fri, 3 Jul 2009 18:16:26 +0000 (21:16 +0300)]
amd64: Allow search_for_sig() to return 64-bit quantities.

5 years agoamd64: Fix improper types in description of mptable structures.
Jordan Gordeev [Mon, 6 Jul 2009 11:06:35 +0000 (14:06 +0300)]
amd64: Fix improper types in description of mptable structures.

5 years agoMerge branch 'vendor/TCPDUMP' and update build for the update.
Peter Avalos [Mon, 6 Jul 2009 09:40:53 +0000 (23:40 -1000)]
Merge branch 'vendor/TCPDUMP' and update build for the update.

While I'm here, get rid of the *patch files for tcpdump, and just patch
the actual source in contrib/tcpdump/.

5 years agoUpgrade to tcpdump-4.0.0.
Peter Avalos [Mon, 6 Jul 2009 07:44:17 +0000 (21:44 -1000)]
Upgrade to tcpdump-4.0.0.

5 years agoAdd missing definition for RLIMIT_AS resource.
Stathis Kamperis [Tue, 26 May 2009 11:11:54 +0000 (14:11 +0300)]
Add missing definition for RLIMIT_AS resource.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1328>

5 years agoAdd README.DELETED to the tcpdump vendor branch.
Peter Avalos [Mon, 6 Jul 2009 07:06:29 +0000 (21:06 -1000)]
Add README.DELETED to the tcpdump vendor branch.

5 years agoMerge branch 'vendor/LIBPCAP' and updated build for new version.
Peter Avalos [Mon, 6 Jul 2009 06:11:42 +0000 (20:11 -1000)]
Merge branch 'vendor/LIBPCAP' and updated build for new version.

5 years agoUpdate to libpcap-1.0.0.
Peter Avalos [Mon, 6 Jul 2009 00:17:07 +0000 (14:17 -1000)]
Update to libpcap-1.0.0.

5 years agoAdd 'hammer info' command that shows extended information about mounted HAMMER fs.
Antonio Huete [Sun, 5 Jul 2009 00:36:48 +0000 (02:36 +0200)]
Add 'hammer info' command that shows extended information about mounted HAMMER fs.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 5 Jul 2009 16:31:48 +0000 (09:31 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agorc.d/mountd: Bring in some fixes from FreeBSD
Sascha Wildner [Sun, 5 Jul 2009 12:41:29 +0000 (14:41 +0200)]
rc.d/mountd: Bring in some fixes from FreeBSD

* Add shutdown keyword.

* Use PID file.

* Use checkyesno for nfs_server_enable.

* Instead of mountd_flags use rc_flags to override mountd_flags' value.

5 years agosysctl.h should include kernel.h
Aggelos Economopoulos [Sun, 5 Jul 2009 10:57:34 +0000 (13:57 +0300)]
sysctl.h should include kernel.h

Noticed-by: Robert Luciani <rluciani@gmail.com>
5 years agoMerge branch 'vendor/TCPDUMP'
Peter Avalos [Sat, 4 Jul 2009 21:45:21 +0000 (11:45 -1000)]
Merge branch 'vendor/TCPDUMP'

5 years agoMerge branch 'vendor/TCPDUMP' (early part)
Peter Avalos [Sat, 4 Jul 2009 21:44:53 +0000 (11:44 -1000)]
Merge branch 'vendor/TCPDUMP' (early part)

5 years agoMove tcpdump-3.9/ to tcpdump/. No need for a versioned dir.
Peter Avalos [Sat, 4 Jul 2009 21:36:18 +0000 (11:36 -1000)]
Move tcpdump-3.9/ to tcpdump/.  No need for a versioned dir.

5 years agoRemove old versions of tcpdump.
Peter Avalos [Sat, 4 Jul 2009 21:35:49 +0000 (11:35 -1000)]
Remove old versions of tcpdump.

5 years agoAdd README.DELETED to libpcap's vendor branch.
Peter Avalos [Sat, 4 Jul 2009 21:32:36 +0000 (11:32 -1000)]
Add README.DELETED to libpcap's vendor branch.

5 years agoMerge branch 'vendor/LIBPCAP'
Peter Avalos [Sat, 4 Jul 2009 21:26:17 +0000 (11:26 -1000)]
Merge branch 'vendor/LIBPCAP'

5 years agoMerge branch 'vendor/LIBPCAP' (early part)
Peter Avalos [Sat, 4 Jul 2009 21:05:10 +0000 (11:05 -1000)]
Merge branch 'vendor/LIBPCAP' (early part)

5 years agoRemove extra whitespace and fix types in some manual pages.
Sascha Wildner [Sat, 4 Jul 2009 20:27:30 +0000 (22:27 +0200)]
Remove extra whitespace and fix types in some manual pages.

5 years agoMove libpcap-0.9/ to libpcap. No need to version the directory.
Peter Avalos [Sat, 4 Jul 2009 20:18:39 +0000 (10:18 -1000)]
Move libpcap-0.9/ to libpcap.  No need to version the directory.

5 years agoRemove old versions of libpcap.
Peter Avalos [Sat, 4 Jul 2009 20:17:05 +0000 (10:17 -1000)]
Remove old versions of libpcap.

5 years agoUSB - Fix mis-cast in EHCI producing garbage on console
Matthew Dillon [Fri, 3 Jul 2009 21:38:50 +0000 (14:38 -0700)]
USB - Fix mis-cast in EHCI producing garbage on console

EHCI was improperly interpreting the companion bus softc pointer,
causing it to report junk on the console.

Reported-by: Alexander Polakov <polachok@gmail.com>
5 years agofrevoke - More fixes to fdfree()
Matthew Dillon [Fri, 3 Jul 2009 17:48:26 +0000 (10:48 -0700)]
frevoke - More fixes to fdfree()

* Don't replace p->p_fd until after all closef()'s have been called.  Fixed
  panic in kqueue's close function.

* Move softrefs check to after the closef point, but before we actually
  start kfree()ing the structures.  Lock the closef's normally since
  p->p_fd is still valid.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 3 Jul 2009 16:44:28 +0000 (09:44 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoHAMMER - Formalize the maximum number of volumes (256).
Matthew Dillon [Fri, 3 Jul 2009 16:43:11 +0000 (09:43 -0700)]
HAMMER - Formalize the maximum number of volumes (256).

Formalize the maximum number of volumes (256) by adding a define in
hammer_disk.h and then using it.

Submitted-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
5 years agoAdd a wrapper script to allow "foreign" compilers into our build system.
Sascha Wildner [Fri, 3 Jul 2009 12:03:54 +0000 (14:03 +0200)]
Add a wrapper script to allow "foreign" compilers into our build system.

With this commit, all CCVER values not associated with a compiler in
base will be relegated to the wrapper script which then (in conjunction
with the compilers.conf file) determines which non-base compiler to
use.

So far, defaults for clang (built from SVN) and pkgsrc/wip/gcc44 are
provided.

For more info see the compilers.conf(5) manual page and my mail on
kernel@:

http://leaf.dragonflybsd.org/mailarchive/kernel/2009-06/msg00013.html

5 years agohammer.sh: Sync with some of the recent installer changes.
Sascha Wildner [Fri, 3 Jul 2009 00:22:44 +0000 (02:22 +0200)]
hammer.sh: Sync with some of the recent installer changes.

* Use disklabel64(8).

* Do the 'chflags nohistory ...' after the cpdups to not have cpdup
  overwrite the flags again.

5 years agoinstaller: Use disklabel64 for the UFS only install, too.
Sascha Wildner [Thu, 2 Jul 2009 23:45:16 +0000 (01:45 +0200)]
installer: Use disklabel64 for the UFS only install, too.

Discussed-with: dillon, corecode

5 years agoinstaller: Move the 'chflags nohistory ...' commands behind the cpdups.
Sascha Wildner [Thu, 2 Jul 2009 21:52:49 +0000 (23:52 +0200)]
installer: Move the 'chflags nohistory ...' commands behind the cpdups.

This works around the issue that cpdup resets the flags if changed
before.

Reported-by: corecode
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1259>

5 years agofile descriptor enumeration - Fix races
Matthew Dillon [Thu, 2 Jul 2009 19:02:17 +0000 (12:02 -0700)]
file descriptor enumeration - Fix races

Add a soft refrence count, fd_softrefs, to struct filedesc.  This is
used to prevent the filedesc from being ripped out from under a file
descriptor scan via the allproc scan, which is used to enumerate
file descriptors and also used by the revoke code.

Reported-by: hasso
5 years agoSILI - Fix embarassing bug for non-NCQ disk accesses > 128G
Matthew Dillon [Thu, 2 Jul 2009 02:48:22 +0000 (19:48 -0700)]
SILI - Fix embarassing bug for non-NCQ disk accesses > 128G

Fix an embarassing bug for non-NCQ disk accesses > 128G.  This only
applied to non-NCQ accesses for disks and typically will not happen
with the SILI part since it can use NCQ for everything.  Non-NCQ
accesses for seek positions from 128G to 2TB were wrapping the LBA.

5 years agoAHCI - Fix embarassing bug for non-NCQ disk accesses > 128G
Matthew Dillon [Thu, 2 Jul 2009 02:46:50 +0000 (19:46 -0700)]
AHCI - Fix embarassing bug for non-NCQ disk accesses > 128G

Fix an embarassing bug for non-NCQ disk accesses > 128G.  This only
applied to non-NCQ accesses for disks which effectively means disks
behind a PM, since NCQ is generally used everywhere else.  Accesses
for seek positions from 128G to 2TB were wrapping the LBA.

5 years agosem_init.3: Some little mdoc cleanup.
Sascha Wildner [Wed, 1 Jul 2009 22:09:30 +0000 (00:09 +0200)]
sem_init.3: Some little mdoc cleanup.

5 years agoinstaller: Fix debugging function call.
Sascha Wildner [Wed, 1 Jul 2009 21:59:35 +0000 (23:59 +0200)]
installer: Fix debugging function call.

5 years agoamd64: Big batch of SMP changes.
Jordan Gordeev [Wed, 1 Jul 2009 19:32:11 +0000 (22:32 +0300)]
amd64: Big batch of SMP changes.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 1 Jul 2009 17:46:06 +0000 (10:46 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoSILI - ATAPI adjustments.
Matthew Dillon [Wed, 1 Jul 2009 17:45:23 +0000 (10:45 -0700)]
SILI - ATAPI adjustments.

Restrict the sense length to what ATAPI expects and add more legacy
initialization to the packet FIS.

This was an attempt to fix some reported issues with ATAPI, but it didn't
fix anything.  However, it didn't hurt either and the adjustments are at
least as good as the old ones.

5 years agoAHCI - ATAPI adjustments.
Matthew Dillon [Wed, 1 Jul 2009 17:43:15 +0000 (10:43 -0700)]
AHCI - ATAPI adjustments.

Restrict the sense length to what ATAPI expects and add more legacy
initialization to the packet FIS.

This was an attempt to fix some reported issues with ATAPI, but it didn't
fix anything.  However, it didn't hurt either and the adjustments are at
least as good as the old ones.

5 years agoAHCI - Move some intel-specific magic writes to intel-specific code.
Matthew Dillon [Wed, 1 Jul 2009 17:36:05 +0000 (10:36 -0700)]
AHCI - Move some intel-specific magic writes to intel-specific code.

It is unclear if these are needed at all but in any case they only apply
to certain Intel chipsets anyway.

5 years agopcidevs - Add entries for Intel ICH6 and ICH7 series chipsets.
Matthew Dillon [Wed, 1 Jul 2009 17:34:05 +0000 (10:34 -0700)]
pcidevs - Add entries for Intel ICH6 and ICH7 series chipsets.

5 years agoRegenerate the pciconf(8) database
Sascha Wildner [Wed, 1 Jul 2009 10:51:44 +0000 (12:51 +0200)]
Regenerate the pciconf(8) database

...from the following files:

Hart:    Jan 22, 2008 (version 671)
Boemler: Jul  1, 2009
Mares:   Jun  2, 2009

5 years agoHAMMER VFS - Make the same changes to statfs() that were made to statvfs().
Matthew Dillon [Tue, 30 Jun 2009 22:04:34 +0000 (15:04 -0700)]
HAMMER VFS - Make the same changes to statfs() that were made to statvfs().

5 years agoUpdate the sem_init(3) manpage - with additional info on the pshared impl.
Matthew Dillon [Tue, 30 Jun 2009 19:04:40 +0000 (12:04 -0700)]
Update the sem_init(3) manpage - with additional info on the pshared impl.

Suggested-by: Hasso Tepper <hasso@crater.dragonflybsd.org>
5 years agoUpdate the sem_init(3) manpage - shared semaphores are supported now.
Hasso Tepper [Tue, 30 Jun 2009 06:43:03 +0000 (09:43 +0300)]
Update the sem_init(3) manpage - shared semaphores are supported now.

It might need some more info about how shared semaphores are implemented
etc though.

5 years agolibthread_xu - implement pshared for sem_init
Matthew Dillon [Mon, 29 Jun 2009 22:38:53 +0000 (15:38 -0700)]
libthread_xu - implement pshared for sem_init

Implement the pshared flag, creating a semaphore in shared memory
that works across fork().  No additional kernel support is needed,
our umtx* system calls work on the underlying physical memory and
thus work just fine with shared memory.

sem_alloc() uses mmap() to allocate a page of shared memory.
Currently sem_destroy() does not recover the allocated memory for
shared semaphores as it is unclear how one is supposed to do so
in a fork()ed environment.

Requested-by: Hasso Tepper <hasso@estpak.ee>
5 years agoAHCI/SILI - Do manual chipid check to PMs with fake ports
Matthew Dillon [Mon, 29 Jun 2009 15:07:58 +0000 (08:07 -0700)]
AHCI/SILI - Do manual chipid check to PMs with fake ports

* Add a switch() on the chipid for PMs which add a fake port at the
  end and avoid probing the fake port.  Probing the port is harmless and
  typically fails in the softreset sequence, but takes time.