31 Mar, 2020

2 commits

  • Pull perf updates from Ingo Molnar:
    "The main changes in this cycle were:

    Kernel side changes:

    - A couple of x86/cpu cleanups and changes were grandfathered in due
    to patch dependencies. These clean up the set of CPU model/family
    matching macros with a consistent namespace and C99 initializer
    style.

    - A bunch of updates to various low level PMU drivers:
    * AMD Family 19h L3 uncore PMU
    * Intel Tiger Lake uncore support
    * misc fixes to LBR TOS sampling

    - optprobe fixes

    - perf/cgroup: optimize cgroup event sched-in processing

    - misc cleanups and fixes

    Tooling side changes are to:

    - perf {annotate,expr,record,report,stat,test}

    - perl scripting

    - libapi, libperf and libtraceevent

    - vendor events on Intel and S390, ARM cs-etm

    - Intel PT updates

    - Documentation changes and updates to core facilities

    - misc cleanups, fixes and other enhancements"

    * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (89 commits)
    cpufreq/intel_pstate: Fix wrong macro conversion
    x86/cpu: Cleanup the now unused CPU match macros
    hwrng: via_rng: Convert to new X86 CPU match macros
    crypto: Convert to new CPU match macros
    ASoC: Intel: Convert to new X86 CPU match macros
    powercap/intel_rapl: Convert to new X86 CPU match macros
    PCI: intel-mid: Convert to new X86 CPU match macros
    mmc: sdhci-acpi: Convert to new X86 CPU match macros
    intel_idle: Convert to new X86 CPU match macros
    extcon: axp288: Convert to new X86 CPU match macros
    thermal: Convert to new X86 CPU match macros
    hwmon: Convert to new X86 CPU match macros
    platform/x86: Convert to new CPU match macros
    EDAC: Convert to new X86 CPU match macros
    cpufreq: Convert to new X86 CPU match macros
    ACPI: Convert to new X86 CPU match macros
    x86/platform: Convert to new CPU match macros
    x86/kernel: Convert to new CPU match macros
    x86/kvm: Convert to new CPU match macros
    x86/perf/events: Convert to new CPU match macros
    ...

    Linus Torvalds
     
  • Pull ACPI updates from Rafael Wysocki:

    - Update the ACPICA code in the kernel to the 20200214 upstream
    release including:

    * Fix to re-enable the sleep button after wakeup (Anchal
    Agarwal).

    * Fixes for mistakes in comments and typos (Bob Moore).

    * ASL-ASL+ converter updates (Erik Kaneda).

    * Type casting cleanups (Sven Barth).

    - Clean up the intialization of the EC driver and eliminate some dead
    code from it (Rafael Wysocki).

    - Clean up the quirk tables in the AC and battery drivers (Hans de
    Goede).

    - Fix the global lock handling on x86 to ignore unspecified bit
    positions in the global lock field (Jan Engelhardt).

    - Add a new "tiny" driver for ACPI button devices exposed by VMs to
    guest kernels to send signals directly to init (Josh Triplett).

    - Add a kernel parameter to disable ACPI BGRT on x86 (Alex Hung).

    - Make the ACPI PCI host bridge and fan drivers use scnprintf() to
    avoid potential buffer overflows (Takashi Iwai).

    - Clean up assorted pieces of code:

    * Reorder "asmlinkage" to make g++ happy (Alexey Dobriyan).

    * Drop unneeded variable initialization (Colin Ian King).

    * Add missing __acquires/__releases annotations (Jules Irenge).

    * Replace list_for_each_safe() with list_for_each_entry_safe()
    (chenqiwu)"

    * tag 'acpi-5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (31 commits)
    ACPICA: Update version to 20200214
    ACPI: PCI: Use scnprintf() for avoiding potential buffer overflow
    ACPI: fan: Use scnprintf() for avoiding potential buffer overflow
    ACPI: EC: Eliminate EC_FLAGS_QUERY_HANDSHAKE
    ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add()
    ACPI: EC: Simplify acpi_ec_ecdt_start() and acpi_ec_init()
    ACPI: EC: Consolidate event handler installation code
    acpi/x86: ignore unspecified bit positions in the ACPI global lock field
    acpi/x86: add a kernel parameter to disable ACPI BGRT
    x86/acpi: make "asmlinkage" part first thing in the function definition
    ACPI: list_for_each_safe() -> list_for_each_entry_safe()
    ACPI: video: remove redundant assignments to variable result
    ACPI: OSL: Add missing __acquires/__releases annotations
    ACPI / battery: Cleanup Lenovo Ideapad Miix 320 DMI table entry
    ACPI / AC: Cleanup DMI quirk table
    ACPI: EC: Use fast path in acpi_ec_add() for DSDT boot EC
    ACPI: EC: Simplify acpi_ec_add()
    ACPI: EC: Drop AE_NOT_FOUND special case from ec_install_handlers()
    ACPI: EC: Avoid passing redundant argument to functions
    ACPI: EC: Avoid printing confusing messages in acpi_ec_setup()
    ...

    Linus Torvalds
     

