04 Oct, 2017

1 commit

  • ACPICA commit 610046d444ad781cc36673bf1f030abe50cbc61f

    Improve adherence to ACPI spec for implicit and explicit conversions
    Adds octal support for constants in ASL code
    Adds integer overflow errors for constants during ASL compilation
    Eliminates most of the existing complex flags parameters
    Simplify support for implicit/explicit runtime conversions
    Adds one new file, utilities/utstrsuppt.c

    Link: https://github.com/acpica/acpica/commit/610046d444ad
    Signed-off-by: Bob Moore
    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     

04 Aug, 2017

2 commits

  • ACPICA commit 343fc31840d40c06001f3b170ee5bcdfd3c7f3e0

    ACPI spec allows to configure different 32-bit/64-bit table addresses for
    DSDT and FACS. And for FACS, it's meaningful to dump both of them as they
    are used to support different suspend protocols.

    While:
    1. on Linux, only 1 instance is supported for DSDT/FACS; and
    2. on EFI, the code in osl_get_table() is buggy with special table instances,
    causing endless file dump for such tables (reported by Shao Ming in link
    #2).

    This patch adds DSDT/FACS instance support for Linux/EFI acpidump. Fixed by
    Lv Zheng.

    Link: https://github.com/acpica/acpica/commit/343fc318
    Link: https://bugs.acpica.org/show_bug.cgi?id=1407 [#1]
    Link: https://github.com/acpica/acpica/issues/285 [#2]
    Reported-by: Shao Ming
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • ACPICA commit 01b8f5a2350b9cc329cd8402ac8faec36fc501f5

    In order to build ACPICA EFI tools with EDK-II on Windows, 64-bit
    multiply/shift supports are also required to be implemented. Otherwise,
    MSVC complains:
    acpidump.lib(utstrtoul64.obj) : error LNK2001: unresolved external symbol __allmul
    acpidump.lib(uthex.obj) : error LNK2001: unresolved external symbol __aullshr

    Note:
    1. This patch also splits _EDK2_EFI from _GNU_EFI as they might have
    different math64 supports.
    2. Support of gcc math64 is not included in this patch.
    3. Support of EDK2 arch independent math64 is done via linking to base_lib.

    This patch fixes this issue. Reported by Shao Ming, fixed by Lv Zheng.

    For Linux kernel, this patch is a functional no-op.

    Link: https://github.com/acpica/acpica/commit/01b8f5a2
    Tested-by: "Shao, Ming"
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     

28 Jun, 2017

1 commit


13 May, 2017

1 commit


09 Feb, 2017

1 commit


03 Jan, 2017

1 commit

  • ACPICA commit ba665dc8e20d9f7730466a659564dd6c557a6cbc

    In Linux, para-virtualization implmentation hooks critical register
    writes to prevent real hardware operations. This increases divergences
    when the sleep registers are cracked in Linux resident ACPICA.

    This patch tries to introduce a single OSL to reduce the divergences.

    Link: https://github.com/acpica/acpica/commit/ba665dc8
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     

15 Dec, 2016

1 commit


14 Dec, 2016

1 commit


13 Dec, 2016

1 commit

  • * acpica:
    ACPICA: Utilities: Add new decode function for parser values
    ACPICA: Tables: Add an error message complaining driver bugs
    ACPICA: Tables: Add acpi_tb_unload_table()
    ACPICA: Tables: Cleanup acpi_tb_install_and_load_table()
    ACPICA: Events: Fix acpi_ev_initialize_region() return value
    ACPICA: Back port of "ACPICA: Dispatcher: Tune interpreter lock around AcpiEvInitializeRegion()"
    ACPICA: Namespace: Add acpi_ns_handle_to_name()
    ACPICA: Update version to 20160930
    ACPICA: Move acpi_gbl_max_loop_iterations to the public globals file
    ACPICA: Disassembler: Fix for Divide() support, new support for test suite
    ACPICA: Increase loop limit for AE_AML_INFINITE_LOOP exception
    ACPICA: MacOSX: Fix wrong sem_destroy definition
    ACPICA: MacOSX: Fix anonymous semaphore implementation
    ACPICA: Update an info message during table load phase

    Rafael J. Wysocki
     

17 Nov, 2016

1 commit

  • Avoid breaking cross-compiled ACPI tools builds by rearranging the
    handling of kernel header files.

    This patch also contains OUTPUT/srctree cleanups in order to make above fix
    working for various build environments.

    Fixes: e323c02dee59 (ACPICA: MSVC9: Fix inclusion order issue)
    Reported-and-tested-by: Yisheng Xie
    Reported-by: Andy Shevchenko
    Signed-off-by: Lv Zheng
    [ rjw: Changelog ]
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     

21 Oct, 2016

2 commits

  • ACPICA commit bbcb58f7875381d5c7f3d614bad3bc628a3f5cc6

    The following build errors can be seen for MacOSX builds:
    .../osunixxf.c:882:9: error: 'sem_close' is deprecated [-Werror,-Wdeprecated-declarations]
    .../acmacosx.h:122:29: note: expanded from macro 'sem_destroy'
    #define sem_destroy sem_close

    sem_destroy() issue is caused by the wrong order of the following lines:
    #define #sem_destroy sem_close
    #include
    This patch fixes it by removing the buggy re-definitiion. Lv Zheng.

    Linux is not affected by this change.

    Link: https://github.com/acpica/acpica/commit/bbcb58f7
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • ACPICA commit 01eb9a58f4cf6300a0feb838a02bc4b1895c76e8
    ACPICA commit de5b9c0ef1ccb264cbe57c88f6dd3fbf8229f907

    The following build errors can be seen for MacOSX builds:
    .../osunixxf.c:829:42: error: 'tmpnam' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead. [-Werror,-Wdeprecated-declarations]

    Using of temporal file name functions can easily result in bus errors on
    MacOSX. This patch implements anonymous semaphore using an automatic
    increasing number. Lv Zheng.

    Linux is not affected by this change.

    Link: https://github.com/acpica/acpica/commit/01eb9a58
    Link: https://github.com/acpica/acpica/commit/de5b9c0e
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     

10 Sep, 2016

1 commit

  • ACPICA commit e2e72a351201fd58e4694418859ae2c247dafca0

    Consolidate multiple versions of strtoul64 to one common version.
    limit possible bases to either 10 or 16.
    Handles both implicit and explicit conversions.
    Added a 2-character ascii-to-hex function for GPEs and buffers.
    Adds a new file, utstrtoul64.c

    Link: https://github.com/acpica/acpica/commit/e2e72a35
    Signed-off-by: Bob Moore
    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     

13 Aug, 2016

8 commits

  • …)/errno/perror() instead

    ACPICA commit 189429fb7d06cdb89043ae32d615faf553467f1d

    This patch follows new ACPICA design, eliminates old portable OSLs, and
    implements fopen/fread/fwrite/fclose/fseek/ftell for GNU EFI
    environment. This patch also eliminates acpi_log_error(), convering them
    into fprintf(stderr)/perror(). Lv Zheng.

    Link: https://github.com/acpica/acpica/commit/189429fb
    Link: https://bugs.acpica.org/show_bug.cgi?id=1302
    Signed-off-by: Lv Zheng <lv.zheng@intel.com>
    Signed-off-by: Bob Moore <robert.moore@intel.com>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

    Lv Zheng
     
  • ACPICA commit d261d40ea168f8e4c4e3986de720b8651c4aba1c

    This patch adds sprintf()/snprintf()/vsnprintf()/printf()/vfprintf()
    support for OSPMs that have ACPI_USE_SYSTEM_CLIBRARY defined but do not
    have ACPI_USE_STANDARD_HEADERS defined.

    -iwithprefix include is required to include which contains
    compiler specific implementation of vargs when -nostdinc is specified.
    -fno-builtin is required for GCC to avoid optimization performed printf().
    This optimization cannot be automatically disabled by specifying -nostdlib.
    Please refer to the first link below for the details. However, the build
    option changes do not affect Linux kernel builds and are not included.
    Lv Zheng.

    Link: http://www.ciselant.de/projects/gcc_printf/gcc_printf.html
    Link: https://github.com/acpica/acpica/commit/d261d40e
    Link: https://bugs.acpica.org/show_bug.cgi?id=1302
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • ACPICA commit 9bb265c2afb9910e46f820d6759648580edabd09

    When /Za is specified, headers of some Windows SDKs contain bugs breaking
    VC builds, and MSVC9's default SDK is one of such header-buggy library.

    In order to solve this issue, many VC developers stop using /Za. However
    we've been asked to have this fixed without removing /Za.

    In MSVC9 default SDK, this issue can be fixed by restricting
    to be the last standard file included by every source file in the projects.
    This patch thus moves inclusion to "acapps.h", so that this
    issue can be fixed by ensuring that "acapps.h" is always the last standard
    file included by all of the ACPICA source files. This is in fact also a
    useful cleanup because applications can only include one header (e.x.,
    acpidump.h) instead of including acapps.h separately. Lv Zheng.

    Except some harmless header inclusion re-ordering, Linux kernel is not
    affected by this change.

    Link: https://github.com/acpica/acpica/commit/9bb265c2
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • ACPICA commit 7f9b359b7c78c69b07f62eb2d58f710c351fd75d

    EFI header should use standard C library stuffs (integer types and IO
    handles) rather than implementing such standard stuffs.
    This patch fixes this issue by:
    1. Implementing standard integer types for ACPI_USE_STANDARD_HADERS=n;
    2. Defining EFI types using standard integer types and standard IO handles;
    3. Tuning header inclusion order and environment definition order;
    4. Removing wrong standard header inclusion from ACPICA core files;
    5. Moving several application headers from acpidump.h to acenv.h.
    This patch corrects some of them. Lv Zheng.

    Except some harmless header inclusion re-ordering, Linux kernel is not
    affected by this change.

    Link: https://github.com/acpica/acpica/commit/7f9b359b
    Link: https://bugs.acpica.org/show_bug.cgi?id=1300
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • …converting size_t to acpi_size

    ACPICA commit 7cf411136c69ef0b8f184b96599eb45c15b89226

    When standard size_t is not defined due to ACPI_USE_STANDARD_HEADERS=n,
    we shouldn't use size_t, but should use acpi_size instead. This fixes such
    build issue. Lv Zheng.

    Link: https://github.com/acpica/acpica/commit/7cf41113
    Link: https://bugs.acpica.org/show_bug.cgi?id=1296
    Signed-off-by: Lv Zheng <lv.zheng@intel.com>
    Signed-off-by: Bob Moore <robert.moore@intel.com>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

    Lv Zheng
     
  • ACPICA commit 080f99d5b29313380accd00d2b9768e809eb417b

    acpi_gbl_integer_byte_width has already been instantiated by ACPI_GLOBAL() in
    acglobal.h. Lv Zheng.

    Link: https://github.com/acpica/acpica/commit/080f99d5
    Link: https://bugs.acpica.org/show_bug.cgi?id=1301
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • ACPICA commit 408198c8c9786f9f104ee925020c3ab1701906e4

    The acpi_gbl_debug_timeout which is used by acpiexec -et option now is only
    implemented in oswinxf.c and used for WIN32 builds. This makes it very
    difficult to remember that we need to add this variable to other os
    specific layer files in order for linking. This patch makes it a global
    option dependent on ACPI_APPLICATION so that it can always be linked by the
    applications. Lv Zheng.

    Link: https://github.com/acpica/acpica/commit/408198c8
    Link: https://bugs.acpica.org/show_bug.cgi?id=1295
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • ACPICA commit fc0f12b1eff6253f83e599a7ee1765fcc8e42dcc

    Add check for required filename for the -d and -da options.
    ACPICA BZ 1285.

    Link: https://github.com/acpica/acpica/commit/fc0f12b1
    Link: https://bugs.acpica.org/show_bug.cgi?id=1285
    Signed-off-by: Bob Moore
    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     

