This project is mirrored from Pull mirroring updated .
  1. 29 Aug, 2021 1 commit
  2. 06 Aug, 2021 2 commits
    • Bjorn Andersson's avatar
      clk: qcom: gdsc: Ensure regulator init state matches GDSC state · 9711759a
      Bjorn Andersson authored
      As GDSCs are registered and found to be already enabled gdsc_init()
      ensures that 1) the kernel state matches the hardware state, and 2)
      votable GDSCs are properly enabled from this master as well.
      But as the (optional) supply regulator is enabled deep into
      gdsc_toggle_logic(), which is only executed for votable GDSCs, the
      kernel's state of the regulator might not match the hardware. The
      regulator might be automatically turned off if no other users are
      present or the next call to gdsc_disable() would cause an unbalanced
      Given that the votable case deals with an already enabled GDSC, most of
      gdsc_enable() and gdsc_toggle_logic() can be skipped. Reduce it to just
      clearing the SW_COLLAPSE_MASK and enabling hardware control to simply
      call regulator_enable() in both cases.
      The enablement of hardware control seems to be an independent property
      from the GDSC being enabled, so this is moved outside that conditional
      Lastly, as the propagation of ALWAYS_ON to GENPD_FLAG_ALWAYS_ON needs to
      happen regardless of the initial state this is grouped together with the
      other sc->pd updates at the end of the function.
      Fixes: 37416e55
       ("clk: qcom: gdsc: Handle GDSC regulator supplies")
      Signed-off-by: default avatarBjorn Andersson <>
      [ Rephrase commit text]
      Signed-off-by: default avatarStephen Boyd <>
    • Dong Aisheng's avatar
      clk: imx6q: fix uart earlycon unwork · 283f1b9a
      Dong Aisheng authored
      The earlycon depends on the bootloader setup UART clocks being retained.
      There're actually two uart clocks (ipg, per) on MX6QDL,
      but the 'Fixes' commit change to register only one which means
      another clock may be disabled during booting phase
      and result in the earlycon unwork.
      Cc: # v5.10+
      Fixes: 379c9a24
       ("clk: imx: Fix reparenting of UARTs not associated with stdout")
      Signed-off-by: default avatarDong Aisheng <>
      Reviewed-by: default avatarAbel Vesa <>
      Signed-off-by: default avatarStephen Boyd <>
  3. 31 Jul, 2021 1 commit
    • Brian Norris's avatar
      clk: fix leak on devm_clk_bulk_get_all() unwind · f828b0bc
      Brian Norris authored
      clk_bulk_get_all() allocates an array of struct clk_bulk data for us
      (unlike clk_bulk_get()), so we need to free it. Let's use the
      clk_bulk_put_all() helper.
      kmemleak complains, on an RK3399 Gru/Kevin system:
      unreferenced object 0xffffff80045def00 (size 128):
        comm "swapper/0", pid 1, jiffies 4294667682 (age 86.394s)
        hex dump (first 32 bytes):
          44 32 60 fe fe ff ff ff 00 00 00 00 00 00 00 00  D2`.............
          48 32 60 fe fe ff ff ff 00 00 00 00 00 00 00 00  H2`.............
          [<00000000742860d6>] __kmalloc+0x22c/0x39c
          [<00000000b0493f2c>] clk_bulk_get_all+0x64/0x188
          [<00000000325f5900>] devm_clk_bulk_get_all+0x58/0xa8
          [<00000000175b9bc5>] dwc3_probe+0x8ac/0xb5c
          [<000000009169e2f9>] platform_drv_probe+0x9c/0xbc
          [<000000005c51e2ee>] really_probe+0x13c/0x378
          [<00000000c47b1f24>] driver_probe_device+0x84/0xc0
          [<00000000f870fcfb>] __device_attach_driver+0x94/0xb0
          [<000000004d1b92ae>] bus_for_each_drv+0x8c/0xd8
          [<00000000481d60c3>] __device_attach+0xc4/0x150
          [<00000000a163bd36>] device_initial_probe+0x1c/0x28
          [<00000000accb6bad>] bus_probe_device+0x3c/0x9c
          [<000000001a199f89>] device_add+0x218/0x3cc
          [<000000001bd84952>] of_device_add+0x40/0x50
          [<000000009c658c29>] of_platform_device_create_pdata+0xac/0x100
          [<0000000021c69ba4>] of_platform_bus_create+0x190/0x224
      Fixes: f08c2e28
       ("clk: add managed version of clk_bulk_get_all")
      Cc: Dong Aisheng <>
      Signed-off-by: default avatarBrian Norris <>
      Signed-off-by: default avatarStephen Boyd <>
  4. 27 Jul, 2021 4 commits
    • Dmitry Osipenko's avatar
      clk: tegra: Implement disable_unused() of tegra_clk_sdmmc_mux_ops · 2bcc025a
      Dmitry Osipenko authored
      Implement disable_unused() callback of tegra_clk_sdmmc_mux_ops to fix
      imbalanced disabling of the unused MMC clock on Tegra210 Jetson Nano.
      Fixes: c592c8a2
       ("clk: tegra: Fix refcounting of gate clocks")
      Reported-by: Jon Hunter <> # T210 Nano
      Tested-by: Jon Hunter <> # T210 Nano
      Acked-by: default avatarJon Hunter <>
      Signed-off-by: default avatarDmitry Osipenko <>
      Signed-off-by: default avatarStephen Boyd <>
    • Shawn Guo's avatar
      clk: qcom: smd-rpm: Fix MSM8936 RPM_SMD_PCNOC_A_CLK · 4ee107c5
      Shawn Guo authored
      Commit a0384ecf ("clk: qcom: smd-rpm: De-duplicate identical
      entries") introduces the following regression on MSM8936/MSM8939, as
      RPM_SMD_PCNOC_A_CLK gets pointed to pcnoc_clk by mistake.  Fix it by
      correcting the clock to pcnoc_a_clk.
      [    1.307363] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
      [    1.313593] Mem abort info:
      [    1.322512]   ESR = 0x96000004
      [    1.325132]   EC = 0x25: DABT (current EL), IL = 32 bits
      [    1.338872]   SET = 0, FnV = 0
      [    1.355483]   EA = 0, S1PTW = 0
      [    1.368702]   FSC = 0x04: level 0 translation fault
      [    1.383294] Data abort info:
      [    1.398292]   ISV = 0, ISS = 0x00000004
      [    1.398297]   CM = 0, WnR = 0
      [    1.398301] [0000000000000000] user address but active_mm is swapper
      [    1.404193] Internal error: Oops: 96000004 [#1] PREEMPT SMP
      [    1.420596] Modules linked in:
      [    1.420604] CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.14.0-rc3+ #198
      [    1.441010] pc : __clk_register+0x48/0x780
      [    1.446045] lr : __clk_register+0x3c/0x780
      [    1.449953] sp : ffff800010063440
      [    1.454031] x29: ffff800010063440 x28: 0000000000000004 x27: 0000000000000066
      [    1.457423] x26: 0000000000000001 x25: 000000007fffffff x24: ffff800010f9f388
      [    1.464540] x23: ffff00007fc12a90 x22: ffff0000034b2010 x21: 0000000000000000
      [    1.471658] x20: ffff800010f9fff8 x19: ffff00000152a700 x18: 0000000000000001
      [    1.478778] x17: ffff00007fbd40c8 x16: 0000000000000460 x15: 0000000000000465
      [    1.485895] x14: ffffffffffffffff x13: 746e756f635f7265 x12: 696669746f6e5f6b
      [    1.493013] x11: 0000000000000006 x10: 0000000000000000 x9 : 0000000000000000
      [    1.500131] x8 : ffff00000152a800 x7 : 0000000000000000 x6 : 000000000000003f
      [    1.507249] x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000004
      [    1.514367] x2 : 0000000000000000 x1 : 0000000000000cc0 x0 : ffff00000152a700
      [    1.521486] Call trace:
      [    1.528598]  __clk_register+0x48/0x780
      [    1.530855]  clk_hw_register+0x20/0x60
      [    1.534674]  devm_clk_hw_register+0x50/0xa8
      [    1.538408]  rpm_smd_clk_probe+0x1a4/0x260
      [    1.542488]  platform_probe+0x68/0xd8
      [    1.546653]  really_probe+0x140/0x2f8
      [    1.550386]  __driver_probe_device+0x78/0xe0
      [    1.554033]  driver_probe_device+0x80/0x110
      [    1.558373]  __device_attach_driver+0x90/0xe0
      [    1.562280]  bus_for_each_drv+0x78/0xc8
      [    1.566793]  __device_attach+0xf0/0x150
      [    1.570438]  device_initial_probe+0x14/0x20
      [    1.574259]  bus_probe_device+0x9c/0xa8
      [    1.578425]  device_add+0x378/0x870
      [    1.582243]  of_device_add+0x44/0x60
      [    1.585716]  of_platform_device_create_pdata+0xc0/0x110
      [    1.589538]  of_platform_bus_create+0x17c/0x388
      [    1.594485]  of_platform_populate+0x50/0xf0
      [    1.598998]  qcom_smd_rpm_probe+0xd4/0x128
      [    1.603164]  rpmsg_dev_probe+0xbc/0x1a8
      [    1.607330]  really_probe+0x140/0x2f8
      [    1.611063]  __driver_probe_device+0x78/0xe0
      [    1.614883]  driver_probe_device+0x80/0x110
      [    1.619224]  __device_attach_driver+0x90/0xe0
      [    1.623131]  bus_for_each_drv+0x78/0xc8
      [    1.627643]  __device_attach+0xf0/0x150
      [    1.631289]  device_initial_probe+0x14/0x20
      [    1.635109]  bus_probe_device+0x9c/0xa8
      [    1.639275]  device_add+0x378/0x870
      [    1.643095]  device_register+0x20/0x30
      [    1.646567]  rpmsg_register_device+0x54/0x90
      [    1.650387]  qcom_channel_state_worker+0x168/0x288
      [    1.654814]  process_one_work+0x1a0/0x328
      [    1.659415]  worker_thread+0x4c/0x420
      [    1.663494]  kthread+0x150/0x160
      [    1.667138]  ret_from_fork+0x10/0x18
      [    1.670442] Code: 97f56b92 b40034a0 aa0003f3 52819801 (f94002a0)
      [    1.674004] ---[ end trace 412fa6f47384cdfe ]---
      Fixes: a0384ecf
       ("clk: qcom: smd-rpm: De-duplicate identical entries")
      Signed-off-by: default avatarShawn Guo <>
      Signed-off-by: default avatarStephen Boyd <>
    • Randy Dunlap's avatar
      clk: hisilicon: hi3559a: select RESET_HISI · 953a92f0
      Randy Dunlap authored
      The clk-hi3559a driver uses functions from reset.c so it should
      select RESET_HISI to avoid build errors.
      Fixes these build errors:
      aarch64-linux-ld: drivers/clk/hisilicon/clk-hi3559a.o: in function `hi3559av100_crg_remove':
      clk-hi3559a.c:(.text+0x158): undefined reference to `hisi_reset_exit'
      aarch64-linux-ld: drivers/clk/hisilicon/clk-hi3559a.o: in function `hi3559av100_crg_probe':
      clk-hi3559a.c:(.text+0x1f4): undefined reference to `hisi_reset_init'
      aarch64-linux-ld: clk-hi3559a.c:(.text+0x238): undefined reference to `hisi_reset_exit'
      Fixes: 6c819661
       ("clk: hisilicon: Add clock driver for hi3559A SoC")
      Signed-off-by: default avatarRandy Dunlap <>
      Reported-by: default avatarkernel test robot <>
      Cc: Dongjiu Geng <>
      Cc: Stephen Boyd <>
      Cc: Michael Turquette <>
      Reviewed-by: default avatarDongjiu Geng <>
      Signed-off-by: default avatarStephen Boyd <>
    • Dario Binacchi's avatar
      clk: stm32f4: fix post divisor setup for I2S/SAI PLLs · 24b5b197
      Dario Binacchi authored
      Enabling the framebuffer leads to a system hang. Running, as a debug
      hack, the store_pan() function in drivers/video/fbdev/core/fbsysfs.c
      without taking the console_lock, allows to see the crash backtrace on
      the serial line.
      ~ # echo 0 0 > /sys/class/graphics/fb0/pan
      [    9.719414] Unhandled exception: IPSR = 00000005 LR = fffffff1
      [    9.726937] CPU: 0 PID: 49 Comm: sh Not tainted 5.13.0-rc5 #9
      [    9.733008] Hardware name: STM32 (Device Tree Support)
      [    9.738296] PC is at clk_gate_is_enabled+0x0/0x28
      [    9.743426] LR is at stm32f4_pll_div_set_rate+0xf/0x38
      [    9.748857] pc : [<0011e4be>]    lr : [<0011f9e3>]    psr: 0100000b
      [    9.755373] sp : 00bc7be0  ip : 00000000  fp : 001f3ac4
      [    9.760812] r10: 002610d0  r9 : 01efe920  r8 : 00540560
      [    9.766269] r7 : 02e7ddb0  r6 : 0173eed8  r5 : 00000000  r4 : 004027c0
      [    9.773081] r3 : 0011e4bf  r2 : 02e7ddb0  r1 : 0173eed8  r0 : 1d3267b8
      [    9.779911] xPSR: 0100000b
      [    9.782719] CPU: 0 PID: 49 Comm: sh Not tainted 5.13.0-rc5 #9
      [    9.788791] Hardware name: STM32 (Device Tree Support)
      [    9.794120] [<0000afa1>] (unwind_backtrace) from [<0000a33f>] (show_stack+0xb/0xc)
      [    9.802421] [<0000a33f>] (show_stack) from [<0000a8df>] (__invalid_entry+0x4b/0x4c)
      The `pll_num' field in the post_div_data configuration contained a wrong
      value which also referenced an uninitialized hardware clock when
      clk_register_pll_div() was called.
      Fixes: 517633ef
       ("clk: stm32f4: Add post divisor for I2S & SAI PLLs")
      Signed-off-by: default avatarDario Binacchi <>
      Reviewed-by: default avatarGabriel Fernandez <>
      Signed-off-by: default avatarStephen Boyd <>
  5. 11 Jul, 2021 11 commits
    • Linus Torvalds's avatar
      Linux 5.14-rc1 · e73f0f0e
      Linus Torvalds authored
    • Hugh Dickins's avatar
      mm/rmap: try_to_migrate() skip zone_device !device_private · 6c855fce
      Hugh Dickins authored
      I know nothing about zone_device pages and !device_private pages; but if
      try_to_migrate_one() will do nothing for them, then it's better that
      try_to_migrate() filter them first, than trawl through all their vmas.
      Signed-off-by: default avatarHugh Dickins <>
      Reviewed-by: default avatarShakeel Butt <>
      Reviewed-by: default avatarAlistair Popple <>
      Cc: Andrew Morton <>
      Cc: Jason Gunthorpe <>
      Cc: Ralph Campbell <>
      Cc: Christoph Hellwig <>
      Cc: Yang Shi <>
      Cc: Kirill A. Shutemov <>
      Signed-off-by: default avatarLinus Torvalds <>
    • Hugh Dickins's avatar
      mm/rmap: fix new bug: premature return from page_mlock_one() · 023e1a8d
      Hugh Dickins authored
      In the unlikely race case that page_mlock_one() finds VM_LOCKED has been
      cleared by the time it got page table lock, page_vma_mapped_walk_done()
      must be called before returning, either explicitly, or by a final call
      to page_vma_mapped_walk() - otherwise the page table remains locked.
      Fixes: cd62734c
       ("mm/rmap: split try_to_munlock from try_to_unmap")
      Signed-off-by: default avatarHugh Dickins <>
      Reviewed-by: default avatarAlistair Popple <>
      Reviewed-by: default avatarShakeel Butt <>
      Reported-by: default avatarkernel test robot <>
      Cc: Andrew Morton <>
      Cc: Jason Gunthorpe <>
      Cc: Ralph Campbell <>
      Cc: Christoph Hellwig <>
      Cc: Yang Shi <>
      Cc: Kirill A. Shutemov <>
      Signed-off-by: default avatarLinus Torvalds <>
    • Hugh Dickins's avatar
      mm/rmap: fix old bug: munlocking THP missed other mlocks · d9770fcc
      Hugh Dickins authored
      The kernel recovers in due course from missing Mlocked pages: but there
      was no point in calling page_mlock() (formerly known as
      try_to_munlock()) on a THP, because nothing got done even when it was
      found to be mapped in another VM_LOCKED vma.
      It's true that we need to be careful: Mlocked accounting of pte-mapped
      THPs is too difficult (so consistently avoided); but Mlocked accounting
      of only-pmd-mapped THPs is supposed to work, even when multiple mappings
      are mlocked and munlocked or munmapped.  Refine the tests.
      There is already a VM_BUG_ON_PAGE(PageDoubleMap) in page_mlock(), so
      page_mlock_one() does not even have to worry about that complication.
      (I said the kernel recovers: but would page reclaim be likely to split
      THP before rediscovering that it's VM_LOCKED? I've not followed that up)
      Fixes: 9a73f61b
       ("thp, mlock: do not mlock PTE-mapped file huge pages")
      Signed-off-by: default avatarHugh Dickins <>
      Reviewed-by: default avatarShakeel Butt <>
      Acked-by: default avatarKirill A. Shutemov <>
      Cc: Andrew Morton <>
      Cc: Alistair Popple <>
      Cc: Jason Gunthorpe <>
      Cc: Ralph Campbell <>
      Cc: Christoph Hellwig <>
      Cc: Yang Shi <>
      Signed-off-by: default avatarLinus Torvalds <>
    • Hugh Dickins's avatar
      mm/rmap: fix comments left over from recent changes · 64b586d1
      Hugh Dickins authored
      Parallel developments in mm/rmap.c have left behind some out-of-date
      comments: try_to_migrate_one() also accepts TTU_SYNC (already commented
      in try_to_migrate() itself), and try_to_migrate() returns nothing at
      TTU_SPLIT_FREEZE has just been deleted, so reword the comment about it
      in mm/huge_memory.c; and TTU_IGNORE_ACCESS was removed in 5.11, so
      delete the "recently referenced" comment from try_to_unmap_one() (once
      upon a time the comment was near the removed codeblock, but they drifted
      Signed-off-by: default avatarHugh Dickins <>
      Reviewed-by: default avatarShakeel Butt <>
      Reviewed-by: default avatarAlistair Popple <>
      Cc: Andrew Morton <>
      Cc: Jason Gunthorpe <>
      Cc: Ralph Campbell <>
      Cc: Christoph Hellwig <>
      Cc: Yang Shi <>
      Cc: Kirill A. Shutemov <>
      Signed-off-by: default avatarLinus Torvalds <>
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2021-07-11' of git:// · 98f7fdce
      Linus Torvalds authored
      Pull irq fixes from Ingo Molnar:
       "Two fixes:
         - Fix a MIPS IRQ handling RCU bug
         - Remove a DocBook annotation for a parameter that doesn't exist
      * tag 'irq-urgent-2021-07-11' of git://
        irqchip/mips: Fix RCU violation when using irqdomain lookup on interrupt entry
        genirq/irqdesc: Drop excess kernel-doc entry @lookup
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2021-07-11' of git:// · 877029d9
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Three fixes:
         - Fix load tracking bug/inconsistency
         - Fix a sporadic CFS bandwidth constraints enforcement bug
         - Fix a uclamp utilization tracking bug for newly woken tasks"
      * tag 'sched-urgent-2021-07-11' of git://
        sched/uclamp: Ignore max aggregation if rq is idle
        sched/fair: Fix CFS bandwidth hrtimer expiry type
        sched/fair: Sync load_sum with load_avg after dequeue
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2021-07-11' of git:// · 936b664f
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "A fix and a hardware-enablement addition:
         - Robustify uncore_snbep's skx_iio_set_mapping()'s error cleanup
         - Add cstate event support for Intel ICELAKE_X and ICELAKE_D"
      * tag 'perf-urgent-2021-07-11' of git://
        perf/x86/intel/uncore: Clean up error handling path of iio mapping
        perf/x86/cstate: Add ICELAKE_X and ICELAKE_D support
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2021-07-11' of git:// · 301c8b1d
      Linus Torvalds authored
      Pull locking fixes from Ingo Molnar:
       - Fix a Sparc crash
       - Fix a number of objtool warnings
       - Fix /proc/lockdep output on certain configs
       - Restore a kprobes fail-safe
      * tag 'locking-urgent-2021-07-11' of git://
        locking/atomic: sparc: Fix arch_cmpxchg64_local()
        kprobe/static_call: Restore missing static_call_text_reserved()
        static_call: Fix static_call_text_reserved() vs __init
        jump_label: Fix jump_label_text_reserved() vs __init
        locking/lockdep: Fix meaningless /proc/lockdep output of lock classes on !CONFIG_PROVE_LOCKING
    • Linus Torvalds's avatar
      Merge tag 'scsi-misc' of git:// · 8b9cc17a
      Linus Torvalds authored
      Pull more SCSI updates from James Bottomley:
       "This is a set of minor fixes and clean ups in the core and various
        The only core change in behaviour is the I/O retry for spinup notify,
        but that shouldn't impact anything other than the failing case"
      * tag 'scsi-misc' of git:// (23 commits)
        scsi: virtio_scsi: Add validation for residual bytes from response
        scsi: ipr: System crashes when seeing type 20 error
        scsi: core: Retry I/O for Notify (Enable Spinup) Required error
        scsi: mpi3mr: Fix warnings reported by smatch
        scsi: qedf: Add check to synchronize abort and flush
        scsi: MAINTAINERS: Add mpi3mr driver maintainers
        scsi: libfc: Fix array index out of bound exception
        scsi: mvsas: Use DEVICE_ATTR_RO()/RW() macro
        scsi: megaraid_mbox: Use DEVICE_ATTR_ADMIN_RO() macro
        scsi: qedf: Use DEVICE_ATTR_RO() macro
        scsi: qedi: Use DEVICE_ATTR_RO() macro
        scsi: message: mptfc: Switch from pci_ to dma_ API
        scsi: be2iscsi: Fix some missing space in some messages
        scsi: be2iscsi: Fix an error handling path in beiscsi_dev_probe()
        scsi: ufs: Fix build warning without CONFIG_PM
        scsi: bnx2fc: Remove meaningless bnx2fc_abts_cleanup() return value assignment
        scsi: qla2xxx: Add heartbeat check
        scsi: virtio_scsi: Do not overwrite SCSI status
        scsi: libsas: Add LUN number check in .slave_alloc callback
        scsi: core: Inline scsi_mq_alloc_queue()
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-for-v5.14-2021-07-10' of... · b1412bd7
      Linus Torvalds authored
      Merge tag 'perf-tools-for-v5.14-2021-07-10' of git://
      Pull more perf tool updates from Arnaldo Carvalho de Melo:
       "New features:
         - Enable use of BPF counters with 'perf stat --for-each-cgroup',
           using per-CPU 'cgroup-switch' events with an attached BPF program
           that does aggregation per-cgroup in the kernel instead of using
           per-cgroup perf events.
         - Add Topdown metrics L2 events as default events in 'perf stat' for
           systems having those events.
        Hardware tracing:
         - Add a config for max loops without consuming a packet in the Intel
           PT packet decoder, set via 'perf config intel-pt.max-loops=N'
        Hardware enablement:
         - Disable misleading NMI watchdog message in 'perf stat' on hybrid
           systems such as Intel Alder Lake.
         - Add a dummy event on hybrid systems to collect metadata records.
         - Add 24x7 nest metric events for the Power10 platform.
         - Fix event parsing for PMUs starting with the same prefix.
         - Fix the 'perf trace' 'trace' alias installation dir.
         - Fix buffer size to report iregs in perf script python scripts,
           supporting the extended registers in PowerPC.
         - Fix overflow in elf_sec__is_text().
         - Fix 's' on source line when disasm is empty in the annotation TUI,
           accessible via 'perf annotate', 'perf report' and 'perf top'.
         - Plug leaks in scandir() returned dirent entries in 'perf test' when
           sorting the shell tests.
         - Fix --task and --stat with pipe input in 'perf report'.
         - Fix 'perf probe' use of debuginfo files by build id.
         - If a DSO has both dynsym and symtab ELF sections, read from both
           when loading the symbol table, fixing a problem processing Fedora
           32 glibc DSOs.
         - Add grouping of events to libperf, from code in tools/perf,
           allowing libperf users to use that mode.
         - Filter plt stubs from the 'perf probe --functions' output.
         - Update UAPI header copies for asound, DRM, mman-common.h and the
           ones affected by the quotactl_fd syscall"
      * tag 'perf-tools-for-v5.14-2021-07-10' of git:// (29 commits)
        perf test: Add free() calls for scandir() returned dirent entries
        libperf: Add tests for perf_evlist__set_leader()
        libperf: Remove BUG_ON() from library code in get_group_fd()
        libperf: Add group support to perf_evsel__open()
        perf tools: Fix pattern matching for same substring in different PMU type
        perf record: Add a dummy event on hybrid systems to collect metadata records
        perf stat: Add Topdown metrics L2 events as default events
        libperf: Adopt evlist__set_leader() from tools/perf as perf_evlist__set_leader()
        libperf: Move 'nr_groups' from tools/perf to evlist::nr_groups
        libperf: Move 'leader' from tools/perf to perf_evsel::leader
        libperf: Move 'idx' from tools/perf to perf_evsel::idx
        libperf: Change tests to single static and shared binaries
        perf intel-pt: Add a config for max loops without consuming a packet
        perf stat: Disable the NMI watchdog message on hybrid
        perf vendor events power10: Adds 24x7 nest metric events for power10 platform
        perf script python: Fix buffer size to report iregs in perf script
        perf trace: Fix the perf trace link location
        perf top: Fix overflow in elf_sec__is_text()
        perf annotate: Fix 's' on source line when disasm is empty
        perf probe: Do not show @plt function by default
  6. 10 Jul, 2021 19 commits
    • Linus Torvalds's avatar
      Merge tag 'rtc-5.14' of git:// · de554096
      Linus Torvalds authored
      Pull RTC updates from Alexandre Belloni:
       "Mostly documentation/comment changes and non urgent fixes.
         - add or fix SPDX identifiers
         - NXP pcf*: fix datasheet URLs
         - imxdi: add wakeup support
         - pcf2127: handle timestamp interrupts, this fixes a possible
           interrupt storm
         - bd70528: Drop BD70528 support"
      * tag 'rtc-5.14' of git:// (33 commits)
        rtc: pcf8523: rename register and bit defines
        rtc: pcf2127: handle timestamp interrupts
        rtc: at91sam9: Remove unnecessary offset variable checks
        rtc: s5m: Check return value of s5m_check_peding_alarm_interrupt()
        rtc: spear: convert to SPDX identifier
        rtc: tps6586x: convert to SPDX identifier
        rtc: tps80031: convert to SPDX identifier
        rtc: rtd119x: Fix format of SPDX identifier
        rtc: sc27xx: Fix format of SPDX identifier
        rtc: palmas: convert to SPDX identifier
        rtc: max6900: convert to SPDX identifier
        rtc: ds1374: convert to SPDX identifier
        rtc: au1xxx: convert to SPDX identifier
        rtc: pcf85063: Update the PCF85063A datasheet revision
        dt-bindings: rtc: ti,bq32k: take maintainership
        rtc: pcf8563: Fix the datasheet URL
        rtc: pcf85063: Fix the datasheet URL
        rtc: pcf2127: Fix the datasheet URL
        dt-bindings: rtc: ti,bq32k: Convert to json-schema
        dt-bindings: rtc: rx8900: Convert to YAML schema
    • Mel Gorman's avatar
      mm/page_alloc: Revert pahole zero-sized workaround · 6bce2443
      Mel Gorman authored
      Commit dbbee9d5 ("mm/page_alloc: convert per-cpu list protection to
      local_lock") folded in a workaround patch for pahole that was unable to
      deal with zero-sized percpu structures.
      A superior workaround is achieved with commit a0b8200d ("kbuild:
      skip per-CPU BTF generation for pahole v1.18-v1.21").
      This patch reverts the dummy field and the pahole version check.
      Fixes: dbbee9d5
       ("mm/page_alloc: convert per-cpu list protection to local_lock")
      Signed-off-by: default avatarMel Gorman <>
      Signed-off-by: default avatarLinus Torvalds <>
    • Alexandre Belloni's avatar
      rtc: pcf8523: rename register and bit defines · 4aa90c03
      Alexandre Belloni authored
      arch/arm/mach-ixp4xx/include/mach/platform.h now gets included indirectly
      and defines REG_OFFSET. Rename the register and bit definition to something
      specific to the driver.
      Fixes: 7fd70c65
       ("ARM: irqstat: Get rid of duplicated declaration")
      Reported-by: default avatarkernel test robot <>
      Signed-off-by: default avatarAlexandre Belloni <>
    • Linus Torvalds's avatar
      Merge tag '5.14-rc-smb3-fixes-part2' of git:// · 1e16624d
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "13 cifs/smb3 fixes. Most are to address minor issues pointed out by
        Also includes a packet signing enhancement and mount improvement"
      * tag '5.14-rc-smb3-fixes-part2' of git://
        cifs: update internal version number
        cifs: prevent NULL deref in cifs_compose_mount_options()
        SMB3.1.1: Add support for negotiating signing algorithm
        cifs: use helpers when parsing uid/gid mount options and validate them
        CIFS: Clarify SMB1 code for POSIX Lock
        CIFS: Clarify SMB1 code for rename open file
        CIFS: Clarify SMB1 code for delete
        CIFS: Clarify SMB1 code for SetFileSize
        smb3: fix typo in header file
        CIFS: Clarify SMB1 code for UnixSetPathInfo
        CIFS: Clarify SMB1 code for UnixCreateSymLink
        cifs: clarify SMB1 code for UnixCreateHardLink
        cifs: make locking consistent around the server session status
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.14-fixes-1' of git:// · 67d8d365
      Linus Torvalds authored
      Pull pci fix from Bjorn Helgaas:
       "Revert host bridge window patch that fixed HP EliteDesk 805 G6, but
        broke ppc:sam460ex (Bjorn Helgaas)"
      * tag 'pci-v5.14-fixes-1' of git://
        Revert "PCI: Coalesce host bridge contiguous apertures"
    • Linus Torvalds's avatar
      Merge tag 'i3c/for-5.14' of git:// · 88bbd8a0
      Linus Torvalds authored
      Pull i3c updates from Alexandre Belloni:
       - two small fixes to the svc driver
      * tag 'i3c/for-5.14' of git://
        i3c: master: svc: fix doc warning in svc-i3c-master.c
        i3c: master: svc: drop free_irq of devm_request_irq allocated irq
    • Linus Torvalds's avatar
      Merge tag 'thermal-v5.14-rc1' of git:// · f7ea4be4
      Linus Torvalds authored
      Pull thermal updates from Daniel Lezcano:
       - Add rk3568 sensor support (Finley Xiao)
       - Add missing MODULE_DEVICE_TABLE for the Spreadtrum sensor (Chunyan
       - Export additionnal attributes for the int340x thermal processor
         (Srinivas Pandruvada)
       - Add SC7280 compatible for the tsens driver (Rajeshwari Ravindra
       - Fix kernel documentation for thermal_zone_device_unregister() and use
         devm_platform_get_and_ioremap_resource() (Yang Yingliang)
       - Fix coefficient calculations for the rcar_gen3 sensor driver (Niklas
       - Fix shadowing variable rcar_gen3_ths_tj_1 (Geert Uytterhoeven)
       - Add missing of_node_put() for the iMX and Spreadtrum sensors
         (Krzysztof Kozlowski)
       - Add tegra3 thermal sensor DT bindings (Dmitry Osipenko)
       - Stop the thermal zone monitoring when unregistering it to prevent a
         temperature update without the 'get_temp' callback (Dmitry Osipenko)
       - Add rk3568 DT bindings, convert bindings to yaml schemas and add the
         corresponding compatible in the Rockchip sensor (Ezequiel Garcia)
       - Add the sc8180x compatible for the Qualcomm tsensor (Bjorn Andersson)
       - Use the find_first_zero_bit() function instead of custom code (Andy
       - Fix the kernel doc for the device cooling device (Yang Li)
       - Reorg the processor thermal int340x to set the scene for the PCI mmio
         driver (Srinivas Pandruvada)
       - Add PCI MMIO driver for the int340x processor thermal driver
         (Srinivas Pandruvada)
       - Add hwmon sensors for the mediatek sensor (Frank Wunderlich)
       - Fix warning for return value reported by Smatch for the int340x
         thermal processor (Srinivas Pandruvada)
       - Fix wrong register access and decoding for the int340x thermal
         processor (Srinivas Pandruvada)
      * tag 'thermal-v5.14-rc1' of git:// (23 commits)
        thermal/drivers/int340x/processor_thermal: Fix tcc setting
        thermal/drivers/int340x/processor_thermal: Fix warning for return value
        thermal/drivers/mediatek: Add sensors-support
        thermal/drivers/int340x/processor_thermal: Add PCI MMIO based thermal driver
        thermal/drivers/int340x/processor_thermal: Split enumeration and processing part
        thermal: devfreq_cooling: Fix kernel-doc
        thermal/drivers/intel/intel_soc_dts_iosf: Switch to use find_first_zero_bit()
        dt-bindings: thermal: tsens: Add sc8180x compatible
        dt-bindings: rockchip-thermal: Support the RK3568 SoC compatible
        dt-bindings: thermal: convert rockchip-thermal to json-schema
        thermal/core/thermal_of: Stop zone device before unregistering it
        dt-bindings: thermal: Add binding for Tegra30 thermal sensor
        thermal/drivers/sprd: Add missing of_node_put for loop iteration
        thermal/drivers/imx_sc: Add missing of_node_put for loop iteration
        thermal/drivers/rcar_gen3_thermal: Do not shadow rcar_gen3_ths_tj_1
        thermal/drivers/rcar_gen3_thermal: Fix coefficient calculations
        thermal/drivers/st: Use devm_platform_get_and_ioremap_resource()
        thermal/core: Correct function name thermal_zone_device_unregister()
        dt-bindings: thermal: tsens: Add compatible string to TSENS binding for SC7280
        thermal/drivers/int340x: processor_thermal: Export additional attributes
    • Linus Torvalds's avatar
      Merge tag 'kbuild-v5.14' of git:// · 81361b83
      Linus Torvalds authored
      Pull Kbuild updates from Masahiro Yamada:
       - Increase the -falign-functions alignment for the debug option.
       - Remove ugly libelf checks from the top Makefile.
       - Make the silent build (-s) more silent.
       - Re-compile the kernel if KBUILD_BUILD_TIMESTAMP is specified.
       - Various script cleanups
      * tag 'kbuild-v5.14' of git:// (27 commits)
        scripts: add generic
        scripts: check duplicated syscall number in syscall table
        sparc: syscalls: use pattern rules to generate syscall headers
        parisc: syscalls: use pattern rules to generate syscall headers
        nds32: add arch/nds32/boot/.gitignore
        kbuild: mkcompile_h: consider timestamp if KBUILD_BUILD_TIMESTAMP is set
        kbuild: modpost: Explicitly warn about unprototyped symbols
        kbuild: remove trailing slashes from $(KBUILD_EXTMOD)
        kconfig.h: explain IS_MODULE(), IS_ENABLED()
        kconfig: constify long_opts
        scripts/setlocalversion: simplify the short version part
        scripts/setlocalversion: factor out 12-chars hash construction
        scripts/setlocalversion: add more comments to -dirty flag detection
        scripts/setlocalversion: remove workaround for old make-kpkg
        scripts/setlocalversion: remove mercurial, svn and git-svn supports
        kbuild: clean up ${quiet} checks in shell scripts
        kbuild: sink stdout from cmd for silent build
        init: use $(call cmd,) for generating include/generated/compile.h
        kbuild: merge scripts/mkmakefile to top Makefile
        sh: move core-y in arch/sh/Makefile to arch/sh/Kbuild
    • Linus Torvalds's avatar
      Merge tag 's390-5.14-2' of git:// · e98e03d0
      Linus Torvalds authored
      Pull more s390 updates from Vasily Gorbik:
       - Fix preempt_count initialization.
       - Rework call_on_stack() macro to add proper type handling and avoid
         possible register corruption.
       - More error prone "register asm" removal and fixes.
       - Fix syscall restarting when multiple signals are coming in. This adds
         minimalistic trampolines to vdso so we can return from signal without
         using the stack which requires pgm check handler hacks when NX is
       - Remove HAVE_IRQ_EXIT_ON_IRQ_STACK since this is no longer true after
         switch to generic entry.
       - Fix protected virtualization secure storage access exception
       - Make machine check C handler always enter with DAT enabled and move
         register validation to C code.
       - Fix tinyconfig boot problem by avoiding MONITOR CALL without
       - Increase asm symbols alignment to 16 to make it consistent with
       - Enable concurrent access to the CPU Measurement Counter Facility.
       - Add support for dynamic AP bus size limit and rework ap_dqap to deal
         with messages greater than recv buffer.
      * tag 's390-5.14-2' of git:// (41 commits)
        s390: preempt: Fix preempt_count initialization
        s390/linkage: increase asm symbols alignment to 16
        s390: rename CALL_ON_STACK_NORETURN() to call_on_stack_noreturn()
        s390: add type checking to CALL_ON_STACK_NORETURN() macro
        s390: remove old CALL_ON_STACK() macro
        s390/softirq: use call_on_stack() macro
        s390/lib: use call_on_stack() macro
        s390/smp: use call_on_stack() macro
        s390/kexec: use call_on_stack() macro
        s390/irq: use call_on_stack() macro
        s390/mm: use call_on_stack() macro
        s390: introduce proper type handling call_on_stack() macro
        s390/irq: simplify on_async_stack()
        s390/irq: inline do_softirq_own_stack()
        s390/irq: simplify do_softirq_own_stack()
        s390/ap: get rid of register asm in ap_dqap()
        s390: move restart of execve() syscall
        s390/signal: remove sigreturn on stack
        s390/signal: switch to using vdso for sigreturn and syscall restart
    • Linus Torvalds's avatar
      Merge tag 'mips_5.14_1' of git:// · 379cf80a
      Linus Torvalds authored
      Pull MIPS fixes from Thomas Bogendoerfer:
       - fix for accesing gic via vdso
       - two build fixes
      * tag 'mips_5.14_1' of git://
        MIPS: vdso: Invalid GIC access through VDSO
        mips: disable branch profiling in boot/decompress.o
        mips: always link byteswap helpers into decompressor
    • Linus Torvalds's avatar
      Merge tag 'arm-defconfig-5.14' of git:// · af4cf6a5
      Linus Torvalds authored
      Pull ARM defconfig updates from "Olof Johansson
       "A set of defconfig changes, we keep them in a separate branch to avoid
        conflicts between topics by separating them out.
        These changes are almost exclusively turning on new drivers for
        various platforms, or turning on modules for new drivers for the
        shared generic configs"
      * tag 'arm-defconfig-5.14' of git:// (22 commits)
        arm64: defconfig: Enable renesas usb xhci pci host controller
        arm64: defconfig: Visconti: Enable GPIO
        arm64: defconfig: Visconti: Enable PWM
        arm64: defconfig: add drivers needed for DragonBoard410c
        ARM: config: aspeed: Add DEBUG_FS and EXT4
        ARM: ixp4xx_defconfig: add MTD_PHYSMAP
        ARM: ixp4xx_defconfig: add CONFIG_SERIAL_OF_PLATFORM
        ARM: imx_v6_v7_defconfig: Select the Wifi ath10k sdio driver
        ARM: exynos_defconfig: restore framebuffer support
        arm64: defconfig: Enable ARCH_R9A07G044
        ARM: configs: at91_dt_defconfig: configs for sam9x60
        arm64: defconfig: Enable Exynos UFS driver
        arm64: defconfig: qcom: enable interconnect for SM8350
        ARM: tegra_defconfig: Enable CONFIG_DEVFREQ_THERMAL
        arm64: defconfig: Enable usb2_clksel for R-Car Gen3 and RZ/G2
        arm64: defconfig: enable Layerscape EDAC driver
        ARM: omap2plus_defconfig: Add LP5523 LED driver
        ARM: omap2plus_defconfig: Add WL1251 and WEXT modules
        ARM: shmobile: defconfig: Refresh for v5.13-rc1
        arm64: defconfig: Allow Mediatek boards to boot from the mmc
    • Linus Torvalds's avatar
      Merge tag 'arm-drivers-5.14' of git:// · 071e5ace
      Linus Torvalds authored
      Pull ARM driver updates from Olof Johansson:
       - Reset controllers: Adding support for Microchip Sparx5 Switch.
       - Memory controllers: ARM Primecell PL35x SMC memory controller driver
         cleanups and improvements.
       - i.MX SoC drivers: Power domain support for i.MX8MM and i.MX8MN.
       - Rockchip: RK3568 power domains support + DT binding updates,
       - Qualcomm SoC drivers: Amend socinfo with more SoC/PMIC details,
         including support for MSM8226, MDM9607, SM6125 and SC8180X.
       - ARM FFA driver: "Firmware Framework for ARMv8-A", defining management
         interfaces and communication (including bus model) between partitions
         both in Normal and Secure Worlds.
       - Tegra Memory controller changes, including major rework to deal with
         identity mappings at boot and integration with ARM SMMU pieces.
      * tag 'arm-drivers-5.14' of git:// (120 commits)
        firmware: turris-mox-rwtm: add marvell,armada-3700-rwtm-firmware compatible string
        firmware: turris-mox-rwtm: show message about HWRNG registration
        firmware: turris-mox-rwtm: fail probing when firmware does not support hwrng
        firmware: turris-mox-rwtm: report failures better
        firmware: turris-mox-rwtm: fix reply status decoding function
        soc: imx: gpcv2: add support for i.MX8MN power domains
        dt-bindings: add defines for i.MX8MN power domains
        firmware: tegra: bpmp: Fix Tegra234-only builds
        iommu/arm-smmu: Use Tegra implementation on Tegra186
        iommu/arm-smmu: tegra: Implement SID override programming
        iommu/arm-smmu: tegra: Detect number of instances at runtime
        dt-bindings: arm-smmu: Add Tegra186 compatible string
        firmware: qcom_scm: Add MDM9607 compatible
        soc: qcom: rpmpd: Add MDM9607 RPM Power Domains
        soc: renesas: Add support to read LSI DEVID register of RZ/G2{L,LC} SoC's
        soc: renesas: Add ARCH_R9A07G044 for the new RZ/G2L SoC's
        dt-bindings: soc: rockchip: drop unnecessary #phy-cells from grf.yaml
        memory: emif: remove unused frequency and voltage notifiers
        memory: fsl_ifc: fix leak of private memory on probe failure
        memory: fsl_ifc: fix leak of IO mapping on probe failure
    • Linus Torvalds's avatar
      Merge tag 'arm-dt-5.14' of git:// · e083bbd6
      Linus Torvalds authored
      Pull ARM devicetree updates from Olof Johansson:
       "Like always, the DT branch is sizable. There are numerous additions
        and fixes to existing platforms, but also a handful of new ones
        introduced. Less than some other releases, but there's been
        significant work on cleanups, refactorings and device enabling on
        existing platforms.
        A non-exhaustive list of new material:
         - Refactoring of BCM2711 dtsi structure to add support for the
           Raspberry Pi 400
         - Rockchip: RK3568 SoC and EVB, video codecs for
         - Qualcomm: SA8155p Automotive platform (SM8150 derivative),
           SM8150/8250 enhancements and support for Sony Xperia 1/1II and
         - TI K3: PCI/USB3 support on AM64-sk boards, R5 remoteproc
         - TI OMAP: Various cleanups
         - Tegra: Audio support for Jetson Xavier NX, SMMU support on Tegra194
         - Qualcomm: lots of additions for peripherals across several SoCs,
           and new support for Microsoft Surface Duo (SM8150-based), Huawei
           Ascend G7.
         - i.MX: Numerous additions of features across SoCs and boards.
         - Allwinner: More device bindings for V3s, Forlinx OKA40i-C and
           NanoPi R1S H5 boards
         - MediaTek: More device bindings for mt8167, new Chromebook system
           variants for mt8183
         - Renesas: RZ/G2L SoC and EVK added
         - Amlogic: BananaPi BPI-M5 board added"
      * tag 'arm-dt-5.14' of git:// (511 commits)
        arm64: dts: rockchip: add basic dts for RK3568 EVB
        arm64: dts: rockchip: add core dtsi for RK3568 SoC
        arm64: dts: rockchip: add generic pinconfig settings used by most Rockchip socs
        ARM: dts: rockchip: add vpu and vdec node for RK322x
        ARM: dts: rockchip: add vpu nodes for RK3066 and RK3188
        ARM: dts: rockchip: add vpu node for RK3036
        arm64: dts: ipq8074: Add QUP6 I2C node
        arm64: dts: rockchip: Re-add regulator-always-on for vcc_sdio for rk3399-roc-pc
        arm64: dts: rockchip: Re-add regulator-boot-on, regulator-always-on for vdd_gpu on rk3399-roc-pc
        arm64: dts: rockchip: add ir-receiver for rk3399-roc-pc
        arm64: dts: rockchip: Add USB-C port details for rk3399 Firefly
        arm64: dts: rockchip: Sort rk3399 firefly pinmux entries
        arm64: dts: rockchip: add infrared receiver node to RK3399 Firefly
        arm64: dts: rockchip: add SPDIF node for rk3399-firefly
        arm64: dts: rockchip: Add Rotation Property for OGA Panel
        arm64: dts: qcom: sc7180: bus votes for eMMC and SD card
        arm64: dts: qcom: sm8250-edo: Add Samsung touchscreen
        arm64: dts: qcom: sm8250-edo: Enable GPI DMA
        arm64: dts: qcom: sm8250-edo: Enable ADSP/CDSP/SLPI
        arm64: dts: qcom: sm8250-edo: Enable PCIe
    • Linus Torvalds's avatar
      Merge tag 'arm-soc-5.14' of git:// · 6e207b88
      Linus Torvalds authored
      Pull ARM SoC updates from Olof Johansson:
       "A few SoC (code) changes have queued up this cycle, mostly for minor
        changes and some refactoring and cleanup of legacy platforms. This
        branch also contains a few of the fixes that weren't sent in by the
        end of the release (all fairly minor).
         - Adding an additional maintainer for the TEE subsystem (Sumit Garg)
         - Quite a significant modernization of the IXP4xx platforms by Linus
           Walleij, revisiting with a new PCI host driver/binding, removing
           legacy mach/* include dependencies and moving platform
           detection/config to drivers/soc. Also some updates/cleanup of
           platform data.
         - Core power domain support for Tegra platforms, and some
           improvements in build test coverage by adding stubs for compile
           test targets.
         - A handful of updates to i.MX platforms, adding legacy (non-PSCI)
           SMP support on i.MX7D, SoC ID setup for i.MX50, removal of platform
           data and board fixups for iMX6/7.
        ... and a few smaller changes and fixes for Samsung, OMAP, Allwinner,
      * tag 'arm-soc-5.14' of git:// (53 commits)
        MAINTAINERS: Add myself as TEE subsystem reviewer
        ixp4xx: fix spelling mistake in Kconfig "Devce" -> "Device"
        hw_random: ixp4xx: Add OF support
        hw_random: ixp4xx: Add DT bindings
        hw_random: ixp4xx: Turn into a module
        hw_random: ixp4xx: Use SPDX license tag
        hw_random: ixp4xx: enable compile-testing
        pata: ixp4xx: split platform data to its own header
        soc: ixp4xx: move cpu detection to linux/soc/ixp4xx/cpu.h
        PCI: ixp4xx: Add a new driver for IXP4xx
        PCI: ixp4xx: Add device tree bindings for IXP4xx
        ARM/ixp4xx: Make NEED_MACH_IO_H optional
        ARM/ixp4xx: Move the virtual IObases
        MAINTAINERS: ARM/MStar/Sigmastar SoCs: Add a link to the MStar tree
        ARM: debug: add UART early console support for MSTAR SoCs
        ARM: dts: ux500: Fix LED probing
        ARM: imx: add smp support for imx7d
        ARM: imx6q: drop of_platform_default_populate() from init_machine
        arm64: dts: rockchip: Update RK3399 PCI host bridge window to 32-bit address memory
        soc/tegra: fuse: Fix Tegra234-only builds
    • Linus Torvalds's avatar
      Merge tag 'fixes-2021-07-09' of git:// · b6fd9e25
      Linus Torvalds authored
      Pull memblock fix from Mike Rapoport:
       "This is a fix for the rework of ARM's pfn_valid() implementation
        merged during this merge window.
        Don't abuse pfn_valid() to check if pfn is in RAM
        The semantics of pfn_valid() is to check presence of the memory map
        for a PFN and not whether a PFN is in RAM. The memory map may be
        present for a hole in the physical memory and if such hole corresponds
        to an MMIO range, __arm_ioremap_pfn_caller() will produce a WARN() and
        Use memblock_is_map_memory() instead of pfn_valid() to check if a PFN
        is in RAM or not"
      * tag 'fixes-2021-07-09' of git://
        arm: ioremap: don't abuse pfn_valid() to check if pfn is in RAM
    • Linus Torvalds's avatar
      Merge branch 'for-5.14-fixes' of git:// · 20d5e570
      Linus Torvalds authored
      Pull percpu fix from Dennis Zhou:
       "This is just a single change to fix percpu depopulation. The code
        relied on depopulation code written specifically for the free path and
        relied on vmalloc to do the tlb flush lazily. As we're modifying the
        backing pages during the lifetime of a chunk, we need to also flush
        the tlb accordingly.
        Guenter Roeck reported this issue in [1] on mips. I believe we just
        happen to be lucky given the much larger chunk sizes on x86 and
        consequently less churning of this memory"
      Link: [1]
      * 'for-5.14-fixes' of git://
        percpu: flush tlb in pcpu_reclaim_populated()
    • Mian Yousaf Kaukab's avatar
      rtc: pcf2127: handle timestamp interrupts · 2f861984
      Mian Yousaf Kaukab authored
      commit 03623b4b
       ("rtc: pcf2127: add tamper detection support")
      added support for timestamp interrupts. However they are not being
      handled in the irq handler. If a timestamp interrupt occurs it
      results in kernel disabling the interrupt and displaying the call
      [  121.145580] irq 78: nobody cared (try booting with the "irqpoll" option)
      [  121.238087] [<00000000c4d69393>] irq_default_primary_handler threaded [<000000000a90d25b>] pcf2127_rtc_irq [rtc_pcf2127]
      [  121.248971] Disabling IRQ #78
      Handle timestamp interrupts in pcf2127_rtc_irq(). Save time stamp
      before clearing TSF1 and TSF2 flags so that it can't be overwritten.
      Set a flag to mark if the timestamp is valid and only report to sysfs
      if the flag is set. To mimic the hardware behavior, don’t save
      another timestamp until the first one has been read by the userspace.
      However, if the alarm irq is not configured, keep the old way of
      handling timestamp interrupt in the timestamp0 sysfs calls.
      Signed-off-by: default avatarMian Yousaf Kaukab <>
      Reviewed-by: default avatarBruno Thomsen <>
      Tested-by: default avatarBruno Thomsen <>
      Signed-off-by: default avatarAlexandre Belloni <>
    • Nobuhiro Iwamatsu's avatar
      rtc: at91sam9: Remove unnecessary offset variable checks · 37aadf9b
      Nobuhiro Iwamatsu authored
      The offset variable is checked by at91_rtc_readalarm(), but this check
      is unnecessary because the previous check knew that the value of this
      variable was not 0.
      This removes that unnecessary offset variable checks.
      Cc: Nicolas Ferre <>
      Cc: Ludovic Desroches <>
      Signed-off-by: default avatarNobuhiro Iwamatsu <>
      Acked-by: default avatarNicolas Ferre <>
      Signed-off-by: default avatarAlexandre Belloni <>
    • Nobuhiro Iwamatsu's avatar
      rtc: s5m: Check return value of s5m_check_peding_alarm_interrupt() · f2581b1d
      Nobuhiro Iwamatsu authored
      s5m_check_peding_alarm_interrupt() in s5m_rtc_read_alarm() gets the return
      value, but doesn't use it.
      This modifies using the s5m_check_peding_alarm_interrupt()"s return value
      as the s5m_rtc_read_alarm()'s return value.
      Cc: Krzysztof Kozlowski <>
      Cc: Bartlomiej Zolnierkiewicz <>
      Signed-off-by: default avatarNobuhiro Iwamatsu <>
      Reviewed-by: default avatarKrzysztof Kozlowski <>
      Signed-off-by: default avatarAlexandre Belloni <>
  7. 09 Jul, 2021 2 commits