summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2010-09-22Add a new interface pppx(4) -- the ppp multiplexer to be used with npppdClaudio Jeker
and pipex. pppx(4) creates an interface whenever a session is created so that altq and pf can work on these. Started by dlg@ debugged and made usable by myself OK dlg@ yasuoka@ deraadt@
2010-09-22remove unused offset argument to rbus functionsJonathan Gray
ok krw@ kettenis@
2010-09-21Make splassert(IPL_NONE) work on amd64 the same as it does on i386.Matthew Dempsky
ok oga@ (a while back)
2010-09-20Get rid of evcount's support for arranging counters in a treeMatthew Dempsky
hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
2010-09-10Provide a bus_dmamap_sync() implementation for the IOMMU. Fixes bigmem.Mark Kettenis
tested by naddy@, ok dlg@
2010-09-08activate NTFS, let's hope it gets less experimental soon (as beck@ said)Marc Espie
okay'd by thib@, who now owns a spanking new ntfs image... deraadt@ 'okay if thib@ lets you'
2010-09-07enable aesni.Mike Belopuhov
that means that all users running ipsec on amd64 with 'aes' cpu flag will have aes encryption accelerated in cbc and ctr modes for all three key sizes: 128, 192 and 256. for debug purposed a number of operations performed by the driver is visible throught the pstat(8) utility: pstat -d u aesni_ops note that you need to run config(8) to hook up new files. ok kettenis thib deraadt
2010-09-07shorten fpu critical sections so that all frees and other manipulationsMike Belopuhov
won't interfere with an actual fp code. reminder from kettenis: fpu_kernel_enter and fpu_kernel_exit should be thought of as if they were mutex_enter and mutex_leave in regard to the length of critical section and sleeps. ok kettenis thib
2010-09-06Make sure bus_dmamap_sync() always involves a function call, to prevent theMark Kettenis
compiler from doing stupid things like reordering stores around it. There is some debate whether this will be enough for newer versions of GCC and LLVM. If this is indeed deemed necessary, this will be addressed in a future diff. ok miod@, oga@
2010-09-06Stop sending so many superfluous IPIs: zero out pm_cpus in pmap_create(),Philip Guenthe
don't set the current cpu's bit in pmap_activate() unless we actually set %cr3, and add a DIAGNOSTIC printf to pmap_destroy() to catch if we ever stop tracking them accurately again. Also, GC the unused pm_flags member. ok deraadt@, oga@
2010-08-31Add DVACT_QUIECE support. This is called before splhigh() and beforeTheo de Raadt
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod.
2010-08-31pchbactivate should return result of config_activate_childrenTheo de Raadt
2010-08-30delete PROCFS we will never supportTheo de Raadt
2010-08-19Add "memory" clobber to lidt inline asm, to prevent the GCC optimizer fromMark Kettenis
getting stupid ideas like optimizing away stores to the descriptor that we're setting. This may be overkill, but this code is far from performance critical and it may prevent future surprises. Fixes instant reboots with bsd.rd on Pentiums with the F00F bug. Thanks to espie@, for narrowing the issue down enough for me to find the problem. ok deraadt@
2010-08-11Disable the RTC the periodic interrupt. Leaving it enabled causes theMark Kettenis
Dell Inspirion 4150 to wake up immediately even though RTC_EN isn't set in the PM1 Enable register. ok deraadt@, mlarkin@
2010-08-11crank versionTheo de Raadt
2010-08-11De-inline CHS_rw. Somehow the merger of two monster __asm __inline statementsTheo de Raadt
into one function is generating broken code; it might be because of missing register clobbers. This is a workaround... it'd be nice to know the real problem work done with mlarkin and pirofti
2010-08-10add a description for bsd.sp where appropriate; while here, writeIgor Sobrado
"multiprocessor" in a consistent way. written with lots of good advice from jmc@, who noted that changing hier(7) was not enough and carefully reviewed this diff. ok jmc@
2010-08-10Someone went nuts with spaces and tabs. No binary change.Marco Peereboom
2010-08-08Accept "ACPI 4" or such, bug in laptop or spec? -- Thinkpad SL510Theo de Raadt
from marco, ok kettenis, hard to argue with it making the laptop work
2010-08-08Restore the APIC ID to what we set it to at boot (some machines come upTheo de Raadt
with it incorrect) from mklarkin, ok kettenis
2010-08-08Reenable acpiasus(4). The bogus code is actually dead code, and jsing@'sMark Kettenis
eeepc panics without this driver (which must be a bug in the acpi code that this driver just hides).
2010-08-08Disable acpiasus(4); it violates the rule that only the acpi thread is allowedMark Kettenis
to run AML in several ways.
2010-08-07On resume, re-activate the host RNG on the host bridges that need it.Theo de Raadt
ok kettenis
2010-08-05new i386/amd64 machdep.lidsuspend sysctl which decides whether a lidTheo de Raadt
close causes a suspend. resumes are not tied to this; they happen unconditionally. this is a temporary knob for the 4.8 release; afterwards it will move to a more convenient place much moaning discussing where to put the knob with kettenis tested by various including phessler
2010-08-04Disable bce(4) because it can only access 1GB of memory and developersTheo de Raadt
who have the device (only found in laptops) refuse to realize it is their own problem and should dig into the code and fix it.
2010-08-02Add System Enclosure or Chassis structure.Marco Peereboom
ok deraadt
2010-08-02enable owctrTheo de Raadt
2010-07-31remove the ``midisyn'' framework and anything using it, i.e., the oplAlexandre Ratchov
device and the midi interface to pcppi.
2010-07-29Don't forget to register the i8254-based timecounter if we use the i8254Mark Kettenis
for clock interrupts. Unbreaks amd64 in PIC mode.
2010-07-29Zero out the firmware waking vector on successful resume from ACPI sleep.Mike Larkin
ok deraadt@
2010-07-27delete a #if 0 chunk which was used for early development and will neverTheo de Raadt
be reused ok jordan
2010-07-27acpiasus for amd64 too, Henri KemppainenTheo de Raadt
2010-07-26Add support for Sony ACPI hotkeys via a new driver: acpisony(4).Paul Irofti
Currently it only works for the suspend button and tries to do right for the brightness events, but I haven't found a Sony laptop that like to do right so far. In the future I want to make the brightness keys work on all Sony's and also add support for the zoom hotkeys and whatever other funky keys I can find on those things. Okay deraadt@.
2010-07-25in the clock drivers, seperate the soft-state and hard-state which wasTheo de Raadt
all jumbled up in the same functions. the rtc (mc chip) and clock (i8243) startup was also mixed up. they the soft state and hardware state can be started in the right order, and it is easy to restart just the neccessary parts upon resume. tested in numerous cases: (apic, pic) * (GENERIC.MP, GENERIC) * (mp, non-mp) * (i386, amd64) ok kettenis
2010-07-23Change the strategy for using the FPU in the kernel. The kernel FPU stateMark Kettenis
is now shared with all processes/threads. As a result, you can now use the FPU in true process context (instead of just in kernel threads), but you need to make sure you restore the default FPU state before calling fpu_kernel_exit() if you change rounding mode, precision or exception masks. Lots of discussion with thib@ and Mike Belopuhov. ok thib@, deraadt@
2010-07-23Don't leak the contents of the FPU and SSE registers between processes.Mark Kettenis
ok deraadt@
2010-07-23Omit more IPI code from non-MP kernels. Found using --gc-sections.Matthew Dempsky
ok deraadt@
2010-07-22Fixes for AES CTR mode from mikeb:Thordur I. Bjornsson
o Fix up counter increment for buffers larger then 64 bytes, by calling the increment routine before loading the IV into the encryption routine input register. o In aesni_encdec() regenerate the IV for every new request. Also use nice defines instead of magic constants for the size of ses_iv.
2010-07-22remove unused variableTheo de Raadt
2010-07-21Disable the heuristics for legacy free systems if pckbc flags are set to 1Miod Vallat
in UKC; found the hard way by jakemsr@ on an old Tecra laptop.
2010-07-21Fix more cdev initializations which were using enodev for poll; ok kettenisTheo de Raadt
2010-07-21Make sure that the FPU IPIs shoot down the right FPU context and not the FPUMark Kettenis
context of some random process that happened to be switched onto the FPU after the decision was made to send the IPI.
2010-07-09un-terminated string found when comparing to i386 boot code. TheseTheo de Raadt
should be 100% identical. ok toby
2010-07-08Add mapping for ACPI device to PCI bdf (match autoconf tree)Jordan Hargrave
Simplify resource parsing function to use buffer argument Convert namespace linked lists to use queue macros ok marco@, deraadt@
2010-07-08use config_activate_children to get down to the isa bus activation codeTheo de Raadt
2010-07-08better op buf handling. Instead of mallocing a new buffer for everyThordur I. Bjornsson
encdec operation, keep a PAGE_SIZE (or not, depending if we fail during setup) buf around; if the crd_len is larger then the current buf, re allocate a new one that fits the data, and keep it around.
2010-07-06timeout_add -> timeout_add_msecBret Lambert
ok art@
2010-07-06get rid of ridiculous differences between the i386 and amd64 versionsTheo de Raadt
2010-07-05Rework somewhat for safety, so that we only interpret the values ofJonathan Gray
the PERF_STATUS MSR on earlier processors when we can't find the values via acpi and have a bus clock value to use. And let processors we don't set a bus clock on (ie nehalem) use speedstep again. Expanded/changed version of a diff from gwk who isn't around right now.