summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2013-10-23Crank bootblock versions after last commitMike Larkin
2013-10-23Allow uppercase "K/M/G" specification in "machine memory" boot command.Mike Larkin
ok guenther, dlg, deraadt
2013-10-21enable support for VMware ParaVirtual SCSI via vmwpvs(4).David Gwynne
ok deraadt@
2013-10-20Realmode park is causing more problems than it's solving. Remove until weMike Larkin
have a better handle on it. Add an assert in i386 MP hibernate quiesce cpu function to ensure we are running on the BSP
2013-10-20Bump version numbers. Was supposed to be part of the keydisk boot commit.Stefan Sperling
2013-10-20Add i386/amd64 boot(8) support for keydisk-based softraid crypto volumes.Stefan Sperling
So far, only passphrase-based crypto volumes were bootable. Full disk encryption with keydisks required a non-crypto partition to load the kernel. The bootloader now scans all BIOS-visible disks for RAID partitions and automatically associates keydisk partitions with their crypto volume. Attempting to boot from a volume without its keydisk currently results in a passphrase prompt (this might be changed in the future). There is no need to re-create existing volumes. Moving the root partition onto the crypto disk and running installboot(8) is all that's needed. help & ok jsing
2013-10-20Simplify definition of the side-effect-free wd io routine.Theo de Raadt
2013-10-20SMEP (on Ivy Bridge and later CPUs) require page protections that includeMike Larkin
at least one supervisor mode (U/S bit = 0) setting in higher level paging structures. This diff removes PG_u flags from the hibernate resume time pmap (there was really no reason we needed it), to allow hibernate to work on Ivy Bridge and later CPUs. ok deraadt
2013-10-19Use daddr_t * instead of int * for the partoffp parameter toKenneth R Westerback
readdoslabel(). Ditto all the MD variables whose addresses are passed to readdoslabel() via partoffp. Fix some 512-byte block vs disk sector confusion in hppa and sgi. All the DL_GETxxxxx() defines return disk sector values. All DL_SETxxxx() take disk sector values. These changes should be no-ops until a drive using non-512-byte-sectors is encountered. ok deraadt@
2013-10-18Remove an incorrect assert used in the real mode parking code forMike Larkin
unhibernate. ok deraadt
2013-10-18Disable global page mappings before we start to unpack. This was likelyMike Larkin
one cause of the random gzip errors and reboots we've been seeing with hibernate as we were creating new mappings for kernel text which likely conflicted with the non-flushed global mappings from the resuming kernel. Also remove an unnecessary wbinvd (i386) ok deraadt
2013-10-17Remove a.out leftovers now that libsa loadfile() will only boot ELF binaries.Miod Vallat
2013-10-17Remove support for a.out and ecoff. We only do elf now.Theo de Raadt
ok miod
2013-10-16Revert unintended changes.Florian Obser
Requested by guenther@ how is currently off net.
2013-10-15Rewrite the awk script that generates the data for option DDB_STRUCT:Philip Guenther
- switch to perl for better data structures and (thus) speed - fix a couple glitches in the interpretation of the stabs output - compress the strings by putting them in one big array and overlaying suffixes - all sizes and offsets are <64k, so use u_short for them This results in ~60% reduction in the resulting text size and it now takes less than a second to create on fast platforms. ok miod@
2013-10-05Use K1X_FID macro on msr read.Bryan Steele
2013-10-05Revert one chunk from previous: don't need another #include herePhilip Guenther
2013-10-05Use monitor/mwait to idle when available. Make cpu_unidle() do nothingPhilip Guenther
if can tell the target CPU isn't actually idling and introduce cpu_kick() for the cases where we want to force a non-idle CPU into the kernel. critical review of early versions by weingart@; testing by many ok haesbaert@ krw@
2013-10-02Format string fixesStefan Fritsch
- cast void * before using as %s - imm2 is int
2013-09-29Get rid of cnset(). It is only used on amd64/i386 and doesn't really doMark Kettenis
anything useful there. Switching from glass console to serial console is already done by cninit(), and the reinitializaton of cn_tab by cnset() breaks the conseleness checks in the wsdisplay code. Tested on various amd64/i386 systems with both glass and serial console. ok mpi@
2013-09-28In boot(), do not iterate over alldevs if it's empty (i.e. halting from ddbMiod Vallat
with ddb entered early with boot -d or from UKC).
2013-09-26Use the cpuid vendor string instead of the model string when enablingJonathan Gray
VIA specific amd64 code. Makes the code work with Eden X2 processors which have the same model/family as a Nano but don't claim to be one in the model string. from bytevolcano at Safe-mail.net
2013-09-08Enable vmx(4) on i386 and amd64.Reyk Floeter
It will be enabled by default in the GENERIC and RAMDISK_CD kernels, but you have to set vmxnet3 in the VMware configuration on the host; see vmx(4). ok deraadt@
2013-09-05ugold(4) is a driver for PCsensor's USB gold TEMPer temperaturesasano
measurement device (idVendor:idProduct=0x0c45:0x7401). newly added. ok by mpi@ and sthen@
2013-08-24fix use of uninitialized variables (used only in a DEBUG printf)Mike Larkin
found by Maxime Villard
2013-08-24Remove call to sched_start_secondary_cpus in MP unhibernate case until weMike Larkin
can more fully understand the side-effects. Tested by various people back at t2k13, been sitting in my tree since then.
2013-08-24Cleanup amd64 and i386 MTRR code -Mike Larkin
1. Makes amd64 and i386 MTRR code nearly identical 2. Removes support for per-process MTRRs (which were never implemented) 3. Treat "unknown" MTRR types as uncacheable instead of trying to preserve bogus settings made by the BIOS 4. Various KNF cleanups Should be no functional change. ok jsg@, deraadt@
2013-08-21Use the console locator to make sure wsdisplay0 always is the glass console.Mark Kettenis
ok miod@
2013-08-20Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.Antoine Jacoutot
No regression has been reported since libusb became the prefered solution to work with USB scanners. req. by mpi@ ok ian@ mpi@ miod@
2013-08-20ehci(4) without usb(4) is useless... from Alexey E. Suslikov.Martin Pieuchot
ok kettenis@
2013-08-15Blast uhts(4). This code was merged into ums(4) last week.Edd Barrett
OK mpi@
2013-08-15Include files.agp and files.drm from files.pci. Makes sure "drm.h" getsMark Kettenis
generated on all architectures that support pci, making alpha and loongson compile again. ok todd@, miod@ seemed to agree with the idea
2013-08-13Let ray(4) rot in the attic. OK mpi, jsg, kettenis, henning, millert.Mike Belopuhov
Mickey approves these changes.
2013-08-12Add a port of the TTM and Radeon DRM code from Linux 3.8.13.Jonathan Gray
Includes kernel modesetting, framebuffer console and support for newer hardware. Firmware needs to be present for acceleration and in some cases modesetting to work. It can be installed via fw_update or manually via pkg_add. With lots of help from kettenis@ some macppc bits from mpi@ and some ttm refcount/queue bits from FreeBSD. Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.
2013-08-03Don't flush the cache on page inflate for hibernate on amd64.Mike Larkin
Makes the x200 and w500 and probably other machines go a bit faster during resume from hibernate. This had been in my tree since t2k13.
2013-07-30Or in the CPUID_NXE bit from ci->ci_feature_eflags into ci->ci_feature_flagsMark Kettenis
to mimic what is done in locore.S. Otherwise we lose the CPUID_NXE bit. ok matthew@
2013-07-05Take II, this time without flubbing off_t: : move several internalPhilip Guenther
type definitions that are the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@ kettenis@ otto@
2013-07-04backout previous; off_t must be signed and there might be other C++ APIOtto Moerbeek
breakage lurking; ok kettenis@
2013-07-04To ease future changes, move several internal type definitions that arePhilip Guenther
the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@
2013-07-01Make the acpi global lock functions actually work. Luckily these functionsMark Kettenis
were still unused. ok millert@
2013-06-29Remove unsigned comparison >= 0.Brad Smith
Pointed out by LLVM. ok matthew@ kettenis@
2013-06-26Since interrupts at IPL_AUDIO no longer grab the kernel lock, and nobodyMark Kettenis
is supposed to establish interrupts at IPL_VM, we only need to "flatten" mutex ipls up until IPL_TTY. Add an assertion to enforce that IPL_AUDIO interrupts are establish with the IPL_MPSAFE flag set. Should improve latency of audio interrupts a tiny bit. ok matthew@
2013-06-23Stop using -traditional-cpp on gcc3/4 platforms.Miod Vallat
Add CWARNFLAGS to the command line when using -xassembler-with-cpp. We are mostly interested in -Werror here.
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-04Remove remaining references to HIBERNATE_COPY_PAGE. It was effectivelyMike Larkin
removed at n2k13 but a few errant references still remained. No functional change. Spot tested by my on i386 and amd64 UP environments, no regressions seen. noticed by deraadt@
2013-06-04Cpu topology for AMD64.Christiano F. Haesbaert
This adds information about smt id (thread), core id and package id (socket) to amd64. ci_smt_id, ci_core_id, ci_pkg_id should be followed by other archictectures and core relying on them should be under ARCH_HAVE_CPU_TOPOLOGY. ok tedu@
2013-06-04Add RCS ids.Paul Irofti
2013-06-03Convert some internal APIs to use timespecs instead of timevalsPhilip Guenther
ok matthew@ deraadt@
2013-06-03changes for isc fuse support. not enabled. ok beck deraadt.Ted Unangst
from Sylvestre Gallon ccna.syl gmail.com
2013-06-02Revert previous: libsa/ufs.c was fixed to not use big types when notPhilip Guenther
necessary. If something crawls in again that needs these we want to know ok deraadt@