1. 31 5月, 2019 1 次提交
    • T
      treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 · c942fddf
      Thomas Gleixner 提交于
      Based on 3 normalized pattern(s):
      
        this program is free software you can redistribute it and or modify
        it under the terms of the gnu general public license as published by
        the free software foundation either version 2 of the license or at
        your option any later version this program is distributed in the
        hope that it will be useful but without any warranty without even
        the implied warranty of merchantability or fitness for a particular
        purpose see the gnu general public license for more details
      
        this program is free software you can redistribute it and or modify
        it under the terms of the gnu general public license as published by
        the free software foundation either version 2 of the license or at
        your option any later version [author] [kishon] [vijay] [abraham]
        [i] [kishon]@[ti] [com] this program is distributed in the hope that
        it will be useful but without any warranty without even the implied
        warranty of merchantability or fitness for a particular purpose see
        the gnu general public license for more details
      
        this program is free software you can redistribute it and or modify
        it under the terms of the gnu general public license as published by
        the free software foundation either version 2 of the license or at
        your option any later version [author] [graeme] [gregory]
        [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i]
        [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema]
        [hk] [hemahk]@[ti] [com] this program is distributed in the hope
        that it will be useful but without any warranty without even the
        implied warranty of merchantability or fitness for a particular
        purpose see the gnu general public license for more details
      
      extracted by the scancode license scanner the SPDX license identifier
      
        GPL-2.0-or-later
      
      has been chosen to replace the boilerplate/reference in 1105 file(s).
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Reviewed-by: NAllison Randal <allison@lohutok.net>
      Reviewed-by: NRichard Fontana <rfontana@redhat.com>
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Cc: linux-spdx@vger.kernel.org
      Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.deSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c942fddf
  2. 25 3月, 2019 1 次提交
  3. 27 2月, 2019 1 次提交
  4. 07 2月, 2019 1 次提交
  5. 16 1月, 2019 1 次提交
    • R
      ACPI: EC: Look for ECDT EC after calling acpi_load_tables() · b1c03308
      Rafael J. Wysocki 提交于
      Some systems have had functional issues since commit 5a8361f7
      (ACPICA: Integrate package handling with module-level code) that,
      among other things, changed the initial values of the
      acpi_gbl_group_module_level_code and acpi_gbl_parse_table_as_term_list
      global flags in ACPICA which implicitly caused acpi_ec_ecdt_probe() to
      be called before acpi_load_tables() on the vast majority of platforms.
      
      Namely, before commit 5a8361f7, acpi_load_tables() was called from
      acpi_early_init() if acpi_gbl_parse_table_as_term_list was FALSE and
      acpi_gbl_group_module_level_code was TRUE, which almost always was
      the case as FALSE and TRUE were their initial values, respectively.
      The acpi_gbl_parse_table_as_term_list value would be changed to TRUE
      for a couple of platforms in acpi_quirks_dmi_table[], but it remained
      FALSE in the vast majority of cases.
      
      After commit 5a8361f7, the initial values of the two flags have
      been reversed, so in effect acpi_load_tables() has not been called
      from acpi_early_init() any more.  That, in turn, affects
      acpi_ec_ecdt_probe() which is invoked before acpi_load_tables() now
      and it is not possible to evaluate the _REG method for the EC address
      space handler installed by it.  That effectively causes the EC address
      space to be inaccessible to AML on platforms with an ECDT matching the
      EC device definition in the DSDT and functional problems ensue in
      there.
      
      Because the default behavior before commit 5a8361f7 was to call
      acpi_ec_ecdt_probe() after acpi_load_tables(), it should be safe to
      do that again.  Moreover, the EC address space handler installed by
      acpi_ec_ecdt_probe() is only needed for AML to be able to access the
      EC address space and the only AML that can run during acpi_load_tables()
      is module-level code which only is allowed to access address spaces
      with default handlers (memory, I/O and PCI config space).
      
      For this reason, move the acpi_ec_ecdt_probe() invocation back to
      acpi_bus_init(), from where it was taken away by commit d737f333
      (ACPI: probe ECDT before loading AML tables regardless of module-level
      code flag), and put it after the invocation of acpi_load_tables() to
      restore the original code ordering from before commit 5a8361f7.
      
      Fixes: 5a8361f7 ("ACPICA: Integrate package handling with module-level code")
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=199981Reported-by: Nstep-ali <sunmooon15@gmail.com>
      Reported-by: NCharles Stanhope <charles.stanhope@gmail.com>
      Tested-by: NCharles Stanhope <charles.stanhope@gmail.com>
      Reported-by: NPaulo Nascimento <paulo.ulusu@googlemail.com>
      Reported-by: NDavid Purton <dcpurton@marshwiggle.net>
      Reported-by: NAdam Harvey <adam@adamharvey.name>
      Reported-by: NZhang Rui <rui.zhang@intel.com>
      Tested-by: NZhang Rui <rui.zhang@intel.com>
      Tested-by: NJean-Marc Lenoir <archlinux@jihemel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b1c03308
  6. 27 11月, 2018 1 次提交
  7. 18 10月, 2018 1 次提交
  8. 06 9月, 2018 1 次提交
    • J
      ACPI / bus: Only call dmi_check_system() on X86 · 5d128fbd
      Jean Delvare 提交于
      Calling dmi_check_system() early only works on X86. Other
      architectures initialize the DMI subsystem later so it's not
      ready yet when ACPI itself gets initialized.
      
      In the best case it results in a useless call to a function which
      will do nothing. But depending on the dmi implementation, it could
      also result in warnings. Best is to not call the function when it
      can't work and isn't needed.
      
      Additionally, if anyone ever needs to add non-x86 quirks, it would
      surprisingly not work, so document the limitation to avoid confusion.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Fixes: cce4f632 (ACPI: fix early DSDT dmi check warnings on ia64)
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      5d128fbd
  9. 09 8月, 2018 1 次提交
  10. 20 7月, 2018 1 次提交
  11. 19 3月, 2018 1 次提交
  12. 12 2月, 2018 4 次提交
  13. 07 2月, 2018 1 次提交
  14. 04 2月, 2018 2 次提交
  15. 13 12月, 2017 1 次提交
  16. 14 9月, 2017 1 次提交
  17. 20 7月, 2017 1 次提交
  18. 05 7月, 2017 1 次提交
  19. 07 6月, 2017 1 次提交
  20. 06 6月, 2017 1 次提交
  21. 27 4月, 2017 1 次提交
    • H
      ACPI / bus: Introduce a list of ids for "always present" devices · b7ecf663
      Hans de Goede 提交于
      Several Bay / Cherry Trail devices (all of which ship with Windows 10) hide
      the LPSS PWM controller in ACPI, typically the _STA method looks like this:
      
          Method (_STA, 0, NotSerialized)  // _STA: Status
          {
              If (OSID == One)
              {
                  Return (Zero)
              }
      
              Return (0x0F)
          }
      
      Where OSID is some dark magic seen in all Cherry Trail ACPI tables making
      the machine behave differently depending on which OS it *thinks* it is
      booting, this gets set in a number of ways which we cannot control, on
      some newer machines it simple hardcoded to "One" aka win10.
      
      This causes the PWM controller to get hidden, which means Linux cannot
      control the backlight level on cht based tablets / laptops.
      
      Since loading the driver for this does no harm (the only in kernel user
      of it is the i915 driver, which will only uses it when it needs it), this
      commit makes acpi_bus_get_status() always set status to ACPI_STA_DEFAULT
      for the LPSS PWM device, fixing the lack of backlight control.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      [ rjw: Rename the new file to utils.c ]
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b7ecf663
  22. 11 3月, 2017 1 次提交
  23. 07 2月, 2017 1 次提交
  24. 21 12月, 2016 1 次提交
  25. 30 11月, 2016 1 次提交
  26. 25 11月, 2016 2 次提交
  27. 26 9月, 2016 1 次提交
  28. 22 9月, 2016 1 次提交
  29. 13 9月, 2016 1 次提交
  30. 22 7月, 2016 1 次提交
    • S
      ACPI / processor_idle: Add support for Low Power Idle(LPI) states · a36a7fec
      Sudeep Holla 提交于
      ACPI 6.0 introduced an optional object _LPI that provides an alternate
      method to describe Low Power Idle states. It defines the local power
      states for each node in a hierarchical processor topology. The OSPM can
      use _LPI object to select a local power state for each level of processor
      hierarchy in the system. They used to produce a composite power state
      request that is presented to the platform by the OSPM.
      
      Since multiple processors affect the idle state for any non-leaf hierarchy
      node, coordination of idle state requests between the processors is
      required. ACPI supports two different coordination schemes: Platform
      coordinated and  OS initiated.
      
      This patch adds initial support for Platform coordination scheme of LPI.
      Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a36a7fec
  31. 09 7月, 2016 1 次提交
  32. 07 7月, 2016 1 次提交
    • P
      ACPI / bus: Support for platform initiated graceful shutdown · baa0c019
      Prakash, Prashanth 提交于
      This patch adds support for platform initited graceful shutdown as
      described in sections 5.6.6(Table-143) and 6.3.5.1 of ACPI 6.1 spec
      
      The OSPM will get a graceful shutdown request via a Notify operator
      on \_SB device with a value of 0x81 per section 5.6.6. Following the
      shutdown request from platform the OSPM needs to follow the
      processing sequence as described in section 6.2.5.1.
      
      v3
      * Switched to regular work with delays from delayed work
      * Dropped changes to actypes.h
      * Small style changes
      
      v2
      * Switched from standalone driver to a simple notify handler
      
      v1
      * Initial
      
      Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
      Signed-off-by: NPrashanth Prakash <pprakash@codeaurora.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      baa0c019
  33. 06 7月, 2016 1 次提交
  34. 23 6月, 2016 1 次提交
  35. 07 6月, 2016 1 次提交
    • L
      ACPI / EC: Fix a boot EC regresion by restoring boot EC support for the DSDT EC · dcf15cbd
      Lv Zheng 提交于
      According to the Windows probing result, during the table loading, the EC
      device described in the ECDT should be used. And the ECDT EC is also
      effective during the period the namespace objects are initialized (we can
      see a separate process executing _STA/_INI on Windows before executing
      other device specific control methods, for example, EC._REG). During the
      device enumration, the EC device described in the DSDT should be used. But
      there are differences between Linux and Windows around the device probing
      order. Thus in Linux, we should enable the DSDT EC as early as possible
      before enumerating devices in order not to trigger issues related to the
      device enumeration order differences.
      
      This patch thus converts acpi_boot_ec_enable() into acpi_ec_dsdt_probe() to
      fix the gap. This also fixes a user reported regression triggered after we
      switched the "table loading"/"ECDT support" to be ACPI spec 2.0 compliant.
      
      Fixes: 59f0aa94 (ACPI 2.0 / ECDT: Remove early namespace reference from EC)
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=119261Reported-and-tested-by: NGabriele Mazzotta <gabriele.mzt@gmail.com>
      Signed-off-by: NLv Zheng <lv.zheng@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      dcf15cbd