1. 26 Oct, 2023 2 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpufreq' · 78b1f56a
      Rafael J. Wysocki authored
      Merge cpufreq updates for 6.7-rc1:
      
       - Add support for several Qualcomm SoC versions and other similar
         changes (Christian Marangi, Dmitry Baryshkov, Luca Weiss, Neil
         Armstrong, Richard Acayan, Robert Marko, Rohit Agarwal, Stephan
         Gerhold and Varadarajan Narayanan).
      
       - Clean up the tegra cpufreq driver (Sumit Gupta).
      
       - Use of_property_read_reg() to parse "reg" in pmac32 driver (Rob
         Herring).
      
       - Add support for TI's am62p5 Soc (Bryan Brattlof).
      
       - Make ARM_BRCMSTB_AVS_CPUFREQ depends on !ARM_SCMI_CPUFREQ (Florian
         Fainelli).
      
       - Update Kconfig to mention i.MX7 as well (Alexander Stein).
      
       - Revise global turbo disable check in intel_pstate (Srinivas
         Pandruvada).
      
       - Carry out initialization of sg_cpu in the schedutil cpufreq governor
         in one loop (Liao Chang).
      
       - Simplify the condition for storing 'down_threshold' in the
         conservative cpufreq governor (Liao Chang).
      
       - Use fine-grained mutex in the userspace cpufreq governor (Liao
         Chang).
      
       - Move is_managed indicator in the userspace cpufreq governor into a
         per-policy structure (Liao Chang).
      
       - Rebuild sched-domains when removing cpufreq driver (Pierre Gondois).
      
       - Fix buffer overflow detection in trans_stats() (Christian Marangi).
      
      * pm-cpufreq: (32 commits)
        dt-bindings: cpufreq: qcom-hw: document SM8650 CPUFREQ Hardware
        cpufreq: arm: Kconfig: Add i.MX7 to supported SoC for ARM_IMX_CPUFREQ_DT
        cpufreq: qcom-nvmem: add support for IPQ8064
        cpufreq: qcom-nvmem: also accept operating-points-v2-krait-cpu
        cpufreq: qcom-nvmem: drop pvs_ver for format a fuses
        dt-bindings: cpufreq: qcom-cpufreq-nvmem: Document krait-cpu
        cpufreq: qcom-nvmem: add support for IPQ6018
        dt-bindings: cpufreq: qcom-cpufreq-nvmem: document IPQ6018
        cpufreq: qcom-nvmem: Add MSM8909
        cpufreq: qcom-nvmem: Simplify driver data allocation
        cpufreq: stats: Fix buffer overflow detection in trans_stats()
        dt-bindings: cpufreq: cpufreq-qcom-hw: Add SDX75 compatible
        cpufreq: ARM_BRCMSTB_AVS_CPUFREQ cannot be used with ARM_SCMI_CPUFREQ
        cpufreq: ti-cpufreq: Add opp support for am62p5 SoCs
        cpufreq: dt-platdev: add am62p5 to blocklist
        cpufreq: tegra194: remove redundant AND with cpu_online_mask
        cpufreq: tegra194: use refclk delta based loop instead of udelay
        cpufreq: tegra194: save CPU data to avoid repeated SMP calls
        cpufreq: Rebuild sched-domains when removing cpufreq driver
        cpufreq: userspace: Move is_managed indicator into per-policy structure
        ...
      78b1f56a
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-devfreq' · c1bdc9aa
      Rafael J. Wysocki authored
      Merge devfreq updates for 6.7-rc1:
      
       - Switch to dev_pm_opp_find_freq_(ceil/floor)_indexed() APIs to support
         specific devices like UFS which handle multiple clocks through OPP
         (Operationg Performance Point) framework (Manivannan Sadhasivam).
      
       - Add perf support to the Rockchip DFI (DDR Monitor Module) devfreq-
         event driver:
         * Generalize rockchip-dfi.c to support new RK3568/RK3588 using
           different DDR type (Sascha Hauer).
         * Convert devicetree bidning document format to yaml (Sascha Hauer).
         * Add perf support for DFI (a unit suitable for measuring DDR
           utilization) to rockchip-dfi.c to extend DFI usage (Sascha Hauer).
      
       - Add locking to the OPP handling code in the Mediatek CCI devfreq
         driver, because the voltage of shared OPP might be changed by
         multiple drivers (Mark Tseng, Dan Carpenter).
      
       - Use device_get_match_data() in the Samsung Exynos PPMU devfreq-event
         driver (Rob Herring).
      
      * pm-devfreq: (26 commits)
        dt-bindings: devfreq: event: rockchip,dfi: Add rk3588 support
        dt-bindings: devfreq: event: rockchip,dfi: Add rk3568 support
        dt-bindings: devfreq: event: convert Rockchip DFI binding to yaml
        PM / devfreq: rockchip-dfi: add support for RK3588
        PM / devfreq: rockchip-dfi: account for multiple DDRMON_CTRL registers
        PM / devfreq: rockchip-dfi: make register stride SoC specific
        PM / devfreq: rockchip-dfi: Add perf support
        PM / devfreq: rockchip-dfi: give variable a better name
        PM / devfreq: rockchip-dfi: Prepare for multiple users
        PM / devfreq: rockchip-dfi: Pass private data struct to internal functions
        PM / devfreq: rockchip-dfi: Handle LPDDR4X
        PM / devfreq: rockchip-dfi: Handle LPDDR2 correctly
        PM / devfreq: rockchip-dfi: Add RK3568 support
        PM / devfreq: rockchip-dfi: Clean up DDR type register defines
        PM / devfreq: rk3399_dmc,dfi: generalize DDRTYPE defines
        PM / devfreq: rockchip-dfi: introduce channel mask
        PM / devfreq: rockchip-dfi: Use free running counter
        PM / devfreq: mediatek: unlock on error in mtk_ccifreq_target()
        PM / devfreq: exynos-ppmu: Use device_get_match_data()
        PM / devfreq: rockchip-dfi: dfi store raw values in counter struct
        ...
      c1bdc9aa
  2. 25 Oct, 2023 13 commits
    • Rafael J. Wysocki's avatar
      Merge tag 'devfreq-next-for-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux · af666466
      Rafael J. Wysocki authored
      Merge devfreq updates for v6.7 from Chanwoo Choi:
      
      " Detailed description for this pull request:
       1. Update devfreq core
       - Switch to dev_pm_opp_find_freq_(ceil/floor)_indexed() APIs
         to support the specific device like UFS which handle the multiple clocks
         through OPP (Operationg Performance Point) framework.
      
       2. Update the devfreq / devfreq-event drivers
       - Add perf support to the Rockchip DFI(DDR Monitor Module) devfreq-event driver.
       : Generalize rockchip-dfi.c to support new RK3568/RK3588 using different DDR type.
       : Covert devicetree bidning document format to yaml.
       : DFI is a unit which is suitable for measuring DDR utilization
         for the DDR frequency scaling driver. Add perf support feature
         to rockchip-dfi.c to extend DFI usage. The perf support has been tested
         on a RK3568 and a RK3399.
      
       - Protect the OPP handling code in critical section
         because the voltage of shared OPP might be changed by multiple drivers
         on Mediatek CCI devfreq driver.
      
       - Use device_get_match_data() on Samsung Exynos PPMU devfreq-event driver."
      
      * tag 'devfreq-next-for-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux: (26 commits)
        dt-bindings: devfreq: event: rockchip,dfi: Add rk3588 support
        dt-bindings: devfreq: event: rockchip,dfi: Add rk3568 support
        dt-bindings: devfreq: event: convert Rockchip DFI binding to yaml
        PM / devfreq: rockchip-dfi: add support for RK3588
        PM / devfreq: rockchip-dfi: account for multiple DDRMON_CTRL registers
        PM / devfreq: rockchip-dfi: make register stride SoC specific
        PM / devfreq: rockchip-dfi: Add perf support
        PM / devfreq: rockchip-dfi: give variable a better name
        PM / devfreq: rockchip-dfi: Prepare for multiple users
        PM / devfreq: rockchip-dfi: Pass private data struct to internal functions
        PM / devfreq: rockchip-dfi: Handle LPDDR4X
        PM / devfreq: rockchip-dfi: Handle LPDDR2 correctly
        PM / devfreq: rockchip-dfi: Add RK3568 support
        PM / devfreq: rockchip-dfi: Clean up DDR type register defines
        PM / devfreq: rk3399_dmc,dfi: generalize DDRTYPE defines
        PM / devfreq: rockchip-dfi: introduce channel mask
        PM / devfreq: rockchip-dfi: Use free running counter
        PM / devfreq: mediatek: unlock on error in mtk_ccifreq_target()
        PM / devfreq: exynos-ppmu: Use device_get_match_data()
        PM / devfreq: rockchip-dfi: dfi store raw values in counter struct
        ...
      af666466
    • Rafael J. Wysocki's avatar
      Merge tag 'opp-updates-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm · 067e6139
      Rafael J. Wysocki authored
      Merge OPP (operating performance points) updates for 6.7 from Viresh
      Kumar:
      
      "- Extend support for the opp-level beyond required-opps (Ulf Hansson).
      
       - Add dev_pm_opp_find_level_floor() (Krishna chaitanya chundru).
      
       - dt-bindings: Allow opp-peak-kBpsfor kryo CPUs, support Qualcomm Krait
         SoCs and document named opp-microvolt property (Bjorn Andersson,
         Dmitry Baryshkov and Christian Marangi).
      
       - Fix -Wunsequenced warning (Nathan Chancellor).
      
       - General cleanup (Viresh Kumar)."
      
      * tag 'opp-updates-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm:
        dt-bindings: opp: opp-v2-kryo-cpu: Document named opp-microvolt property
        OPP: No need to defer probe from _opp_attach_genpd()
        OPP: Remove genpd_virt_dev_lock
        OPP: Reorder code in _opp_set_required_opps_genpd()
        OPP: Add _link_required_opps() to avoid code duplication
        OPP: Fix formatting of if/else block
        dt-bindings: opp: opp-v2-kryo-cpu: support Qualcomm Krait SoCs
        OPP: Fix -Wunsequenced in _of_add_opp_table_v1()
        dt-bindings: opp: opp-v2-kryo-cpu: Allow opp-peak-kBps
        OPP: debugfs: Fix warning with W=1 builds
        OPP: Remove doc style comments for internal routines
        OPP: Add dev_pm_opp_find_level_floor()
        OPP: Extend support for the opp-level beyond required-opps
        OPP: Switch to use dev_pm_domain_set_performance_state()
        OPP: Extend dev_pm_opp_data with a level
        OPP: Add dev_pm_opp_add_dynamic() to allow more flexibility
        PM: domains: Implement the ->set_performance_state() callback for genpd
        PM: domains: Introduce dev_pm_domain_set_performance_state()
      067e6139
    • Rafael J. Wysocki's avatar
      Merge tag 'cpufreq-arm-updates-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm · 7c355848
      Rafael J. Wysocki authored
      Merge ARM cpufreq updates for 6.7 from Viresh Kumar:
      
      "- Add support for several Qualcomm SoC versions and other similar
         changes (Christian Marangi, Dmitry Baryshkov, Luca Weiss, Neil
         Armstrong, Richard Acayan, Robert Marko, Rohit Agarwal, Stephan
         Gerhold and Varadarajan Narayanan).
      
       - Cleanups to the tegra cpufreq driver (Sumit Gupta).
      
       - Use of_property_read_reg() to parse "reg" in pmac32 driver (Rob Herring).
      
       - Add support for TI's am62p5 Soc (Bryan Brattlof).
      
       - Make ARM_BRCMSTB_AVS_CPUFREQ depends on !ARM_SCMI_CPUFREQ (Florian
         Fainelli).
      
       - Update Kconfig to mention i.MX7 as well (Alexander Stein)."
      
      * tag 'cpufreq-arm-updates-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm: (25 commits)
        dt-bindings: cpufreq: qcom-hw: document SM8650 CPUFREQ Hardware
        cpufreq: arm: Kconfig: Add i.MX7 to supported SoC for ARM_IMX_CPUFREQ_DT
        cpufreq: qcom-nvmem: add support for IPQ8064
        cpufreq: qcom-nvmem: also accept operating-points-v2-krait-cpu
        cpufreq: qcom-nvmem: drop pvs_ver for format a fuses
        dt-bindings: cpufreq: qcom-cpufreq-nvmem: Document krait-cpu
        cpufreq: qcom-nvmem: add support for IPQ6018
        dt-bindings: cpufreq: qcom-cpufreq-nvmem: document IPQ6018
        cpufreq: qcom-nvmem: Add MSM8909
        cpufreq: qcom-nvmem: Simplify driver data allocation
        dt-bindings: cpufreq: cpufreq-qcom-hw: Add SDX75 compatible
        cpufreq: ARM_BRCMSTB_AVS_CPUFREQ cannot be used with ARM_SCMI_CPUFREQ
        cpufreq: ti-cpufreq: Add opp support for am62p5 SoCs
        cpufreq: dt-platdev: add am62p5 to blocklist
        cpufreq: tegra194: remove redundant AND with cpu_online_mask
        cpufreq: tegra194: use refclk delta based loop instead of udelay
        cpufreq: tegra194: save CPU data to avoid repeated SMP calls
        dt-bindings: cpufreq: cpufreq-qcom-hw: add SDM670 compatible
        dt-bindings: cpufreq: qcom-nvmem: Document MSM8909
        cpufreq: dt: platdev: Add MSM8909 to blocklist
        ...
      7c355848
    • Neil Armstrong's avatar
      dt-bindings: cpufreq: qcom-hw: document SM8650 CPUFREQ Hardware · 038ef0d9
      Neil Armstrong authored
      Document the CPUFREQ Hardware on the SM8650 Platform.
      Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      038ef0d9
    • Alexander Stein's avatar
      cpufreq: arm: Kconfig: Add i.MX7 to supported SoC for ARM_IMX_CPUFREQ_DT · 9e3254ff
      Alexander Stein authored
      Since commit a5a9dffc ("ARM: imx: Switch imx7d to imx-cpufreq-dt
      for speed-grading") i.MX7 uses this driver as well. Add it to the
      description text.
      Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      9e3254ff
    • Christian Marangi's avatar
      cpufreq: qcom-nvmem: add support for IPQ8064 · 4a3754f7
      Christian Marangi authored
      IPQ8064 comes in 3 families:
      * IPQ8062 up to 1.0GHz
      * IPQ8064/IPQ8066/IPQ8068 up to 1.4GHz
      * IPQ8065/IPQ8069 up to 1.7Ghz
      
      So, in order to be able to support one OPP table, add support for
      IPQ8064 family based of SMEM SoC ID-s and correctly set the version so
      opp-supported-hw can be correctly used.
      
      Bit are set with the following logic:
      * IPQ8062 BIT 0
      * IPQ8064/IPQ8066/IPQ8068 BIT 1
      * IPQ8065/IPQ8069 BIT 2
      
      speed is never fused, only pvs values are fused.
      
      IPQ806x SoC doesn't have pvs_version so we drop and we use the new
      pattern:
      opp-microvolt-speed0-pvs<PSV_VALUE>
      
      Example:
      - for ipq8062 psv2
        opp-microvolt-speed0-pvs2 = < 925000 878750 971250>
      
      Fixes: a8811ec7 ("cpufreq: qcom: Add support for krait based socs")
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      [ Viresh: Fixed rebase conflict. ]
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      4a3754f7
    • Dmitry Baryshkov's avatar
      cpufreq: qcom-nvmem: also accept operating-points-v2-krait-cpu · ff63282e
      Dmitry Baryshkov authored
      the qcom-cpufreq-nvmem driver attempts to support both Qualcomm Kryo
      (newer 64-bit ARMv8 cores) and Krait (older 32-bit ARMv7 cores). It
      makes no sense to use 'operating-points-v2-kryo-cpu' compatibility node
      for the Krait cores. Add support for 'operating-points-v2-krait-cpu'
      compatibility string.
      Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
      Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      ff63282e
    • Dmitry Baryshkov's avatar
      cpufreq: qcom-nvmem: drop pvs_ver for format a fuses · a243a1ed
      Dmitry Baryshkov authored
      The fuses used on msm8960 / apq8064 / ipq806x families of devices do not
      have the pvs version. Drop this argument from parsing function.
      Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
      Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      a243a1ed
    • Christian Marangi's avatar
      dt-bindings: cpufreq: qcom-cpufreq-nvmem: Document krait-cpu · 7f6aa81d
      Christian Marangi authored
      Document newly introduced operating-points-v2-krait-cpu compatible to
      the list of accepted compatible for opp-v2-kryo-cpu nodes.
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      7f6aa81d
    • Robert Marko's avatar
      cpufreq: qcom-nvmem: add support for IPQ6018 · 47e161a7
      Robert Marko authored
      IPQ6018 SoC series comes in multiple SKU-s, and not all of them support
      high frequency OPP points.
      
      SoC itself does however have a single bit in QFPROM to indicate the CPU
      speed-bin.
      That bit is used to indicate frequency limit of 1.5GHz, but that alone is
      not enough as IPQ6000 only goes up to 1.2GHz, but SMEM ID can be used to
      limit it further.
      
      IPQ6018 compatible is blacklisted from DT platdev as the cpufreq device
      will get created by NVMEM CPUFreq driver.
      Signed-off-by: default avatarRobert Marko <robimarko@gmail.com>
      [ Viresh: Fixed rebase conflict. ]
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      47e161a7
    • Robert Marko's avatar
      dt-bindings: cpufreq: qcom-cpufreq-nvmem: document IPQ6018 · 4b55159b
      Robert Marko authored
      Document IPQ6018 compatible for Qcom NVMEM CPUFreq driver.
      Signed-off-by: default avatarRobert Marko <robimarko@gmail.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      4b55159b
    • Stephan Gerhold's avatar
      cpufreq: qcom-nvmem: Add MSM8909 · f0d64f4a
      Stephan Gerhold authored
      When the MSM8909 SoC is used together with the PM8909 PMIC the primary
      power supply for the CPU (VDD_APC) is shared with other components to
      the SoC, namely the VDD_CX power domain typically supplied by the PM8909
      S1 regulator. This means that all votes for necessary performance states
      go via the RPM firmware which collects the requirements from all the
      processors in the SoC. The RPM firmware then chooses the actual voltage
      based on the performance states ("corners"), depending on calibration
      values in the NVMEM and other factors.
      
      The MSM8909 SoC is also sometimes used with the PM8916 or PM660 PMIC.
      In that case there is a dedicated regulator connected to VDD_APC and
      Linux is responsible to do adaptive voltage scaling using CPR (similar
      to the existing code for QCS404).
      
      This difference can be described in the device tree, by either assigning
      the CPU a power domain from RPMPD or from the CPR driver.
      
      Describe this using "perf" as generic power domain name, which is also
      used already for SCMI based platforms.
      
      Also add a simple function that reads the speedbin from a NVMEM cell
      and sets it as-is for opp-supported-hw. The actual bit position can be
      described in the device tree without additional driver changes.
      Signed-off-by: default avatarStephan Gerhold <stephan.gerhold@kernkonzept.com>
      Acked-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
      Reviewed-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      [ Viresh: Fixed rebase conflict. ]
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      f0d64f4a
    • Stephan Gerhold's avatar
      cpufreq: qcom-nvmem: Simplify driver data allocation · 2a5d46c3
      Stephan Gerhold authored
      Simplify the allocation and cleanup of driver data by using devm
      together with a flexible array. Prepare for adding additional per-CPU
      data by defining a struct qcom_cpufreq_drv_cpu instead of storing the
      opp_tokens directly.
      Signed-off-by: default avatarStephan Gerhold <stephan.gerhold@kernkonzept.com>
      Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      2a5d46c3
  3. 24 Oct, 2023 1 commit
    • Christian Marangi's avatar
      cpufreq: stats: Fix buffer overflow detection in trans_stats() · ea167a7f
      Christian Marangi authored
      Commit 3c0897c1 ("cpufreq: Use scnprintf() for avoiding potential
      buffer overflow") switched from snprintf to the more secure scnprintf
      but never updated the exit condition for PAGE_SIZE.
      
      As the commit say and as scnprintf document, what scnprintf returns what
      is actually written not counting the '\0' end char. This results in the
      case of len exceeding the size, len set to PAGE_SIZE - 1, as it can be
      written at max PAGE_SIZE - 1 (as '\0' is not counted)
      
      Because of len is never set to PAGE_SIZE, the function never break early,
      never prints the warning and never return -EFBIG.
      
      Fix this by changing the condition to PAGE_SIZE - 1 to correctly trigger
      the error.
      
      Cc: 5.10+ <stable@vger.kernel.org> # 5.10+
      Fixes: 3c0897c1 ("cpufreq: Use scnprintf() for avoiding potential buffer overflow")
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      [ rjw: Subject and changelog edits ]
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ea167a7f
  4. 22 Oct, 2023 4 commits
    • Linus Torvalds's avatar
      Linux 6.6-rc7 · 05d3ef8b
      Linus Torvalds authored
      05d3ef8b
    • Linus Torvalds's avatar
      Merge tag 'phy-fixes-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy · fe3cfe86
      Linus Torvalds authored
      Pull phy fixes from Vinod Koul:
      
       - mapphone-mdm6600 runtime pm & pinctrl handling fixes
      
       - Qualcomm qmp usb pcs register fixes, qmp pcie register size warning
         fix, m31 fixes for wrong pointer in PTR_ERR and dropping wrong vreg
         check, qmp combo fix for 8550 power config register
      
       - realtek usb fix for debugfs_create_dir() and kconfig dependency
      
      * tag 'phy-fixes-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy:
        phy: realtek: Realtek PHYs should depend on ARCH_REALTEK
        phy: qualcomm: Fix typos in comments
        phy: qcom-qmp-combo: initialize PCS_USB registers
        phy: qcom-qmp-combo: Square out 8550 POWER_STATE_CONFIG1
        phy: qcom: m31: Remove unwanted qphy->vreg is NULL check
        phy: realtek: usb: Drop unnecessary error check for debugfs_create_dir()
        phy: qcom: phy-qcom-m31: change m31_ipq5332_regs to static
        phy: qcom: phy-qcom-m31: fix wrong pointer pass to PTR_ERR()
        dt-bindings: phy: qcom,ipq8074-qmp-pcie: fix warning regarding reg size
        phy: qcom-qmp-usb: split PCS_USB init table for sc8280xp and sa8775p
        phy: qcom-qmp-usb: initialize PCS_USB registers
        phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins
        phy: mapphone-mdm6600: Fix runtime PM for remove
        phy: mapphone-mdm6600: Fix runtime disable on probe
      fe3cfe86
    • Linus Torvalds's avatar
      Merge tag 'efi-fixes-for-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · 70e65afc
      Linus Torvalds authored
      Pull EFI fixes from Ard Biesheuvel:
       "The boot_params pointer fix uses a somewhat ugly extern struct
        declaration but this will be cleaned up the next cycle.
      
         - don't try to print warnings to the console when it is no longer
           available
      
         - fix theoretical memory leak in SSDT override handling
      
         - make sure that the boot_params global variable is set before the
           KASLR code attempts to hash it for 'randomness'
      
         - avoid soft lockups in the memory acceptance code"
      
      * tag 'efi-fixes-for-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
        efi/unaccepted: Fix soft lockups caused by parallel memory acceptance
        x86/boot: efistub: Assign global boot_params variable
        efi: fix memory leak in krealloc failure handling
        x86/efistub: Don't try to print after ExitBootService()
      70e65afc
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 1acfd2bd
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix stale propagated yield_cpu in qspinlocks leading to lockups
      
       - Fix broken hugepages on some configs due to ARCH_FORCE_MAX_ORDER
      
       - Fix a spurious warning when copros are in use at exit time
      
      Thanks to Nicholas Piggin, Christophe Leroy, Nysal Jan K.A Sachin Sant,
      and Shrikanth Hegde.
      
      * tag 'powerpc-6.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/qspinlock: Fix stale propagated yield_cpu
        powerpc/64s/radix: Don't warn on copros in radix__tlb_flush()
        powerpc/mm: Allow ARCH_FORCE_MAX_ORDER up to 12
      1acfd2bd
  5. 21 Oct, 2023 10 commits
  6. 20 Oct, 2023 10 commits
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v6.6-2-2023-10-20' of... · 9c5d00cb
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v6.6-2-2023-10-20' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix regression in reading scale and unit files from sysfs for PMU
         events, so that we can use that info to pretty print instead of
         printing raw numbers:
      
           # perf stat -e power/energy-ram/,power/energy-gpu/ sleep 2
      
            Performance counter stats for 'system wide':
      
                       1.64 Joules power/energy-ram/
                       0.20 Joules power/energy-gpu/
      
                2.001228914 seconds time elapsed
           #
           # grep -m1 "model name" /proc/cpuinfo
           model name	: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
           #
      
       - The small llvm.cpp file used to check if the llvm devel files are
         present was incorrectly deleted when removing the BPF event in 'perf
         trace', put it back as it is also used by tools/bpf/bpftool, that
         uses llvm routines to do disassembly of BPF object files.
      
       - Fix use of addr_location__exit() in dlfilter__object_code(), making
         sure that it is only used to pair a previous addr_location__init()
         call.
      
      * tag 'perf-tools-fixes-for-v6.6-2-2023-10-20' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools:
        tools build: Fix llvm feature detection, still used by bpftool
        perf dlfilter: Add a test for object_code()
        perf dlfilter: Fix use of addr_location__exit() in dlfilter__object_code()
        perf pmu: Fix perf stat output with correct scale and unit
      9c5d00cb
    • Linus Torvalds's avatar
      Merge tag 'linux_kselftest_active-fixes-6.6-rc7' of... · 444ccf1b
      Linus Torvalds authored
      Merge tag 'linux_kselftest_active-fixes-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest fix from Shuah Khan:
       "One single fix to assert check in user_events abi_test to properly
        check bit value on Big Endian architectures. The code treated the bit
        values as Little Endian and the check failed on Big Endian"
      
      * tag 'linux_kselftest_active-fixes-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        selftests/user_events: Fix abi_test for BE archs
      444ccf1b
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-6.6-4' of git://git.linux-nfs.org/projects/anna/linux-nfs · f74e3ea3
      Linus Torvalds authored
      Pull NFS client fixes from Anna Schumaker:
       "Stable Fix:
         - Fix a pNFS hang in nfs4_evict_inode()
      
        Fixes:
         - Force update of suid/sgid bits after an NFS v4.2 ALLOCATE op
         - Fix a potential oops in nfs_inode_remove_request()
         - Check the validity of the layout pointer in ff_layout_mirror_prepare_stats()
         - Fix incorrectly marking the pNFS MDS with USE_PNFS_DS in some cases"
      
      * tag 'nfs-for-6.6-4' of git://git.linux-nfs.org/projects/anna/linux-nfs:
        NFSv4.1: fixup use EXCHGID4_FLAG_USE_PNFS_DS for DS server
        pNFS/flexfiles: Check the layout validity in ff_layout_mirror_prepare_stats
        pNFS: Fix a hang in nfs4_evict_inode()
        NFS: Fix potential oops in nfs_inode_remove_request()
        nfs42: client needs to strip file mode's suid/sgid bit after ALLOCATE op
      f74e3ea3
    • Linus Torvalds's avatar
      Merge tag 'fsnotify_for_v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 0e97fd29
      Linus Torvalds authored
      Pull fanotify fix from Jan Kara:
       "Disable superblock / mount marks for filesystems that can encode file
        handles but not open them (currently only overlayfs).
      
        It is not clear the functionality is useful in any way so let's better
        disable it before someone comes up with some creative misuse"
      
      * tag 'fsnotify_for_v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fanotify: limit reporting of event with non-decodeable file handles
      0e97fd29
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · f20f29cb
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These fix the ACPI initialization ordering on ARM and ACPI IRQ
        management in the cases when irq_create_fwspec_mapping() fails.
      
        Specifics:
      
         - Fix ACPI initialization ordering on ARM that was changed
           incorrectly during the 6.5 development cycle (Hanjun Guo)
      
         - Make acpi_register_gsi() return an error code as appropriate when
           irq_create_fwspec_mapping() returns 0 on failure (Sunil V L)"
      
      * tag 'acpi-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: bus: Move acpi_arm_init() to the place of after acpi_ghes_init()
        ACPI: irq: Fix incorrect return value in acpi_register_gsi()
      f20f29cb
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 75e167c2
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Two small fixes, both in drivers.
      
        The mptsas one is really fixing an error path issue where it can leave
        the misc driver loaded even though the sas driver fails to initialize"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: qla2xxx: Fix double free of dsd_list during driver load
        scsi: mpt3sas: Fix in error path
      75e167c2
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 659eaa00
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
      
       - Concurrent register updates in the Qualcomm LPASS pin controller gets
         a proper lock.
      
       - revert a mutex fix that was causing problems: contention on the mutex
         or something of the sort lead to probe reordering and MMC block
         devices start to register in a different order, which unsuspecting
         userspace is not ready to handle
      
      * tag 'pinctrl-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()"
        pinctrl: qcom: lpass-lpi: fix concurrent register updates
      659eaa00
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · f6176471
      Linus Torvalds authored
      Pull MTD fixes from Miquel Raynal:
       "In the raw NAND subsystem, the major fix prevents using cached reads
        with devices not supporting it. There was two bug reports about this.
      
        Apart from that, three drivers (pl353, arasan and marvell) could
        sometimes hide page program failures due to their their own program
        page helper not being fully compliant with the specification (many
        drivers use the default helpers shared by the core). Adding a missing
        check prevents these situation.
      
        Finally, the Qualcomm driver had a broken error path.
      
        In the SPI-NAND subsystem one Micron device used a wrong bitmak
        reporting possibly corrupted ECC status.
      
        Finally, the physmap-core got stripped from its map_rom fallback by
        mistake, this feature is added back"
      
      * tag 'mtd/fixes-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        mtd: rawnand: Ensure the nand chip supports cached reads
        mtd: rawnand: qcom: Unmap the right resource upon probe failure
        mtd: rawnand: pl353: Ensure program page operations are successful
        mtd: rawnand: arasan: Ensure program page operations are successful
        mtd: spinand: micron: correct bitmask for ecc status
        mtd: physmap-core: Restore map_rom fallback
        mtd: rawnand: marvell: Ensure program page operations are successful
      f6176471
    • Linus Torvalds's avatar
      Merge tag 'mmc-v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 7da6c042
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
       "MMC core:
         - Capture correct oemid-bits for eMMC cards
         - Fix error propagation for some ioctl commands
         - Hold retuning if SDIO is in 1-bit mode
      
        MMC host:
         - mtk-sd: Use readl_poll_timeout_atomic to not "schedule while atomic"
         - sdhci-msm: Correct minimum number of clocks
         - sdhci-pci-gli: Fix LPM negotiation so x86/S0ix SoCs can suspend
         - sdhci-sprd: Fix error code in sdhci_sprd_tuning()"
      
      * tag 'mmc-v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: core: Capture correct oemid-bits for eMMC cards
        mmc: mtk-sd: Use readl_poll_timeout_atomic in msdc_reset_hw
        mmc: core: Fix error propagation for some ioctl commands
        mmc: sdhci-sprd: Fix error code in sdhci_sprd_tuning()
        mmc: sdhci-pci-gli: fix LPM negotiation so x86/S0ix SoCs can suspend
        mmc: core: sdio: hold retuning if sdio in 1-bit mode
        dt-bindings: mmc: sdhci-msm: correct minimum number of clocks
      7da6c042
    • Linus Torvalds's avatar
      Merge tag 'block-6.6-2023-10-20' of git://git.kernel.dk/linux · c3200081
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "A fix for a regression with sed-opal and saved keys, and outside of
        that an NVMe pull request fixing a few minor issues on that front"
      
      * tag 'block-6.6-2023-10-20' of git://git.kernel.dk/linux:
        nvme-pci: add BOGUS_NID for Intel 0a54 device
        nvmet-auth: complete a request only after freeing the dhchap pointers
        nvme: sanitize metadata bounce buffer for reads
        block: Fix regression in sed-opal for a saved key.
        nvme-auth: use chap->s2 to indicate bidirectional authentication
        nvmet-tcp: Fix a possible UAF in queue intialization setup
        nvme-rdma: do not try to stop unallocated queues
      c3200081