Aggelos Economopoulos [Mon, 13 Jul 2009 15:04:19 +0000 (18:04 +0300)]
mxge: properly remove the sysctls
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
Aggelos Economopoulos [Fri, 10 Jul 2009 11:29:17 +0000 (14:29 +0300)]
mxge: serializer is held on entry in mxge_ioctl()
Aggelos Economopoulos [Fri, 10 Jul 2009 10:02:31 +0000 (13:02 +0300)]
mxge: avoid entering if->if_serializer before it's initialized
Aggelos Economopoulos [Fri, 10 Jul 2009 10:01:38 +0000 (13:01 +0300)]
mxge: document jumbo buffer hack
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
Aggelos Economopoulos [Thu, 9 Jul 2009 14:57:18 +0000 (17:57 +0300)]
mxge: initialize firmware length
Aggelos Economopoulos [Thu, 9 Jul 2009 14:55:06 +0000 (17:55 +0300)]
get mxge to build, stage 29/many
- remove lro support
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
Aggelos Economopoulos [Thu, 9 Jul 2009 13:23:11 +0000 (16:23 +0300)]
mxge: free softc sysctl_ctx
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
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
Aggelos Economopoulos [Thu, 9 Jul 2009 01:04:14 +0000 (04:04 +0300)]
get mxge to build, stage 25/many
- remove invalid #include
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()
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()
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)
Aggelos Economopoulos [Wed, 8 Jul 2009 21:34:08 +0000 (00:34 +0300)]
get mxge to build, stage 21/many
- convert queue handling
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)
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
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
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
Aggelos Economopoulos [Sun, 5 Jul 2009 20:45:35 +0000 (23:45 +0300)]
get mxge to build, stage 16/many
- convert bus functions
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
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
Aggelos Economopoulos [Sun, 5 Jul 2009 11:58:24 +0000 (14:58 +0300)]
get mxge to build, stage 13/many
- mp_ncpus -> ncpus
Aggelos Economopoulos [Sun, 5 Jul 2009 11:52:33 +0000 (14:52 +0300)]
get mxge to build, stage 12/many
- more symbol -> ksymbol conversions
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
Aggelos Economopoulos [Sat, 4 Jul 2009 13:51:03 +0000 (16:51 +0300)]
mxge: fix typo
Aggelos Economopoulos [Sat, 4 Jul 2009 13:48:54 +0000 (16:48 +0300)]
get mxge to build, stage 10/many
- mp_ncpus -> ncpus
Aggelos Economopoulos [Sat, 4 Jul 2009 13:46:28 +0000 (16:46 +0300)]
mxge: fix typo
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
Aggelos Economopoulos [Sat, 4 Jul 2009 12:57:26 +0000 (15:57 +0300)]
get mxge to build, stage 9/many
- M_DONTWAIT -> MB_DONTWAIT
Aggelos Economopoulos [Sat, 4 Jul 2009 12:51:40 +0000 (15:51 +0300)]
get mxge to build, stage 8/many
- convert sysctls
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
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
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
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
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_*()
Aggelos Economopoulos [Fri, 3 Jul 2009 19:08:39 +0000 (22:08 +0300)]
sscanf -> ksscanf
Aggelos Economopoulos [Fri, 3 Jul 2009 19:02:04 +0000 (22:02 +0300)]
get mxge to build, stage 2/many
malloc,free -> kmalloc,kfree
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
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
Matthew Dillon [Wed, 8 Jul 2009 19:43:39 +0000 (12:43 -0700)]
AMD64 - Use ld -r to generate .ko for modules.
Matthew Dillon [Wed, 8 Jul 2009 19:34:10 +0000 (12:34 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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.
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.
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.
Matthew Dillon [Wed, 8 Jul 2009 16:11:37 +0000 (09:11 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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
Sascha Wildner [Wed, 8 Jul 2009 12:06:45 +0000 (14:06 +0200)]
pciconf(8): Fix some warnings.
Sepherosa Ziehau [Wed, 8 Jul 2009 10:56:54 +0000 (18:56 +0800)]
Bump __DragonFly_version after introducing PCI domain
Requested-by: hasso@
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.
Sepherosa Ziehau [Tue, 7 Jul 2009 11:08:44 +0000 (19:08 +0800)]
Intel P-State CPU driver: Support ioport control/status registers
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.
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.
Sepherosa Ziehau [Tue, 7 Jul 2009 03:49:45 +0000 (11:49 +0800)]
ACPI P-State: Try allocating resource for CSR
Sepherosa Ziehau [Tue, 7 Jul 2009 03:11:51 +0000 (11:11 +0800)]
acpi_bus_alloc_gas: Constify gas parameter
Sepherosa Ziehau [Tue, 7 Jul 2009 03:01:06 +0000 (11:01 +0800)]
ACPI C-State: Move rid allocation into ACPI CPU and save rid for each C-State
Sepherosa Ziehau [Tue, 7 Jul 2009 02:18:27 +0000 (10:18 +0800)]
ACPI P-State: Wrap ACPI_GENERIC_ADDRESS in struct acpi_pst_res
Some Intel CPUs' will need iomem/ioport to configure P-State, so
this change gives us enough space to implement this mechanism.
Sepherosa Ziehau [Tue, 7 Jul 2009 01:41:04 +0000 (09:41 +0800)]
ACPI package: Factor out acpi_PkgRawGas()
It saves the ACPI_GENERIC_ADDRESS in the specified memory location.
Sepherosa Ziehau [Tue, 7 Jul 2009 01:20:19 +0000 (09:20 +0800)]
ACPI P-State: Get rid of 'H' suffix
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).