30 Mar, 2020

4 commits

  • * acpi-ec:
    ACPI: EC: Eliminate EC_FLAGS_QUERY_HANDSHAKE
    ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add()
    ACPI: EC: Simplify acpi_ec_ecdt_start() and acpi_ec_init()
    ACPI: EC: Consolidate event handler installation code
    ACPI: EC: Use fast path in acpi_ec_add() for DSDT boot EC
    ACPI: EC: Simplify acpi_ec_add()
    ACPI: EC: Drop AE_NOT_FOUND special case from ec_install_handlers()
    ACPI: EC: Avoid passing redundant argument to functions
    ACPI: EC: Avoid printing confusing messages in acpi_ec_setup()

    * acpi-fan:
    ACPI: fan: Use scnprintf() for avoiding potential buffer overflow

    * acpi-pci:
    ACPI: PCI: Use scnprintf() for avoiding potential buffer overflow

    Rafael J. Wysocki
     
  • * acpi-button:
    ACPI: Add new tiny-power-button driver to directly signal init
    ACPI: button: move HIDs to acpi/button.h

    * acpi-battery:
    ACPI / battery: Cleanup Lenovo Ideapad Miix 320 DMI table entry
    ACPI / AC: Cleanup DMI quirk table

    * acpi-osl:
    ACPI: OSL: Add missing __acquires/__releases annotations

    * acpi-video:
    ACPI: video: remove redundant assignments to variable result

    * acpi-misc:
    ACPI: list_for_each_safe() -> list_for_each_entry_safe()

    Rafael J. Wysocki
     
  • * acpica:
    ACPICA: Update version to 20200214
    ACPICA: Fix a couple of typos
    ACPICA: use acpi_size instead of u32 for prefix_path_length
    ACPICA: cast length arguement to acpi_ns_build_normalized_path() as u32
    ACPICA: cast the result of the pointer difference to u32
    ACPICA: Table Manager: Update comments in a function header
    ACPICA: Enable sleep button on ACPI legacy wake
    ACPICA: Fix a comment "enable" fixed events -> "disable" all fixed events.
    ACPICA: ASL-ASL+ converter: make root file a parameter for cv_init_file_tree
    ACPICA: ASL-ASL+ converter: remove function parameters from cv_init_file_tree()

    Rafael J. Wysocki
     
  • * pm-core:
    PM: runtime: Add pm_runtime_get_if_active()

    * pm-sleep:
    PM: sleep: wakeup: Skip wakeup_source_sysfs_remove() if device is not there
    PM / hibernate: Remove unnecessary compat ioctl overrides
    PM: hibernate: fix docs for ioctls that return loff_t via pointer
    PM: sleep: wakeup: Use built-in RCU list checking
    PM: sleep: core: Use built-in RCU list checking

    * pm-acpi:
    ACPI: PM: s2idle: Refine active GPEs check
    ACPICA: Allow acpi_any_gpe_status_set() to skip one GPE
    ACPI: PM: s2idle: Fix comment in acpi_s2idle_prepare_late()

    * pm-domains:
    cpuidle: psci: Split psci_dt_cpu_init_idle()
    PM / Domains: Allow no domain-idle-states DT property in genpd when parsing

    Rafael J. Wysocki
     