23 Jun, 2016

1 commit


16 May, 2016

1 commit

  • * acpi-pci:
    ACPI,PCI,IRQ: remove SCI penalize function
    ACPI,PCI,IRQ: remove redundant code in acpi_irq_penalty_init()
    ACPI,PCI,IRQ: reduce static IRQ array size to 16
    ACPI,PCI,IRQ: reduce resource requirements

    * acpi-misc:
    ACPI / sysfs: fix error code in get_status()
    ACPI / device_sysfs: Clean up checkpatch errors
    ACPI / device_sysfs: Change _SUN and _STA show functions error return to EIO
    ACPI / device_sysfs: Add sysfs support for _HRV hardware revision
    arm64: defconfig: Enable ACPI
    ACPI / ARM64: Remove EXPERT dependency for ACPI on ARM64
    ACPI / ARM64: Don't enable ACPI by default on ARM64
    acer-wmi: Use acpi_dev_found()
    eeepc-wmi: Use acpi_dev_found()
    ACPI / utils: Rename acpi_dev_present()

    * acpi-tools:
    tools/power/acpi: close file only if it is open

    Rafael J. Wysocki
     

05 May, 2016

2 commits

  • ACPICA commit ba60e4500053010bf775d58f6f61febbdb94d817

    New file is utascii.c

    Link: https://github.com/acpica/acpica/commit/ba60e450
    Signed-off-by: Bob Moore
    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     
  • ACPICA commit b2294cae776f5a66a7697414b21949d307e6856f

    This patch removes unwanted spaces for typedef. This solution doesn't cover
    function types.

    Note that the linuxize result of this commit is very giant and should have
    many conflicts against the current Linux upstream. Thus it is required to
    modify the linuxize result of this commit and the commits around it
    manually in order to have them merged to the Linux upstream. Since this is
    very costy, we should do this only once, and if we can't ensure to do this
    only once, we need to revert the Linux code to the wrong indentation result
    before merging the linuxize result of this commit. Lv Zheng.

    Link: https://github.com/acpica/acpica/commit/b2294cae
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     

