summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpimadt.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use <stdint.h> types.kettenis2018-06-291-5/+5
| | | | ok mpi@, jung@, krw@, deraadt@
* Report a LAPIC address override entry in the dmesg if it doesn't matchguenther2016-09-171-1/+9
| | | | | | the normal one ok kettenis@ mlarkin@
* Store the acpi processor ID/UID in struct cpu_info, and use it to attachkettenis2016-07-281-7/+5
| | | | | | acpicpu(4) drivers to the right cpu(4). ok mlarkin@, guenther@
* Pay attention to Processor Local X2APIC structures. ACPI 6.0 allows thesekettenis2016-07-101-1/+37
| | | | | | | | even for APIC ID values less than 255. Makes secondary CPUs attach on the HP DL360 gen 9. tested by jung@ ok guenther@
* sizes for simple free() callsderaadt2015-08-251-2/+2
|
* Completely skip entries for disabled LAPICs so they don't overwriteguenther2015-06-261-4/+4
| | | | | | | legit enabled ones problem reported by Pedro Caetano (pedrocaetano (at) binaryflows.com) ok kettenis@
* More sanity checking for Local APIC NMI entries.kettenis2015-02-091-2/+3
| | | | ok deraadt@
* Replace some malloc(n*size,...) calls with mallocarray().doug2014-12-091-2/+3
| | | | ok tedu@ deraadt@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* If we find a bogus interrupt (undefined polarity or trigger) don't panic butkettenis2014-07-061-7/+20
| | | | | print a message and ignore the interrupt. There are BIOSen out there with random garbage in NMI entries for the non-BP CPUs.
* _PIC is an optional method, so we shouldn't be aborting the rest of themlarkin2014-05-181-3/+2
| | | | | | | | | | MADT processing if it is missing. This, combined with an earlier diff from kettenis@ to fix MADT interrupt polarity processing, should resolve the issues reported with QEMU/KVM ACPI power button presses when using OpenBSD guests. ok kettenis@, pirofti@ tested by myself and kettenis for the past few weeks
* Add X2APIC-related definitions for the MADT and silently skip them insteadkettenis2012-01-071-1/+13
| | | | of printing a warning.
* Set mp_nbusses such that the newly added bounds checks on i386 and amd64kettenis2011-10-211-1/+2
| | | | don't fail unconditionally.
* The global_int information acpi collects is not used by amd64.deraadt2011-03-061-7/+2
| | | | ok ketttenis
* Count number of cpus found (potentially not attached) and store thatderaadt2009-04-191-2/+4
| | | | in sysctl hw.ncpufound; ok miod kettenis
* Be a litte bit more paranoid and validate the APIC table before committingkettenis2009-02-161-1/+68
| | | | | | | to APIC mode. tested by many ok marco@
* Make this compile if !MULTIPROCESSOR.kettenis2008-09-151-1/+5
| | | | ok brad@
* Don't assume the first LAPIC in the table corresponds to the boot processor.kettenis2008-08-101-35/+29
| | | | | | Mark the processor we're running on as the boot processor instead. ok marco@, art@
* Fix $OpenBSD$ for once and for allmarco2008-06-111-1/+1
|
* Replace magic values with appropriate symbolic constants.kettenis2008-02-061-3/+3
|
* do not call aml_searchname and aml_evalnode afterwards, just usefgsch2007-12-071-6/+4
| | | | aml_evalname. marco@ ok.
* Hang acpi(4) below bios(4) instead of mainbus(4). This lets us move acpi(4)deraadt2007-12-051-2/+2
| | | | | | | before pcibios(4), and then.... if acpi(4) attaches, skip pcibios(4) since it messes the machines up. Fixes claudio's HP dl320 G5, and almost assuredly others. ok kettenis
* Don't add identity mappings for ISA interrupts for which we have an override.kettenis2007-11-181-3/+13
| | | | Tested by many; seems to fix ian@'s evil Compaq, at least with GENERIC.MP.
* the cpu_feature/cpu_id stuff here is bullshit, XXX it so that it gets fixed one day soonderaadt2007-11-161-1/+7
|
* fix the bus_space #define nightmare, so that amd64 and i386 are much morederaadt2007-11-161-5/+1
| | | | | uniform. as a result shared code like acpi needs less #ifdef's ok marco kettenis
* Make acpicpu(4) attach to the existing CPUs only.mikeb2007-11-151-1/+5
| | | | | | | Problem reported by form@. Fix idea by kettenis@. Lots of help from deraadt@. Tested by deraadt@, form@ and me. ok deraadt marco
* More simple memset(,0,) -> M_ZERO changes. In this batch move tokrw2007-10-081-5/+3
| | | | | | size(*p) as the first malloc() parameter where p is declared locally and thus easy to check. Add M_ZERO to gpe_table allocation in acpi.c even though there is no obvious bzero or memset nearby.
* Make an acpi-enabled GENERIC.MP work on systems that only support PIC mode.kettenis2007-02-211-1/+15
| | | | ok marco@
* Cleanup and hide debug messages.kettenis2007-02-141-10/+11
|
* Fix pasto.kettenis2007-01-281-2/+2
|
* Properly route lapic NMIs.kettenis2007-01-281-1/+38
|
* Assume that the first cpu in the table is the boot processor, instead ofkettenis2007-01-111-5/+5
| | | | | | the cpu with apic id 0. tested by many
* even more knf lovederaadt2006-12-211-15/+17
|
* spacingderaadt2006-12-211-2/+2
|
* sync amd64 to i386 w.r.t. acpi support. Also fix interrupt routing for multi-ioapic systems.niklas2006-11-251-1/+13
| | | | ok kettenis
* Added 2nd pass for interrupt override scanningjordan2006-11-201-1/+15
| | | | ok kettenis@
* dd pseudo-devices to handle acpi apic interrupt routing.kettenis2006-11-151-0/+249
ok jordan@