Sepherosa Ziehau [Mon, 6 Jul 2009 12:32:48 +0000 (20:32 +0800)]
pci/amd64: Duplicate pci/i386 to pci/amd64.
PIR and BIOS related parts are commented out as in the original code.
Sepherosa Ziehau [Mon, 6 Jul 2009 12:06:38 +0000 (20:06 +0800)]
pci: Partly restore original unknown device information logging.
Suggested-by: swildner@
Sascha Wildner [Sun, 5 Jul 2009 18:01:47 +0000 (20:01 +0200)]
pci.4: Sync with FreeBSD RELENG_7_2.
Sascha Wildner [Sun, 5 Jul 2009 17:49:32 +0000 (19:49 +0200)]
sys/bus/pci: Remove left over inclusion <sys/cdefs.h>.
Sascha Wildner [Sun, 5 Jul 2009 17:16:05 +0000 (19:16 +0200)]
pciconf(8): Sync with FreeBSD's RELENG_7_2.
Sepherosa Ziehau [Mon, 6 Jul 2009 10:55:08 +0000 (18:55 +0800)]
agp/drm: Adapt according to the recent pci code change
Submitted-by: hasso@
Sepherosa Ziehau [Sun, 5 Jul 2009 13:08:30 +0000 (21:08 +0800)]
pci: Resurrect COMPAT_OLDPCI; mainly to unbreak LINT building
Sepherosa Ziehau [Sun, 5 Jul 2009 11:29:05 +0000 (19:29 +0800)]
pci: pcib_owner no longer exists
Sepherosa Ziehau [Sun, 5 Jul 2009 11:24:28 +0000 (19:24 +0800)]
pci: Move legacyvar.h to bus/pci/i386
Sepherosa Ziehau [Sun, 5 Jul 2009 11:03:32 +0000 (19:03 +0800)]
pci: White space cleanup
Sepherosa Ziehau [Sun, 5 Jul 2009 08:12:39 +0000 (16:12 +0800)]
pci: Don't clear BAR if resource reservation failed.
Some BIOS lists HPET as PCI function, clearing its iomem BAR causes
the HPET timer stop ticking. Add comment about it.
Sepherosa Ziehau [Sun, 5 Jul 2009 04:20:52 +0000 (12:20 +0800)]
cardbus(4): Merge resource allocation changes (for new PCI code) from FreeBSD
Sepherosa Ziehau [Sun, 5 Jul 2009 04:19:47 +0000 (12:19 +0800)]
cbb(4): Rework secondary bus number setup; aware of PCI domain
Obtained-from: FreeBSD
Sepherosa Ziehau [Sat, 4 Jul 2009 12:28:23 +0000 (20:28 +0800)]
pci: Fix up bunch of warnings
Sepherosa Ziehau [Sat, 4 Jul 2009 12:06:46 +0000 (20:06 +0800)]
pci: Remove debug left overs
Sepherosa Ziehau [Sat, 4 Jul 2009 11:31:21 +0000 (19:31 +0800)]
pci: Don't allow PCIBIOS PCI-PCI bridge to attach if APIC_IO is defined
PCIBIOS PCI-PCI bridge will try routing PCI interrupt using PIR, which
is probably not what we want, even if MP table does not contain the PCI
interrupt routing information.
Sepherosa Ziehau [Sat, 4 Jul 2009 11:05:35 +0000 (19:05 +0800)]
pci: Log a message if PIR checksum failed
Sepherosa Ziehau [Sat, 4 Jul 2009 10:13:42 +0000 (18:13 +0800)]
pciconf(8): Update PCIC/PCIS macro names accordingly
Sepherosa Ziehau [Sat, 4 Jul 2009 09:09:58 +0000 (17:09 +0800)]
pci: Remove PC98 code
Sepherosa Ziehau [Sat, 4 Jul 2009 09:02:22 +0000 (17:02 +0800)]
pci: Put back PCI Express related bits
Sepherosa Ziehau [Sat, 4 Jul 2009 08:25:02 +0000 (16:25 +0800)]
pci: Reorganize PCI capabilities' extraction
Sepherosa Ziehau [Sat, 4 Jul 2009 07:19:09 +0000 (15:19 +0800)]
pci: Put back header gardian in header files
Sepherosa Ziehau [Sat, 4 Jul 2009 07:07:51 +0000 (15:07 +0800)]
Sepherosa Ziehau [Sat, 4 Jul 2009 07:06:20 +0000 (15:06 +0800)]
Sepherosa Ziehau [Sat, 4 Jul 2009 06:53:17 +0000 (14:53 +0800)]
Sepherosa Ziehau [Sat, 4 Jul 2009 05:50:56 +0000 (13:50 +0800)]
Sepherosa Ziehau [Sat, 4 Jul 2009 05:46:43 +0000 (13:46 +0800)]
Sepherosa Ziehau [Sat, 4 Jul 2009 05:44:36 +0000 (13:44 +0800)]
pci: device_identify method returns int
Sepherosa Ziehau [Sat, 4 Jul 2009 05:02:49 +0000 (13:02 +0800)]
pci: Put back APIC_IO PCI interrupt routine workaround
Sepherosa Ziehau [Sat, 4 Jul 2009 04:33:34 +0000 (12:33 +0800)]
Revoke kreallocf()
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
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>
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.
Matthew Dillon [Wed, 8 Jul 2009 03:15:15 +0000 (20:15 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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.
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.
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.
Matthew Dillon [Wed, 8 Jul 2009 03:10:46 +0000 (20:10 -0700)]
JG64 - include ahci, sili, and usb devices
Sascha Wildner [Tue, 7 Jul 2009 22:09:27 +0000 (00:09 +0200)]
hammerread.c: Fix WARNS regression (unused variable).
Matthew Dillon [Tue, 7 Jul 2009 18:19:59 +0000 (11:19 -0700)]
Merge commit 'smtms/amd64'
Matthew Dillon [Tue, 7 Jul 2009 18:02:40 +0000 (11:02 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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.
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.
Matthew Dillon [Tue, 7 Jul 2009 17:53:41 +0000 (10:53 -0700)]
BOOT2 - adjust hammerread code to understand the new directory localization cap.
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.
Peter Avalos [Mon, 6 Jul 2009 21:23:17 +0000 (11:23 -1000)]
Merge branch 'master' of /home/www-data/gitweb/dragonfly
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.
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.
Sascha Wildner [Mon, 6 Jul 2009 20:21:46 +0000 (22:21 +0200)]
ffs.3: Fix SYNOPSIS.
Stathis Kamperis [Mon, 6 Jul 2009 19:26:36 +0000 (22:26 +0300)]
getrlimit.2: Markup fixes.
Reviewed-by: swildner@
Sascha Wildner [Mon, 6 Jul 2009 17:12:45 +0000 (19:12 +0200)]
installer: Remove part that wasn't meant to be committed.
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
Jordan Gordeev [Mon, 6 Jul 2009 15:17:09 +0000 (18:17 +0300)]
Merge branch 'master' into amd64
Jordan Gordeev [Mon, 6 Jul 2009 14:55:02 +0000 (17:55 +0300)]
Jordan Gordeev [Mon, 6 Jul 2009 14:54:20 +0000 (17:54 +0300)]
Jordan Gordeev [Mon, 6 Jul 2009 14:47:52 +0000 (17:47 +0300)]
Jordan Gordeev [Sat, 4 Jul 2009 19:38:53 +0000 (22:38 +0300)]
amd64: Change the way I/O APIC's are mapped.
Jordan Gordeev [Mon, 6 Jul 2009 12:42:50 +0000 (15:42 +0300)]
amd64: Fix UP kernel build.
Jordan Gordeev [Mon, 6 Jul 2009 10:46:07 +0000 (13:46 +0300)]
amd64: Use proper size for atomic ops.
Jordan Gordeev [Mon, 6 Jul 2009 10:33:17 +0000 (13:33 +0300)]
amd64: Properly size an array for SMP.
Jordan Gordeev [Mon, 6 Jul 2009 12:15:35 +0000 (15:15 +0300)]
amd64: Correct an omission.
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.
Jordan Gordeev [Mon, 6 Jul 2009 10:24:23 +0000 (13:24 +0300)]
amd64: Fixes for init_secondary().
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.
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.
Jordan Gordeev [Sun, 5 Jul 2009 16:08:23 +0000 (19:08 +0300)]
amd64: Update cpu_mfence(), cpu_lfence(), cpu_sfence() for SMP.
Jordan Gordeev [Mon, 6 Jul 2009 12:12:53 +0000 (15:12 +0300)]
amd64: Help mptable_pass2() find and read the mptable.
Jordan Gordeev [Mon, 6 Jul 2009 11:14:29 +0000 (14:14 +0300)]
amd64: Call mptable_pass2().
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.
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'.
Jordan Gordeev [Fri, 3 Jul 2009 18:38:48 +0000 (21:38 +0300)]
amd64: Don't forget to call mp_probe().
Jordan Gordeev [Fri, 3 Jul 2009 18:16:26 +0000 (21:16 +0300)]
amd64: Allow search_for_sig() to return 64-bit quantities.
Jordan Gordeev [Mon, 6 Jul 2009 11:06:35 +0000 (14:06 +0300)]
amd64: Fix improper types in description of mptable structures.
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/.
Peter Avalos [Mon, 6 Jul 2009 07:44:17 +0000 (21:44 -1000)]
Upgrade to tcpdump-4.0.0.
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>
Peter Avalos [Mon, 6 Jul 2009 07:06:29 +0000 (21:06 -1000)]
Add README.DELETED to the tcpdump vendor branch.
Peter Avalos [Mon, 6 Jul 2009 06:11:42 +0000 (20:11 -1000)]
Merge branch 'vendor/LIBPCAP' and updated build for new version.
Peter Avalos [Mon, 6 Jul 2009 00:17:07 +0000 (14:17 -1000)]
Update to libpcap-1.0.0.
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.
Matthew Dillon [Sun, 5 Jul 2009 16:31:48 +0000 (09:31 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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.
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>
Peter Avalos [Sat, 4 Jul 2009 21:45:21 +0000 (11:45 -1000)]
Merge branch 'vendor/TCPDUMP'
Peter Avalos [Sat, 4 Jul 2009 21:44:53 +0000 (11:44 -1000)]
Merge branch 'vendor/TCPDUMP' (early part)
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.
Peter Avalos [Sat, 4 Jul 2009 21:35:49 +0000 (11:35 -1000)]
Remove old versions of tcpdump.
Peter Avalos [Sat, 4 Jul 2009 21:32:36 +0000 (11:32 -1000)]
Add README.DELETED to libpcap's vendor branch.
Peter Avalos [Sat, 4 Jul 2009 21:26:17 +0000 (11:26 -1000)]
Merge branch 'vendor/LIBPCAP'
Peter Avalos [Sat, 4 Jul 2009 21:05:10 +0000 (11:05 -1000)]
Merge branch 'vendor/LIBPCAP' (early part)
Sascha Wildner [Sat, 4 Jul 2009 20:27:30 +0000 (22:27 +0200)]
Remove extra whitespace and fix types in some manual pages.
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.
Peter Avalos [Sat, 4 Jul 2009 20:17:05 +0000 (10:17 -1000)]
Remove old versions of libpcap.
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>
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.
Matthew Dillon [Fri, 3 Jul 2009 16:44:28 +0000 (09:44 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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>
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
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.
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