1. 04 Mar, 2019 4 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-opp' · 1271d6d5
      Rafael J. Wysocki authored
      * pm-opp:
        cpufreq: OMAP: Register an Energy Model
        cpufreq: imx6q: Register an Energy Model
        opp: no need to check return value of debugfs_create functions
        cpufreq: mediatek: Register an Energy Model
        cpufreq: scmi: Register an Energy Model
        cpufreq: arm_big_little: Register an Energy Model
        cpufreq: scpi: Register an Energy Model
        cpufreq: dt: Register an Energy Model
      1271d6d5
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpufreq' · 6a558c72
      Rafael J. Wysocki authored
      * pm-cpufreq: (48 commits)
        cpufreq: kryo: Release OPP tables on module removal
        cpufreq: ap806: add missing of_node_put after of_device_is_available
        cpufreq: acpi-cpufreq: Report if CPU doesn't support boost technologies
        cpufreq: Pass updated policy to driver ->setpolicy() callback
        cpufreq: Fix two debug messages in cpufreq_set_policy()
        cpufreq: Reorder and simplify cpufreq_update_policy()
        cpufreq: Add kerneldoc comments for two core functions
        cpufreq: intel_pstate: Rework iowait boosting to be less aggressive
        cpufreq: intel_pstate: Eliminate intel_pstate_get_base_pstate()
        cpufreq: intel_pstate: Avoid redundant initialization of local vars
        cpufreq / cppc: Work around for Hisilicon CPPC cpufreq
        ACPI / CPPC: Add a helper to get desired performance
        cpufreq: davinci: move configuration to include/linux/platform_data
        cpufreq: speedstep: convert BUG() to BUG_ON()
        cpufreq: powernv: fix missing check of return value in init_powernv_pstates()
        cpufreq: longhaul: remove unneeded semicolon
        cpufreq: pcc-cpufreq: remove unneeded semicolon
        cpufreq: Replace double NOT (!!) with single NOT (!)
        cpufreq: intel_pstate: Add reasons for failure and debug messages
        cpufreq: dt: Implement online/offline() callbacks
        ...
      6a558c72
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-cpuidle' and 'powercap' · 08a2e45a
      Rafael J. Wysocki authored
      * pm-cpuidle:
        ACPI / processor: Set P_LVL{2,3} idle state descriptions
        intel_idle: add support for Jacobsville
        cpuidle: dt: bail out if the idle-state DT node is not compatible
        cpuidle: use BIT() for idle state flags and remove CPUIDLE_DRIVER_FLAGS_MASK
        Documentation: driver-api: PM: Add cpuidle document
        cpuidle: New timer events oriented governor for tickless systems
      
      * powercap:
        powercap/intel_rapl: add Ice Lake mobile
        powercap: intel_rapl: add support for Jacobsville
      08a2e45a
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-core', 'pm-sleep', 'pm-qos', 'pm-domains' and 'pm-em' · c3739c50
      Rafael J. Wysocki authored
      * pm-core:
        PM / core: Add support to skip power management in device/driver model
        PM / suspend: Print debug messages for device using direct-complete
        PM-runtime: update time accounting only when enabled
        PM-runtime: Switch accounting over to ktime_get_mono_fast_ns()
        PM-runtime: Optimize pm_runtime_autosuspend_expiration()
        PM-runtime: Replace jiffies-based accounting with ktime-based accounting
        PM-runtime: update accounting_timestamp on enable
        PM: clock_ops: fix missing clk_prepare() return value check
        drm/i915: Move on the new pm runtime interface
        PM-runtime: Add new interface to get accounted time
      
      * pm-sleep:
        PM / wakeup: fix kerneldoc comment for pm_wakeup_dev_event()
      
      * pm-qos:
        PM: QoS: no need to check return value of debugfs_create functions
      
      * pm-domains:
        PM / Domains: Mark "name" const in dev_pm_domain_attach_by_name()
        PM / Domains: Mark "name" const in genpd_dev_pm_attach_by_name()
        PM: domains: no need to check return value of debugfs_create functions
      
      * pm-em:
        PM / EM: Expose the Energy Model in debugfs
      c3739c50
  2. 01 Mar, 2019 1 commit
  3. 28 Feb, 2019 1 commit
    • Viresh Kumar's avatar
      cpufreq: kryo: Release OPP tables on module removal · 0334906c
      Viresh Kumar authored
      Commit 5ad7346b ("cpufreq: kryo: Add module remove and exit") made
      it possible to build the kryo cpufreq driver as a module, but it failed
      to release all the resources, i.e. OPP tables, when the module is
      unloaded.
      
      This patch fixes it by releasing the OPP tables, by calling
      dev_pm_opp_put_supported_hw() for them, from the
      qcom_cpufreq_kryo_remove() routine. The array of pointers to the OPP
      tables is also allocated dynamically now in qcom_cpufreq_kryo_probe(),
      as the pointers will be required while releasing the resources.
      
      Compile tested only.
      
      Cc: 4.18+ <stable@vger.kernel.org> # v4.18+
      Fixes: 5ad7346b ("cpufreq: kryo: Add module remove and exit")
      Reviewed-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      0334906c
  4. 25 Feb, 2019 1 commit
  5. 24 Feb, 2019 2 commits
  6. 22 Feb, 2019 1 commit
  7. 21 Feb, 2019 1 commit
  8. 20 Feb, 2019 5 commits
  9. 19 Feb, 2019 3 commits
    • Yangtao Li's avatar
      cpufreq: scmi: Fix use-after-free in scmi_cpufreq_exit() · 8cbd468b
      Yangtao Li authored
      This issue was detected with the help of Coccinelle. So
      change the order of function calls to fix it.
      
      Fixes: 1690d8bb (cpufreq: scpi/scmi: Fix freeing of dynamic OPPs)
      Signed-off-by: default avatarYangtao Li <tiny.windzz@gmail.com>
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Acked-by: default avatarSudeep Holla <sudeep.holla@arm.com>
      Cc: 4.20+ <stable@vger.kernel.org> # 4.20+
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8cbd468b
    • Sudeep Holla's avatar
      PM / core: Add support to skip power management in device/driver model · 85945c28
      Sudeep Holla authored
      All device objects in the driver model contain fields that control the
      handling of various power management activities. However, it's not
      always useful. There are few instances where pseudo devices are added
      to the model just to take advantage of many other features like
      kobjects, udev events, and so on. One such example is cpu devices and
      their caches.
      
      The sysfs for the cpu caches are managed by adding devices with cpu
      as the parent in cpu_device_create() when secondary cpu is brought
      online. Generally when the secondary CPUs are hotplugged back in as part
      of resume from suspend-to-ram, we call cpu_device_create() from the cpu
      hotplug state machine while the cpu device associated with that CPU is
      not yet ready to be resumed as the device_resume() call happens bit
      later. It's not really needed to set the flag is_prepared for cpu
      devices as they are mostly pseudo device and hotplug framework deals
      with state machine and not managed through the cpu device.
      
      This often results in annoying warning when resuming:
      Enabling non-boot CPUs ...
      CPU1: Booted secondary processor
       cache: parent cpu1 should not be sleeping
      CPU1 is up
      CPU2: Booted secondary processor
       cache: parent cpu2 should not be sleeping
      CPU2 is up
      .... and so on.
      
      So in order to fix these kind of errors, we could just completely avoid
      doing any power management related initialisations and operations if
      they are not used by these devices.
      
      Add no_pm flags to indicate that the device doesn't require any sort of
      PM activities and all of them can be completely skipped. We can use the
      same flag to also avoid adding not used *power* sysfs entries for these
      devices. For now, lets use this for cpu cache devices.
      Reviewed-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
      Tested-by: default avatarEugeniu Rosca <erosca@de.adit-jv.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      85945c28
    • Rafael J. Wysocki's avatar
      Merge branch 'cpufreq/arm/linux-next' of... · ab0ef5d5
      Rafael J. Wysocki authored
      Merge branch 'cpufreq/arm/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm into pm-cpufreq
      
      Pull cpufreq drivers material for v5.1 from Viresh Kumar:
      
      "This contains:
      
      - Minor cleanups for pcc, longhaul, powerenv and speedstep drivers (Yangtao Li).
      - Moving configuration data out of mach directory for davinci (Bartosz Golaszewski)."
      
      * 'cpufreq/arm/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm:
        cpufreq: davinci: move configuration to include/linux/platform_data
        cpufreq: speedstep: convert BUG() to BUG_ON()
        cpufreq: powernv: fix missing check of return value in init_powernv_pstates()
        cpufreq: longhaul: remove unneeded semicolon
        cpufreq: pcc-cpufreq: remove unneeded semicolon
      ab0ef5d5
  10. 18 Feb, 2019 13 commits
  11. 17 Feb, 2019 8 commits
    • Linus Torvalds's avatar
      Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2fee036a
      Linus Torvalds authored
      Pull EFI fixes from Ingo Molnar:
       "This tree reverts a GICv3 commit (which was broken) and fixes it in
        another way, by adding a memblock build-time entries quirk for ARM64"
      
      * 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi/arm: Revert "Defer persistent reservations until after paging_init()"
        arm64, mm, efi: Account for GICv3 LPI tables in static memblock reserve table
      2fee036a
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8d33316d
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "Three changes:
      
         - An UV fix/quirk to pull UV BIOS calls into the efi_runtime_lock
           locking regime. (This done by aliasing __efi_uv_runtime_lock to
           efi_runtime_lock, which should make the quirk nature obvious and
           maintain the general policy that the EFI lock (name...) isn't
           exposed to drivers.)
      
         - Our version of MAGA: Make a.out Great Again.
      
         - Add a new Intel model name enumerator to an upstream header to help
           reduce dependencies going forward"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/platform/UV: Use efi_runtime_lock to serialise BIOS calls
        x86/CPU: Add Icelake model number
        x86/a.out: Clear the dump structure initially
      8d33316d
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · dd6f29da
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Two fixes on the kernel side: fix an over-eager condition that failed
        larger perf ring-buffer sizes, plus fix crashes in the Intel BTS code
        for a corner case, found by fuzzing"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Fix impossible ring-buffer sizes warning
        perf/x86: Add check_period PMU callback
      dd6f29da
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.0-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · c5f1ac5e
      Linus Torvalds authored
      Pull powerpc fix from Michael Ellerman:
       "Just one fix, for pgd/pud_present() which were broken on big endian
        since v4.20, leading to possible data corruption.
      
        Thanks to: Aneesh Kumar K.V., Erhard F., Jan Kara"
      
      * tag 'powerpc-5.0-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s: Fix possible corruption on big endian due to pgd/pud_present()
      c5f1ac5e
    • Linus Torvalds's avatar
      Merge tag 'csky-for-linus-5.0-rc6' of git://github.com/c-sky/csky-linux · 0513ebc3
      Linus Torvalds authored
      Pull arch/csky fixes from Guo Ren:
       "Here are some fixup patches for 5.0-rc6"
      
      * tag 'csky-for-linus-5.0-rc6' of git://github.com/c-sky/csky-linux:
        csky: Fixup dead loop in show_stack
        csky: Fixup io-range page attribute for mmap("/dev/mem")
        csky: coding convention: Use task_stack_page
        csky: Fixup wrong pt_regs size
        csky: Fixup _PAGE_GLOBAL bit for 610 tlb entry
      0513ebc3
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 1653c2f2
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "Two more driver bugfixes"
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: bcm2835: Clear current buffer pointers and counts after a transfer
        i2c: cadence: Fix the hold bit setting
      1653c2f2
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · b8c82b6a
      Linus Torvalds authored
      Pull input fixes from Dmitry Torokhov:
      
       - tweaks to Elan drivers (both PS/2 and I2C) to support new devices.
         Also revert of one of IDs as that device should really be driven by
         i2c-hid + hid-multitouch
      
       - a few drivers have been switched to set_brightness_blocking() call
         because they either were sleeping the their set_brightness()
         implementation or used workqueue but were not canceling it on unbind.
      
       - ps2-gpio and matrix_keypad needed to [properly] flush their works to
         avoid potential use-after-free on unbind.
      
       - other miscellaneous fixes.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: elan_i2c - add ACPI ID for touchpad in Lenovo V330-15ISK
        Input: st-keyscan - fix potential zalloc NULL dereference
        Input: apanel - switch to using brightness_set_blocking()
        Revert "Input: elan_i2c - add ACPI ID for touchpad in ASUS Aspire F5-573G"
        Input: qt2160 - switch to using brightness_set_blocking()
        Input: matrix_keypad - use flush_delayed_work()
        Input: ps2-gpio - flush TX work when closing port
        Input: cap11xx - switch to using set_brightness_blocking()
        Input: elantech - enable 3rd button support on Fujitsu CELSIUS H780
        Input: bma150 - register input device after setting private data
        Input: pwm-vibra - stop regulator after disabling pwm, not before
        Input: pwm-vibra - prevent unbalanced regulator
        Input: snvs_pwrkey - allow selecting driver for i.MX 7D
      b8c82b6a
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · ed0a0ec9
      Linus Torvalds authored
      Pull KVM fixes from Paolo Bonzini:
       "A somewhat bigger ARM update, and the usual smattering of x86 bug
        fixes"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        kvm: vmx: Fix entry number check for add_atomic_switch_msr()
        KVM: x86: Recompute PID.ON when clearing PID.SN
        KVM: nVMX: Restore a preemption timer consistency check
        x86/kvm/nVMX: read from MSR_IA32_VMX_PROCBASED_CTLS2 only when it is available
        KVM: arm64: Forbid kprobing of the VHE world-switch code
        KVM: arm64: Relax the restriction on using stage2 PUD huge mapping
        arm: KVM: Add missing kvm_stage2_has_pmd() helper
        KVM: arm/arm64: vgic: Always initialize the group of private IRQs
        arm/arm64: KVM: Don't panic on failure to properly reset system registers
        arm/arm64: KVM: Allow a VCPU to fully reset itself
        KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded
        arm64: KVM: Don't generate UNDEF when LORegion feature is present
        KVM: arm/arm64: vgic: Make vgic_cpu->ap_list_lock a raw_spinlock
        KVM: arm/arm64: vgic: Make vgic_dist->lpi_list_lock a raw_spinlock
        KVM: arm/arm64: vgic: Make vgic_irq->irq_lock a raw_spinlock
      ed0a0ec9