09 Apr, 2016

1 commit

  • The logic on the test for a valid fd to close is incorrect.
    This was just a mistake and was pointed out by Colin Ian King.

    Link: https://patchwork.kernel.org/patch/8620201/
    Original-by: Colin Ian King
    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     

05 Apr, 2016

2 commits

  • ACPICA commit 795e136d2ac77c1c8b091fba019b5fe36a44a323

    Fixes a problem with the merger of the two internal versions
    of this function. Make the maximum integer width (32-bit or
    64-bit) a parameter to the function so that it no longer
    exclusively uses the integer width specified in the DSDT/SSDT.
    ACPICA BZ 1260

    Link: https://github.com/acpica/acpica/commit/795e136d
    Signed-off-by: Bob Moore
    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     
  • ACPICA commit 37a1dec2391272251e59948c16c60713183ae78f

    Link: https://github.com/acpica/acpica/commit/37a1dec2
    Signed-off-by: Will Miles
    Signed-off-by: Bob Moore
    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Will Miles
     

16 Jan, 2016

1 commit


01 Jan, 2016

2 commits


15 Dec, 2015

1 commit

  • This patch adds a userspace tool to access Linux kernel AML debugger
    interface.

    Tow modes are supported by this tool:
    1. Interactive: Users are able to launch a debugging shell to talk with
    in-kernel AML debugger.
    Note that it's user duty to ensure kernel runtime integrity by using
    this debugging tool:
    A. Some control methods evaluated by the users may result in kernel
    panics if those control methods shouldn't be evaluated by the OSPMs
    according to the current BIOS/OS configurations.
    B. Currently if a single stepping evaluation couldn't run to an end,
    then the synchronization primitives acquired by the evaluation may
    block normal OSPM control method evaluations.
    2. Batch: Users are able to execute debugger commands in a script.
    Note that in addition to the above duties, it's user duty to ensure
    script runtime integrity by using this debugging tool in this mode:
    C. Currently only those commands that are not used for single stepping
    are suitable to be used in this mode.
    D. If the execution of the command may cause a failure that could result
    in an endless kernel execution, the execution of the script may also
    get blocked.
    To exit the utility, currently "exit/quit" commands are recommended, but
    ctrl-C" can also be used.

    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     

