1. Jan 08, 2021
  2. Jan 05, 2021
    • Mark Brown's avatar
      Merge series "Add driver for dvfsrc, support for active state of scpsys" from... · f45c522c
      Mark Brown authored
      Merge series "Add driver for dvfsrc, support for active state of scpsys" from Henry Chen <henryc.chen@mediatek.com>:
      
      This series is based on v5.10-rc1.
      
      The patchsets add support for MediaTek hardware module named DVFSRC
      (dynamic voltage and frequency scaling resource collector). The DVFSRC is
      a HW module which is used to collect all the requests from both software
      and hardware and turn into the decision of minimum operating voltage and
      minimum DRAM frequency to fulfill those requests.
      
      So, This series is to implement the dvfsrc driver to collect all the
      requests of operating voltage or DRAM bandwidth from other device drivers
      likes GPU/Camera through 3 frameworks basically:
      
      1. interconnect framework: to aggregate the bandwidth
         requirements from different clients
      
      [1] https://patchwork.kernel.org/cover/10766329/
      
      There has a hw module "DRAM scheduler", which used to control the throughput.
      The DVFSRC will collect forecast data of dram bandwidth from
      SW consumers(camera/gpu...), and according the forecast to change the DRAM
      frequency
      
      2. Regualtor framework: to handle the operating voltage requirement from user or
         cosumer which not belong any power domain
      
      Changes in V6:
      * Remove the performace state support, because the request from consumer can be
      replaced by using interconnect and regulator framework.
      * Update the DT patches and convert them to DT schema. (Georgi)
      * Modify the comment format and coding style. (Mark)
      
      Changes in V5:
      * Support more platform mt6873/mt8192
      * Drop the compatible and interconnect provider node and make the parent node an
      interconnect provider. (Rob/Georgi)
      * Make modification of interconnect driver from coding suggestion. (Georgi)
      * Move interconnect diagram into the commit text of patch. (Georgi)
      * Register the interconnect provider as a platform sub-device. (Georgi)
      
      Changes in V4:
      * Add acked TAG on dt-bindings patches. (Rob)
      * Declaration of emi_icc_aggregate since the prototype of aggregate function
      has changed meanwhile. (Georgi)
      * Used emi_icc_remove instead of icc_provider_del on probe. (Georgi)
      * Add dvfsrc regulator driver into series.
      * Bug fixed of mt8183_get_current_level.
      * Add mutex protection for pstate operation on dvfsrc_set_performance.
      
      Changes in V3:
      * Remove RFC from the subject prefix of the series
      * Combine dt-binding patch and move interconnect dt-binding document into
      dvfsrc. (Rob)
      * Remove unused header, add unit descirption to the bandwidth, rename compatible
      name on interconnect driver. (Georgi)
      * Fixed some coding style: check flow, naming, used readx_poll_timeout
      on dvfsrc driver. (Ryan)
      * Rename interconnect driver mt8183.c to mtk-emi.c
      * Rename interconnect header mtk,mt8183.h to mtk,emi.h
      * mtk-scpsys.c: Add opp table check first to avoid OF runtime parse failed
      
      Changes in RFC V2:
      * Remove the DT property dram_type. (Rob)
      * Used generic dts property 'opp-level' to get the performace state. (Stephen)
      * Remove unecessary dependency config on Kconfig. (Stephen)
      * Remove unused header file, fixed some coding style issue, typo,
      error handling on dvfsrc driver. (Nicolas/Stephen)
      * Remove irq handler on dvfsrc driver. (Stephen)
      * Remove init table on dvfsrc driver, combine hw init on trustzone.
      * Add interconnect support of mt8183 to aggregate the emi bandwidth.
      (Georgi)
      
      V5: https://patchwork.kernel.org/project/linux-mediatek/list/?series=348065
      V4: https://lore.kernel.org/patchwork/cover/1209284/
      V3: https://patchwork.kernel.org/cover/11118867/
      RFC V2: https://lore.kernel.org/patchwork/patch/1068113/
      RFC V1: https://lore.kernel.org/patchwork/cover/1028535/
      _______________________________________________
      linux-arm-kernel mailing list
      linux-arm-kernel@lists.infradead.org
      http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
      f45c522c
    • Matti Vaittinen's avatar
      regulator: ROHM bd7xxxx: Do not depend on parent driver data · 3c14dbd4
      Matti Vaittinen authored
      
      
      The ROHM PMIC regulator drivers only need the regmap pointer from
      the parent device. Regmap can be obtained via dev_get_regmap()
      so do not require parent to populate driver data for that.
      
      Signed-off-by: default avatarMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
      Link: https://lore.kernel.org/r/20210105130221.GA3438042@localhost.localdomain
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      3c14dbd4
    • henryc.chen's avatar
      regulator: Regulator driver for the Mediatek DVFSRC · a0db6b0a
      henryc.chen authored
      
      
      Driver for regulators exposed by the DVFSRC (dynamic voltage and
      frequency scaling resource collector) found in devices based on
      mt8183 and newer platforms.
      
      Signed-off-by: default avatarHenry Chen <henryc.chen@mediatek.com>
      Link: https://lore.kernel.org/r/1608790134-27425-12-git-send-email-henryc.chen@mediatek.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      a0db6b0a
    • Mark Brown's avatar
      c4208849
    • Mark Brown's avatar
      Merge qcom driver fix into regulator-5.11 · 36836f5b
      Mark Brown authored
      36836f5b
    • Mark Brown's avatar
      Merge series "regulator: fix pm8009 bindings on sm8250" from Dmitry Baryshkov... · a5694a3c
      Mark Brown authored
      Merge series "regulator: fix pm8009 bindings on sm8250" from Dmitry Baryshkov <dmitry.baryshkov@linaro.org>:
      
      PM8009 has special revision (P=1), which is to be used for sm8250
      platform. The major difference is the S2 regulator which supplies 0.95 V
      instead of 2.848V. Declare regulators data to be used for this chip
      revision. The datasheet calls the chip just pm8009-1, so use the same
      name.
      
      base-commit: 5c8fe583
      a5694a3c
  3. Jan 04, 2021
  4. Dec 30, 2020
  5. Dec 28, 2020
  6. Dec 27, 2020
  7. Dec 26, 2020
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.11-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · 40f78232
      Linus Torvalds authored
      Pull PCI fixes from Bjorn Helgaas:
      
       - Fix a tegra enumeration regression (Rob Herring)
      
       - Fix a designware-host check that warned on *success*, not failure
         (Alexander Lobakin)
      
      * tag 'pci-v5.11-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        PCI: dwc: Fix inverted condition of DMA mask setup warning
        PCI: tegra: Fix host link initialization
      40f78232
    • Nathan Chancellor's avatar
      mfd: ab8500-debugfs: Remove extraneous curly brace · c9a3c4e6
      Nathan Chancellor authored
      Clang errors:
      
        drivers/mfd/ab8500-debugfs.c:1526:2: error: non-void function does not return a value [-Werror,-Wreturn-type]
                }
                ^
        drivers/mfd/ab8500-debugfs.c:1528:2: error: expected identifier or '('
        return 0;
                ^
        drivers/mfd/ab8500-debugfs.c:1529:1: error: extraneous closing brace ('}')
        }
        ^
        3 errors generated.
      
      The cleanup in ab8500_interrupts_show left a curly brace around, remove
      it to fix the error.
      
      Fixes: 886c8121
      
       ("mfd: ab8500-debugfs: Remove the racy fiddling with irq_desc")
      Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c9a3c4e6
    • Alexander Lobakin's avatar
      PCI: dwc: Fix inverted condition of DMA mask setup warning · 99e629f1
      Alexander Lobakin authored
      Commit 660c4865 ("PCI: dwc: Set 32-bit DMA mask for MSI target address
      allocation") added dma_mask_set() call to explicitly set 32-bit DMA mask
      for MSI message mapping, but for now it throws a warning on ret == 0, while
      dma_set_mask() returns 0 in case of success.
      
      Fix this by inverting the condition.
      
      [bhelgaas: join string to make it greppable]
      Fixes: 660c4865 ("PCI: dwc: Set 32-bit DMA mask for MSI target address allocation")
      Link: https://lore.kernel.org/r/20201222150708.67983-1-alobakin@pm.me
      
      
      Signed-off-by: default avatarAlexander Lobakin <alobakin@pm.me>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      99e629f1
    • Rob Herring's avatar
      PCI: tegra: Fix host link initialization · 275e88b0
      Rob Herring authored
      Commit b9ac0f9d ("PCI: dwc: Move dw_pcie_setup_rc() to DWC common
      code") broke enumeration of downstream devices on Tegra:
      
      In non-working case (next-20201211):
      
        0001:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad2 (rev a1)
        0001:01:00.0 SATA controller: Marvell Technology Group Ltd. Device 9171 (rev 13)
        0005:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad0 (rev a1)
      
      In working case (v5.10-rc7):
      
        0001:00:00.0 PCI bridge: Molex Incorporated Device 1ad2 (rev a1)
        0001:01:00.0 SATA controller: Marvell Technology Group Ltd. Device 9171 (rev 13)
        0005:00:00.0 PCI bridge: Molex Incorporated Device 1ad0 (rev a1)
        0005:01:00.0 PCI bridge: PLX Technology, Inc. Device 3380 (rev ab)
        0005:02:02.0 PCI bridge: PLX Technology, Inc. Device 3380 (rev ab)
        0005:03:00.0 USB controller: PLX Technology, Inc. Device 3380 (rev ab)
      
      The problem seems to be dw_pcie_setup_rc() is now called twice before and
      after the link up handling. The fix is to move Tegra's link up handling to
      .start_link() function like other DWC drivers. Tegra is a bit more
      complicated than others as it re-inits the whole DWC controller to retry
      the link. With this, the initialization ordering is restored to match the
      prior sequence.
      
      Fixes: b9ac0f9d ("PCI: dwc: Move dw_pcie_setup_rc() to DWC common code")
      Link: https://lore.kernel.org/r/20201218143905.1614098-1-robh@kernel.org
      
      
      Reported-by: default avatarMian Yousaf Kaukab <ykaukab@suse.de>
      Tested-by: default avatarMian Yousaf Kaukab <ykaukab@suse.de>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Cc: Vidya Sagar <vidyas@nvidia.com>
      275e88b0
    • Linus Torvalds's avatar
      drm/amd/display: avoid uninitialized variable warning · 61d79136
      Linus Torvalds authored
      clang (quite rightly) complains fairly loudly about the newly added
      mpc1_get_mpc_out_mux() function returning an uninitialized value if the
      'opp_id' checks don't pass.
      
      This may not happen in practice, but the code really shouldn't return
      garbage if the sanity checks don't pass.
      
      So just initialize 'val' to zero to avoid the issue.
      
      Fixes: 110b055b
      
       ("drm/amd/display: add getter routine to retrieve mpcc mux")
      Cc: Josip Pavic <Josip.Pavic@amd.com>
      Cc: Bindu Ramamurthy <bindu.r@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      61d79136
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-2020-12-24' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux · 5814bc2d
      Linus Torvalds authored
      Pull more perf tools updates from Arnaldo Carvalho de Melo:
      
       - Refactor 'perf stat' per CPU/socket/die/thread aggregation fixing use
         cases in ARM machines.
      
       - Fix memory leak when synthesizing SDT probes in 'perf probe'.
      
       - Update kernel header copies related to KVM, epol_pwait. msr-index and
         powerpc and s390 syscall tables.
      
      * tag 'perf-tools-2020-12-24' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: (24 commits)
        perf probe: Fix memory leak when synthesizing SDT probes
        perf stat aggregation: Add separate thread member
        perf stat aggregation: Add separate core member
        perf stat aggregation: Add separate die member
        perf stat aggregation: Add separate socket member
        perf stat aggregation: Add separate node member
        perf stat aggregation: Start using cpu_aggr_id in map
        perf cpumap: Drop in cpu_aggr_map struct
        perf cpumap: Add new map type for aggregation
        perf stat: Replace aggregation ID with a struct
        perf cpumap: Add new struct for cpu aggregation
        perf cpumap: Use existing allocator to avoid using malloc
        perf tests: Improve topology test to check all aggregation types
        perf tools: Update s390's syscall.tbl copy from the kernel sources
        perf tools: Update powerpc's syscall.tbl copy from the kernel sources
        perf s390: Move syscall.tbl check into check-headers.sh
        perf powerpc: Move syscall.tbl check to check-headers.sh
        tools headers UAPI: Synch KVM's svm.h header with the kernel
        tools kvm headers: Update KVM headers from the kernel sources
        tools headers UAPI: Sync KVM's vmx.h header with the kernel sources
        ...
      5814bc2d
    • Linus Torvalds's avatar
      Merge branch 'for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux · 42dc45e8
      Linus Torvalds authored
      Pull coccinelle updates from Julia Lawall.
      
      * 'for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
        scripts: coccicheck: Correct usage of make coccicheck
        coccinelle: update expiring email addresses
        coccinnelle: Remove ptr_ret script
        kbuild: do not use scripts/ld-version.sh for checking spatch version
        remove boolinit.cocci
      42dc45e8