359076 |
18-Mar-2020 |
hrs |
MFC of r355574, r358095, and r358395:
Add ACPI battery subsystem man page.
Add _BIX (Battery Information Extended) object support.
ACPI Control Method Batteries have a _BIF and/or _BIX object which provide static properties of the battery. FreeBSD acpi_cmbat module supported _BIF object only, which was deprecated as of ACPI 4.0. _BIX is an extended version of _BIF defined in ACPI 4.0 or later.
As of writing, _BIX has two revisions. One is in ACPI 4.0 (rev.0) and another is in ACPI 6.0 (rev.1). It seems that hardware vendors still stick to _BIF only or _BIX rev.0 + _BIF for the maximum compatibility. Microsoft requires _BIX rev.0 for Windows machines, so there are some laptop machines with _BIX rev.0 only. In this case, FreeBSD does not recognize the battery information.
After this change, the acpi_cmbat module gets battery information from _BIX or _BIF object and internally uses _BIX rev.1 data structure as the primary information store in the kernel. ACPIIO_BATT_GET_BI[FX] returns an acpi_bi[fx] structure built by using information obtained from a _BIF or a _BIX object found on the system. The revision number field can be used to check which field is available. The acpiconf(8) utility will show additional information if _BIX is available.
Although ABIs of ACPIIO_BATT_* were changed, the existing APIs for userland utilities are not changed and the backward-compatible ABIs are provided. This means that older versions of acpiconf(8) can also work with the new kernel. The (union acpi_battery_ioctl_arg) was padded to 256 byte long to avoid another ABI change in the future. A _BIX object with its revision number >1 will be treated as compatible with the rev.1 _BIX format.
Add workaround for models which do not follow the ACPI specification strictly. Extra objects are now simply ignored instead of rejecting everything.
Differential Revision: https://reviews.freebsd.org/D22556 Differential Revision: https://reviews.freebsd.org/D23728 |
346727 |
26-Apr-2019 |
mw |
MFC r343455: Fix tpm2 acpidump compilation on 32-bit |
346722 |
26-Apr-2019 |
mw |
MFC r343438: Use ACPI TPM2 table to probe tpmtis and tpmcrb device
Submitted by: Kornel Duleba <mindal@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield |
340966 |
26-Nov-2018 |
eugen |
MFC r339818: rcorder(8):
Add support for /etc/rc.resume, so it calls "rcorder -k resume" and runs scripts containing "KEYWORD: resume" with single "resume" argument.
Working example is the port sysutils/cpupdate that defines extra_commands="resume" to reload CPU microcode cleared by suspend/resume sequence.
This change does nothing for a system having no scripts with KEYWORD: resume.
PR: 227866 Differential Revision: https://reviews.freebsd.org/D15247 |
336920 |
30-Jul-2018 |
emaste |
MFC r335459: acpidump.8: include NFIT in the man page list of tables
Was missed in r321298 [MFC'd in r322461].
Reported by: Ben Widawsky (in review D15931) Sponsored by: The FreeBSD Foundation |
331838 |
31-Mar-2018 |
dim |
Merge clang, llvm, lld, lldb, compiler-rt and libc++ 6.0.0 release, and several follow-up fixes.
MFC r327952:
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to 6.0.0 (branches/release_60 r321788). Upstream has branched for the 6.0.0 release, which should be in about 6 weeks. Please report bugs and regressions, so we can get them into the release.
Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11 support to build; see UPDATING for more information.
MFC r328010:
Pull in r322473 from upstream llvm trunk (by Andrei Elovikov):
[LV] Don't call recordVectorLoopValueForInductionCast for newly-created IV from a trunc.
Summary: This method is supposed to be called for IVs that have casts in their use-def chains that are completely ignored after vectorization under PSE. However, for truncates of such IVs the same InductionDescriptor is used during creation/widening of both original IV based on PHINode and new IV based on TruncInst.
This leads to unintended second call to recordVectorLoopValueForInductionCast with a VectorLoopVal set to the newly created IV for a trunc and causes an assert due to attempt to store new information for already existing entry in the map. This is wrong and should not be done.
Fixes PR35773.
Reviewers: dorit, Ayal, mssimpso
Reviewed By: dorit
Subscribers: RKSimon, dim, dcaballe, hsaito, llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D41913
This should fix "Vector value already set for part" assertions when building the net/iodine and sysutils/daa2iso ports.
Reported by: jbeich PR: 224867, 224868
MFC r328090:
Pull in r322623 from upstream llvm trunk (by Andrew V. Tischenko):
Allow usage of X86-prefixes as separate instrs. Differential Revision: https://reviews.llvm.org/D42102
This should fix parse errors when x86 prefixes (such as 'lock' and 'rep') are followed by various non-mnemonic tokens, e.g. comments, .byte directives and labels.
PR: 224669, 225054
MFC r328091:
Revert r327340, as the workaround for rep prefixes followed by .byte directives is no longer needed after r328090.
MFC r328141 (by emaste):
lld: Fix for ld.lld does not accept "AT" syntax for declaring LMA region
AT> lma_region expression allows to specify the memory region for section load address.
Should fix [upstream LLVM] PR35684.
LLVM review: https://reviews.llvm.org/D41397
Obtained from: LLVM r322359 by George Rimar
MFC r328143 (by emaste):
lld: Handle parsing AT(ADDR(.foo-bar)).
The problem we had with it is that anything inside an AT is an expression, so we failed to parse the section name because of the - in it.
Requested by: royger Obtained from: LLVM r322801 by Rafael Espindola
MFC r328144 (by emaste):
lld: Fix incorrect physical address on self-referencing AT command.
When a section placement (AT) command references the section itself, the physical address of the section in the ELF header was calculated incorrectly due to alignment happening right after the location pointer's value was captured.
The problem was diagnosed and the first version of the patch written by Erick Reyes.
Obtained from: LLVM r322421 by Rafael Espindola
MFC r328145:
Pull in r322016 from upstream llvm trunk (by Sanjay Patel):
[ValueTracking] remove overzealous assert
The test is derived from a failing fuzz test: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5008
Credit to @rksimon for pointing out the problem.
This should fix "Bad flavor while matching min/max" errors when building the graphics/libsixel and science/kst2 ports.
Reported by: jbeich PR: 225268, 225269
MFC r328146:
Pull in r322106 from upstream llvm trunk (by Alexey Bataev):
[COST]Fix PR35865: Fix cost model evaluation for shuffle on X86.
Summary: If the vector type is transformed to non-vector single type, the compile may crash trying to get vector information about non-vector type.
Reviewers: RKSimon, spatel, mkuper, hfinkel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D41862
This should fix "Not a vector MVT!" errors when building the games/dhewm3 port.
Reported by: jbeich PR: 225271
MFC r328286 (by emaste):
lld: Don't mark a shared library as needed because of a lazy symbol.
Obtained from: LLVM r323221 by Rafael Esp?ndola
MFC r328381:
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to 6.0.0 (branches/release_60 r323338).
PR: 224669
MFC r328513:
Pull in r322245 from upstream clang trunk (by Craig Topper):
[X86] Make -mavx512f imply -mfma and -mf16c in the frontend like it does in the backend.
Similarly, make -mno-fma and -mno-f16c imply -mno-avx512f.
Withou this "-mno-sse -mavx512f" ends up with avx512f being enabled in the frontend but disabled in the backend.
Reported by: pawel PR: 225488
MFC r328542 (by emaste):
lld: Use lookup instead of find. NFC, just simpler.
Obtained from: LLVM r323395 by Rafael Espindola
MFC r328543 (by emaste):
lld: Only lookup LMARegion once. NFC.
This is similar to how we handle MemRegion.
Obtained from: LLVM r323396 by Rafael Espindola
MFC r328544 (by emaste):
lld: Remove MemRegionOffset. NFC.
We can just use a member variable in MemoryRegion.
Obtained from: LLVM r323399 by Rafael Espindola
MFC r328545 (by emaste):
lld: Simplify. NFC.
Obtained from: LLVM r323440 by Rafael Espindola
MFC r328546 (by emaste):
lld: Improve LMARegion handling.
This fixes the crash reported at [LLVM] PR36083.
The issue is that we were trying to put all the sections in the same PT_LOAD and crashing trying to write past the end of the file.
This also adds accounting for used space in LMARegion, without it all 3 PT_LOADs would have the same physical address.
Obtained from: LLVM r323449 by Rafael Espindola
MFC r328547 (by emaste):
lld: Move LMAOffset from the OutputSection to the PhdrEntry. NFC.
If two sections are in the same PT_LOAD, their relatives offsets, virtual address and physical addresses are all the same.
[Rafael] initially wanted to have a single global LMAOffset, on the assumption that every ELF file was in practiced loaded contiguously in both physical and virtual memory.
Unfortunately that is not the case. The linux kernel has:
LOAD 0x200000 0xffffffff81000000 0x0000000001000000 0xced000 0xced000 R E 0x200000 LOAD 0x1000000 0xffffffff81e00000 0x0000000001e00000 0x15f000 0x15f000 RW 0x200000 LOAD 0x1200000 0x0000000000000000 0x0000000001f5f000 0x01b198 0x01b198 RW 0x200000 LOAD 0x137b000 0xffffffff81f7b000 0x0000000001f7b000 0x116000 0x1ec000 RWE 0x200000
The delta for all but the third PT_LOAD is the same: 0xffffffff80000000. [Rafael] thinks the 3rd one is a hack for implementing per cpu data, but we can't break that.
Obtained from: LLVM r323456 by Rafael Espindola
MFC r328548 (by emaste):
lld: Put the header in the first PT_LOAD even if that PT_LOAD has a LMAExpr
The root problem is that we were creating a PT_LOAD just for the header. That was technically valid, but inconvenient: we should not be making the ELF discontinuous.
The solution is to allow a section with LMAExpr to be added to a PT_LOAD if that PT_LOAD doesn't already have a LMAExpr.
LLVM PR: 36017 Obtained from: LLVM r323625 by Rafael Espindola
MFC r328594 (by emaste):
Pull in r322108 from upstream llvm trunk (by Rafael Esp?ndola):
Make one of the emitFill methods non virtual. NFC.
This is just preparatory work to fix [LLVM] PR35858.
MFC r328595 (by emaste):
Pull in r322123 from upstream llvm trunk (by Rafael Esp?ndola):
Don't create MCFillFragment directly.
Instead use higher level APIs that take care of most bookkeeping.
MFC r328596 (by emaste):
Pull in r322131 from upstream llvm trunk (by Rafael Esp?ndola):
Use a MCExpr for the size of MCFillFragment.
This allows the size to be found during ralaxation. This fixes [LLVM] pr35858.
Requested by: royger
MFC r328753:
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to 6.0.0 (branches/release_60 r323948).
PR: 224669
MFC r328817:
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to 6.0.0 (branches/release_60 r324090).
This introduces retpoline support, with the -mretpoline flag. The upstream initial commit message (r323155 by Chandler Carruth) contains quite a bit of explanation. Quoting:
Introduce the "retpoline" x86 mitigation technique for variant #2 of the speculative execution vulnerabilities disclosed today, specifically identified by CVE-2017-5715, "Branch Target Injection", and is one of the two halves to Spectre.
Summary: First, we need to explain the core of the vulnerability. Note that this is a very incomplete description, please see the Project Zero blog post for details: https://googleprojectzero.blogspot.com/2018/01/reading-privileged-memory-with-side.html
The basis for branch target injection is to direct speculative execution of the processor to some "gadget" of executable code by poisoning the prediction of indirect branches with the address of that gadget. The gadget in turn contains an operation that provides a side channel for reading data. Most commonly, this will look like a load of secret data followed by a branch on the loaded value and then a load of some predictable cache line. The attacker then uses timing of the processors cache to determine which direction the branch took *in the speculative execution*, and in turn what one bit of the loaded value was. Due to the nature of these timing side channels and the branch predictor on Intel processors, this allows an attacker to leak data only accessible to a privileged domain (like the kernel) back into an unprivileged domain.
The goal is simple: avoid generating code which contains an indirect branch that could have its prediction poisoned by an attacker. In many cases, the compiler can simply use directed conditional branches and a small search tree. LLVM already has support for lowering switches in this way and the first step of this patch is to disable jump-table lowering of switches and introduce a pass to rewrite explicit indirectbr sequences into a switch over integers.
However, there is no fully general alternative to indirect calls. We introduce a new construct we call a "retpoline" to implement indirect calls in a non-speculatable way. It can be thought of loosely as a trampoline for indirect calls which uses the RET instruction on x86. Further, we arrange for a specific call->ret sequence which ensures the processor predicts the return to go to a controlled, known location. The retpoline then "smashes" the return address pushed onto the stack by the call with the desired target of the original indirect call. The result is a predicted return to the next instruction after a call (which can be used to trap speculative execution within an infinite loop) and an actual indirect branch to an arbitrary address.
On 64-bit x86 ABIs, this is especially easily done in the compiler by using a guaranteed scratch register to pass the target into this device. For 32-bit ABIs there isn't a guaranteed scratch register and so several different retpoline variants are introduced to use a scratch register if one is available in the calling convention and to otherwise use direct stack push/pop sequences to pass the target address.
This "retpoline" mitigation is fully described in the following blog post: https://support.google.com/faqs/answer/7625886
We also support a target feature that disables emission of the retpoline thunk by the compiler to allow for custom thunks if users want them. These are particularly useful in environments like kernels that routinely do hot-patching on boot and want to hot-patch their thunk to different code sequences. They can write this custom thunk and use `-mretpoline-external-thunk` *in addition* to `-mretpoline`. In this case, on x86-64 thu thunk names must be: ``` __llvm_external_retpoline_r11 ``` or on 32-bit: ``` __llvm_external_retpoline_eax __llvm_external_retpoline_ecx __llvm_external_retpoline_edx __llvm_external_retpoline_push ``` And the target of the retpoline is passed in the named register, or in the case of the `push` suffix on the top of the stack via a `pushl` instruction.
There is one other important source of indirect branches in x86 ELF binaries: the PLT. These patches also include support for LLD to generate PLT entries that perform a retpoline-style indirection.
The only other indirect branches remaining that we are aware of are from precompiled runtimes (such as crt0.o and similar). The ones we have found are not really attackable, and so we have not focused on them here, but eventually these runtimes should also be replicated for retpoline-ed configurations for completeness.
For kernels or other freestanding or fully static executables, the compiler switch `-mretpoline` is sufficient to fully mitigate this particular attack. For dynamic executables, you must compile *all* libraries with `-mretpoline` and additionally link the dynamic executable and all shared libraries with LLD and pass `-z retpolineplt` (or use similar functionality from some other linker). We strongly recommend also using `-z now` as non-lazy binding allows the retpoline-mitigated PLT to be substantially smaller.
When manually apply similar transformations to `-mretpoline` to the Linux kernel we observed very small performance hits to applications running typic al workloads, and relatively minor hits (approximately 2%) even for extremely syscall-heavy applications. This is largely due to the small number of indirect branches that occur in performance sensitive paths of the kernel.
When using these patches on statically linked applications, especially C++ applications, you should expect to see a much more dramatic performance hit. For microbenchmarks that are switch, indirect-, or virtual-call heavy we have seen overheads ranging from 10% to 50%.
However, real-world workloads exhibit substantially lower performance impact. Notably, techniques such as PGO and ThinLTO dramatically reduce the impact of hot indirect calls (by speculatively promoting them to direct calls) and allow optimized search trees to be used to lower switches. If you need to deploy these techniques in C++ applications, we *strongly* recommend that you ensure all hot call targets are statically linked (avoiding PLT indirection) and use both PGO and ThinLTO. Well tuned servers using all of these techniques saw 5% - 10% overhead from the use of retpoline.
We will add detailed documentation covering these components in subsequent patches, but wanted to make the core functionality available as soon as possible. Happy for more code review, but we'd really like to get these patches landed and backported ASAP for obvious reasons. We're planning to backport this to both 6.0 and 5.0 release streams and get a 5.0 release with just this cherry picked ASAP for distros and vendors.
This patch is the work of a number of people over the past month: Eric, Reid, Rui, and myself. I'm mailing it out as a single commit due to the time sensitive nature of landing this and the need to backport it. Huge thanks to everyone who helped out here, and everyone at Intel who helped out in discussions about how to craft this. Also, credit goes to Paul Turner (at Google, but not an LLVM contributor) for much of the underlying retpoline design.
Reviewers: echristo, rnk, ruiu, craig.topper, DavidKreitzer
Subscribers: sanjoy, emaste, mcrosier, mgorny, mehdi_amini, hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D41723
PR: 224669
MFC r329033:
Pull in r324594 from upstream clang trunk (by Alexander Ivchenko):
Fix for #31362 - ms_abi is implemented incorrectly for values >=16 bytes.
Summary: This patch is a fix for following issue: https://bugs.llvm.org/show_bug.cgi?id=31362 The problem was caused by front end lowering C calling conventions without taking into account calling conventions enforced by attribute. In this case win64cc was no correctly lowered on targets other than Windows.
Reviewed By: rnk (Reid Kleckner)
Differential Revision: https://reviews.llvm.org/D43016
Author: belickim <mateusz.belicki@intel.com>
This fixes clang 6.0.0 assertions when building the emulators/wine and emulators/wine-devel ports, and should also make it use the correct Windows calling conventions. Bump __FreeBSD_version to make the fix easy to detect.
PR: 224863
MFC r329223:
Pull in r323998 from upstream clang trunk (by Richard Smith):
PR36157: When injecting an implicit function declaration in C89, find the right DeclContext rather than injecting it wherever we happen to be.
This avoids creating functions whose DeclContext is a struct or similar.
This fixes assertion failures when parsing certain not-completely-valid struct declarations.
Reported by: ae PR: 225862
MFC r329410:
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to 6.0.0 (branches/release_60 r325330).
PR: 224669
MFC r329983:
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to 6.0.0 (branches/release_60 r325932). This corresponds to 6.0.0 rc3.
PR: 224669
MFC r330384:
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to 6.0.0 release (upstream r326565).
Release notes for llvm, clang and lld will be available here soon: <http://releases.llvm.org/6.0.0/docs/ReleaseNotes.html> <http://releases.llvm.org/6.0.0/tools/clang/docs/ReleaseNotes.html> <http://releases.llvm.org/6.0.0/tools/lld/docs/ReleaseNotes.html>
Relnotes: yes PR: 224669
MFC r330686:
Pull in r326882 from upstream llvm trunk (by Sjoerd Meijer):
[ARM] Fix for PR36577
Don't PerformSHLSimplify if the given node is used by a node that also uses a constant because we may get stuck in an infinite combine loop.
bugzilla: https://bugs.llvm.org/show_bug.cgi?id=36577
Patch by Sam Parker.
Differential Revision: https://reviews.llvm.org/D44097
This fixes a hang when compiling one particular file in java/openjdk8 for armv6 and armv7.
Reported by: swills PR: 226388
MFC r331065:
Pull in r327638 from upstream llvm trunk (by Matthew Simpson):
[ConstantFolding, InstSimplify] Handle more vector GEPs
This patch addresses some additional cases where the compiler crashes upon encountering vector GEPs. This should fix PR36116.
Differential Revision: https://reviews.llvm.org/D44219 Reference: https://bugs.llvm.org/show_bug.cgi?id=36116
This fixes an assertion when building the emulators/snes9x port.
Reported by: jbeich PR: 225471
MFC r331066:
Pull in r321999 from upstream clang trunk (by Ivan A. Kosarev):
[CodeGen] Fix TBAA info for accesses to members of base classes
Resolves: Bug 35724 - regression (r315984): fatal error: error in backend: Broken function found (Did not see access type in access path!) https://bugs.llvm.org/show_bug.cgi?id=35724
Differential Revision: https://reviews.llvm.org/D41547
This fixes "Did not see access type in access path" fatal errors when building the devel/gdb port (version 8.1).
Reported by: jbeich PR: 226658
MFC r331366:
Pull in r327101 from upstream llvm trunk (by Rafael Espindola):
Don't treat .symver as a regular alias definition.
This patch starts simplifying the handling of .symver.
For now it just moves the responsibility for creating an alias down to the streamer. With that the asm streamer can pass a .symver unchanged, which is nice since gas cannot parse "foo@bar = zed".
In a followup I hope to move the handling down to the writer so that we don't need special hacks for avoiding breaking names with @@@ on windows.
Pull in r327160 from upstream llvm trunk (by Rafael Espindola):
Delay creating an alias for @@@.
With this we only create an alias for @@@ once we know if it should use @ or @@. This avoids last minutes renames and hacks to handle MS names.
This only handles the ELF writer. LTO still has issues with @@@ aliases.
Pull in r327928 from upstream llvm trunk (by Vitaly Buka):
Object: Move attribute calculation into RecordStreamer. NFC
Summary: Preparation for D44274
Reviewers: pcc, espindola
Subscribers: hiraditya
Differential Revision: https://reviews.llvm.org/D44276
Pull in r327930 from upstream llvm trunk (by Vitaly Buka):
Object: Fix handling of @@@ in .symver directive
Summary: name@@@nodename is going to be replaced with name@@nodename if symbols is defined in the assembled file, or name@nodename if undefined. https://sourceware.org/binutils/docs/as/Symver.html
Fixes PR36623
Reviewers: pcc, espindola
Subscribers: mehdi_amini, hiraditya
Differential Revision: https://reviews.llvm.org/D44274
Together, these changes fix handling of @@@ in .symver directives when doing Link Time Optimization.
Reported by: Shawn Webb <shawn.webb@hardenedbsd.org>
MFC r331731:
Pull in r328738 from upstream lld trunk (by Rafael Espindola):
Strip @VER suffices from the LTO output.
This fixes pr36623.
The problem is that we have to parse versions out of names before LTO so that LTO can use that information.
When we get the LTO produced .o files, we replace the previous symbols with the LTO produced ones, but they still have @ in their names.
We could just trim the name directly, but calling parseSymbolVersion to do it is simpler.
This is a follow-up to r331366, since we discovered that lld could append version strings to symbols twice, when using Link Time Optimization. |
330449 |
05-Mar-2018 |
eadler |
MFC r326276:
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended. |
327557 |
04-Jan-2018 |
jkim |
MFC: r323076, r324502, r325670, r326866
Merge ACPICA 20171214. |
323137 |
03-Sep-2017 |
mav |
MFC r323045: Fix flags field decoding in ACPI_NFIT_CONTROL_REGION.
It looked like incomplete copy/paste, printing absolute garbage.
While there, print ValidFields field ax hex, since it is a bitmask. |
322880 |
25-Aug-2017 |
jkim |
MFC: r316627 (kan)
Use int to receive the return value of getopt function. |
322879 |
25-Aug-2017 |
jkim |
MFC: r321601 (emaste)
acpidump: add GIC ITS srat type |
322877 |
25-Aug-2017 |
jkim |
MFC: r319365, r321670
Merge ACPICA 20170728. |
322467 |
13-Aug-2017 |
emaste |
MFC r320736: acpidump: warn and exit loop on invalid subtable length
Submitted by: Guangyuan Yang <yzgyyang@outlook.com> Sponsored by: The FreeBSD Foundation |
322466 |
13-Aug-2017 |
emaste |
MFC r304000 (maxim): acpidump: move variable initialization out of assert(3)
This fixes acpidump(8) compiled with "WITHOUT_ASSERT_DEBUG=yes" that removes assert(3)'s from the code.
Submitted by: Alexander Nedotsukov |
322461 |
13-Aug-2017 |
emaste |
MFC r321298: acpidump: add ACPI NFIT (NVDIMM Firmware Interface Table)
Also MFC r322351 by mav, add two NFIT fields missed in initial commit. |
321617 |
27-Jul-2017 |
emaste |
revert r321601, it depends on an ACPICA update not yet merged |
321601 |
27-Jul-2017 |
emaste |
MFC r321299: acpidump: add GIC ITS srat type
From ACPI 6.2, 5.2.16.5
Sponsored by: The FreeBSD Foundation |
321600 |
27-Jul-2017 |
emaste |
MFC r321294: acpidump: use C99 designated initializers
Submitted by: Guangyuan Yang <yzgyyang@outlook.com> Sponsored by: The FreeBSD Foundation |
319119 |
29-May-2017 |
ngie |
MFC r314659,r314676:
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 |
317377 |
24-Apr-2017 |
andrew |
MFC r302788, r303026, r305471
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. |
317062 |
17-Apr-2017 |
araujo |
MFC r314987-r314989, r314993-r314994, r315046-r315049, r315102
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 |
316303 |
30-Mar-2017 |
jkim |
MFC: r306686, r308953, r311462, r311529, r312438, r314611
- Merge ACPICA 20170303. - Remove '-vd' option to make iasl(8) reproducible.
Relnotes: yes |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
301285 |
03-Jun-2016 |
bdrewery |
WITH_META_MODE: Don't expect meta files for side-effect generated files.
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
|
300633 |
24-May-2016 |
truckman |
Fix acpidb CIDs 1011279 (Buffer not null terminated) and 978405 and 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
|
300632 |
24-May-2016 |
truckman |
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 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6360
|
298714 |
27-Apr-2016 |
jkim |
Merge ACPICA 20160422.
|
298107 |
16-Apr-2016 |
gjb |
Merge the projects/release-pkg branch to head.
This allows packaging the base system with pkg(8), including but not limited to providing the ability to provide upstream binary update possibilities for non-tier-1 architectures.
This merge is a requirement of the 11.0-RELEASE, and as such, thank you to everyone that has tested the project branch.
Documentation in build(7) etc. is still somewhat sparse, but updates to those parts will follow.
Sponsored by: The FreeBSD Foundation
|
295989 |
24-Feb-2016 |
bdrewery |
DIRDEPS_BUILD: Regenerate without local dependencies.
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
|
291320 |
25-Nov-2015 |
bdrewery |
META MODE: Don't create .meta files when symlinking sources into the obj 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
|
288116 |
22-Sep-2015 |
jkim |
Remove unsupported S5 (power off) state since r170976.
Reported by: Iam Smith (smithi at nimnet dot asn dot au) MFC after: 3 days
|
287168 |
26-Aug-2015 |
jkim |
Merge ACPICA 20150818.
|
285797 |
22-Jul-2015 |
jkim |
Merge ACPICA 20150717.
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
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
|
283092 |
18-May-2015 |
jkim |
Merge ACPICA 20150515.
|
281335 |
09-Apr-2015 |
jkim |
Print 64-bit addresses cleary with leading zeros to avoid confusions.
MFC after: 1 week
|
281331 |
09-Apr-2015 |
jkim |
Do not crash when RSDT/XSDT contains an empty entry.
Reported by: Slawa Olhovchenkov <slw@zxy.spb.ru> MFC after: 3 days
|
281171 |
06-Apr-2015 |
jkim |
Tidy up battery status information. Remove a trailing white space.
PR: 193671
|
278970 |
18-Feb-2015 |
jkim |
Merge ACPICA 20141107 and 20150204.
|
275054 |
25-Nov-2014 |
bapt |
Convert usr.sbin to LIBADD Reduce overlinking
|
272444 |
02-Oct-2014 |
jkim |
Merge ACPICA 20140926.
|
267668 |
20-Jun-2014 |
bapt |
use .Mt to mark up email addresses consistently (part2)
PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
|
267320 |
10-Jun-2014 |
eadler |
acpiconf(8): tell users not to use -k Add language from jhb
Requested by: jhb, jkim
|
267261 |
09-Jun-2014 |
eadler |
acpiconf(8): check the calendar
|
267260 |
09-Jun-2014 |
eadler |
acpiconf(8): bump .Dd
Reported by: gjb
|
267248 |
09-Jun-2014 |
eadler |
acpiconf(8): document 'k' option
Add missing documentation for the 'k' option based on reading the source code.
|
258474 |
22-Nov-2013 |
neel |
Teach acpidump(8) to display the 'Flags' field in the HPET Description Table.
Reviewed by: jhb@
|
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
|
250838 |
20-May-2013 |
jkim |
Merge ACPICA 20130517.
|
249821 |
23-Apr-2013 |
jkim |
Fix declarations to slightly increase WARNS level.
|
249818 |
23-Apr-2013 |
jkim |
Clean up generated files added in r233250.
|
249663 |
19-Apr-2013 |
jkim |
Merge ACPICA 20130418.
|
249112 |
04-Apr-2013 |
jkim |
Merge ACPICA 20130328.
|
246849 |
15-Feb-2013 |
jkim |
Merge ACPICA 20130214.
|
245582 |
18-Jan-2013 |
jkim |
Merge ACPICA 20130117.
|
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
|
243347 |
20-Nov-2012 |
jkim |
Merge ACPICA 20121114.
|
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
|
239340 |
16-Aug-2012 |
jkim |
Merge ACPICA 20120816.
|
238381 |
11-Jul-2012 |
jkim |
Merge ACPICA 20120711.
|
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.
|
237412 |
22-Jun-2012 |
jkim |
Merge ACPICA 20120620.
|
235948 |
25-May-2012 |
jkim |
Catch up with realpath(3) changes (r235266) and unbreak acpidump(8).
|
234623 |
23-Apr-2012 |
jkim |
Merge ACPICA 20120420.
|
233250 |
20-Mar-2012 |
jkim |
Merge ACPICA 20120320.
|
232676 |
08-Mar-2012 |
jkim |
Make parallel build more safer.
Reviewed by: tijl
|
231845 |
16-Feb-2012 |
jkim |
Fix a stupid typo.
|
231844 |
16-Feb-2012 |
jkim |
Merge ACPICA 20120215.
|
230089 |
13-Jan-2012 |
jkim |
Remove unused ACPICA sources from userland makefiles.
|
229989 |
11-Jan-2012 |
jkim |
Merge ACPICA 20120111.
|
228976 |
30-Dec-2011 |
uqs |
Reencode files to UTF-8. Drop CP1252 em-dash.
|
228110 |
28-Nov-2011 |
jkim |
Merge ACPICA 20111123.
|
227876 |
23-Nov-2011 |
kevlo |
Plug fd leaks
|
220682 |
15-Apr-2011 |
jkim |
Purge _USE_BERKELEY_YACC definition from Makefile. This ugly hack is no long necessary for us since r220680.
|
220663 |
15-Apr-2011 |
jkim |
Merge ACPICA 20110413.
|
218590 |
12-Feb-2011 |
jkim |
Merge ACPICA 20110211.
|
217365 |
13-Jan-2011 |
jkim |
Merge ACPICA 20110112. Switch to BSD/GPLv2 dual license[1].
Discussed with: core [1]
|
216471 |
15-Dec-2010 |
jkim |
Merge ACPICA 20101209.
|
212761 |
16-Sep-2010 |
jkim |
Merge ACPICA 20100915.
|
211763 |
24-Aug-2010 |
mav |
When ACPI reports current battery consumption rate in mAmps, print it also in mWatts. Values in mAmps are not always suitable, because they depend on battery voltage, which depends on battery type and charge level.
|
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
|
210976 |
06-Aug-2010 |
jkim |
Merge ACPICA 20100806.
|
209746 |
06-Jul-2010 |
jkim |
Merge ACPICA 20100702.
|
207344 |
28-Apr-2010 |
jkim |
Merge ACPICA 20100428.
|
204773 |
05-Mar-2010 |
jkim |
Merge ACPICA 20100304.
|
202771 |
21-Jan-2010 |
jkim |
Merge ACPICA 20100121.
|
201390 |
02-Jan-2010 |
ed |
The last big commit: let usr.sbin/ use WARNS=6 by default.
|
199337 |
16-Nov-2009 |
jkim |
Merge ACPICA 20091112.
|
198237 |
19-Oct-2009 |
jkim |
Merge ACPICA 20091013.
|
197106 |
11-Sep-2009 |
jkim |
Catch up with ACPICA 20090903.
|
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.
|
179153 |
20-May-2008 |
rpaulo |
Update to reflect reality: * iasl(8) supports ACPI 3.0b. * Add new options.
MFC after: 1 week
|
173766 |
20-Nov-2007 |
jb |
These are the things that the tinderbox has problems with because it doesn't use the default CFLAGS which contain -fno-strict-aliasing.
Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again.
|
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)
|
170976 |
21-Jun-2007 |
njl |
Update the suspend/resume user API while maintaining backwards compat.
Improvements: * /etc/rc.suspend,rc.resume are always run, no matter the source of the suspend request (user or kernel, apm or acpi) * suspend now requires positive user acknowledgement. If a user program wants to cancel the suspend, they can. If one of the user programs hangs or doesn't respond within 10 seconds, the system suspends anyway. * /dev/apm is clonable, allowing multiple listeners for suspend events. In the future, xorg-server can use this to be informed about suspend even if there are other listeners (i.e. apmd).
Changes: * Two new ACPI ioctls: REQSLPSTATE and ACKSLPSTATE. Request begins the process of suspending by notifying all listeners. acpi is monitored by devd(8) and /dev/apm listener(s) are also counted. Users register their approval or disapproval via Ack. If anyone disapproves, suspend is vetoed. * Old user programs or kernel modules that used SETSLPSTATE continue to work. A message is printed once that this interface is deprecated. * acpiconf gains the -k flag to ack the suspend request. This flag is undocumented on purpose since it's only used by /etc/rc.suspend. It is not intended to be a permanent change and will be removed once a better power API is implemented. * S5 (power off) is no longer supported via acpiconf -s 5 or apm -z/-Z. This restores previous behavior of halt/shutdown -p being the interface. * Miscellaneous improvements to error reporting
Approved by: re
|
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.
|
151948 |
01-Nov-2005 |
jkim |
Catch up with ACPI-CA 20051021 import
|
148493 |
28-Jul-2005 |
njl |
Correct column alignment.
|
148491 |
28-Jul-2005 |
njl |
Fix nits in reporting battery information and add battery status reporting. Rate units are mA/mW, not mAh/mWh. Get full battery status and time remaining from ACPIIO_BATT_GET_BATTINFO instead of BST.
PR: bin/83672 MFC after: 2 days
|
148310 |
22-Jul-2005 |
njl |
Use the current BST/BIF ioctls, not the deprecated ones.
MFC after: 2 days
|
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.
|
141580 |
09-Feb-2005 |
ru |
Fixed the misplaced $FreeBSD$.
|
140442 |
18-Jan-2005 |
ru |
Sort sections.
|
139602 |
03-Jan-2005 |
njl |
Catch up with the kernel and set any global variables we are using, in particular, enabling interpreter workarounds for bad ASL.
MFC after: 1 day
|
138049 |
24-Nov-2004 |
imp |
o Report charge/discharge rate and remaining capacity in the proper units (as specified in _BIF). (noted by Bruno Ducrot) o In looking in the standard, if the cap numbers are 0xffffffff, then acpi is reporting unknown for that field. Report unknown numbers properly. o Update the state to reflect charging, discharging and critical.
|
138047 |
24-Nov-2004 |
imp |
phk jumped the gun and posted what looks like a preliminary version of my patches for this information. Commit my more complete version. This version isn't complete yet, since some details aren't handled right just yet.
Poaching by: phk
|
138044 |
24-Nov-2004 |
phk |
Dump current status of battery as well.
The -i code doesn't really belong here in the first place I would think, but keep it together for now.
|
137763 |
16-Nov-2004 |
imp |
Minor style(9) before possible larger commits.
|
137666 |
13-Nov-2004 |
philip |
Somehow I missed this last night, acpi_init() doesn't return an int.
Spotted by: Randy Bush <randy@psg.com>
|
137638 |
13-Nov-2004 |
philip |
With the addition of a proper prototype, this is now WARNS=6 clean.
|
137637 |
13-Nov-2004 |
philip |
Two uint32_t casts crept in where they shouldn't have. ACPI_TYPE_INTEGER can be 64 bits wide in acpi v2.
|
137636 |
13-Nov-2004 |
philip |
Change some formats and add some casts to make this WARNS=2 clean, and mark it as such.
PR: 71672 (partly) Reviewed by: njl
|
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
|
133933 |
18-Aug-2004 |
njl |
Remove the ACPIIO_ENABLE and ACPIIO_DISABLE ioctls as well as all callers. These ioctls attempted to enable and disable the ACPI interpreter at runtime. In practice, it is not possible to boot with ACPI and then disable it on many systems and trying to do so can cause crashes, interrupt storms, etc. Binary compatibility with userland is retained.
MFC after: 2 days
|
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@
|
133788 |
15-Aug-2004 |
njl |
Comment out the ability to enable/disable ACPI at runtime. This appears to not work reliably and crash some systems. It is not supported at all on others. Pending discussion, the underlying ioctls will be removed.
|
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.
|
130420 |
13-Jun-2004 |
ru |
Assorted markup, grammar, and spelling fixes.
|
130159 |
06-Jun-2004 |
ru |
Tidy up markup.
|
130083 |
04-Jun-2004 |
ru |
Expand contraction.
|
130082 |
04-Jun-2004 |
ru |
Markup nit: make the list of options look better.
|
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
|
129693 |
25-May-2004 |
njl |
Add suspend/resume support to the debugger.
|
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>
|
126625 |
05-Mar-2004 |
takawata |
Fix style breakage.
Noticed by: njl
|
126609 |
04-Mar-2004 |
takawata |
Make unprivilaged user can see battery info.
|
124963 |
25-Jan-2004 |
des |
I don't normally use my middle name, so remove it from attributions in man pages (though not from copyright notices). While I'm here, add email addresses where appropriate.
|
124495 |
13-Jan-2004 |
ru |
- Use the standard .y and .l transformation rules -- this fixes the usual parallel make race in custom .y rules.
- Fixed some style bugs.
- Removed -v from YFLAGS.
Prodded by: bde Reviewed by: bde, njl
|
124388 |
11-Jan-2004 |
ru |
Use my newly acquired magic stick and put aslcompiler.y.h into SRCS to teach make(1) that many .c sources are dependent on it. This fixes parallel (-j) builds and makes it possible to build individual .o files separately.
While here, removed PROG from CLEANFILES -- it's taken care of already by bsd.prog.mk.
|
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.
|
124001 |
30-Dec-2003 |
njl |
Add support for /etc/rc.suspend and /etc/rc.resume for ACPI. They are called directly from acpiconf(8). Change both scripts to take a subsystem (apm|acpi) and sleep level (suspend,standby|1-5) argument.
|
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.
|
120036 |
13-Sep-2003 |
njl |
Add the -i flag to acpiconf(8) to retrieve battery information. Rename a few structure elements.
|
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.
|
119516 |
28-Aug-2003 |
njl |
Now that amldb(8) is no longer needed by acpidump, remove the last vestiges of the original userland ACPI implementation. amldb is still available from the devel/acpicatools port.
|
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.
|
118785 |
11-Aug-2003 |
njl |
Remove the band-aid to make these compile on amd64/ia64.
|
118698 |
09-Aug-2003 |
marcel |
Apparently I limited my testing of the ductape and bubblegum solution to acpidb. The same problem exists in iasl. Add JIT patching there too. Add a comment to both makefiles to increase the chance that both kludges are removed when a real solution is committed.
|
118691 |
09-Aug-2003 |
marcel |
Perform first-aid: unbreak the build for amd64 and ia64 by patching osunixxf.c on the fly. This avoids having to pull it from the vendor branch or otherwise pollute the repository with new short-lived files.
This should hold until the real fix arrives.
|
118643 |
08-Aug-2003 |
njl |
Hook acpidb(8) and iasl(8) up to the build and unhook amldb(8). It will be going away after a short while but still available in ports.
|
118621 |
07-Aug-2003 |
njl |
Add man pages for acpidb and iasl
|
118616 |
07-Aug-2003 |
njl |
Add the acpidb and iasl utilities. This is not yet hooked up to the build.
Obtained from: acpicatools port by Iwasaki-san
|
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.
|
118127 |
28-Jul-2003 |
njl |
Allow sleep states to be specified as S1, S2, ... This is used by zzz(8).
|
114246 |
29-Apr-2003 |
njl |
Support functions for the new ACPI import. * AcpiOsDerivePciId(): finds a bus number, given the slot/func and the acpi parse tree. * AcpiOsPredefinedOverride(): use the sysctl hw.acpi.os_name to override the value for _OS.
Ideas from: takawata, jhb Reviewed by: takawata, marcel Tested on: i386, ia64
|
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
|
108317 |
27-Dec-2002 |
schweikh |
english(4) police.
|
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.
|
107312 |
27-Nov-2002 |
ru |
mdoc(7) police: markup fixes.
Approved by: re
|
104721 |
09-Oct-2002 |
jhb |
Use __packed.
|
103489 |
17-Sep-2002 |
jhb |
Only include parent directory Makefile.inc if it exists. Now you can cvs co acpi and build acpi utilities w/o needing the usr.sbin Makefile.inc.
|
103400 |
16-Sep-2002 |
takawata |
Add sleep state explanation. Requested by: murray at Cafe in Tokyo.
|
101828 |
13-Aug-2002 |
ru |
mdoc(7) police: Removed redundant .Ns calls.
|
99968 |
14-Jul-2002 |
charnier |
The .Nm utility
|
99682 |
09-Jul-2002 |
iwasaki |
Resolve conflicts arising from the ACPI CA 20020611 import.
|
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.
|
87121 |
30-Nov-2001 |
cjc |
Make the error messaging more helpful.
PR: 31483 Approved by: iwasaki, ru MFC after: 4 days
|
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.
|
80109 |
21-Jul-2001 |
msmith |
ACPI CA doesn't recognis S4BIOS as a seperate sleep type anymore, so drop support for it here until we work out a better way of handling it.
|
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.
|
80022 |
20-Jul-2001 |
obrien |
Remove GCC'isms in CFLAGS.
|
79755 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79537 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
79454 |
09-Jul-2001 |
dd |
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
|
79366 |
06-Jul-2001 |
ru |
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
|
77633 |
02-Jun-2001 |
obrien |
Remove double //'s in path.
|
77449 |
30-May-2001 |
msmith |
Catch up to new include paths.
Submitted by: walt <wsheets@att.net>
|
75058 |
01-Apr-2001 |
iwasaki |
Remove NOSHARED. The usr.sbin/acpi/ utilities should be compiled non-static. It just followed the usr.sbin/pccard/Makefile.inc way last time.
Pointed out by: ru and msmith Committed at: BSD HANAMI in Japan 2001
|
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.
|
71898 |
01-Feb-2001 |
ru |
mdoc(7) police: split punctuation characters + misc fixes.
|
71368 |
22-Jan-2001 |
ru |
mdoc(7) police: .Dv -> .Cm where appropriate.
|
71030 |
14-Jan-2001 |
des |
Spell my name right in the copyright.
|
70996 |
13-Jan-2001 |
iwasaki |
Oops, forgotten to add manpage.
|
70995 |
13-Jan-2001 |
iwasaki |
Add manpage for acpiconf.
Submitted by: des
|
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.
|
68904 |
19-Nov-2000 |
kris |
Format string error in warn()
|
68518 |
09-Nov-2000 |
iwasaki |
Move old aml interpreter code to amldb/aml/. This will be used for our reference and comparison with ACPICA aml interpreter's behavior.
|
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.
|
66537 |
02-Oct-2000 |
iwasaki |
Fix StallOp implementaion. I've noticed that StallOp corresponds to OsdSleepUsec(), SleepOp corresponds to OsdSleep() by reading ACPICA source code. - Add OsdSleepUsec() which uses DELAY() simply. - Change unit of acpi_sleep() argument; microseconds to milliseconds.
|
66502 |
01-Oct-2000 |
iwasaki |
Remove ACPI_NO_OSDFUNC_INLINE option from kernel configuration. Now that it's enabled in acpireg.h only if DIAGNOSTIC option is specified. ACPICA OSD functions will be compiled in machine/acpi_machdep.c again tentatively (if DIAGNOSTIC option is specified). # Should we have acpica_osd.c ?
|
66491 |
30-Sep-2000 |
iwasaki |
- Add acpi_disable_events() and set it with EVENTHANDLER_REGISTER in order to avoid power on again problem after acpi_soft_off() calling. - Implement SleepOp/StallOp in AML interpreter. Also provide ACPICA compatibility. - Minor changes on __inline function declaration in acpica_osd.h (obtained from NetBSD porting).
|
66490 |
30-Sep-2000 |
msmith |
Update include paths for new header locations.
Submitted by: iwasaki
|
66489 |
30-Sep-2000 |
msmith |
More updates to the ACPI code:
- Move all register I/O into acpi_io.c - Move event handling into acpi_event.c - Reorganise headers into acpivar/acpireg/acpiio - Move find-RSDT and find-ACPI-owned-memory into acpi_machdep - Allocate all resources (except those detailed only by AML) as real resources. Add infrastructure that will make adding resource support to AML code easy. - Remove all ACPI #ifdefs in non-ACPI code - Removed unnecessary includes - Minor style and commenting fixes
Reviewed by: iwasaki
|
66166 |
21-Sep-2000 |
iwasaki |
Fix LINT breakage by options ACPI_NO_OSDFUNC_INLINE. Also space/tab-fix in NOTE. Grrr, my bad.
Pointed-out by: eivind
|
66150 |
20-Sep-2000 |
iwasaki |
Add new function in AML interpreter; aml_invoke_method(). Also remove unneeded includes in aml_obj.c and aml_parse.c.
This new function takes 'struct aml_name *' as a argument rather than 'char *' where aml_invoke_method_by_name() does. It's worth to have these two interfaces in many cases.
|
66090 |
20-Sep-2000 |
iwasaki |
Improve region I/O sub-routines by re-writing most of low level part of AML interpreter. - Delete and cleanup a lot of almost duplicated code in kernel/userland. - Add new common functions for kernel/userland code. aml_adjust_readvalue(), aml_adjust_updatevalue(), aml_region_handle_alloc(), aml_region_handle_free() and aml_region_io(). - Add primitive functions for both versions of kernel/userland in order to have shared code as much as possible. aml_region_read_simple(), aml_region_write_simple(), aml_region_prompt_read(), aml_region_prompt_write() and aml_region_prompt_update_value(). - Consider update rule and access type in field flags. Also add a lot of definitions for the flags. - Fix bugs on bit manipulation for read/write operations. - Fix bugs on IndexField I/O part. Also add workaround for temporary object corruption during StoreOp interpretation.
|
65867 |
14-Sep-2000 |
iwasaki |
Add manpages acpi userland tools.
Obtained from: ACPI for FreeBSD project
|
65288 |
31-Aug-2000 |
iwasaki |
This commit was generated by cvs2svn to compensate for changes in r65287, which included commits to RCS files with non-trunk default branches.
|
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.
|
65284 |
31-Aug-2000 |
iwasaki |
This commit was generated by cvs2svn to compensate for changes in r65283, which included commits to RCS files with non-trunk default branches.
|
65282 |
31-Aug-2000 |
iwasaki |
Add Makefile for acpi userland tools.
Obtained from: ACPI For FreeBSD project
|
65216 |
29-Aug-2000 |
iwasaki |
A lot of changes on acpi driver code. - The "Osd*" stuff went away from acpi driver code, use the bus_space functions directly instead. - Fix minor english bugs. acpi_registers_input -> acpi_register_input acpi_registers_output -> acpi_register_output - Remove all magic numbers for the sleeping states. We now have #defines for these. - NULL is treated the same as the return from aml_get_rootname in aml_find_from_namespace().
Suggested by: msmith
Thanks mike!
|
65047 |
24-Aug-2000 |
takawata |
Add orthogonal part of ACPI support code. This does not come effect until non-orthogonal part is commited.
Approved by: jkh Obtained from: ACPI for FreeBSD CVS repository.
|