summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2010-01-11Increase/decrease the per-CPU interrupt depth variable around APIC interruptsMark Kettenis
like we do for PIC interrupts. ok art@, deraadt@, oga@
2010-01-10Fix two bugs in IPsec/HMAC-SHA2:Markus Friedl
(1) use correct (message) block size of 128 byte (instead of 64 bytes) for HMAC-SHA512/384 (RFC4634). (2) RFC4868 specifies that HMAC-SHA-{256,384,512} is truncated to nnn/2 bits, while we still use 96 bits. 96 bits have been specified in draft-ietf-ipsec-ciph-sha-256-00 while draft-ietf-ipsec-ciph-sha-256-01 changed it to 128 bits. WARNING: this change makes IPsec with SHA-256 (the default) incompatible with older OpenBSD versions and other IPsec-implementations that share this bug. ok+tests naddy, fries; requested by reyk/deraadt
2010-01-03enable aibsTheo de Raadt
2009-12-20compile in utrhTheo de Raadt
2009-12-09add uhts(4).Matthieu Herrb
2009-12-09Remove the clean gdt bit and leave the idt part in.Paul Irofti
Fixes most laptops out there on resume. Okay deraadt@.
2009-12-09add two new MD only pmap apis to amd64 and i386 (not to be used in MIOwain Ainsworth
code): pmap_flush_cache(vaddr_t, vsize_t) and pmap_flush_page(paddr_t) to flush the cache for virtual addresses and physical pages respectively using the clflush instruction. These apis will shortly be used by the agp bus_dma functions to avoid doing a wbinvd on each dmamap_sync. ok kettenis@, some comments from miod@
2009-12-09add cpufunc functions for the clflush instruction and the mfenceOwain Ainsworth
instruction. ok kettenis@ as part of a larger diff.
2009-12-09Detect the cache line size for the clflush instruction when we identifyOwain Ainsworth
the cpu. ok kettenis@ as part of a larger diff.
2009-12-04ahc fits againTheo de Raadt
2009-12-01Don't claim to know about nehalem until we can be sureJonathan Gray
the the msr paths are sane. ok deraadt@
2009-12-01The MD ACPI PSS paths are using MSRs they shouldn't beJonathan Gray
so don't try to do EST on machines we don't know the bus_clock on for now. ok deraadt@
2009-11-30KNFPaul Irofti
2009-11-30Bump up array size to prevent overflow when probing memoryCan Erkin Acar
on machines reporting > 32 memory regions. ok kettenis@
2009-11-29At suspend time there is no need for a fancy cr3 dance to decide ifTheo de Raadt
pmap_activate() should be called to force the kthread into the kernel pmap. If it is i386 it is lazy pmap it may not be in the kernel kthread, so it must be called so that pmap_activate can decide. If it is amd64 without lazy pmap, it must not be called. A comment is added to remind us about this in the future in case these assumptions change. ok kettenis
2009-11-29Reload mtrr state on all CPUs after updates. Seems to speed up X on MPMark Kettenis
systems, at least with Intel graphics. ok marco@, deraadt@
2009-11-27Move MB_LEN_MAX into the machine-independent sys/limits.h header,Philip Guenthe
rather than defining it separately for each architecture. Also set it to 4, to accommodate for future UTF-8 support (rfc3629). Diff by stsp, committing to catch the libc major bump ok kettenis@, guenther@
2009-11-26Reset the wakeup vector to ensure that we don't resume on reboot.Mike Larkin
Temporarily disabled for debugging purposes, but can be turned on if needed. ok deraadt@
2009-11-26do not pull acpi_wakecode.o into RAMDISKSTheo de Raadt
2009-11-26move gcu* to near what it is used byTheo de Raadt
2009-11-26Add an explicit check for supported models (10, 13, 15) before setting up theNicholas Marriott
Via CPU temperature sensor task, otherwise it is added for model 9 as well which is not supported. ok kevlo
2009-11-25Repair typo in commented-out DRM option, 'sure' oga@Ian Darwin
2009-11-25add gcu(4) to GENERIC and RAMDISK_CDDariusz Swiderski
ok deraadt@
2009-11-25Make sure we get a clean gdt from the BIOS.Paul Irofti
Some vendors screw us up on resume giving back a dirty gdt which prevents us to go into protected mode. This makes sure the gdt is clean, its the only way to do this and its the only way to be sure we're clean on resume. This fixes quite a few laptops that didn't resume but rebooted or did other screwy things because of a dirty gdt. Worked with mlarkin@ for quite a few houres last night. Tested by many on both amd64 and i386. Okay deraadt@.
2009-11-24Save FPU state before suspend.Mike Larkin
ok deraadt@, kettenis@
2009-11-24Poke CR3 one last time before resuming. Suggested by deraadt@.Mike Larkin
ok deraadt@
2009-11-24enable uthum(4), and rearrange some nearby goopTheo de Raadt
2009-11-23diffable against amd64Theo de Raadt
2009-11-23bios* devices need to call their children on suspend/resume.Mike Larkin
ok deraadt@
2009-11-23Remove ACPI_SLEEP_ENABLED checks.Paul Irofti
This enables by default the suspend/resume paths in the kernel. Okay deraadt@.
2009-11-23pchb must walk children tooTheo de Raadt
2009-11-23Use config_activate_children() for our cf_activate functionTheo de Raadt
ok mlarkin pirofti
2009-11-22Repost the vbios and remove a spurious cli on i386 ACPI resume code.Mike Larkin
Makes i386 and amd64 behave the same way with respect to vbios repost. ok pirofti@
2009-11-18Don't whinge about not knowing the bus_clock for EP80579 (model 0x15)Jonathan Gray
as there is no FSB and the processors don't have speedstep anyway.
2009-11-15athn(4) has a future in here.Theo de Raadt
2009-11-14athn(4), a driver for Atheros 802.11a/g/n devices.Damien Bergamini
written from scratch based on the vendor driver for Linux (ath9k). AR9285 and AR9287 parts are 100% untested. only basic functionnalities are enabled for now. committed over an AR9281. "commit" deraadt
2009-11-12oops my slow editor conspired against meTheo de Raadt
2009-11-12if the table got messed up, early loop termination is not gauranteed, andTheo de Raadt
subsequent code will be out of bounds; unlikely situation. found by parfait ok weingart
2009-11-08update description for iwn(4)Damien Bergamini
2009-11-04Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.Mark Kettenis
ok jsing@, miod@
2009-11-03fix previous commit.Damien Bergamini
do not ignore BUS_DMA_NOCACHE (used by some variants of auich and ati drm only). ok kettenis "That looks right" deraadt
2009-10-31s/Mhz/MHz/, MHz is a multiple of the SI unit hertz (whose symbol is Hz).Igor Sobrado
2009-10-30correct interrupt status bits; patfbsd@davenulle.orgTheo de Raadt
2009-10-28delete balony comment; ok kettenisTheo de Raadt
2009-10-28 no more eisa, sorryTheo de Raadt
2009-10-26Load %mxcsr when initializing the FPU on machines that support SSE.Mark Kettenis
ok deraadt@
2009-10-24Match on `esm' as the device name, not `anything starting with esm'; ok dlg@Miod Vallat
2009-10-19Correct a target name so that we don't rebuild vers.o (and thenPhilip Guenthe
bsd) unless some other object has changed. Rebuild and reinstall in /usr/src/usr.sbin/config/ after updating! "I like it" deraadt@
2009-10-07This file is supposed to compile.Theo de Raadt
2009-10-07add support for the temperature sensor of VIA Nano and C7-M CPUs.Kevin Lo
some improvements suggested by jsg@ "commit" deraadt@