1. 01 Jun, 2020 3 commits
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-apei', 'acpi-pmic', 'acpi-video' and 'acpi-dptf' · 48ccdedd
      Rafael J. Wysocki authored
      * acpi-apei:
        arm64: acpi: Make apei_claim_sea() synchronise with APEI's irq work
        ACPI: APEI: Kick the memory_failure() queue for synchronous errors
        mm/memory-failure: Add memory_failure_queue_kick()
      
      * acpi-pmic:
        ACPI / PMIC: Add i2c address for thermal control
      
      * acpi-video:
        ACPI: video: Use native backlight on Acer TravelMate 5735Z
      
      * acpi-dptf:
        ACPI: DPTF: Add battery participant driver
        ACPI: DPTF: Additional sysfs attributes for power participant driver
      48ccdedd
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-processor', 'acpi-cppc', 'acpi-dbg', 'acpi-misc' and 'acpi-pci' · 228b79aa
      Rafael J. Wysocki authored
      * acpi-processor:
        ACPI: processor: idle: Allow probing on platforms with one ACPI C-state
      
      * acpi-cppc:
        ACPI: CPPC: Fix reference count leak in acpi_cppc_processor_probe()
        ACPI: CPPC: Make some symbols static
      
      * acpi-dbg:
        ACPI: debug: Make two functions static
      
      * acpi-misc:
        ACPI: GED: use correct trigger type field in _Exx / _Lxx handling
        ACPI: GED: add support for _Exx / _Lxx handler methods
        ACPI: Delete unused proc filename macros
      
      * acpi-pci:
        ACPI: hotplug: PCI: Use the new acpi_evaluate_reg() helper
        ACPI: utils: Add acpi_evaluate_reg() helper
      228b79aa
    • Rafael J. Wysocki's avatar
      Merge branches 'acpica' and 'acpi-tables' · 48c60415
      Rafael J. Wysocki authored
      * acpica:
        ACPICA: Update version to 20200430
        ACPICA: Fix required parameters for _NIG and _NIH
        ACPICA: Dispatcher: add status checks
        ACPICA: Disassembler: ignore AE_ALREADY_EXISTS status when parsing create operators
        ACPICA: Move acpi_gbl_next_cmd_num definition to acglobal.h
        ACPICA: Make acpi_protocol_lengths static
      
      * acpi-tables:
        ACPI: sleep: Put the FACS table after using it
        ACPI: scan: Put SPCR and STAO table after using it
        ACPI: EC: Put the ACPI table after using it
        ACPI: APEI: Put the HEST table for error path
        ACPI: APEI: Put the error record serialization table for error path
        ACPI: APEI: Put the error injection table for error path and module exit
        ACPI: APEI: Put the boot error record table after parsing
        ACPI: watchdog: Put the watchdog action table after parsing
        ACPI: LPIT: Put the low power idle table after using it
      48c60415
  2. 28 May, 2020 2 commits
  3. 27 May, 2020 1 commit
  4. 25 May, 2020 3 commits
    • Srinivas Pandruvada's avatar
      ACPI: DPTF: Add battery participant driver · 7b52b200
      Srinivas Pandruvada authored
      This driver adds support for Dynamic Platform and Thermal Framework
      battery participant device support.
      
      These attributes are presented via sysfs interface under the platform
      device for the battery participant:
      $ls /sys/bus/platform/devices/INT3532:00/dptf_battery
      	current_discharge_capbility_ma
      	max_platform_power_mw
      	no_load_voltage_mv
      	high_freq_impedance_mohm
      	max_steady_state_power_mw
      
      Refer to the documentation at
      Documentation/ABI/testing/sysfs-platform-dptf
      for details.
      
      Here the implementation reuses existing dptf-power.c as the motivation and
      processing is same. It also shares one ACPI method. Here this change is
      using participant type, "PTYP" method to identify and do different
      processing. By using participant type, create/delete either "dptf_power"
      or "dptf_battery" attribute group and send notifications.
      
      The particpant type for for the battery participant is 0x0C.
      
      ACPI methods description:
      
      PMAX (Intel(R) Dynamic Tuning Platform Max Power Supplied by Battery):
      This object evaluates to the maximum platform power that can be supported
      by the battery in milli watts.
      
      PBSS (Intel(R) Dynamic Tuning Power Battery Steady State):
      This object returns the max sustained power for battery in milli watts.
      
      RBHF (Intel(R) Dynamic Tuning High Frequency Impedance):
      This object returns high frequency impedance value that can be obtained
      from battery fuel gauge.
      
      VBNL (Intel(R) Dynamic Tuning No-Load Voltage)
      This object returns battery instantaneous no-load voltage that can be
      obtained from battery fuel gauge in milli volts
      
      CMPP (Intel(R) Dynamic Tuning Current Discharge Capability)
      This object returns battery discharge current capability obtained from
      battery fuel gauge milli amps.
      
      Notifications:
      
      0x80: PMAX change. Used to notify Intel(R)Dynamic Tuning Battery
      participant driver when the PMAX has changed by 250mw.
      0x83: PBSS change. Used to notify Intel(R) Dynamic Tuning Battery
      participant driver when the power source has changed.
      0x85: RBHF change. Used to notify Intel(R)Dynamic Tuning Battery
      participant driver when the RBHF has changed over a threshold by
      5mOhm.
      0x86: Battery Capability change. Used to notify Intel(R)Dynamic Tuning
      Battery participant driver when the battery capability has changed.
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      [ rjw: Subject ]
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      7b52b200
    • Srinivas Pandruvada's avatar
      ACPI: DPTF: Additional sysfs attributes for power participant driver · 668ce99e
      Srinivas Pandruvada authored
      Add two additional attributes to the existing power participant driver:
      rest_of_platform_power_mw: (RO) Shows the rest of worst case platform
      power in mW outside of S0C. This will help in power distribution to SoC
      and rest of the system. For example on a test system, this value is 2.5W
      with a 15W TDP SoC. Based on the adapter rating (adapter_rating_mw), user
      space software can decide on proper power allocation to SoC to improve
      short term performance via powercap/RAPL interface.
      
      prochot_confirm: (WO) Confirm EC about a prochot notification.
      
      Also userspace is notified via sysfs_notify(), whenever power source or
      rest of the platform power is changed. So user space can use poll()
      system call on those attributes.
      
      The ACPI methods used in this patch are as follows:
      
      PROP
      This object evaluates to the rest of worst case platform power in mW.
      Bits:
      23:0 Worst case rest of platform power in mW.
      
      PBOK
      PBOK is a method designed to provide a mechanism for OSPM to change power
      setting before EC can de-assert a PROCHOT from a device. The EC may
      receive several PROCHOTs, so it has a sequence number attached to PSRC
      (read via existing attribute "platform_power_source"). Once OSPM takes
      action for a PSRC change notification, it can call PBOK method to confirm
      with the sequence number.
      Bits:
      3:0 Power Delivery State Change Sequence number
      30  Reserved
      31  0 – Not OK to de-assert PROCHOT
          1 – OK to de-assert PROCHOT
      
      PSRC (Platform Power Source): Not new in this patch but for
      documentation for new bits
      This object evaluates to an integer that represents the system power
      source as well as the power delivery state change sequence number.
      Bits:
      3:0 The current power source as an integer for AC, DC, USB, Wireless.
      0 = DC, 1 = AC, 2 = USB, 3 = Wireless Charging
      7:4 Power Delivery State Change Sequence Number. Default value is 0
      
      Notifications:
      0x81: (Power State Change) Used to notify when the power source has
      changed.
      0x84: (PROP change) Used to notify when the platform rest of power has
      changed.
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      [ rjw: Subject, minor ABI documentation edit ]
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      668ce99e
    • Paul Menzel's avatar
      ACPI: video: Use native backlight on Acer TravelMate 5735Z · c41c36e9
      Paul Menzel authored
      Currently, changing the brightness of the internal display of the Acer
      TravelMate 5735Z does not work. Pressing the function keys or changing the
      slider, GNOME Shell 3.36.2 displays the OSD (five steps), but the
      brightness does not change.
      
      The Acer TravelMate 5735Z shipped with Windows 7 and as such does not
      trigger our "win8 ready" heuristic for preferring the native backlight
      interface.
      
      Still ACPI backlight control doesn't work on this model, where as the
      native (intel_video) backlight interface does work by adding
      `acpi_backlight=native` or `acpi_backlight=none` to Linux’ command line.
      
      So, add a quirk to force using native backlight control on this model.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=207835Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      c41c36e9
  5. 24 May, 2020 5 commits
    • Linus Torvalds's avatar
      Linux 5.7-rc7 · 9cb1fd0e
      Linus Torvalds authored
      9cb1fd0e
    • Linus Torvalds's avatar
      Merge tag 'efi-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 98790bba
      Linus Torvalds authored
      Pull EFI fixes from Thomas Gleixner:
       "A set of EFI fixes:
      
         - Don't return a garbage screen info when EFI framebuffer is not
           available
      
         - Make the early EFI console work properly with wider fonts instead
           of drawing garbage
      
         - Prevent a memory buffer leak in allocate_e820()
      
         - Print the firmware error record properly so it can be decoded by
           users
      
         - Fix a symbol clash in the host tool build which only happens with
           newer compilers.
      
         - Add a missing check for the event log version of TPM which caused
           boot failures on several Dell systems due to an attempt to decode
           SHA-1 format with the crypto agile algorithm"
      
      * tag 'efi-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        tpm: check event log version before reading final events
        efi: Pull up arch-specific prototype efi_systab_show_arch()
        x86/boot: Mark global variables as static
        efi: cper: Add support for printing Firmware Error Record Reference
        efi/libstub/x86: Avoid EFI map buffer alloc in allocate_e820()
        efi/earlycon: Fix early printk for wider fonts
        efi/libstub: Avoid returning uninitialized data from setup_graphics()
      98790bba
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 667b6249
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "Two fixes for x86:
      
         - Unbreak stack dumps for inactive tasks by interpreting the special
           first frame left by __switch_to_asm() correctly.
      
           The recent change not to skip the first frame so ORC and frame
           unwinder behave in the same way caused all entries to be
           unreliable, i.e. prepended with '?'.
      
         - Use cpumask_available() instead of an implicit NULL check of a
           cpumask_var_t in mmio trace to prevent a Clang build warning"
      
      * tag 'x86-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/unwind/orc: Fix unwind_get_return_address_ptr() for inactive tasks
        x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables
      667b6249
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9e61d12b
      Linus Torvalds authored
      Pull scheduler fixes from Thomas Gleixner:
       "A set of fixes for the scheduler:
      
         - Fix handling of throttled parents in enqueue_task_fair() completely.
      
           The recent fix overlooked a corner case where the first iteration
           terminates due to an entity already being on the runqueue which
           makes the list management incomplete and later triggers the
           assertion which checks for completeness.
      
         - Fix a similar problem in unthrottle_cfs_rq().
      
         - Show the correct uclamp values in procfs which prints the effective
           value twice instead of requested and effective"
      
      * tag 'sched-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/fair: Fix unthrottle_cfs_rq() for leaf_cfs_rq list
        sched/debug: Fix requested task uclamp values shown in procfs
        sched/fair: Fix enqueue_task_fair() warning some more
      9e61d12b
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · caffb99b
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Fix RCU warnings in ipv6 multicast router code, from Madhuparna
          Bhowmik.
      
       2) Nexthop attributes aren't being checked properly because of
          mis-initialized iterator, from David Ahern.
      
       3) Revert iop_idents_reserve() change as it caused performance
          regressions and was just working around what is really a UBSAN bug
          in the compiler. From Yuqi Jin.
      
       4) Read MAC address properly from ROM in bmac driver (double iteration
          proceeds past end of address array), from Jeremy Kerr.
      
       5) Add Microsoft Surface device IDs to r8152, from Marc Payne.
      
       6) Prevent reference to freed SKB in __netif_receive_skb_core(), from
          Boris Sukholitko.
      
       7) Fix ACK discard behavior in rxrpc, from David Howells.
      
       8) Preserve flow hash across packet scrubbing in wireguard, from Jason
          A. Donenfeld.
      
       9) Cap option length properly for SO_BINDTODEVICE in AX25, from Eric
          Dumazet.
      
      10) Fix encryption error checking in kTLS code, from Vadim Fedorenko.
      
      11) Missing BPF prog ref release in flow dissector, from Jakub Sitnicki.
      
      12) dst_cache must be used with BH disabled in tipc, from Eric Dumazet.
      
      13) Fix use after free in mlxsw driver, from Jiri Pirko.
      
      14) Order kTLS key destruction properly in mlx5 driver, from Tariq
          Toukan.
      
      15) Check devm_platform_ioremap_resource() return value properly in
          several drivers, from Tiezhu Yang.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (71 commits)
        net: smsc911x: Fix runtime PM imbalance on error
        net/mlx4_core: fix a memory leak bug.
        net: ethernet: ti: cpsw: fix ASSERT_RTNL() warning during suspend
        net: phy: mscc: fix initialization of the MACsec protocol mode
        net: stmmac: don't attach interface until resume finishes
        net: Fix return value about devm_platform_ioremap_resource()
        net/mlx5: Fix error flow in case of function_setup failure
        net/mlx5e: CT: Correctly get flow rule
        net/mlx5e: Update netdev txq on completions during closure
        net/mlx5: Annotate mutex destroy for root ns
        net/mlx5: Don't maintain a case of del_sw_func being null
        net/mlx5: Fix cleaning unmanaged flow tables
        net/mlx5: Fix memory leak in mlx5_events_init
        net/mlx5e: Fix inner tirs handling
        net/mlx5e: kTLS, Destroy key object after destroying the TIS
        net/mlx5e: Fix allowed tc redirect merged eswitch offload cases
        net/mlx5: Avoid processing commands before cmdif is ready
        net/mlx5: Fix a race when moving command interface to events mode
        net/mlx5: Add command entry handling completion
        rxrpc: Fix a memory leak in rxkad_verify_response()
        ...
      caffb99b
  6. 23 May, 2020 26 commits