| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix acpidump CID 1011278 (Buffer not null terminated) and other issues
Coverity reports that a buffer used for temporary file generation
might not be NUL terminated by strncpy(). This is probably not
true because the input gets passed through realpath(), but if the
path name is sufficiently long the name could be truncated and cause
other problems. The code for generating the temp file names is
also overly complex. Instead of a bunch of calls to strncpy() and
and strncat(), simplify the code by using snprintf() and add checks
for unexpected truncation.
The output file created by iasl -d is predictable. Fix this by
using mkdtemp() to create a directory to hold the iasl input and
output files.
Check the return values of more syscalls.
Reported by: Coverity
CID: 1011278
Reviewed by: jkim
Differential Revision: https://reviews.freebsd.org/D6360
|
|
|
|
| |
Print 64-bit addresses clearly with leading zeros to avoid confusions.
|
|
|
|
| |
Do not crash when RSDT/XSDT contains an empty entry.
|
|
|
|
|
|
|
|
|
|
|
| |
Merge ACPICA 20140926.
MFC r278970 (by jkim):
Merge ACPICA 20141107 and 20150204.
Approved by: jkim
Relnotes: yes
|
| |
|
|
|
|
|
|
|
| |
The DMAR table is documented in chapter 8 of the Intel VT-d specification.
Reviewed by: jhb
Obtained from: NetApp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In addition to adding `static' where possible:
- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
|
|
|
|
|
|
| |
used to complement the SRAT table on NUMA machines.
MFC after: 1 week
|
|
|
|
|
|
| |
PR:bin/169707
Submitted by:Dan Lukes <dan@obluda.cz>
MFC after:3 days.
|
| |
|
|
|
|
| |
Pointed out by: des.
|
| |
|
| |
|
| |
|
|
|
|
| |
Submitted by: Hans-Joerg_Hoexer@genua.de
|
|
|
|
|
|
|
|
|
|
|
|
| |
for table layouts, etc. rather than homerolling our own structures and
constants in acpidump.h.
- Verify the extended checksum on the RSDP.
- Handle new ACPI 3.0 fields in MADT including X2APIC entries and
UIDs for local SAPICs.
- Add handling for new ACPI 3.0 flags in the FADT.
Reviewed by: jkim
MFC after: 1 month
|
|
|
|
|
|
|
|
| |
relationships between CPUs and memory.
Reviewed by: jkim
Approved by: re (kib)
MFC after: 1 week
|
| |
|
|
|
|
|
|
| |
as a pointer type.
Submitted by: Christoph Mallon - christoph mallon at gmx de
|
|
|
|
| |
sentinel.
|
|
|
|
| |
MFC after: 7 days
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Since we can only override the DSDT, a custom ASL dumped previously that
contained SSDTs would result in lots of multiple definition errors.
A longer-term fix involves adding the ability to override SSDTs to ACPI-CA.
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
This gets us the info we need on systems which have proprietary tables that
don't match the standard. For instance, an AMI system has a table of type
"OEMB" with an invalid checksum.
Tested by: Maxim Maximov <mcsi_at_mcsi.pp.ru>
MFC after: 1 day
|
|
|
|
|
|
|
|
|
| |
now include the contents if any SSDT table as well. This makes use
of the property that one can concatenate the body of SSDT tables to
the DSDT, updating the DSDT header (length and checksum) and end up
with a larger and valid DSDT table. Hence, this also works with -f.
Reviewed by: njl@
|
| |
|
| |
|
|
|
|
|
|
| |
This fixes a bug where acpidump -d crashed (but not -t -d).
Submitted by: Alex Vasylenko <lxv@omut.org>
|
|
|
|
|
| |
Add fadt_revision for telling if the FADT has correct 64 bit addresses,
separate from whether the XSDT has legal 64 bit addresses.
|
| |
|
|
|
|
| |
to print).
|
| |
|
|
|
|
| |
appropriate. This should be the last change to make ia64 work.
|
| |
|
|
|
|
| |
required fields, no matter what their value.
|
|
|
|
| |
Courtesy of: rwatson's chart presentation
|
|
|
|
| |
Courtesy of: USENIX hall track
|
|
|
|
|
|
|
|
| |
but has invalid 64 bit pointers for FACS and DSDT.
o Finish work to print all of the FADT and FACS.
o Resort the comment generating functions. Submitted by: marcel
Courtesy of: BSDcon back wall
|
|
|
|
| |
Submitted by: marcel
|
|
|
|
|
|
|
| |
Update FADT for new fields including pm_profile, pstate_cnt, and cst_cnt.
Add acpi_print_gas() for printing various address formats.
Print FACS contents.
Remove unused code.
|
|
|
|
|
| |
Also clean up the output of dumped tables. Update the man page for the
new usage. Make WARNS=6 clean.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
What is the HPET I hear you ask? It is the High Precision Event Timer
that is supposed to supplement and eventually replace the 8254 timer and
the RTC periodic interrupts. Among other things, it is 64 bit (can be
run in 32 bit mode for 32 bit cpus), and is suitable as a replacement for
the ACPI timer on SMP systems (the specs are much better) and as a
replacement for the ITC based synthetic clock for on ia64 systems.
It seems IA64 and AMD64 systems tend to have this. It is likely to start
showing up in i386 systems if it isn't already on some of them.
|
|
|
|
| |
Reviewed by: diff
|
|
|
|
|
|
|
| |
contents in the form of a comment in the acpidump output. The output
is not in the prettiest output, but it does work correctly.
Approved by: marcel
|
|
|
|
|
|
|
|
|
|
|
| |
RSDP. Scan the first 1MB on i386 if the sysctl fails,
o Extend struct ACPIrsdp with the ACPI 2.0 fields which involves
changing a prior reserved field into the ACPI revision,
o Only calculate the RSDP checksum on the first 20 bytes to remain
compatible with ACPI 1.0 tables; we don't check the extended
checksum covering the whole table,
o Use the length field in the RSDP to map the RSDP into the address
space so that we don't have to know about future extensions here.
|
|
|
|
|
|
|
|
|
|
|
| |
ports/devel/acpitools (iasl).
- Merge AML parser to build ACPI namespace
- Comment header info. out so that ASL compiler ignore them
- Fix DSDT header size to be discarded when DSDT file is specified
for input (acpidump and amldb)
- Write DSDT header as well into DSDT file for output
- Fix some trivial typo (Concatenate and SizeOf)
- Remove DEBUG_FLAGS from Makefile (acpidump and amldb)
|
|
|
|
|
|
|
|
|
|
| |
- acpiconf Replace include files from old acpi driver to acpica driver.
New sleep type `4b' had been added (S4BIOS) for `-s' option.
Of course this has no effect because driver doesn't
support it for now :-)
- acpidump All needed structs in sys/dev/acpi/*.h had been merged
into local header file. No changes on its usage.
|