1. 14 Apr, 2022 8 commits
  2. 12 Apr, 2022 1 commit
    • Nathan Chancellor's avatar
      drm/msm/gpu: Avoid -Wunused-function with !CONFIG_PM_SLEEP · 390d6458
      Nathan Chancellor authored
      When building with CONFIG_PM=y and CONFIG_PM_SLEEP=n (such as ARCH=riscv
      allmodconfig), the following warnings/errors occur:
      
        drivers/gpu/drm/msm/adreno/adreno_device.c:679:12: error: 'adreno_system_resume' defined but not used [-Werror=unused-function]
          679 | static int adreno_system_resume(struct device *dev)
              |            ^~~~~~~~~~~~~~~~~~~~
        drivers/gpu/drm/msm/adreno/adreno_device.c:655:12: error: 'adreno_system_suspend' defined but not used [-Werror=unused-function]
          655 | static int adreno_system_suspend(struct device *dev)
              |            ^~~~~~~~~~~~~~~~~~~~~
        cc1: all warnings being treated as errors
      
      These functions are only used in SET_SYSTEM_SLEEP_PM_OPS(), which
      evaluates to empty when CONFIG_PM_SLEEP is not set, making these
      functions unused.
      
      To resolve this, use the SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS()
      macros, which were introduced in commit 1a3c7bb0 ("PM: core: Add new
      *_PM_OPS macros, deprecate old ones"). They are designed to avoid these
      compiler warnings while still guarding their use on
      CONFIG_PM{,_SLEEP}=y.
      
      Fixes: 7e4167c9 ("drm/msm/gpu: Park scheduler threads for system suspend")
      Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
      Link: https://lore.kernel.org/r/20220411181249.2758344-1-nathan@kernel.orgSigned-off-by: default avatarRob Clark <robdclark@chromium.org>
      390d6458
  3. 11 Apr, 2022 7 commits
    • Kuogee Hsieh's avatar
      drm/msm/dp: add fail safe mode outside of event_mutex context · 8b2c181e
      Kuogee Hsieh authored
      There is possible circular locking dependency detected on event_mutex
      (see below logs). This is due to set fail safe mode is done at
      dp_panel_read_sink_caps() within event_mutex scope. To break this
      possible circular locking, this patch move setting fail safe mode
      out of event_mutex scope.
      
      [   23.958078] ======================================================
      [   23.964430] WARNING: possible circular locking dependency detected
      [   23.970777] 5.17.0-rc2-lockdep-00088-g05241de1 #148 Not tainted
      [   23.977219] ------------------------------------------------------
      [   23.983570] DrmThread/1574 is trying to acquire lock:
      [   23.988763] ffffff808423aab0 (&dp->event_mutex){+.+.}-{3:3}, at: msm_dp_displ                                                                             ay_enable+0x58/0x164
      [   23.997895]
      [   23.997895] but task is already holding lock:
      [   24.003895] ffffff808420b280 (&kms->commit_lock[i]/1){+.+.}-{3:3}, at: lock_c                                                                             rtcs+0x80/0x8c
      [   24.012495]
      [   24.012495] which lock already depends on the new lock.
      [   24.012495]
      [   24.020886]
      [   24.020886] the existing dependency chain (in reverse order) is:
      [   24.028570]
      [   24.028570] -> #5 (&kms->commit_lock[i]/1){+.+.}-{3:3}:
      [   24.035472]        __mutex_lock+0xc8/0x384
      [   24.039695]        mutex_lock_nested+0x54/0x74
      [   24.044272]        lock_crtcs+0x80/0x8c
      [   24.048222]        msm_atomic_commit_tail+0x1e8/0x3d0
      [   24.053413]        commit_tail+0x7c/0xfc
      [   24.057452]        drm_atomic_helper_commit+0x158/0x15c
      [   24.062826]        drm_atomic_commit+0x60/0x74
      [   24.067403]        drm_mode_atomic_ioctl+0x6b0/0x908
      [   24.072508]        drm_ioctl_kernel+0xe8/0x168
      [   24.077086]        drm_ioctl+0x320/0x370
      [   24.081123]        drm_compat_ioctl+0x40/0xdc
      [   24.085602]        __arm64_compat_sys_ioctl+0xe0/0x150
      [   24.090895]        invoke_syscall+0x80/0x114
      [   24.095294]        el0_svc_common.constprop.3+0xc4/0xf8
      [   24.100668]        do_el0_svc_compat+0x2c/0x54
      [   24.105242]        el0_svc_compat+0x4c/0xe4
      [   24.109548]        el0t_32_sync_handler+0xc4/0xf4
      [   24.114381]        el0t_32_sync+0x178
      [   24.118688]
      [   24.118688] -> #4 (&kms->commit_lock[i]){+.+.}-{3:3}:
      [   24.125408]        __mutex_lock+0xc8/0x384
      [   24.129628]        mutex_lock_nested+0x54/0x74
      [   24.134204]        lock_crtcs+0x80/0x8c
      [   24.138155]        msm_atomic_commit_tail+0x1e8/0x3d0
      [   24.143345]        commit_tail+0x7c/0xfc
      [   24.147382]        drm_atomic_helper_commit+0x158/0x15c
      [   24.152755]        drm_atomic_commit+0x60/0x74
      [   24.157323]        drm_atomic_helper_set_config+0x68/0x90
      [   24.162869]        drm_mode_setcrtc+0x394/0x648
      [   24.167535]        drm_ioctl_kernel+0xe8/0x168
      [   24.172102]        drm_ioctl+0x320/0x370
      [   24.176135]        drm_compat_ioctl+0x40/0xdc
      [   24.180621]        __arm64_compat_sys_ioctl+0xe0/0x150
      [   24.185904]        invoke_syscall+0x80/0x114
      [   24.190302]        el0_svc_common.constprop.3+0xc4/0xf8
      [   24.195673]        do_el0_svc_compat+0x2c/0x54
      [   24.200241]        el0_svc_compat+0x4c/0xe4
      [   24.204544]        el0t_32_sync_handler+0xc4/0xf4
      [   24.209378]        el0t_32_sync+0x174/0x178
      [   24.213680] -> #3 (crtc_ww_class_mutex){+.+.}-{3:3}:
      [   24.220308]        __ww_mutex_lock.constprop.20+0xe8/0x878
      [   24.225951]        ww_mutex_lock+0x60/0xd0
      [   24.230166]        modeset_lock+0x190/0x19c
      [   24.234467]        drm_modeset_lock+0x34/0x54
      [   24.238953]        drmm_mode_config_init+0x550/0x764
      [   24.244065]        msm_drm_bind+0x170/0x59c
      [   24.248374]        try_to_bring_up_master+0x244/0x294
      [   24.253572]        __component_add+0xf4/0x14c
      [   24.258057]        component_add+0x2c/0x38
      [   24.262273]        dsi_dev_attach+0x2c/0x38
      [   24.266575]        dsi_host_attach+0xc4/0x120
      [   24.271060]        mipi_dsi_attach+0x34/0x48
      [   24.275456]        devm_mipi_dsi_attach+0x28/0x68
      [   24.280298]        ti_sn_bridge_probe+0x2b4/0x2dc
      [   24.285137]        auxiliary_bus_probe+0x78/0x90
      [   24.289893]        really_probe+0x1e4/0x3d8
      [   24.294194]        __driver_probe_device+0x14c/0x164
      [   24.299298]        driver_probe_device+0x54/0xf8
      [   24.304043]        __device_attach_driver+0xb4/0x118
      [   24.309145]        bus_for_each_drv+0xb0/0xd4
      [   24.313628]        __device_attach+0xcc/0x158
      [   24.318112]        device_initial_probe+0x24/0x30
      [   24.322954]        bus_probe_device+0x38/0x9c
      [   24.327439]        deferred_probe_work_func+0xd4/0xf0
      [   24.332628]        process_one_work+0x2f0/0x498
      [   24.337289]        process_scheduled_works+0x44/0x48
      [   24.342391]        worker_thread+0x1e4/0x26c
      [   24.346788]        kthread+0xe4/0xf4
      [   24.350470]        ret_from_fork+0x10/0x20
      [   24.354683]
      [   24.354683]
      [   24.354683] -> #2 (crtc_ww_class_acquire){+.+.}-{0:0}:
      [   24.361489]        drm_modeset_acquire_init+0xe4/0x138
      [   24.366777]        drm_helper_probe_detect_ctx+0x44/0x114
      [   24.372327]        check_connector_changed+0xbc/0x198
      [   24.377517]        drm_helper_hpd_irq_event+0xcc/0x11c
      [   24.382804]        dsi_hpd_worker+0x24/0x30
      [   24.387104]        process_one_work+0x2f0/0x498
      [   24.391762]        worker_thread+0x1d0/0x26c
      [   24.396158]        kthread+0xe4/0xf4
      [   24.399840]        ret_from_fork+0x10/0x20
      [   24.404053]
      [   24.404053] -> #1 (&dev->mode_config.mutex){+.+.}-{3:3}:
      [   24.411032]        __mutex_lock+0xc8/0x384
      [   24.415247]        mutex_lock_nested+0x54/0x74
      [   24.419819]        dp_panel_read_sink_caps+0x23c/0x26c
      [   24.425108]        dp_display_process_hpd_high+0x34/0xd4
      [   24.430570]        dp_display_usbpd_configure_cb+0x30/0x3c
      [   24.436205]        hpd_event_thread+0x2ac/0x550
      [   24.440864]        kthread+0xe4/0xf4
      [   24.444544]        ret_from_fork+0x10/0x20
      [   24.448757]
      [   24.448757] -> #0 (&dp->event_mutex){+.+.}-{3:3}:
      [   24.455116]        __lock_acquire+0xe2c/0x10d8
      [   24.459690]        lock_acquire+0x1ac/0x2d0
      [   24.463988]        __mutex_lock+0xc8/0x384
      [   24.468201]        mutex_lock_nested+0x54/0x74
      [   24.472773]        msm_dp_display_enable+0x58/0x164
      [   24.477789]        dp_bridge_enable+0x24/0x30
      [   24.482273]        drm_atomic_bridge_chain_enable+0x78/0x9c
      [   24.488006]        drm_atomic_helper_commit_modeset_enables+0x1bc/0x244
      [   24.494801]        msm_atomic_commit_tail+0x248/0x3d0
      [   24.499992]        commit_tail+0x7c/0xfc
      [   24.504031]        drm_atomic_helper_commit+0x158/0x15c
      [   24.509404]        drm_atomic_commit+0x60/0x74
      [   24.513976]        drm_mode_atomic_ioctl+0x6b0/0x908
      [   24.519079]        drm_ioctl_kernel+0xe8/0x168
      [   24.523650]        drm_ioctl+0x320/0x370
      [   24.527689]        drm_compat_ioctl+0x40/0xdc
      [   24.532175]        __arm64_compat_sys_ioctl+0xe0/0x150
      [   24.537463]        invoke_syscall+0x80/0x114
      [   24.541861]        el0_svc_common.constprop.3+0xc4/0xf8
      [   24.547235]        do_el0_svc_compat+0x2c/0x54
      [   24.551806]        el0_svc_compat+0x4c/0xe4
      [   24.556106]        el0t_32_sync_handler+0xc4/0xf4
      [   24.560948]        el0t_32_sync+0x174/0x178
      
      Changes in v2:
      -- add circular lockiing trace
      
      Fixes: d4aca422 ("drm/msm/dp:  always add fail-safe mode into connector mode list")
      Signed-off-by: default avatarKuogee Hsieh <quic_khsieh@quicinc.com>
      Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Patchwork: https://patchwork.freedesktop.org/patch/481396/
      Link: https://lore.kernel.org/r/1649451894-554-1-git-send-email-quic_khsieh@quicinc.comSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
      8b2c181e
    • Stephen Boyd's avatar
      drm/msm/dsi: Use connector directly in msm_dsi_manager_connector_init() · 47b7de6b
      Stephen Boyd authored
      The member 'msm_dsi->connector' isn't assigned until
      msm_dsi_manager_connector_init() returns (see msm_dsi_modeset_init() and
      how it assigns the return value). Therefore this pointer is going to be
      NULL here. Let's use 'connector' which is what was intended.
      
      Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Cc: Sean Paul <seanpaul@chromium.org>
      Fixes: 6d5e7840 ("drm/msm/dsi: Move dsi panel init into modeset init path")
      Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
      Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Patchwork: https://patchwork.freedesktop.org/patch/478693/
      Link: https://lore.kernel.org/r/20220318000731.2823718-1-swboyd@chromium.orgSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
      47b7de6b
    • Robin Murphy's avatar
      drm/msm: Stop using iommu_present() · e2a88eab
      Robin Murphy authored
      Even if some IOMMU has registered itself on the platform "bus", that
      doesn't necessarily mean it provides translation for the device we
      care about. Replace iommu_present() with a more appropriate check.
      Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
      Reviewed-by: default avatarRob Clark <robdclark@gmail.com>
      Patchwork: https://patchwork.freedesktop.org/patch/480707/
      Link: https://lore.kernel.org/r/5ab4f4574d7f3e042261da702d493ee40d003356.1649168268.git.robin.murphy@arm.comSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
      e2a88eab
    • Xiaoke Wang's avatar
      drm/msm/mdp5: check the return of kzalloc() · 047ae665
      Xiaoke Wang authored
      kzalloc() is a memory allocation function which can return NULL when
      some internal memory errors happen. So it is better to check it to
      prevent potential wrong memory access.
      
      Besides, since mdp5_plane_reset() is void type, so we should better
      set `plane-state` to NULL after releasing it.
      Signed-off-by: default avatarXiaoke Wang <xkernel.wang@foxmail.com>
      Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Patchwork: https://patchwork.freedesktop.org/patch/481055/
      Link: https://lore.kernel.org/r/tencent_8E2A1C78140EE1784AB2FF4B2088CC0AB908@qq.comSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
      047ae665
    • Rob Clark's avatar
      drm/msm: Fix range size vs end confusion · 537fef80
      Rob Clark authored
      The fourth param is size, rather than range_end.
      
      Note that we could increase the address space size if we had a way to
      prevent buffers from spanning a 4G split, mostly just to avoid fw bugs
      with 64b math.
      
      Fixes: 84c31ee1 ("drm/msm/a6xx: Add support for per-instance pagetables")
      Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
      Link: https://lore.kernel.org/r/20220407202836.1211268-1-robdclark@gmail.comSigned-off-by: default avatarRob Clark <robdclark@chromium.org>
      537fef80
    • Matt Roper's avatar
      drm/i915: Sunset igpu legacy mmap support based on GRAPHICS_VER_FULL · 1acb34e7
      Matt Roper authored
      The intent of the version check in the mmap ioctl was to maintain
      support for existing platforms (i.e., ADL/RPL and earlier), but drop
      support on all future igpu platforms.  As we've seen on the dgpu side,
      the hardware teams are using a more fine-grained numbering system for IP
      version numbers these days, so it's possible the version number
      associated with our next igpu could be some form of "12.xx" rather than
      13 or higher.  Comparing against the full ver.release number will ensure
      the intent of the check is maintained no matter what numbering the
      hardware teams settle on.
      
      Fixes: d3f3baa3 ("drm/i915: Reinstate the mmap ioctl for some platforms")
      Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
      Cc: Lucas De Marchi <lucas.demarchi@intel.com>
      Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
      Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220407161839.1073443-1-matthew.d.roper@intel.com
      (cherry picked from commit 8e7e5c07)
      Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      1acb34e7
    • Linus Torvalds's avatar
      Linux 5.18-rc2 · ce522ba9
      Linus Torvalds authored
      ce522ba9
  4. 10 Apr, 2022 13 commits
    • Linus Torvalds's avatar
      Merge tag 'tty-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 8b57b304
      Linus Torvalds authored
      Pull serial driver fix from Greg KH:
       "This is a single serial driver fix for a build issue that showed up
        due to changes that came in through the tty tree in 5.18-rc1 that were
        missed previously. It resolves a build error with the mpc52xx_uart
        driver.
      
        It has been in linux-next this week with no reported problems"
      
      * tag 'tty-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        tty: serial: mpc52xx_uart: make rx/tx hooks return unsigned, part II.
      8b57b304
    • Linus Torvalds's avatar
      Merge tag 'staging-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 95aa17c3
      Linus Torvalds authored
      Pull staging driver fix from Greg KH:
       "Here is a single staging driver fix for 5.18-rc2 that resolves an
        endian issue for the r8188eu driver. It has been in linux-next all
        this week with no reported problems"
      
      * tag 'staging-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: r8188eu: Fix PPPoE tag insertion on little endian systems
      95aa17c3
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.18-rc2' of... · 33563138
      Linus Torvalds authored
      Merge tag 'driver-core-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core updates from Greg KH:
       "Here are two small driver core changes for 5.18-rc2.
      
        They are the final bits in the removal of the default_attrs field in
        struct kobj_type. I had to wait until after 5.18-rc1 for all of the
        changes to do this came in through different development trees, and
        then one new user snuck in. So this series has two changes:
      
         - removal of the default_attrs field in the powerpc/pseries/vas code.
      
           The change has been acked by the PPC maintainers to come through
           this tree
      
         - removal of default_attrs from struct kobj_type now that all
           in-kernel users are removed.
      
           This cleans up the kobject code a little bit and removes some
           duplicated functionality that confused people (now there is only
           one way to do default groups)
      
        Both of these have been in linux-next for all of this week with no
        reported problems"
      
      * tag 'driver-core-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        kobject: kobj_type: remove default_attrs
        powerpc/pseries/vas: use default_groups in kobj_type
      33563138
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · f58d3410
      Linus Torvalds authored
      Pull char/misc driver fix from Greg KH:
       "A single driver fix. It resolves the build warning issue on 32bit
        systems in the habannalabs driver that came in during the 5.18-rc1
        merge cycle.
      
        It has been in linux-next for all this week with no reported problems"
      
      * tag 'char-misc-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        habanalabs: Fix test build failures
      f58d3410
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 4ea3c642
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix KVM "lost kick" race, where an attempt to pull a vcpu out of the
         guest could be lost (or delayed until the next guest exit).
      
       - Disable SCV (system call vectored) when PR KVM guests could be run.
      
       - Fix KVM PR guests using SCV, by disallowing AIL != 0 for KVM PR
         guests.
      
       - Add a new KVM CAP to indicate if AIL == 3 is supported.
      
       - Fix a regression when hotplugging a CPU to a memoryless/cpuless node.
      
       - Make virt_addr_valid() stricter for 64-bit Book3E & 32-bit, which
         fixes crashes seen due to hardened usercopy.
      
       - Revert a change to max_mapnr which broke HIGHMEM.
      
      Thanks to Christophe Leroy, Fabiano Rosas, Kefeng Wang, Nicholas Piggin,
      and Srikar Dronamraju.
      
      * tag 'powerpc-5.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        Revert "powerpc: Set max_mapnr correctly"
        powerpc: Fix virt_addr_valid() for 64-bit Book3E & 32-bit
        KVM: PPC: Move kvmhv_on_pseries() into kvm_ppc.h
        powerpc/numa: Handle partially initialized numa nodes
        powerpc/64: Fix build failure with allyesconfig in book3s_64_entry.S
        KVM: PPC: Use KVM_CAP_PPC_AIL_MODE_3
        KVM: PPC: Book3S PR: Disallow AIL != 0
        KVM: PPC: Book3S PR: Disable SCV when AIL could be disabled
        KVM: PPC: Book3S HV P9: Fix "lost kick" race
      4ea3c642
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2022-04-10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1519610b
      Linus Torvalds authored
      Pull irq fixes from Thomas Gleixner:
       "A set of interrupt chip driver fixes:
      
         - A fix for a long standing bug in the ARM GICv3 redistributor
           polling which uses the wrong bit number to test.
      
         - Prevent translation of bogus ACPI table entries which map device
           interrupts into the IPI space on ARM GICs.
      
         - Don't write into the pending register of ARM GICV4 before the scan
           in hardware has completed.
      
         - A set of build and correctness fixes for the Qualcomm MPM driver"
      
      * tag 'irq-urgent-2022-04-10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/gic, gic-v3: Prevent GSI to SGI translations
        irqchip/gic-v3: Fix GICR_CTLR.RWP polling
        irqchip/gic-v4: Wait for GICR_VPENDBASER.Dirty to clear before descheduling
        irqchip/irq-qcom-mpm: fix return value check in qcom_mpm_init()
        irq/qcom-mpm: Fix build error without MAILBOX
      1519610b
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9c6913b7
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Fix the MSI message data struct definition
      
       - Use local labels in the exception table macros to avoid symbol
         conflicts with clang LTO builds
      
       - A couple of fixes to objtool checking of the relatively newly added
         SLS and IBT code
      
       - Rename a local var in the WARN* macro machinery to prevent shadowing
      
      * tag 'x86_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/msi: Fix msi message data shadow struct
        x86/extable: Prefer local labels in .set directives
        x86,bpf: Avoid IBT objtool warning
        objtool: Fix SLS validation for kcov tail-call replacement
        objtool: Fix IBT tail-call detection
        x86/bug: Prevent shadowing in __WARN_FLAGS
        x86/mm/tlb: Revert retpoline avoidance approach
      9c6913b7
    • Linus Torvalds's avatar
      Merge tag 'perf_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b51f86e9
      Linus Torvalds authored
      Pull perf fixes from Borislav Petkov:
      
       - A couple of fixes to cgroup-related handling of perf events
      
       - A couple of fixes to event encoding on Sapphire Rapids
      
       - Pass event caps of inherited events so that perf doesn't fail wrongly
         at fork()
      
       - Add support for a new Raptor Lake CPU
      
      * tag 'perf_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Always set cpuctx cgrp when enable cgroup event
        perf/core: Fix perf_cgroup_switch()
        perf/core: Use perf_cgroup_info->active to check if cgroup is active
        perf/core: Don't pass task around when ctx sched in
        perf/x86/intel: Update the FRONTEND MSR mask on Sapphire Rapids
        perf/x86/intel: Don't extend the pseudo-encoding to GP counters
        perf/core: Inherit event_caps
        perf/x86/uncore: Add Raptor Lake uncore support
        perf/x86/msr: Add Raptor Lake CPU support
        perf/x86/cstate: Add Raptor Lake support
        perf/x86: Add Intel Raptor Lake support
      b51f86e9
    • Linus Torvalds's avatar
      Merge tag 'locking_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 50c94de6
      Linus Torvalds authored
      Pull locking fixes from Borislav Petkov:
      
       - Allow the compiler to optimize away unused percpu accesses and change
         the local_lock_* macros back to inline functions
      
       - A couple of fixes to static call insn patching
      
      * tag 'locking_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        Revert "mm/page_alloc: mark pagesets as __maybe_unused"
        Revert "locking/local_lock: Make the empty local_lock_*() function a macro."
        x86/percpu: Remove volatile from arch_raw_cpu_ptr().
        static_call: Remove __DEFINE_STATIC_CALL macro
        static_call: Properly initialise DEFINE_STATIC_CALL_RET0()
        static_call: Don't make __static_call_return0 static
        x86,static_call: Fix __static_call_return0 for i386
      50c94de6
    • Linus Torvalds's avatar
      Merge tag 'sched_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7136849e
      Linus Torvalds authored
      Pull scheduler fixes from Borislav Petkov:
      
       - Use the correct static key checking primitive on the IRQ exit path
      
       - Two fixes for the new forceidle balancer
      
      * tag 'sched_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        entry: Fix compile error in dynamic_irqentry_exit_cond_resched()
        sched: Teach the forced-newidle balancer about CPU affinity limitation.
        sched/core: Fix forceidle balancing
      7136849e
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.18-2022-04-09' of... · 1862a69c
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.18-2022-04-09' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix the clang command line option probing and remove some options to
         filter out, fixing the build with the latest clang versions
      
       - Fix 'perf bench' futex and epoll benchmarks to deal with machines
         with more than 1K CPUs
      
       - Fix 'perf test tsc' error message when not supported
      
       - Remap perf ring buffer if there is no space for event, fixing perf
         usage in 32-bit ChromeOS
      
       - Drop objdump stderr to avoid getting stuck waiting for stdout output
         in 'perf annotate'
      
       - Fix up garbled output by now showing unwind error messages when
         augmenting frame in best effort mode
      
       - Fix perf's libperf_print callback, use the va_args eprintf() variant
      
       - Sync vhost and arm64 cputype headers with the kernel sources
      
       - Fix 'perf report --mem-mode' with ARM SPE
      
       - Add missing external commands ('iiostat', etc) to 'perf --list-cmds'
      
      * tag 'perf-tools-fixes-for-v5.18-2022-04-09' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf annotate: Drop objdump stderr to avoid getting stuck waiting for stdout output
        perf tools: Add external commands to list-cmds
        perf docs: Add perf-iostat link to manpages
        perf session: Remap buf if there is no space for event
        perf bench: Fix epoll bench to correct usage of affinity for machines with #CPUs > 1K
        perf bench: Fix futex bench to correct usage of affinity for machines with #CPUs > 1K
        perf tools: Fix perf's libperf_print callback
        perf: arm-spe: Fix perf report --mem-mode
        perf unwind: Don't show unwind error messages when augmenting frame pointer stack
        tools headers arm64: Sync arm64's cputype.h with the kernel sources
        perf test tsc: Fix error message when not supported
        perf build: Don't use -ffat-lto-objects in the python feature test when building with clang-13
        perf python: Fix probing for some clang command line options
        tools build: Filter out options and warnings not supported by clang
        tools build: Use $(shell ) instead of `` to get embedded libperl's ccopts
        tools include UAPI: Sync linux/vhost.h with the kernel sources
      1862a69c
    • Linus Torvalds's avatar
      Merge tag 'cxl+nvdimm-for-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 94a4c2bb
      Linus Torvalds authored
      Pull cxl and nvdimm fixes from Dan Williams:
      
       - Fix a compile error in the nvdimm unit tests
      
       - Fix a shadowed variable warning in the CXL PCI driver
      
      * tag 'cxl+nvdimm-for-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        cxl/pci: Drop shadowed variable
        tools/testing/nvdimm: Fix security_init() symbol collision
      94a4c2bb
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · fa3b895d
      Linus Torvalds authored
      Pull gpio fix from Bartosz Golaszewski:
      
       - fix a race condition with consumers accessing the fields of GPIO IRQ
         chips before they're fully initialized
      
      * tag 'gpio-fixes-for-v5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: Restrict usage of GPIO chip irq members before initialization
      fa3b895d
  5. 09 Apr, 2022 11 commits