summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
Commit message (Collapse)AuthorAgeFilesLines
* MFC r314659,r314676:ngie2017-05-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | r314659: usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible This simplifies make logic/output r314676: Fix build after r314656 Some of the changes I introduced to use .ALLSRC were correct in spirit, but incorrect in reality -- in particular, ../Makefile.inc hadn't been pulled in via bsd.init.mk (via bsd.lib.mk, bsd.prog.mk), so the value of .ALLSRC (evaluated immediately) was empty. .include bsd.init.mk explicitly so we can be certain that the values used as dependencies in the targets are defined when the target recipe has been evaluated. Reminder: thou shalt separate out separate functional changes before committing them. (YUGE) Pointyhat to: ngie In collaboration with: bdrewery
* MFC r302788, r303026, r305471andrew2017-04-242-3/+74
| | | | | | | | | | | | | | | r302788: Fix the type used to hold the value returned from getopt. On arm64 char is unsigned so will never be -1. r303026: Add missing flags from acpidump. These are defined in the header, but not printed. The HW_REDUCED flag is useful as it should be set on arm64 to comply with the ARM Server Base Boot Requirements. r305471: Teach acpidump how to parse ACPI 5.1 tables found on the development ThunderX units in the netperf cluster.
* MFC r314987-r314989, r314993-r314994, r315046-r315049, r315102araujo2017-04-171-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r314987: Use nitems() from sys/param.h. Reviewed by: asomers MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9944 r314988: Use nitems() from sys/param.h. Reviewed by: ume MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9938 r314989: Use nitems() from sys/param.h and also remove the cast. Reviewed by: markj MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9937 r314993: Use nitems() from sys/param.h. Reviewed by: ngie MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9936 r314994: Use nitems() from sys/param.h. Reviewed by: ngie MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9940 r315046: Use nitems() from sys/param.h Reviewed by: jhb MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9941 r315047: Use nitems() from sys/param.h. Reviewed by: np MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9945 r315048: Use nitems() from sys/param.h. MFC after: 3 weeks. r315049: Bring back the cast removed in my previous commit to allow us build vmstat with WARNS 2. This cast was first introduced at r87690. Reported by: bde, pfg and ngie MFC after: 3 weeks. r315102: Use nitems() from sys/param.h. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D9943
* MFC: r306686, r308953, r311462, r311529, r312438, r314611jkim2017-03-303-17/+19
| | | | | | | - Merge ACPICA 20170303. - Remove '-vd' option to make iasl(8) reproducible. Relnotes: yes
* WITH_META_MODE: Don't expect meta files for side-effect generated files.bdrewery2016-06-031-0/+3
| | | | | | | | | The first file in these lists will generate everything else so only it should be getting a .meta file. With bmake's missing=yes meta feature these would otherwise cause a rebuild without the .NOMETA hint. Sponsored by: EMC / Isilon Storage Division
* Fix acpidb CIDs 1011279 (Buffer not null terminated) and 978405 andtruckman2016-05-241-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1199380 (Resource leak). load_dsdt() calls strncpy() to copy a filename and Coverity warns that the destination buffer may not be NUL terminated. Fix this by using strlcpy() instead. If silent truncation occurs, then the filename was not valid anyway. load_dsdt() leaks an fd (CID 978405) and a memory region allocated using mmap() (CID 1199380) when it returns. Fix these by calling close() and munmap() as appropriate. Don't bother fixing the minor memory leak "list", allocated by AcGetAllTablesFromFile() (CID 1355191). Check for truncation when creating the temp file name. Set a flag to indicate that the temp file should be unlinked. Relying on a strcmp() test could delete the input file in contrived cases. Reported by: Coverity CID: 1011279, 978405, 1199380 Reviewed by: jkim MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6368
* Fix acpidump CID 1011278 (Buffer not null terminated) and other issuestruckman2016-05-241-18/+43
| | | | | | | | | | | | | | | | | | | | | | | 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 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6360
* Merge ACPICA 20160422.jkim2016-04-273-45/+54
|
* MFHgjb2016-03-021-88/+0
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-02-241-88/+0
| | | | | | | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division
* | MFH r289384-r293170gjb2016-01-041-3/+3
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * META MODE: Don't create .meta files when symlinking sources into the obj ↵bdrewery2015-11-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | directory. Tracking these leads to situations where meta mode will consider the file to be out of date if /bin/sh or /bin/ln are newer than the source file. There's no reason for meta mode to do this as make is already handling the rebuild dependency fine. Sponsored by: EMC / Isilon Storage Division
* | Merge from headbapt2015-10-011-5/+3
|\ \ | |/
| * Remove unsupported S5 (power off) state since r170976.jkim2015-09-221-5/+3
| | | | | | | | | | Reported by: Iam Smith (smithi at nimnet dot asn dot au) MFC after: 3 days
* | Finish merging from head, messed up in previous attemptbapt2015-09-121-1/+1
|\ \ | |/
| |
| \
*-. \ Merge from headbapt2015-09-122-14/+14
|\ \ \ | | |/
| | * Merge ACPICA 20150818.jkim2015-08-261-1/+1
| |/
| * Merge ACPICA 20150717.jkim2015-07-222-14/+14
| |
* | Merge from headbapt2015-06-154-0/+162
|\ \ | |/
| * Add META_MODE support.sjg2015-06-134-0/+162
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| | * dirdeps.mk now sets DEP_RELDIRsjg2015-06-084-8/+0
| | |
| | * Merge sync of headsjg2015-05-276-77/+90
| | |\ | | |/ | |/|
| | * Updated/new dependenciessjg2014-11-191-0/+4
| | |
| | * Merge from head@274682sjg2014-11-196-41/+69
| | |\
| | * \ Merge head from 7/28sjg2014-08-193-14/+18
| | |\ \
| | * | | Updated dependenciessjg2014-05-164-4/+0
| | | | |
| | * | | Updated dependenciessjg2014-05-104-0/+8
| | | | |
| | * | | Merge headsjg2014-04-281-0/+1
| | |\ \ \
| | * \ \ \ Merge from headsjg2013-09-055-46/+51
| | |\ \ \ \
| | * | | | | New/updated dependenciessjg2013-04-141-0/+6
| | | | | | |
| | * | | | | sync from headsjg2013-04-122-20/+22
| | |\ \ \ \ \
| | * | | | | | Updated dependenciessjg2013-03-114-0/+4
| | | | | | | |
| | * | | | | | Updated dependenciessjg2013-02-164-8/+6
| | | | | | | |
| | * | | | | | Sync with HEAD.obrien2013-02-084-45/+299
| | |\ \ \ \ \ \
| | | \ \ \ \ \ \
| | | \ \ \ \ \ \
| | | \ \ \ \ \ \
| | | \ \ \ \ \ \
| | *---. \ \ \ \ \ \ Sync from headsjg2012-11-044-18/+58
| | |\ \ \ \ \ \ \ \ \
| | * | | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-224-0/+145
| | | |_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | | | MFH: r282615-r283655gjb2015-05-282-3/+3
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | | | | | | | | | Merge ACPICA 20150515.jkim2015-05-182-3/+3
| | | | | | | | | | |
* | | | | | | | | | | Merge from headbapt2015-05-032-57/+59
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / /
| * | | | | | | | | | Print 64-bit addresses cleary with leading zeros to avoid confusions.jkim2015-04-091-21/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 week
| * | | | | | | | | | Do not crash when RSDT/XSDT contains an empty entry.jkim2015-04-091-26/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: Slawa Olhovchenkov <slw@zxy.spb.ru> MFC after: 3 days
| * | | | | | | | | | Tidy up battery status information. Remove a trailing white space.jkim2015-04-061-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 193671
* | | | | | | | | | | Make acpi an individual packagebapt2015-03-051-0/+2
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flag /etc/devd/asus.conf as a config file so it will be automatically merged on updates
* | | | | | | | | | Merge ACPICA 20141107 and 20150204.jkim2015-02-183-15/+22
| | | | | | | | | |
* | | | | | | | | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking
* | | | | | | | | Merge ACPICA 20140926.jkim2014-10-026-41/+69
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-203-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | | | | | | acpiconf(8): tell users not to use -keadler2014-06-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add language from jhb Requested by: jhb, jkim
* | | | | | | | acpiconf(8): check the calendareadler2014-06-091-1/+1
| | | | | | | |
* | | | | | | | acpiconf(8): bump .Ddeadler2014-06-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: gjb
OpenPOWER on IntegriCloud