dragonfly.git
14 years agoRemove crunchgen(8).
Sascha Wildner [Sun, 12 Jul 2009 01:34:57 +0000 (03:34 +0200)]
Remove crunchgen(8).

14 years agoMerge branch 'master' of /home/www-data/gitweb/dragonfly
Peter Avalos [Sun, 12 Jul 2009 10:08:55 +0000 (00:08 -1000)]
Merge branch 'master' of /home/www-data/gitweb/dragonfly

14 years agopipe - pre-MP work, change indexing to circular FIFO rindex/windex.
Matthew Dillon [Sun, 12 Jul 2009 05:34:40 +0000 (22:34 -0700)]
pipe - pre-MP work, change indexing to circular FIFO rindex/windex.

14 years agoDocument various get-time functions and vfs_timestamp() as MPSAFE.
Matthew Dillon [Sun, 12 Jul 2009 03:45:52 +0000 (20:45 -0700)]
Document various get-time functions and vfs_timestamp() as MPSAFE.

14 years agopipe - pre-MP work, remove direct map and sfbuf features
Matthew Dillon [Sun, 12 Jul 2009 02:14:23 +0000 (19:14 -0700)]
pipe - pre-MP work, remove direct map and sfbuf features

To help with the initial MPSAFE work we are removing the direct-write
optimizations.  This represents a slight nerf on a SMP box on a modern
cpu, but not really enough to matter in the grand scheme of things.
They may return at some future date.

14 years agoStop building multiple versions of telnet.
Peter Avalos [Sun, 12 Jul 2009 01:50:58 +0000 (15:50 -1000)]
Stop building multiple versions of telnet.

It's ok to move this code outside of crypto/ because it doesn't actually
contain any crypto -- only routines that call the crypto functions.
This keeps the code centralized, and the usual make.conf defines will
control what gets built (the default is still non-kerberos and with
crypto).

14 years agogetdevpath.[38]: mdoc cleanup
Sascha Wildner [Sat, 11 Jul 2009 23:43:15 +0000 (01:43 +0200)]
getdevpath.[38]: mdoc cleanup

14 years agovrevoke/single-user - fix more revoke issues.
Matthew Dillon [Sat, 11 Jul 2009 22:56:25 +0000 (15:56 -0700)]
vrevoke/single-user - fix more revoke issues.

* vrevoke() no longer clears vp->v_rdev.  Doing so interferes with specfs's
  ability to call dev_dclose().  Fixing this will allow the regular close
  of the vnode to close the underlying device.

  Since the revoke code detaches the vnode from any user-visible file
  descriptors the vnode will end up being closed the moment the last
  referenced to the detached fp goes away.

* kill 1 no longer leaves the syscons in a state where both /dev/ttyv0 and
  /dev/console are marked open (due to the above bug).  This state would
  cause the keyboard to stop working sometimes when dropping into single
  user.

* Add dev_drevoke() and friends.  This allows a device to do something
  when an attempt is made to revoke() the related vnode.

  TTY and PTY devices now attempt to break out of any ttysleep() operation
  (such as when processes are blocked in read()).  This is advisory and
  if it fails to break a process out of a blocked condition that process
  will still detach after the blocked condition is resolved normally.

