summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
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-29disable the isa wdc's because amd64 machines are much more likely toTheo de Raadt
be legacy-free machines built by Dell monkeys who then (it seems) reuse the io address space for something else. Touch it, and the
2009-11-29disable the isa wdc's because amd64 machines are much more likely toTheo de Raadt
be legacy-free machines built by Dell monkeys who then (it seems) reuse the io address space for something else. Touch it, and the machine resets. Great....
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-26wdc@isa ok deraadtJonathan Gray
2009-11-26knf relative to i386Theo de Raadt
2009-11-26re-init the fpu like on i386Theo de Raadt
2009-11-26Really want isa.h when using #ifdef NISA > 0Theo de Raadt
2009-11-26Fix a stack problem on amd64, now the resume functions get called properly.Mike Larkin
Tested mlarkin on thinkpad x60, pirofti on dell d620, and deraadt on thinkpad T61. ok deraadt@, pirofti@
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-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-23oops, call config_activate_childrenTheo de Raadt
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-22Missed 4 MSRs on suspend/resume in previous version. Tested by piroftiMike Larkin
and myself, ok pirofti@
2009-11-22Check for ISA before calling the setup function.Paul Irofti
Suggested by and okay mlarkin@.
2009-11-22Bring amd64 closer to resume, while at it kill dead code. Okay deraadt@.Paul Irofti
2009-11-22Match the i386 behaviour and only care about bus_clock if weJonathan Gray
don't have the tables from acpi. This way we don't have to have knowledge of the cpu model to do speedstep in the acpi case. ok kettenis@
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-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-01Remove bogus #define __HAVE_GENERIC_SOFT_INTERRUPTS. No code change.Mark Kettenis
2009-10-29iha(4), just like on GENERIC; from bradTheo de Raadt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-27Bah didn't man to commit the GENERIC part just yet.Marco Peereboom
Reminded by deraadt.
2009-10-27Add driver for MPI2 SAS HBAs. This covers LSI MPT2 and Dell H200 HBAs.Marco Peereboom
IO works fine but it will remain disabled for now. From James Giannoules dlg: go go go
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-07add support for the temperature sensor of VIA Nano and C7-M CPUs.Kevin Lo
some improvements suggested by jsg@ "commit" deraadt@
2009-10-06Allow MD limits for allocating PCI io and mem space and specify limits onMark Kettenis
i386 and amd64 to make avoid legacy ISA I/O registers. Fixes issues with ThinkPad T-series Dock II units as reported by sobrado@ ok miod@
2009-09-30Fix comments to match reality.Tobias Weingartner
Thank you Vladimir Kirillov <proger () hackndev ! com>
2009-09-28Make video buffer area and BIOS areas unavailable for PCI resource allocation.Mark Kettenis
This should prevent problems on systems where these areas are not reserved in the BIOS memory map. ok miod@, oga@, marco@
2009-09-20Back out via nano temperature sensor changes.Jonathan Gray
They break ramdisks as noticed by jasper, and have not been adequately discussed.
2009-09-20add support for VIA Nano cpu core temperature sensorKevin Lo
ok deraadt@
2009-09-18ldt removal missed some. amd64_{get,set}_ldt gone. also removeMartynas Venckus
ldt_{alloc,free} to shave a few. ok jasper@, oga@
2009-09-18For some dark reason there's a bit on the VLINK device of this chipsetMark Kettenis
that makes the PCIE device show up as a host bridge instead of a PCI-PCI bridge. As a result any devices sitting behind it won't be detected. Whack the device into PCI-PCI mode such that we can walk the PCI bus hierarchy the normal way and detect all devices. Fixes PR 6215. ok dlg@
2009-08-25Legacy-free PC hardware do not have a real PS/2 keyboard controller, butMiod Vallat
rather have the USB HCI emulate it during boot, while legacy mode is enabled. This causes pckbd0 to attach as the console device, but is lost as soon as the USB HCI driver attaches. The disappearance of the emulated PS/2 controller can however be detected in pckbc(4) - which is supposed to attach after [eou]hci(4), with the controller refusing to ack commands and replying ``please resend'' instead. In that case, the kernel will now no longer attach pckbd, and will perform a new console input device selection, allowing the (real) usb keyboard to become the console. Thanks to krw@ for countless tests on legacy-free hardware; also tested on more conventional hardware by naddy@ and I. Only amd64 and i386 platforms are affected by this change.
2009-08-25iha(4) works on amd64; tested by downsjTheo de Raadt
2009-08-22Constify the what/name parameter of pci_intr_establish().Michael Knudsen
Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
2009-08-14enable lisa(4); tested by Marco Knol; ok deraadtConstantine A. Murenin
2009-08-13Cleanup differences between i386 and amd64.Mark Kettenis