25 Mar, 2020

4 commits

  • Conflicts:
    arch/x86/events/intel/uncore.c

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • The check for any active GPEs added by commit fdde0ff8590b ("ACPI:
    PM: s2idle: Prevent spurious SCIs from waking up the system") turns
    out to be insufficiently precise to prevent some systems from
    resuming prematurely due to a spurious EC wakeup, so refine it
    by first checking if any GPEs other than the EC GPE are active
    and skipping all of the SCIs coming from the EC that do not produce
    any genuine wakeup events after processing.

    Link: https://bugzilla.kernel.org/show_bug.cgi?id=206629
    Fixes: fdde0ff8590b ("ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system")
    Reported-by: Ondřej Caletka
    Tested-by: Ondřej Caletka
    Cc: 5.4+ # 5.4+
    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • The check carried out by acpi_any_gpe_status_set() is not precise enough
    for the suspend-to-idle implementation in Linux and in some cases it is
    necessary make it skip one GPE (specifically, the EC GPE) from the check
    to prevent a race condition leading to a premature system resume from
    occurring.

    For this reason, redefine acpi_any_gpe_status_set() to take the number
    of a GPE to skip as an argument.

    Link: https://bugzilla.kernel.org/show_bug.cgi?id=206629
    Tested-by: Ondřej Caletka
    Cc: 5.4+ # 5.4+
    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • The new macro set has a consistent namespace and uses C99 initializers
    instead of the grufty C89 ones.

    Rename the local macro wrapper to X86_MATCH for consistency. It stays for
    readability sake.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Borislav Petkov
    Reviewed-by: Greg Kroah-Hartman
    Link: https://lkml.kernel.org/r/20200320131509.467730627@linutronix.de

    Thomas Gleixner
     

22 Mar, 2020

2 commits

  • Fix a comment in acpi_s2idle_prepare_late() that has become outdated
    after commit f0ac20c3f613 ("ACPI: EC: Fix flushing of pending work").

    Fixes: f0ac20c3f613 ("ACPI: EC: Fix flushing of pending work")
    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • Commit 3f8fd02b1bf1 ("mm/vmalloc: Sync unmappings in
    __purge_vmap_area_lazy()") introduced a call to vmalloc_sync_all() in
    the vunmap() code-path. While this change was necessary to maintain
    correctness on x86-32-pae kernels, it also adds additional cycles for
    architectures that don't need it.

    Specifically on x86-64 with CONFIG_VMAP_STACK=y some people reported
    severe performance regressions in micro-benchmarks because it now also
    calls the x86-64 implementation of vmalloc_sync_all() on vunmap(). But
    the vmalloc_sync_all() implementation on x86-64 is only needed for newly
    created mappings.

    To avoid the unnecessary work on x86-64 and to gain the performance
    back, split up vmalloc_sync_all() into two functions:

    * vmalloc_sync_mappings(), and
    * vmalloc_sync_unmappings()

    Most call-sites to vmalloc_sync_all() only care about new mappings being
    synchronized. The only exception is the new call-site added in the
    above mentioned commit.

    Shile Zhang directed us to a report of an 80% regression in reaim
    throughput.

    Fixes: 3f8fd02b1bf1 ("mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()")
    Reported-by: kernel test robot
    Reported-by: Shile Zhang
    Signed-off-by: Joerg Roedel
    Signed-off-by: Andrew Morton
    Tested-by: Borislav Petkov
    Acked-by: Rafael J. Wysocki [GHES]
    Cc: Dave Hansen
    Cc: Andy Lutomirski
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc:
    Link: http://lkml.kernel.org/r/20191009124418.8286-1-joro@8bytes.org
    Link: https://lists.01.org/hyperkitty/list/lkp@lists.01.org/thread/4D3JPPHBNOSPFK2KEPC6KGKS6J25AIDB/
    Link: http://lkml.kernel.org/r/20191113095530.228959-1-shile.zhang@linux.alibaba.com
    Signed-off-by: Linus Torvalds

    Joerg Roedel
     

14 Mar, 2020

6 commits

  • Since snprintf() returns the would-be-output size instead of the
    actual output size, the succeeding calls may go beyond the given
    buffer limit. Fix it by replacing with scnprintf().

    Signed-off-by: Takashi Iwai
    Signed-off-by: Rafael J. Wysocki

    Takashi Iwai
     
  • Since snprintf() returns the would-be-output size instead of the
    actual output size, the succeeding calls may go beyond the given
    buffer limit. Fix it by replacing with scnprintf().

    Also adjust the argument to really match with the actually remaining
    buffer size.

    Signed-off-by: Takashi Iwai
    Signed-off-by: Rafael J. Wysocki

    Takashi Iwai
     
  • The EC_FLAGS_QUERY_HANDSHAKE switch is never set in the current
    code (the only function setting it is defined under #if 0) and
    has no effect whatever, so eliminate it and drop the code
    depending on it.

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • The reason for clearing boot_ec_is_ecdt in acpi_ec_add() (if a
    PNP0C09 device object matching the ECDT boot EC had been found in
    the namespace) was to cause acpi_ec_ecdt_start() to return early,
    but since the latter does not look at boot_ec_is_ecdt any more,
    acpi_ec_add() need not clear it.

    Moreover, doing that may be confusing as it may cause "DSDT" to be
    printed instead of "ECDT" in the EC initialization completion
    message, so stop doing it.

    While at it, split the EC initialization completion message into
    two messages, one regarding the boot EC and another one printed
    regardless of whether or not the EC at hand is the boot one.

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • Notice that the return value of acpi_ec_init() is discarded anyway,
    so it can be void and it doesn't need to check the return values of
    acpi_bus_register_driver() and acpi_ec_ecdt_start() called by it.
    Thus the latter can be void too and it really has nothing to do
    if acpi_ec_add() has already found an EC matching the boot one in the
    namespace. Also, acpi_ec_ecdt_get_handle() can be folded into it.

    Modify the code accordingly and while at it create a propoer kerneldoc
    comment to document acpi_ec_ecdt_start() and move the remark regarding
    ASUS X550ZE along with the related bug URL from acpi_ec_init() into
    that comment.

    Additionally, fix up a stale comment in acpi_ec_init().

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • Commit 406857f773b0 ("ACPI: EC: add support for hardware-reduced
    systems") made ec_install_handlers() return an error on failures
    to configure a GPIO IRQ for the EC, but that is inconsistent with
    the handling of the GPE event handler installation failures even
    though it is exactly the same issue and the driver can respond to
    it in the same way in both cases (the EC can be actively polled
    for events through its registers if the event handler installation
    fails).

    Moreover, it requires acpi_ec_add() to take that special case into
    account and disagrees with the ec_install_handlers() header comment.

    For this reason, rework the event handler installation code in
    ec_install_handlers() to explicitly take deferred probing (that
    may be needed in the GPIO IRQ case) into account and to avoid
    failing the EC initialization in any other case.

    Among other things, reduce code duplication between
    install_gpe_event_handler() and install_gpio_irq_event_handler() by
    moving some code from there into ec_install_handlers() itself and
    simplify the error code path in acpi_ec_add().

    While at it, turn the ec_install_handlers() header comment into
    a proper kerneldoc one and add some general control flow information
    to it.

    Signed-off-by: Rafael J. Wysocki
    Tested-by: Jian-Hong Pan

    Rafael J. Wysocki
     

04 Mar, 2020

5 commits

  • Replace list_for_each_safe() and open-coded list entry address
    computations with list_for_each_entry_safe() in several places to
    simplify code.

    Signed-off-by: chenqiwu
    [ rjw: Subject & changelog ]
    Signed-off-by: Rafael J. Wysocki

    chenqiwu
     
  • The variable result is being initialized with a value that is never
    read and it is being updated later with a new value. The initialization
    is redundant and can be removed.

    Addresses-Coverity: ("Unused value")
    Signed-off-by: Colin Ian King
    Signed-off-by: Rafael J. Wysocki

    Colin Ian King
     
  • Sparse reports a warnings at acpi_os_acquire_lock() and
    acpi_os_release_lock():

    warning: context imbalance in acpi_os_acquire_lock() - unexpected unlock

    warning: context imbalance in acpi_os_release_lock() - unexpected unlock

    which result from missing __acquires/__releases annotations.

    Add the annotations as appropriate to get rid of the warnings.

    Signed-off-by: Jules Irenge
    [ rjw: Two patches merged into one, subject & changelog ]
    Signed-off-by: Rafael J. Wysocki

    Jules Irenge
     
  • The Lenovo Ideapad Miix 320 bat_dmi_table entry is using weird indentation
    and is the only entry which (unnecessarily) uses DMI_EXACT_MATCH instead
    of DMI_MATCH, fixup both to make the entry consistent with the others.

    While at it also update the comments for battery_do_not_check_pmic_quirk
    entries, adding a bit of text explaining why the quirk is necessary.

    Signed-off-by: Hans de Goede
    Signed-off-by: Rafael J. Wysocki

    Hans de Goede
     
  • The 3 different entries we have sofar all use different identation and
    2 of the use DMI_MATCH where as 1 unnecessarily used DMI_EXACT_MATCH
    Fix this to just use full tab idents for each level and DMI_MATCH
    everywhere and sort the entries alphabetically.

    Also add a bit of text to the comments explaining why the quirk is
    necessary.

    Signed-off-by: Hans de Goede
    Signed-off-by: Rafael J. Wysocki

    Hans de Goede
     

02 Mar, 2020

2 commits

  • If the boot EC comes from the DSDT, its ACPI handle is equal to the
    handle of a device object with the PNP0C09 device ID. If that
    device object is passed to acpi_ec_add(), it is not necessary to
    allocate a new EC structure for it and parse it, because that has
    been done already, so change the function to use the fast path in
    that case.

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • First, notice that if the device ID in acpi_ec_add() is equal to
    ACPI_ECDT_HID, boot_ec_is_ecdt must be set, because this means
    that the device object passed to acpi_ec_add() comes from
    acpi_ec_ecdt_start() which fails if boot_ec_is_ecdt is unset.
    Accordingly, boot_ec_is_ecdt need not be set again in that case,
    so drop that redundant update of it from the code.

    Next, ec->handle must be a valid ACPI handle right before
    returning 0 from acpi_ec_add(), because it either is the handle
    of the device object passed to that function, or it is the boot EC
    handle coming from acpi_ec_ecdt_start() which fails if it cannot
    find a valid handle for the boot EC. Moreover, the object with
    that handle is regarded as a valid representation of the EC in all
    cases, so there is no reason to avoid the _DEP list update walk if
    that handle is the boot EC handle. Accordingly, drop the dep_update
    local variable from acpi_ec_add() and call acpi_walk_dep_device_list()
    for ec->handle unconditionally before returning 0 from it.

    Finally, the ec local variable in acpi_ec_add() need not be
    initialized to NULL and the status local variable declaration
    can be moved to the block in which it is used, so change the code
    in accordance with these observations.

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     

29 Feb, 2020

1 commit

  • Pull ACPI fixes from Rafael Wysocki:
    "Fix a couple of configuration issues in the ACPI watchdog (WDAT)
    driver (Mika Westerberg) and make it possible to disable that driver
    at boot time in case it still does not work as expected (Jean
    Delvare)"

    * tag 'acpi-5.6-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    ACPI: watchdog: Set default timeout in probe
    ACPI: watchdog: Fix gas->access_width usage
    ACPICA: Introduce ACPI_ACCESS_BYTE_WIDTH() macro
    ACPI: watchdog: Allow disabling WDAT at boot

    Linus Torvalds
     

28 Feb, 2020

3 commits

  • If the status value returned by acpi_install_address_space_handler()
    in ec_install_handlers() is AE_NOT_FOUND, it is treated in a special
    way, apparently because it might mean a _REG method evaluation
    failure (at least that is the case according to the comment in
    there), but acpi_install_address_space_handler() does not take
    _REG evaluation errors into account at all, so the AE_NOT_FOUND
    special handling is confusing at best.

    For this reason, change ec_install_handlers() to stop the EC and
    return -ENODEV on all acpi_install_address_space_handler() errors.

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • After commit 406857f773b0 ("ACPI: EC: add support for hardware-reduced
    systems") the handle_events argument passed to ec_install_handlers()
    and acpi_ec_setup() is redundant, because it is always 'false' when
    the device argument passed to them in NULL and it is always 'true'
    otherwise, so the device argument can be tested against NULL instead
    of testing the handle_events one.

    Accordingly, modify ec_install_handlers() and acpi_ec_setup() to take
    two arguments and reduce the number of checks in the former.

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • It doesn't really make sense to pass ec->handle of the ECDT EC to
    acpi_handle_info(), because it is set to ACPI_ROOT_OBJECT in
    acpi_ec_ecdt_probe(), so rework acpi_ec_setup() to avoid using
    acpi_handle_info() for printing messages.

    First, notice that the "Used as first EC" message is not really
    useful, because it is immediately followed by a more meaningful one
    from either acpi_ec_ecdt_probe() or acpi_ec_dsdt_probe() (the latter
    also includes the EC object path), so drop it altogether.

    Second, use pr_info() for printing the EC configuration information.

    While at it, make the code in question avoid printing invalid GPE or
    IRQ numbers and make it print the GPE/IRQ information only when the
    driver is ready to handle events.

    Fixes: 72c77b7ea9ce ("ACPI / EC: Cleanup first_ec/boot_ec code")
    Fixes: 406857f773b0 ("ACPI: EC: add support for hardware-reduced systems")
    Cc: 5.5+ # 5.5+
    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     

22 Feb, 2020

1 commit

  • Commit fdde0ff8590b ("ACPI: PM: s2idle: Prevent spurious SCIs from
    waking up the system") overlooked the fact that fixed events can wake
    up the system too and broke RTC wakeup from suspend-to-idle as a
    result.

    Fix this issue by checking the fixed events in acpi_s2idle_wake() in
    addition to checking wakeup GPEs and break out of the suspend-to-idle
    loop if the status bits of any enabled fixed events are set then.

    Fixes: fdde0ff8590b ("ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system")
    Reported-and-tested-by: Chris Wilson
    Cc: 5.4+ # 5.4+
    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     

16 Feb, 2020

9 commits

  • Squashed ACPICA commit e93a53d4d312a83a3ec72aa9cfb12d781b4fefca
    and df52c574572344cd9095b66a0f580d51249deb2a

    Submitted by: ehaouas@noos.fr

    Link: https://github.com/acpica/acpica/commit/e93a53d4
    Signed-off-by: Bob Moore
    Signed-off-by: Erik Kaneda
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     
  • strlen() returns a size_t, so use acpi_size instead of u32 for
    prefix_path_length.

    ACPICA commit 0f64c317e769a63679442404421da1d5bd61068a

    Link: https://github.com/acpica/acpica/commit/0f64c317
    Signed-off-by: Sven Barth
    Signed-off-by: Bob Moore
    Signed-off-by: Erik Kaneda
    Signed-off-by: Rafael J. Wysocki

    Sven Barth
     
  • ACPICA commit d216e4c8d886d7fb82697948c4fee8a5777a1a5a

    Link: https://github.com/acpica/acpica/commit/d216e4c8
    Signed-off-by: Sven Barth
    Signed-off-by: Bob Moore
    Signed-off-by: Erik Kaneda
    Signed-off-by: Rafael J. Wysocki

    Sven Barth
     
  • Altnatively we could declare aml_length as acpi_size, but then one
    would need to cast at the assignment for method_obj->method.aml_length

    ACPICA commit 72805936603fcf84e98f1b89bf99b5101af27fb8

    Link: https://github.com/acpica/acpica/commit/72805936
    Signed-off-by: Sven Barth
    Signed-off-by: Bob Moore
    Signed-off-by: Erik Kaneda
    Signed-off-by: Rafael J. Wysocki

    Sven Barth
     
  • Update acpi_get_table_header to remove text stating that the caller
    must unmap any returned memory.

    ACPICA commit 4f3a235cf0044b2d91958b1f99b4ca824c63f948

    Link: https://github.com/acpica/acpica/commit/4f3a235c
    Signed-off-by: Bob Moore
    Signed-off-by: Erik Kaneda
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     
  • ACPICA commit 9383f5b01091e432c05f802a57edc20d329eec1f

    Hibernation (S4) is triggered in a guest when it recieves a sleep
    trigger from the hypervisor. When the guest resumes from this power
    state, it does not see the sleep_enabled bit. In otherwords, the sleep
    button is not enabled on waking from an S4 state. This causes
    subsequent invocation of sleep state to fail in the guest.

    Fix this problem by enabling the sleep button in ACPI legacy wake.

    Signed-off-by: Anchal Agarwal
    Reviewed-by: Balbir Singh
    Reviewed-by: Frank van der Linden
    [ ek: changelog]

    Link: https://github.com/acpica/acpica/commit/9383f5b0
    Signed-off-by: Erik Kaneda
    Signed-off-by: Anchal Agarwal
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Anchal Agarwal
     
  • ACPICA commit af4462c6f41ebc9bf63b5370818c5fd96524e7a9

    Link: https://github.com/acpica/acpica/commit/af4462c6
    Signed-off-by: Bob Moore
    Signed-off-by: Erik Kaneda
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     
  • ACPICA commit 5d160cc86cca440eac7055f981e48bc14d4eb9f7

    This decouples cv_init_file_tree from acpi_gbl_output_file and allows
    it to be called independently of acpi_os_redirect_output()

    Link: https://github.com/acpica/acpica/commit/5d160cc8
    Signed-off-by: Erik Kaneda
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Erik Kaneda
     
  • ACPICA commit 3ba6fa55a4a32d8b6fc28f9f285506ea0e359296

    These parameters can be computed inside of the function from the
    Table parameter.

    Link: https://github.com/acpica/acpica/commit/3ba6fa55
    Signed-off-by: Erik Kaneda
    Signed-off-by: Bob Moore
    Signed-off-by: Rafael J. Wysocki

    Erik Kaneda
     

14 Feb, 2020

1 commit

  • ACPI Generic Address Structure (GAS) access_width field is not in bytes
    as the driver seems to expect in few places so fix this by using the
    newly introduced macro ACPI_ACCESS_BYTE_WIDTH().

    Fixes: b1abf6fc4982 ("ACPI / watchdog: Fix off-by-one error at resource assignment")
    Fixes: 058dfc767008 ("ACPI / watchdog: Add support for WDAT hardware watchdog")
    Reported-by: Jean Delvare
    Signed-off-by: Mika Westerberg
    Reviewed-by: Jean Delvare
    Cc: 4.16+ # 4.16+
    Signed-off-by: Rafael J. Wysocki

    Mika Westerberg