22 Oct, 2015

1 commit


01 Aug, 2015

2 commits


02 Jul, 2015

4 commits

  • ACPICA commit 3b1026e0bdd3c32eb6d5d313f3ba0b1fee7597b4
    ACPICA commit 00f0dc83f5cfca53b27a3213ae0d7719b88c2d6b
    ACPICA commit 47d22a738d0e19fd241ffe4e3e9d4e198e4afc69

    Across all of ACPICA. Replace C library macros such as ACPI_STRLEN with the
    standard names such as strlen. The original purpose for these macros is
    long since obsolete.
    Also cast various invocations as necessary. Bob Moore, Jung-uk Kim, Lv Zheng.

    Link: https://github.com/acpica/acpica/commit/3b1026e0
    Link: https://github.com/acpica/acpica/commit/00f0dc83
    Link: https://github.com/acpica/acpica/commit/47d22a73
    Signed-off-by: Bob Moore
    Signed-off-by: Jung-uk Kim
    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     
  • This patch updates acpidump manual according to the recent changes.

    Signed-off-by: Lv Zheng
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • ACPICA commit 04c3bd7e9d6aeb2b3edebe99c90dc271ae4e6353

    In order to work without any additional option to dump tables when /dev/mem
    doesn't exist, this patch switches the default behavior of acpidump to dump
    from /sys/firmware/acpi/tables. Reported by Al Stone, Fixed by Lv Zheng.

    Link: https://github.com/acpica/acpica/commit/04c3bd7e
    Reported-by: Al Stone
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • ACPICA commit ab29013cfa2424140446aff196a70b211ab343a9

    The /dev/mem can be configured out, in which case, acpidump should still
    work with "-c" option as tables can be found in /sys/firmware/acpi/tables.
    This patch allows acpidump to work without /dev/mem.
    This patch has been tested with "acpidump -c" and "acpidump -c -n FADT".
    And it worked as expected. Lv Zheng.

    Link: https://github.com/acpica/acpica/commit/ab29013c
    Reported-by: Al Stone
    Signed-off-by: Lv Zheng
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng