1. Sep 20, 2020
  2. Sep 19, 2020
    • Linus Torvalds's avatar
      Merge tag 'sh-for-5.9-part2' of git://git.libc.org/linux-sh · 92ab97ad
      Linus Torvalds authored
      Pull arch/sh fixes from Rich Felker:
       "Fixes for build and function regression"
      
      * tag 'sh-for-5.9-part2' of git://git.libc.org/linux-sh:
        sh: fix syscall tracing
        sh: remove spurious circular inclusion from asm/smp.h
      92ab97ad
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 69828c47
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - Allow CPUs affected by erratum 1418040 to come online late
         (previously we only fixed the other case - CPUs not affected by the
         erratum coming up late).
      
       - Fix branch offset in BPF JIT.
      
       - Defer the stolen time initialisation to the CPU online time from the
         CPU starting time to avoid a (sleep-able) memory allocation in an
         atomic context.
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: paravirt: Initialize steal time when cpu is online
        arm64: bpf: Fix branch offset in JIT
        arm64: Allow CPUs unffected by ARM erratum 1418040 to come in late
      69828c47
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.9-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 5a55d36f
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "Some more powerpc fixes for 5.9:
      
         - Opt us out of the DEBUG_VM_PGTABLE support for now as it's causing
           crashes.
      
         - Fix a long standing bug in our DMA mask handling that was hidden
           until recently, and which caused problems with some drivers.
      
         - Fix a boot failure on systems with large amounts of RAM, and no
           hugepage support and using Radix MMU, only seen in the lab.
      
         - A few other minor fixes.
      
        Thanks to Alexey Kardashevskiy, Aneesh Kumar K.V, Gautham R. Shenoy,
        Hari Bathini, Ira Weiny, Nick Desaulniers, Shirisha Ganta, Vaibhav
        Jain, and Vaidyanathan Srinivasan"
      
      * tag 'powerpc-5.9-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/papr_scm: Limit the readability of 'perf_stats' sysfs attribute
        cpuidle: pseries: Fix CEDE latency conversion from tb to us
        powerpc/dma: Fix dma_map_ops::get_required_mask
        Revert "powerpc/build: vdso linker warning for orphan sections"
        powerpc/mm: Remove DEBUG_VM_PGTABLE support on powerpc
        selftests/powerpc: Skip PROT_SAO test in guests/LPARS
        powerpc/book3s64/radix: Fix boot failure with large amount of guest memory
      5a55d36f
    • Linus Torvalds's avatar
      Merge tag 'pm-5.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 794a9965
      Linus Torvalds authored
      Pull power management updates from Rafael Wysocki:
       "These add a new CPU ID to the RAPL power capping driver and prevent
        the ACPI processor idle driver from triggering RCU-lockdep complaints.
      
        Specifics:
      
         - Add support for the Lakefield chip to the RAPL power capping driver
           (Ricardo Neri).
      
         - Modify the ACPI processor idle driver to prevent it from triggering
           RCU-lockdep complaints which has started to happen after recent
           changes in that area (Peter Zijlstra)"
      
      * tag 'pm-5.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: processor: Take over RCU-idle for C3-BM idle
        cpuidle: Allow cpuidle drivers to take over RCU-idle
        ACPI: processor: Use CPUIDLE_FLAG_TLB_FLUSHED
        ACPI: processor: Use CPUIDLE_FLAG_TIMER_STOP
        powercap: RAPL: Add support for Lakefield
      794a9965
    • Linus Torvalds's avatar
      Merge tag 'sound-5.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 343b529a
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Here is a collection of fixes for 5.9. All look small and are nothing
        scary.
      
        The majority of changes are about ASoC driver- specific fixes, while
        there are a couple of ASoC core fixes (DAI lookup and lockdep stuff)
        and usual HD-audio quirks"
      
      * tag 'sound-5.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (23 commits)
        ALSA: hda/realtek - The Mic on a RedmiBook doesn't work
        ASoC: tlv320adcx140: Wake up codec before accessing register
        ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open failure
        ALSA: hda: fixup headset for ASUS GX502 laptop
        ASoC: Intel: bytcr_rt5640: Add quirk for MPMAN Converter9 2-in-1
        ASoC: Intel: haswell: Fix power transition refactor
        ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev
        ASoC: wm8994: Ensure the device is resumed in wm89xx_mic_detect functions
        ASoC: wm8994: Skip setting of the WM8994_MICBIAS register for WM1811
        ASoC: meson: axg-toddr: fix channel order on g12 platforms
        ASoC: soc-core: add snd_soc_find_dai_with_mutex()
        ASoC: qcom: common: Fix refcount imbalance on error
        ASoC: rt700: Fix return check for devm_regmap_init_sdw()
        ASoC: rt715: Fix return check for devm_regmap_init_sdw()
        ASoC: rt711: Fix return check for devm_regmap_init_sdw()
        ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw()
        ASoC: max98373: Fix return check for devm_regmap_init_sdw()
        ASoC: ti: fixup ams_delta_mute() function name
        ASoC: pcm3168a: ignore 0 Hz settings
        ASoC: Intel: tgl_max98373: fix a runtime pm issue in multi-thread case
        ...
      343b529a
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 1fd79656
      Linus Torvalds authored
      Pull iommu fixes from Joerg Roedel:
       "Two fixes for the AMD IOMMU driver:
      
         - Fix a potential NULL-ptr dereference found by smatch
      
         - Fix interrupt remapping when a device is assigned to a guest and
           AVIC is enabled"
      
      * tag 'iommu-fixes-v5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        iommu/amd: Restore IRTE.RemapEn bit for amd_iommu_activate_guest_mode
        iommu/amd: Fix potential @entry null deref
      1fd79656
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-5.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · 92373933
      Linus Torvalds authored
      
      
      Pull MTD/SPI NOR fixes from Vignesh Raghavendra:
       "Revert patches that caused non volatile Quad Enable bit to be cleared
        for certain SPI NOR flashes during module remove or during shutdown,
        thus breaking backward compatibility"
      
      Acked-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      
      * tag 'mtd/fixes-for-5.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        Revert "mtd: spi-nor: Add capability to disable flash quad mode"
        Revert "mtd: spi-nor: Disable the flash quad mode in spi_nor_restore()"
      92373933
  3. Sep 18, 2020
  4. Sep 17, 2020
    • Ilias Apalodimas's avatar
      arm64: bpf: Fix branch offset in JIT · 32f6865c
      Ilias Apalodimas authored
      Running the eBPF test_verifier leads to random errors looking like this:
      
      [ 6525.735488] Unexpected kernel BRK exception at EL1
      [ 6525.735502] Internal error: ptrace BRK handler: f2000100 [#1] SMP
      [ 6525.741609] Modules linked in: nls_utf8 cifs libdes libarc4 dns_resolver fscache binfmt_misc nls_ascii nls_cp437 vfat fat aes_ce_blk crypto_simd cryptd aes_ce_cipher ghash_ce gf128mul efi_pstore sha2_ce sha256_arm64 sha1_ce evdev efivars efivarfs ip_tables x_tables autofs4 btrfs blake2b_generic xor xor_neon zstd_compress raid6_pq libcrc32c crc32c_generic ahci xhci_pci libahci xhci_hcd igb libata i2c_algo_bit nvme realtek usbcore nvme_core scsi_mod t10_pi netsec mdio_devres of_mdio gpio_keys fixed_phy libphy gpio_mb86s7x
      [ 6525.787760] CPU: 3 PID: 7881 Comm: test_verifier Tainted: G        W         5.9.0-rc1+ #47
      [ 6525.796111] Hardware name: Socionext SynQuacer E-series DeveloperBox, BIOS build #1 Jun  6 2020
      [ 6525.804812] pstate: 20000005 (nzCv daif -PAN -UAO BTYPE=--)
      [ 6525.810390] pc : bpf_prog_c3d01833289b6311_F+0xc8/0x9f4
      [ 6525.815613] lr : bpf_prog_d53bb52e3f4483f9_F+0x38/0xc8c
      [ 6525.820832] sp : ffff8000130cbb80
      [ 6525.824141] x29: ffff8000130cbbb0 x28: 0000000000000000
      [ 6525.829451] x27: 000005ef6fcbf39b x26: 0000000000000000
      [ 6525.834759] x25: ffff8000130cbb80 x24: ffff800011dc7038
      [ 6525.840067] x23: ffff8000130cbd00 x22: ffff0008f624d080
      [ 6525.845375] x21: 0000000000000001 x20: ffff800011dc7000
      [ 6525.850682] x19: 0000000000000000 x18: 0000000000000000
      [ 6525.855990] x17: 0000000000000000 x16: 0000000000000000
      [ 6525.861298] x15: 0000000000000000 x14: 0000000000000000
      [ 6525.866606] x13: 0000000000000000 x12: 0000000000000000
      [ 6525.871913] x11: 0000000000000001 x10: ffff8000000a660c
      [ 6525.877220] x9 : ffff800010951810 x8 : ffff8000130cbc38
      [ 6525.882528] x7 : 0000000000000000 x6 : 0000009864cfa881
      [ 6525.887836] x5 : 00ffffffffffffff x4 : 002880ba1a0b3e9f
      [ 6525.893144] x3 : 0000000000000018 x2 : ffff8000000a4374
      [ 6525.898452] x1 : 000000000000000a x0 : 0000000000000009
      [ 6525.903760] Call trace:
      [ 6525.906202]  bpf_prog_c3d01833289b6311_F+0xc8/0x9f4
      [ 6525.911076]  bpf_prog_d53bb52e3f4483f9_F+0x38/0xc8c
      [ 6525.915957]  bpf_dispatcher_xdp_func+0x14/0x20
      [ 6525.920398]  bpf_test_run+0x70/0x1b0
      [ 6525.923969]  bpf_prog_test_run_xdp+0xec/0x190
      [ 6525.928326]  __do_sys_bpf+0xc88/0x1b28
      [ 6525.932072]  __arm64_sys_bpf+0x24/0x30
      [ 6525.935820]  el0_svc_common.constprop.0+0x70/0x168
      [ 6525.940607]  do_el0_svc+0x28/0x88
      [ 6525.943920]  el0_sync_handler+0x88/0x190
      [ 6525.947838]  el0_sync+0x140/0x180
      [ 6525.951154] Code: d4202000 d4202000 d4202000 d4202000 (d4202000)
      [ 6525.957249] ---[ end trace cecc3f93b14927e2 ]---
      
      The reason is the offset[] creation and later usage, while building
      the eBPF body. The code currently omits the first instruction, since
      build_insn() will increase our ctx->idx before saving it.
      That was fine up until bounded eBPF loops were introduced. After that
      introduction, offset[0] must be the offset of the end of prologue which
      is the start of the 1st insn while, offset[n] holds the
      offset of the end of n-th insn.
      
      When "taken loop with back jump to 1st insn" test runs, it will
      eventually call bpf2a64_offset(-1, 2, ctx). Since negative indexing is
      permitted, the current outcome depends on the value stored in
      ctx->offset[-1], which has nothing to do with our array.
      If the value happens to be 0 the tests will work. If not this error
      triggers.
      
      commit 7c2e988f ("bpf: fix x64 JIT code generation for jmp to 1st insn")
      fixed an indentical bug on x86 when eBPF bounded loops were introduced.
      
      So let's fix it by creating the ctx->offset[] differently. Track the
      beginning of instruction and account for the extra instruction while
      calculating the arm instruction offsets.
      
      Fixes: 2589726d
      
       ("bpf: introduce bounded loops")
      Reported-by: default avatarNaresh Kamboju <naresh.kamboju@linaro.org>
      Reported-by: default avatarJiri Olsa <jolsa@kernel.org>
      Co-developed-by: default avatarJean-Philippe Brucker <jean-philippe@linaro.org>
      Co-developed-by: default avatarYauheni Kaliuta <yauheni.kaliuta@redhat.com>
      Signed-off-by: default avatarJean-Philippe Brucker <jean-philippe@linaro.org>
      Signed-off-by: default avatarYauheni Kaliuta <yauheni.kaliuta@redhat.com>
      Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
      Acked-by: default avatarWill Deacon <will@kernel.org>
      Link: https://lore.kernel.org/r/20200917084925.177348-1-ilias.apalodimas@linaro.org
      
      
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      32f6865c
    • Bhawanpreet Lakha's avatar
      drm/amd/display: Don't log hdcp module warnings in dmesg · 875d369d
      Bhawanpreet Lakha authored
      
      
      [Why]
      DTM topology updates happens by default now. This results in DTM
      warnings when hdcp is not even being enabled. This spams the dmesg
      and doesn't effect normal display functionality so it is better to log it
      using DRM_DEBUG_KMS()
      
      [How]
      Change the DRM_WARN() to DRM_DEBUG_KMS()
      
      Signed-off-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
      Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      875d369d
    • Jiansong Chen's avatar
      drm/amdgpu: declare ta firmware for navy_flounder · e60c27f1
      Jiansong Chen authored
      
      
      The firmware provided via MODULE_FIRMWARE appears in the
      module information. External tools(eg. dracut) may use the
      list of fw files to include them as appropriate in an initramfs,
      thus missing declaration will lead to request firmware failure
      in boot time.
      
      Signed-off-by: default avatarJiansong Chen <Jiansong.Chen@amd.com>
      Reviewed-by: default avatarTianci Yin <tianci.yin@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      e60c27f1
    • Yu Kuai's avatar
      drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata() · 0680a622
      Yu Kuai authored
      if of_find_device_by_node() succeed, mtk_drm_kms_init() doesn't have
      a corresponding put_device(). Thus add jump target to fix the exception
      handling for this function implementation.
      
      Fixes: 8f83f268
      
       ("drm/mediatek: Add HDMI support")
      Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
      Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      0680a622
    • Yu Kuai's avatar
      drm/mediatek: Add missing put_device() call in mtk_drm_kms_init() · 2132940f
      Yu Kuai authored
      if of_find_device_by_node() succeed, mtk_drm_kms_init() doesn't have
      a corresponding put_device(). Thus add jump target to fix the exception
      handling for this function implementation.
      
      Fixes: 119f5173
      
       ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
      Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
      Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      2132940f
    • Yu Kuai's avatar
      drm/mediatek: Add exception handing in mtk_drm_probe() if component init fail · 64c194c0
      Yu Kuai authored
      mtk_ddp_comp_init() is called in a loop in mtk_drm_probe(), if it
      fail, previous successive init component is not proccessed.
      
      Thus uninitialize valid component and put their device if component
      init failed.
      
      Fixes: 119f5173
      
       ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
      Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
      Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      64c194c0
    • Yu Kuai's avatar
      drm/mediatek: Add missing put_device() call in mtk_ddp_comp_init() · d494c257
      Yu Kuai authored
      if of_find_device_by_node() succeed, mtk_ddp_comp_init() doesn't have
      a corresponding put_device(). Thus add put_device() to fix the exception
      handling for this function implementation.
      
      Fixes: d0afe37f
      
       ("drm/mediatek: support CMDQ interface in ddp component")
      Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
      Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      d494c257
    • Chun-Kuang Hu's avatar
      drm/mediatek: Use CPU when fail to get cmdq event · f85acdad
      Chun-Kuang Hu authored
      Even though cmdq client is created successfully, without the cmdq event,
      cmdq could not work correctly, so use CPU when fail to get cmdq event.
      
      Fixes: 60fa8c13
      
       ("drm/mediatek: Move gce event property to mutex device node")
      Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      f85acdad
    • Wang Hai's avatar
      drm/mediatek: Remove duplicated include · 855f3e08
      Wang Hai authored
      Remove mtk_drm_ddp.h which is included more than once
      
      Fixes: 9aef5867
      
       ("drm/mediatek: drop use of drmP.h")
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Signed-off-by: default avatarWang Hai <wanghai38@huawei.com>
      Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      855f3e08
    • Thomas Bogendoerfer's avatar
      MIPS: SNI: Fix spurious interrupts · b959b978
      Thomas Bogendoerfer authored
      On A20R machines the interrupt pending bits in cause register need to be
      updated by requesting the chipset to do it. This needs to be done to
      find the interrupt cause and after interrupt service. In
      commit 0b888c7f ("MIPS: SNI: Convert to new irq_chip functions") the
      function to do after service update got lost, which caused spurious
      interrupts.
      
      Fixes: 0b888c7f
      
       ("MIPS: SNI: Convert to new irq_chip functions")
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      b959b978
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.9-2020-09-16' of... · 5925fa68
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.9-2020-09-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Set PERF_SAMPLE_PERIOD if attr->freq is set.
      
       - Remove trailing commas from AMD JSON vendor event files.
      
       - Don't clear event's period if set by a event definition term.
      
       - Leader sampling shouldn't clear sample period in 'perf test'.
      
       - Fix the "signal" test inline assembly when built with DEBUG=1.
      
       - Fix memory leaks detected by ASAN, some in normal paths, some in
         error paths.
      
       - Fix 2 memory sanitizer warnings in 'perf bench'.
      
       - Fix the ratio comments of miss-events in 'perf stat'.
      
       - Prevent override of attr->sample_period for libpfm4 events.
      
       - Sync kvm.h and in.h headers with the kernel sources.
      
      * tag 'perf-tools-fixes-for-v5.9-2020-09-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf stat: Fix the ratio comments of miss-events
        perf test: Free formats for perf pmu parse test
        perf metric: Do not free metric when failed to resolve
        perf metric: Free metric when it failed to resolve
        perf metric: Release expr_parse_ctx after testing
        perf test: Fix memory leaks in parse-metric test
        perf parse-event: Fix memory leak in evsel->unit
        perf evlist: Fix cpu/thread map leak
        perf metric: Fix some memory leaks - part 2
        perf metric: Fix some memory leaks
        perf test: Free aliases for PMU event map aliases test
        perf vendor events amd: Remove trailing commas
        perf test: Leader sampling shouldn't clear sample period
        perf record: Don't clear event's period if set by a term
        tools headers UAPI: update linux/in.h copy
        tools headers UAPI: Sync kvm.h headers with the kernel sources
        perf record: Prevent override of attr->sample_period for libpfm4 events
        perf record: Set PERF_RECORD_PERIOD if attr->freq is set.
        perf bench: Fix 2 memory sanitizer warnings
        perf test: Fix the "signal" test inline assembly
      5925fa68
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 05da40eb
      Linus Torvalds authored
      Pull clk driver fixes from Stephen Boyd:
       "A handful of clk driver fixes. Mostly they're for error paths or
        improper memory allocations sizes. Nothing as exciting as a wildfire"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: qcom: lpass: Correct goto target in lpass_core_sc7180_probe()
        clk: versatile: Add of_node_put() before return statement
        clk: bcm: dvp: Select the reset framework
        clk: rockchip: Fix initialization of mux_pll_src_4plls_p
        clk: davinci: Use the correct size when allocating memory
      05da40eb
    • Leon Romanovsky's avatar
      MAINTAINERS: Fix Max's and Shravan's emails · 6279e774
      Leon Romanovsky authored
      Max's and Shravan's usernames were changed while @mellanox.com emails
      were transferred to be @nvidia.com.
      
      Fixes: f6da70d9
      
       ("MAINTAINERS: Update Mellanox and Cumulus Network addresses to new domain")
      Signed-off-by: default avatarLeon Romanovsky <leonro@nvidia.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6279e774