301141 |
01-Jun-2016 |
truckman |
MFC r300632
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 |
281506 |
13-Apr-2015 |
jkim |
MFC: r281335
Print 64-bit addresses clearly with leading zeros to avoid confusions. |
281505 |
13-Apr-2015 |
jkim |
MFC: r281331
Do not crash when RSDT/XSDT contains an empty entry. |
281075 |
04-Apr-2015 |
dim |
MFC r272444 (by jkim):
Merge ACPICA 20140926.
MFC r278970 (by jkim):
Merge ACPICA 20141107 and 20150204.
Approved by: jkim Relnotes: yes |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
252276 |
27-Jun-2013 |
jkim |
Consistently cast ACPICA 64-bit integer types when we print them.
|
251186 |
31-May-2013 |
jkim |
Fix a long standing logic bug introduced in r167814. The code was added to get RSDP from loader(8) hint via kenv(2) but the bug nullified the new code and we always fell back to the previous method, i. e., sysctlbyname(3).
MFC after: 3 days
|
244525 |
21-Dec-2012 |
neel |
Teach acpidump to dump the DMA Remapping Reporting table (aka DMAR).
The DMAR table is documented in chapter 8 of the Intel VT-d specification.
Reviewed by: jhb Obtained from: NetApp
|
241737 |
19-Oct-2012 |
ed |
More -Wmissing-variable-declarations fixes.
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'.
|
241198 |
04-Oct-2012 |
jhb |
Display the matrix of inter-domain distances in the SLIT table. This is used to complement the SRAT table on NUMA machines.
MFC after: 1 week
|
238288 |
09-Jul-2012 |
takawata |
Add range and table revision checking to avoid abend.
PR:bin/169707 Submitted by:Dan Lukes <dan@obluda.cz> MFC after:3 days.
|
235948 |
25-May-2012 |
jkim |
Catch up with realpath(3) changes (r235266) and unbreak acpidump(8).
|
211278 |
13-Aug-2010 |
takawata |
use uintmax_t instead of uint64_t.
Pointed out by: des.
|
211252 |
13-Aug-2010 |
takawata |
Fix build on amd64 and ia64.
|
211221 |
12-Aug-2010 |
takawata |
Fix breakage on 64bit architecture by using inttypes.h macro.
|
211219 |
12-Aug-2010 |
takawata |
Fix tindebox breakage about format warning.
|
211196 |
11-Aug-2010 |
takawata |
Add TCG ACPI spec table (TCPA) support.
Submitted by: Hans-Joerg_Hoexer@genua.de
|
209746 |
06-Jul-2010 |
jkim |
Merge ACPICA 20100702.
|
201390 |
02-Jan-2010 |
ed |
The last big commit: let usr.sbin/ use WARNS=6 by default.
|
196555 |
25-Aug-2009 |
jhb |
- Use the headers from ACPI-CA to define various constants and structures 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
|
195947 |
29-Jul-2009 |
jhb |
Parse the System Resource Affinity Table ('SRAT') used to describe affinity relationships between CPUs and memory.
Reviewed by: jkim Approved by: re (kib) MFC after: 1 week
|
193531 |
05-Jun-2009 |
jkim |
Import ACPICA 20090521.
|
173726 |
18-Nov-2007 |
jb |
Use an explicit pointer cast since NULL isn't guaranteed to be defined as a pointer type.
Submitted by: Christoph Mallon - christoph mallon at gmx de
|
173723 |
18-Nov-2007 |
jb |
Use a NULL instead of a zero to avoid a compiler warning about a missing sentinel.
|
171642 |
28-Jul-2007 |
marcel |
Fix acpidump(8) on ia64. Revision 1.13 introduced an uninitialized variable bug that's hidden by the precense of the hint_acpi_0_rsdp hint on 386 and amd64. There's never a need for such hint on ia64.
Approved by: re (kensmith)
|
167945 |
27-Mar-2007 |
takawata |
Correct HPET header handling. MFC after: 7 days
|
167814 |
22-Mar-2007 |
jkim |
Catch up with ACPI-CA 20070320 import.
|
167579 |
14-Mar-2007 |
njl |
Document exact command preferred for sending ASL as part of bug reports.
|
142028 |
17-Feb-2005 |
scottl |
Fix a small style problem and add a __packed pragma for safety.
|
141916 |
14-Feb-2005 |
njl |
Note addition of MCFG support.
|
141905 |
14-Feb-2005 |
scottl |
Add support for parsing MCFG tables.
|
140442 |
18-Jan-2005 |
ru |
Sort sections.
|
136168 |
05-Oct-2004 |
njl |
Update a comment that was outdated.
|
136165 |
05-Oct-2004 |
njl |
Back out the -s flag and go back to dumping the SSDTs by default.
|
136129 |
05-Oct-2004 |
njl |
Update the man page for the -s flag and other changes that we've missed.
MFC after: 3 days
|
136128 |
05-Oct-2004 |
njl |
Add the -s flag to make dumping SSDTs optional (disabled by default). 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
|
133935 |
18-Aug-2004 |
njl |
When one entry in the RSDT is corrupted, just skip it instead of bailing out. 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
|
133934 |
18-Aug-2004 |
njl |
Update man page for supported table types.
MFC after: 1 day
|
133883 |
16-Aug-2004 |
marcel |
We now handle SSDT tables. Remove a reference from the BUGS section and explicitly mention SSDT when we talk about the DSDT so that people don't have to guess whether it includes the SSDT. While here, touch date.
Pointed out by: le@
|
133679 |
13-Aug-2004 |
marcel |
Add support for SSDT tables. Dumping or disassembling the DSDT will 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@
|
131472 |
02-Jul-2004 |
ru |
Removed trailing whitespace.
|
131307 |
30-Jun-2004 |
njl |
Also print out the standard header for FADT since it has one.
|
130083 |
04-Jun-2004 |
ru |
Expand contraction.
|
129808 |
28-May-2004 |
njl |
Unify the start/size parameters for the RSDP search area. Don't bother trying to exclude the top end of the range since it should hurt to overlap by 4 bytes in the off-chance the RSDP signature appears incorrectly at the very top of our search space.
|
129702 |
25-May-2004 |
njl |
Use the correct location of the EBDA for searching for the RSDP. The EBDA is the 1 KB area addressed by the 16 bit pointer at 0x40E.
Pointed out by: robert.moore AT intel.com
|
129278 |
16-May-2004 |
njl |
If the revision is 0, don't trust the length in the RSDP. Instead assume an ACPI version 1.0 length.
|
129272 |
16-May-2004 |
njl |
Read in the entire RSDP but only run the standard checksum over the version 1 header. Add comments to explain what we're doing here better.
Reported by: Alex Vasylenko <lxv@omut.org>
|
129230 |
14-May-2004 |
njl |
Instead of scanning the entire lower 1 MB of RAM, only scan locations where the RSD PTR can actually occur. According to section 5.2.2 of the ACPI spec, we only consider two regions for the base address:
1. EBDA (0x0 - 0x3FF) 2. High memory (0xE0000 - 0xFFFFF)
I don't know whether this fixes any actual problems but is more correct.
|
129102 |
10-May-2004 |
des |
Minor style issues.
|
128382 |
18-Apr-2004 |
njl |
Instead of using a static, check for the FADT revision before using it. This fixes a bug where acpidump -d crashed (but not -t -d).
Submitted by: Alex Vasylenko <lxv@omut.org>
|
124138 |
04-Jan-2004 |
njl |
Clean up the check for invalid X_DSDT and X_FACS portions of the FADT. Add fadt_revision for telling if the FADT has correct 64 bit addresses, separate from whether the XSDT has legal 64 bit addresses.
|
121693 |
29-Oct-2003 |
njl |
Add a newline even if IAPC_BOOT_ARCH == 0.
|
120309 |
21-Sep-2003 |
njl |
Only print an end '}' if the field was non-zero (i.e. there were some flags to print).
|
120045 |
14-Sep-2003 |
njl |
Correct typo in comment.
|
120044 |
14-Sep-2003 |
njl |
For dumping the DSDT (-o option), be sure to use the X_DSDT address if appropriate. This should be the last change to make ia64 work.
|
120034 |
13-Sep-2003 |
njl |
C2/C3 latency is in microseconds (us), not ms.
|
120032 |
13-Sep-2003 |
njl |
Only print various optional fields if they are non-zero. Always print the required fields, no matter what their value.
|
120030 |
13-Sep-2003 |
njl |
Reduce the default width for IO port GAS printing.
Courtesy of: rwatson's chart presentation
|
119971 |
10-Sep-2003 |
njl |
Add dumping of the ECDT table.
Courtesy of: USENIX hall track
|
119968 |
10-Sep-2003 |
njl |
o Workaround a bug where my T23 reports that it is ACPI 2.0x compatible 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
|
119913 |
09-Sep-2003 |
njl |
Add support for ACPI 2.x and the XSDT.
Submitted by: marcel
|
119912 |
09-Sep-2003 |
njl |
Rename FACP to FADT throughout. 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.
|
119515 |
28-Aug-2003 |
njl |
Modify acpidump to use iasl(8) as the backend for disassembling AML. Also clean up the output of dumped tables. Update the man page for the new usage. Make WARNS=6 clean.
|
118335 |
02-Aug-2003 |
peter |
Hoo sed I kan spel?
|
118334 |
02-Aug-2003 |
peter |
Dump the HPET information block.
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.
|
113499 |
15-Apr-2003 |
njl |
Fix a warning about deprecated string literals.
Reviewed by: diff
|
108967 |
08-Jan-2003 |
jhb |
Add code to parse the contents of an ACPI MADT table and to dump its 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
|
108966 |
08-Jan-2003 |
jhb |
Add structure definitions for the various items in a ACPI Multiple APIC Descriptor Table (MADT) which has the signature 'ACPI'.
Approved by: marcel
|
108082 |
19-Dec-2002 |
marcel |
o Use sysctl machdep.acpi_root to get the physical address of the 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.
|
104721 |
09-Oct-2002 |
jhb |
Use __packed.
|
99968 |
14-Jul-2002 |
charnier |
The .Nm utility
|
91568 |
02-Mar-2002 |
takawata |
Fix bug on method local named object related panic and Bankfield operation.
|
89210 |
10-Jan-2002 |
ru |
mdoc(7) police: kill WEOL and HSB, tidy up the AUTHORS section.
|
88802 |
02-Jan-2002 |
msmith |
Add support for decoding Buffer objects that contain PnP/ACPI resource streams. Since the output is bulky, it's controlled by the '-r' option.
Document this in the manpage, and clean up some awkward English a little.
|
85364 |
23-Oct-2001 |
takawata |
Collect multi name handling.
Reported by : Stephan Kulow <coolo@caldera.de>
|
85323 |
22-Oct-2001 |
iwasaki |
Fix UserTerms disassembling. Now that dumped ASL can be compiled with 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)
|
83106 |
05-Sep-2001 |
dd |
Fix typo.
PR: 30342 Submitted by: Giorgos Keramidas <charon@labs.gr>
|
81251 |
07-Aug-2001 |
ru |
mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
|
80029 |
20-Jul-2001 |
obrien |
Perform a major cleanup of the usr.sbin Makefiles. These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
|
79755 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79537 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
79366 |
06-Jul-2001 |
ru |
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
|
74816 |
26-Mar-2001 |
ru |
- Backout botched attempt to introduce MANSECT feature. - MAN[1-9] -> MAN.
|
74532 |
20-Mar-2001 |
ru |
Set the default manual section for usr.sbin/ to 8.
|
72105 |
06-Feb-2001 |
ru |
mdoc(7) police: removed leading (non-sense) .Ns call.
|
70015 |
14-Dec-2000 |
ru |
mdoc(7) police: removed history info from the .Os FreeBSD call.
|
68965 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
68475 |
08-Nov-2000 |
iwasaki |
Remove dependence on old acpi driver from acpi userland tools.
- 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.
|
66490 |
30-Sep-2000 |
msmith |
Update include paths for new header locations.
Submitted by: iwasaki
|
65867 |
14-Sep-2000 |
iwasaki |
Add manpages acpi userland tools.
Obtained from: ACPI for FreeBSD project
|
65286 |
31-Aug-2000 |
iwasaki |
This commit was generated by cvs2svn to compensate for changes in r65285, which included commits to RCS files with non-trunk default branches.
|