14 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sat, 11 Jul 2009 15:25:03 +0000 (08:25 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

14 years agogetdevpath - add _PATH_DEVTAB_PATHS
Matthew Dillon [Sat, 11 Jul 2009 15:22:02 +0000 (08:22 -0700)]
getdevpath - add _PATH_DEVTAB_PATHS

Reminded-by: Sascha Wildner <saw@online.de>
14 years agoGet rid of PCI_MAP_FIXUP and opt_pci.h
Sepherosa Ziehau [Sat, 11 Jul 2009 08:21:17 +0000 (16:21 +0800)]
Get rid of PCI_MAP_FIXUP and opt_pci.h

14 years agoACPI: Make acpi_pci* compile; they are not used yet.
Alexander Polakov [Tue, 9 Jun 2009 08:59:33 +0000 (12:59 +0400)]
ACPI: Make acpi_pci* compile; they are not used yet.

Submitted-by: Alexander Polakov <polachok@gmail.com> w/ modification
14 years agoamd64: Copy MPTable PCI interrput routing code from i386
Sepherosa Ziehau [Fri, 10 Jul 2009 11:12:51 +0000 (19:12 +0800)]
amd64: Copy MPTable PCI interrput routing code from i386

Following three commits on i386 are merged:
eaec4152c00f8d7503f218f2a246802044d2600e
566f2cdcd40f5829aedb2c0b2a8339e189c7570d
6fd2232c44c5937a832a5b929989de0b1ddfc9de

14 years agoMPTable PCI interrupt routing: Verbose logging if an ISA IRQ is to be tried.
Sepherosa Ziehau [Fri, 10 Jul 2009 08:10:08 +0000 (16:10 +0800)]
MPTable PCI interrupt routing: Verbose logging if an ISA IRQ is to be tried.

14 years agoUse same interrupt vector handler for fast/slow interrupt handlers
Sepherosa Ziehau [Fri, 10 Jul 2009 07:29:24 +0000 (15:29 +0800)]
Use same interrupt vector handler for fast/slow interrupt handlers

Slow interrupt vector handler is removed.  Fast interrupt vector handler,
ithread_fast_handler(), now schedules slow interrupt handlers if necessary:
o  No fast interrupt handlers are registered
o  Mixed fast and slow interrpt handlers are registered
o  Non-MPSAFE fast interrupt handlers could not get BGL

i386/amd64: gd_ipending field in mdglobaldata is revoked, which is only
used by slow interrupt vector handler.

ithread_fast_handler()'s invoking convetion is changed:
- ithead_fast_handler() must be called with critical section being held
- Callers of ithead_fast_handler() no longer bump gd_intr_nesting_level

Discussed-with: dillon@
Reviewed-by: dillon@
14 years agopci: Add MPTable Host-PCI/PCI-PCI bridges drivers.
Sepherosa Ziehau [Thu, 9 Jul 2009 14:06:54 +0000 (22:06 +0800)]
pci: Add MPTable Host-PCI/PCI-PCI bridges drivers.

- This driver overrides PCI bridge interrupt routing method.
- Nuke APIC_IO workaround in PCI configuration reading functions.

Obtained-from: FreeBSD

14 years agoIO APIC: Assign pins dedicated to PCI in the early stage.
Sepherosa Ziehau [Thu, 9 Jul 2009 09:09:21 +0000 (17:09 +0800)]
IO APIC: Assign pins dedicated to PCI in the early stage.

After this, we no longer need to reprogramme IO APIC every time
an interrupt handler is to be registered, which is potentially
dangerous.

14 years agoACPI MADT: Hide debug prints under bootverbose
Sepherosa Ziehau [Thu, 9 Jul 2009 06:33:45 +0000 (14:33 +0800)]
ACPI MADT: Hide debug prints under bootverbose

14 years agoRemove unused code in pc32/ipl.s
Sepherosa Ziehau [Thu, 9 Jul 2009 05:06:19 +0000 (13:06 +0800)]
Remove unused code in pc32/ipl.s

14 years agoRemove unused code in pc32/apic_vector.s
Sepherosa Ziehau [Thu, 9 Jul 2009 04:11:00 +0000 (12:11 +0800)]
Remove unused code in pc32/apic_vector.s

14 years agoIO APIC: Get rid of apic_imen
Sepherosa Ziehau [Thu, 9 Jul 2009 02:15:34 +0000 (10:15 +0800)]
IO APIC: Get rid of apic_imen

Add IOAPIC_IM_FLAG_MASKED to apic_intmapinfo, which indicates the
IRQ is currently masked.  Use it instead of apic_imen.

14 years agoIO APIC: Get rid of apic_pin_trigger
Sepherosa Ziehau [Wed, 8 Jul 2009 09:08:53 +0000 (17:08 +0800)]
IO APIC: Get rid of apic_pin_trigger

- Expend apic_intmapinfo from 16bytes to 32bytes
- Add flags field in apic_intmapinfo, which now records irq's trigger mode

14 years agoUse genassym to replace magic numbers in pc32/apic_{vector,ipl}.s
Sepherosa Ziehau [Wed, 8 Jul 2009 08:30:00 +0000 (16:30 +0800)]
Use genassym to replace magic numbers in pc32/apic_{vector,ipl}.s

14 years agoAPIC vector: Compact redirect entry's mask bit setting and clearing
Sepherosa Ziehau [Wed, 8 Jul 2009 06:53:37 +0000 (14:53 +0800)]
APIC vector: Compact redirect entry's mask bit setting and clearing

14 years agoUse IOAPIC_WINDOW in pc32/apic_ipl.s
Sepherosa Ziehau [Wed, 8 Jul 2009 06:32:41 +0000 (14:32 +0800)]
Use IOAPIC_WINDOW in pc32/apic_ipl.s

14 years agoRemove unused code in pc32/ipl.s
Sepherosa Ziehau [Wed, 8 Jul 2009 03:40:01 +0000 (11:40 +0800)]
Remove unused code in pc32/ipl.s

14 years agoRemove unsued code in kern/kern_intr.c
Sepherosa Ziehau [Wed, 8 Jul 2009 03:35:07 +0000 (11:35 +0800)]
Remove unsued code in kern/kern_intr.c

14 years agofast intr: Don't dispatch to the BGL owner, if BGL could not be holden;
Sepherosa Ziehau [Wed, 8 Jul 2009 03:29:44 +0000 (11:29 +0800)]
fast intr: Don't dispatch to the BGL owner, if BGL could not be holden;
just reschedule ithread.

Discussed-with: dillon@

14 years agoMove to the interrupt's destination CPU before tearing down the interrupt
Sepherosa Ziehau [Wed, 8 Jul 2009 03:08:01 +0000 (11:08 +0800)]
Move to the interrupt's destination CPU before tearing down the interrupt

14 years agoTurn on PG_N (nocache) when mapping ioapic
Sepherosa Ziehau [Wed, 8 Jul 2009 02:32:41 +0000 (10:32 +0800)]
Turn on PG_N (nocache) when mapping ioapic

Noticed-by: Jordan Gordeev <jgordeev@dir.bg>
14 years agoprocfs - fix incremental reads of /proc/*/rlimit
Matthew Dillon [Fri, 10 Jul 2009 22:24:08 +0000 (15:24 -0700)]
procfs - fix incremental reads of /proc/*/rlimit

The rlimit code was only properly copying data for all-in-one-go reads,
and mishandling incremental reads.

Submitted-by: Beket@@irc
14 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 10 Jul 2009 21:09:50 +0000 (14:09 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

14 years agoAdd /sbin/getdevpath utility - userland convenience utility for getdevpath(3).
Matthew Dillon [Fri, 10 Jul 2009 21:09:13 +0000 (14:09 -0700)]
Add /sbin/getdevpath utility - userland convenience utility for getdevpath(3).

14 years agolibutil - add getdevpath()
Matthew Dillon [Fri, 10 Jul 2009 20:56:56 +0000 (13:56 -0700)]
libutil - add getdevpath()

Add the getdevpath() function which translates a device name such as "da0",
or label such as "fubar", into a device path.  This function searches
/usr/local/etc/devtab, /etc/devtab, and /etc/defaults/devtab for labels.
Device names beginning with '/' or '.' are assumed to be paths and passed
through.

14 years agomxge: hopefully fix serializers
Aggelos Economopoulos [Fri, 10 Jul 2009 13:03:32 +0000 (16:03 +0300)]
mxge: hopefully fix serializers

- don't retake serializers, they're not recursive

14 years agomxge: serializer is held on entry in mxge_ioctl()
Aggelos Economopoulos [Fri, 10 Jul 2009 11:29:17 +0000 (14:29 +0300)]
mxge: serializer is held on entry in mxge_ioctl()

14 years agomxge: avoid entering if->if_serializer before it's initialized
Aggelos Economopoulos [Fri, 10 Jul 2009 10:02:31 +0000 (13:02 +0300)]
mxge: avoid entering if->if_serializer before it's initialized

14 years agomxge: document jumbo buffer hack
Aggelos Economopoulos [Fri, 10 Jul 2009 10:01:38 +0000 (13:01 +0300)]
mxge: document jumbo buffer hack

14 years agopthread_once.3: Fix typo.
Sascha Wildner [Fri, 10 Jul 2009 02:33:50 +0000 (04:33 +0200)]
pthread_once.3: Fix typo.

14 years agopthread_barrierattr.3: Remove empty section.
Sascha Wildner [Fri, 10 Jul 2009 02:25:21 +0000 (04:25 +0200)]
pthread_barrierattr.3: Remove empty section.

14 years agosigwait.3: Add missing '.'
Sascha Wildner [Fri, 10 Jul 2009 02:17:38 +0000 (04:17 +0200)]
sigwait.3: Add missing '.'

14 years agopthread*.3: Sync the pthread manpages with FreeBSD.
Sascha Wildner [Fri, 10 Jul 2009 02:16:40 +0000 (04:16 +0200)]
pthread*.3: Sync the pthread manpages with FreeBSD.

Brings in some missing pages and some small fixes.

Reminded-by: hasso
14 years agopci.9: Sync with FreeBSD.
Sascha Wildner [Thu, 9 Jul 2009 21:29:21 +0000 (23:29 +0200)]
pci.9: Sync with FreeBSD.

14 years agoamd64: Sync header 'int_limits.h' with i386.
Jordan Gordeev [Thu, 9 Jul 2009 11:07:59 +0000 (14:07 +0300)]
amd64: Sync header 'int_limits.h' with i386.
Helps building of GNU m4 (and other GNU stuff).

14 years agoget mxge to build, stage 30/30
Aggelos Economopoulos [Thu, 9 Jul 2009 15:09:06 +0000 (18:09 +0300)]
get mxge to build, stage 30/30

- get rid of m_getjcl() for now

14 years agomxge: initialize firmware length
Aggelos Economopoulos [Thu, 9 Jul 2009 14:57:18 +0000 (17:57 +0300)]
mxge: initialize firmware length

14 years agoget mxge to build, stage 29/many
Aggelos Economopoulos [Thu, 9 Jul 2009 14:55:06 +0000 (17:55 +0300)]
get mxge to build, stage 29/many

- remove lro support

14 years agoget mxge to build, stage 28/many
Aggelos Economopoulos [Thu, 9 Jul 2009 14:00:06 +0000 (17:00 +0300)]
get mxge to build, stage 28/many

- use callout_stop() instead of callout_drain() for now
- mark our callout mpsafe

14 years agomxge: free softc sysctl_ctx
Aggelos Economopoulos [Thu, 9 Jul 2009 13:23:11 +0000 (16:23 +0300)]
mxge: free softc sysctl_ctx

14 years agoget mxge to build, stage 27/many
Aggelos Economopoulos [Thu, 9 Jul 2009 13:08:47 +0000 (16:08 +0300)]
get mxge to build, stage 27/many

- use a serializer instead of locks

14 years agoget mxge to build, stage 26/many
Aggelos Economopoulos [Thu, 9 Jul 2009 11:08:55 +0000 (14:08 +0300)]
get mxge to build, stage 26/many

- we don't need to check for vlans referencing us, this
  is taken care of in the background automagically

14 years agoRemove obsolete kernel options: PCI_ENABLE_IO_MODES & PCI_QUIET.
Sascha Wildner [Thu, 9 Jul 2009 07:58:05 +0000 (09:58 +0200)]
Remove obsolete kernel options: PCI_ENABLE_IO_MODES & PCI_QUIET.

14 years agoRemove hardcoded -g in several Makefiles.
Sascha Wildner [Wed, 8 Jul 2009 20:43:21 +0000 (22:43 +0200)]
Remove hardcoded -g in several Makefiles.

14 years agoCAM - disable cache synchronization by default for USB attachments.
Matthew Dillon [Thu, 9 Jul 2009 03:01:17 +0000 (20:01 -0700)]
CAM - disable cache synchronization by default for USB attachments.

Instead of trying to blacklist particular usb mass storage devices which
do not support the cache synchronization command, just default to not
supporting it for ALL usb mass storage attachments.  Too many usb devices
brick when sent the command.

It matters more now that people are using HAMMER, and HAMMER utilizes the
cache synchronization command to delineate flushes.  We will now by
definition not be able to guarantee recovery if HAMMER is used on a USB
mass storage device.  It will probably work anyway, though.

Reported-by: Many people
14 years agoget mxge to build, stage 25/many
Aggelos Economopoulos [Thu, 9 Jul 2009 01:04:14 +0000 (04:04 +0300)]
get mxge to build, stage 25/many

- remove invalid #include

14 years agoget mxge to build, stage 24/many
Aggelos Economopoulos [Thu, 9 Jul 2009 00:36:20 +0000 (03:36 +0300)]
get mxge to build, stage 24/many

- add missing include for in_pseudo()

14 years agoget mxge to build, stage 23/many
Aggelos Economopoulos [Thu, 9 Jul 2009 00:32:00 +0000 (03:32 +0300)]
get mxge to build, stage 23/many

- no need to free the ifnet, it's part of the softc in dragonfly
- convert ether_ifattach()

14 years agoget mxge to build, stage 22/many
Aggelos Economopoulos [Thu, 9 Jul 2009 00:23:08 +0000 (03:23 +0300)]
get mxge to build, stage 22/many

- #ifdef out the freebsd-specific RSS code, we do things
  differently (proper RSS support to come later)

14 years agoget mxge to build, stage 21/many
Aggelos Economopoulos [Wed, 8 Jul 2009 21:34:08 +0000 (00:34 +0300)]
get mxge to build, stage 21/many

- convert queue handling

14 years agoAMD64 - Fix identcpu.
Matthew Dillon [Wed, 8 Jul 2009 21:03:28 +0000 (14:03 -0700)]
AMD64 - Fix identcpu.

14 years agoAMD64 - Include NULLFS in JG64
Matthew Dillon [Wed, 8 Jul 2009 20:41:48 +0000 (13:41 -0700)]
AMD64 - Include NULLFS in JG64

14 years agolibc - use a valid pointer for malloc(0).
Matthew Dillon [Wed, 8 Jul 2009 20:36:26 +0000 (13:36 -0700)]
libc - use a valid pointer for malloc(0).

This fixes an issue with qsort()ing 0 elements.

Reported-by: smtms
14 years agoget mxge to build, stage 20/many
Aggelos Economopoulos [Wed, 8 Jul 2009 20:20:43 +0000 (23:20 +0300)]
get mxge to build, stage 20/many

- fixup the vlan code
- s/TAILQ/LIST/ for the multicast list
- add IFCAP_VLAN_HWCSUM (not used yet)

14 years agoget mxge to build, stage 19/many
Aggelos Economopoulos [Wed, 8 Jul 2009 13:41:17 +0000 (16:41 +0300)]
get mxge to build, stage 19/many

- WC needs PAT support, disable for now

14 years agoget mxge to build, stage 18/many
Aggelos Economopoulos [Wed, 8 Jul 2009 13:40:05 +0000 (16:40 +0300)]
get mxge to build, stage 18/many

- remove firmwire files from the Makefile as well

14 years agoget mxge to build, stage 17/many
Aggelos Economopoulos [Wed, 8 Jul 2009 13:27:20 +0000 (16:27 +0300)]
get mxge to build, stage 17/many

- instead of using kernel modules and compressed
  firmware images, load uncompressed firmware images
  from /etc/firmware

14 years agoget mxge to build, stage 16/many
Aggelos Economopoulos [Sun, 5 Jul 2009 20:45:35 +0000 (23:45 +0300)]
get mxge to build, stage 16/many

- convert bus functions

14 years agoget mxge to build, stage 15/many
Aggelos Economopoulos [Sun, 5 Jul 2009 20:04:52 +0000 (23:04 +0300)]
get mxge to build, stage 15/many

- we don't use a separate driver flags field

14 years agoget mxge to build, stage 14/many
Aggelos Economopoulos [Sun, 5 Jul 2009 12:32:56 +0000 (15:32 +0300)]
get mxge to build, stage 14/many

- have sc->ifp point to sc->arpcom.ac_if
- fix last link state change code

14 years agoget mxge to build, stage 13/many
Aggelos Economopoulos [Sun, 5 Jul 2009 11:58:24 +0000 (14:58 +0300)]
get mxge to build, stage 13/many

- mp_ncpus -> ncpus

14 years agoget mxge to build, stage 12/many
Aggelos Economopoulos [Sun, 5 Jul 2009 11:52:33 +0000 (14:52 +0300)]
get mxge to build, stage 12/many

- more symbol -> ksymbol conversions

14 years agoget mxge to build, stage 11/many
Aggelos Economopoulos [Sat, 4 Jul 2009 16:49:40 +0000 (19:49 +0300)]
get mxge to build, stage 11/many

- add arpcom to mxge_softc, we don't need to allocate it separately
- fix mxge_ioctl arguments
- fix typo

14 years agomxge: fix typo
Aggelos Economopoulos [Sat, 4 Jul 2009 13:51:03 +0000 (16:51 +0300)]
mxge: fix typo

14 years agoget mxge to build, stage 10/many
Aggelos Economopoulos [Sat, 4 Jul 2009 13:48:54 +0000 (16:48 +0300)]
get mxge to build, stage 10/many

- mp_ncpus -> ncpus

14 years agomxge: fix typo
Aggelos Economopoulos [Sat, 4 Jul 2009 13:46:28 +0000 (16:46 +0300)]
mxge: fix typo

14 years agoget mxge to build, stage 9/many
Aggelos Economopoulos [Sat, 4 Jul 2009 13:44:39 +0000 (16:44 +0300)]
get mxge to build, stage 9/many

- import MJUM* defines from FreeBSD

14 years agoget mxge to build, stage 9/many
Aggelos Economopoulos [Sat, 4 Jul 2009 12:57:26 +0000 (15:57 +0300)]
get mxge to build, stage 9/many

- M_DONTWAIT -> MB_DONTWAIT

14 years agoget mxge to build, stage 8/many
Aggelos Economopoulos [Sat, 4 Jul 2009 12:51:40 +0000 (15:51 +0300)]
get mxge to build, stage 8/many

- convert sysctls

14 years agoget mxge to build, stage 7/many
Aggelos Economopoulos [Sat, 4 Jul 2009 11:57:27 +0000 (14:57 +0300)]
get mxge to build, stage 7/many

- update lock field names/type in the header

14 years agoget mxge to build, stage 6/many
Aggelos Economopoulos [Sat, 4 Jul 2009 11:55:13 +0000 (14:55 +0300)]
get mxge to build, stage 6/many

- import media type defines from FreeBSD

14 years agoget mxge to build, stage 5/many
Aggelos Economopoulos [Sat, 4 Jul 2009 11:46:42 +0000 (14:46 +0300)]
get mxge to build, stage 5/many

- handle link state change the DragonFly way

14 years agoget mxge to build, stage 4/many
Aggelos Economopoulos [Fri, 3 Jul 2009 23:25:05 +0000 (02:25 +0300)]
get mxge to build, stage 4/many

- replace callout_init_mtx() with explicit locking

14 years agoget mxge to build, stage 3/many
Aggelos Economopoulos [Fri, 3 Jul 2009 19:24:51 +0000 (22:24 +0300)]
get mxge to build, stage 3/many

- use lockmgr() instead of mtx_*()

14 years agosscanf -> ksscanf
Aggelos Economopoulos [Fri, 3 Jul 2009 19:08:39 +0000 (22:08 +0300)]
sscanf -> ksscanf

14 years agoget mxge to build, stage 2/many
Aggelos Economopoulos [Fri, 3 Jul 2009 19:02:04 +0000 (22:02 +0300)]
get mxge to build, stage 2/many

malloc,free -> kmalloc,kfree

14 years agoget mxge to build, stage 1/many
Aggelos Economopoulos [Fri, 3 Jul 2009 15:35:39 +0000 (18:35 +0300)]
get mxge to build, stage 1/many

- comment-out __FBSDID
- fix some includes
- mtx -> lock

14 years agoimport mxge from FreeBSD as is
Aggelos Economopoulos [Fri, 3 Jul 2009 13:46:52 +0000 (16:46 +0300)]
import mxge from FreeBSD as is

Untouched; not hooked into build; will not compile

14 years agoAMD64 - Use ld -r to generate .ko for modules.
Matthew Dillon [Wed, 8 Jul 2009 19:43:39 +0000 (12:43 -0700)]
AMD64 - Use ld -r to generate .ko for modules.

14 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 8 Jul 2009 19:34:10 +0000 (12:34 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

14 years agoAMD64 - Enable module building, sync i386 headers etc as needed.
Matthew Dillon [Wed, 8 Jul 2009 19:33:02 +0000 (12:33 -0700)]
AMD64 - Enable module building, sync i386 headers etc as needed.

* Enable module building (platform/pc64/Makefile.inc)

* Copy files and make changes as needed to bring amd64 up to date.

14 years agohammer.8: Comment out rebalance which is not part of cleanup yet.
Sascha Wildner [Wed, 8 Jul 2009 18:07:48 +0000 (20:07 +0200)]
hammer.8: Comment out rebalance which is not part of cleanup yet.

14 years agoAMD64 - Fix native-built sys/boot install
Matthew Dillon [Wed, 8 Jul 2009 17:52:32 +0000 (10:52 -0700)]
AMD64 - Fix native-built sys/boot install

* Pass the proper elf format to the linker when compiling programs in
  sys/boot.

* include btxld in the 64 bit buildworld.  It is needed by sys/boot.

* a.out.h / imgact_aout.h needed a special case to generate a 32 bit
  struct exec when compiled from a 64 bit environment.

14 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 8 Jul 2009 16:11:37 +0000 (09:11 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

14 years agoAHCI - Do not try to attach as AHCI unless INTEL part identifies as AHCI
Matthew Dillon [Wed, 8 Jul 2009 16:10:07 +0000 (09:10 -0700)]
AHCI - Do not try to attach as AHCI unless INTEL part identifies as AHCI

Do not try to attach as AHCI if the BIOS has configured an INTEL part
as legacy ATA instead of AHCI.  This is a temporary hack until the
code can be cleaned up more generally.

Reported-by: corecode
14 years agopciconf(8): Fix some warnings.
Sascha Wildner [Wed, 8 Jul 2009 12:06:45 +0000 (14:06 +0200)]
pciconf(8): Fix some warnings.

14 years agoBump __DragonFly_version after introducing PCI domain
Sepherosa Ziehau [Wed, 8 Jul 2009 10:56:54 +0000 (18:56 +0800)]
Bump __DragonFly_version after introducing PCI domain

Requested-by: hasso@
14 years agoACPI P-State: Allow # of member CPUs in the CPU domain less than required
Sepherosa Ziehau [Tue, 7 Jul 2009 11:41:01 +0000 (19:41 +0800)]
ACPI P-State: Allow # of member CPUs in the CPU domain less than required

This could be done as long as the CPU domain's coordination is _not_ SWALL.
Now ACPI CPU P-State driver could attach even if a UP kernel booted on an
MP box.

14 years agoIntel P-State CPU driver: Support ioport control/status registers
Sepherosa Ziehau [Tue, 7 Jul 2009 11:08:44 +0000 (19:08 +0800)]
Intel P-State CPU driver: Support ioport control/status registers

14 years agoACPI P-State: Implement CPU driver for Intel CPUs
Sepherosa Ziehau [Tue, 7 Jul 2009 07:53:32 +0000 (15:53 +0800)]
ACPI P-State: Implement CPU driver for Intel CPUs

Currently altering and extracting P-State information through
IA32_PERF_{STATUS,CTL} MSR are supported.

14 years agoACPI P-State: Add init method for CPU driver.
Sepherosa Ziehau [Tue, 7 Jul 2009 05:48:37 +0000 (13:48 +0800)]
ACPI P-State: Add init method for CPU driver.

This method could be used by certain Intel ACPI P-State CPU drivers
to set "Enhanced SpeedStep" enable bit in IA32_MISC_ENABLE MSR.

Add a NOP implementation for AMD P-State CPU drivers.