Skip to content
  1. Jun 17, 2023
  2. Jun 16, 2023
    • Dave Airlie's avatar
      nouveau: fix client work fence deletion race · c8a5d5ea
      Dave Airlie authored
      This seems to have existed for ever but is now more apparant after
      commit 9bff18d1
      
       ("drm/ttm: use per BO cleanup workers")
      
      My analysis: two threads are running, one in the irq signalling the
      fence, in dma_fence_signal_timestamp_locked, it has done the
      DMA_FENCE_FLAG_SIGNALLED_BIT setting, but hasn't yet reached the
      callbacks.
      
      The second thread in nouveau_cli_work_ready, where it sees the fence is
      signalled, so then puts the fence, cleanups the object and frees the
      work item, which contains the callback.
      
      Thread one goes again and tries to call the callback and causes the
      use-after-free.
      
      Proposed fix: lock the fence signalled check in nouveau_cli_work_ready,
      so either the callbacks are done or the memory is freed.
      
      Reviewed-by: default avatarKarol Herbst <kherbst@redhat.com>
      Fixes: 11e451e7
      
       ("drm/nouveau: remove fence wait code from deferred client work handler")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      Link: https://lore.kernel.org/dri-devel/20230615024008.1600281-1-airlied@gmail.com/
      c8a5d5ea
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.4-2023-06-14' of... · c8ac109e
      Dave Airlie authored
      
      Merge tag 'amd-drm-fixes-6.4-2023-06-14' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-6.4-2023-06-14:
      
      amdgpu:
      - GFX9 preemption fixes
      - Add missing radeon secondary PCI ID
      - vblflash fixes
      - SMU 13 fix
      - VCN 4.0 fix
      - Re-enable TOPDOWN flag for large BAR systems to fix regression
      - eDP fix
      - PSR hang fix
      - DPIA fix
      
      radeon:
      - fbdev client warning fix
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230615024011.7773-1-alexander.deucher@amd.com
      c8ac109e
  3. Jun 14, 2023
  4. Jun 13, 2023
    • Ratchanan Srirattanamet's avatar
      drm/nouveau: don't detect DSM for non-NVIDIA device · 11d24327
      Ratchanan Srirattanamet authored
      The call site of nouveau_dsm_pci_probe() uses single set of output
      variables for all invocations. So, we must not write anything to them
      unless it's an NVIDIA device. Otherwise, if we are called with another
      device after the NVIDIA device, we'll clober the result of the NVIDIA
      device.
      
      For example, if the other device doesn't have _PR3 resources, the
      detection later would miss the presence of power resource support, and
      the rest of the code will keep using Optimus DSM, breaking power
      management for that machine.
      
      Also, because we're detecting NVIDIA's DSM, it doesn't make sense to run
      this detection on a non-NVIDIA device anyway. Thus, check at the
      beginning of the detection code if this is an NVIDIA card, and just
      return if it isn't.
      
      This, together with commit d22915d2 ("drm/nouveau/devinit/tu102-:
      wait for GFW_BOOT_PROGRESS == COMPLETED") developed independently and
      landed earlier, fixes runtime power management of the NVIDIA card in
      Lenovo Legion 5-15ARH05. Without this patch, the GPU resumption code
      will "timeout", sometimes hanging userspace.
      
      As a bonus, we'll also stop preventing _PR3 usage from the bridge for
      unrelated devices, which is always nice, I guess.
      
      Fixes: ccfc2d5c
      
       ("drm/nouveau: Use generic helper to check _PR3 presence")
      Signed-off-by: default avatarRatchanan Srirattanamet <peathot@hotmail.com>
      Closes: https://gitlab.freedesktop.org/drm/nouveau/-/issues/79
      Reviewed-by: default avatarKarol Herbst <kherbst@redhat.com>
      Signed-off-by: default avatarKarol Herbst <kherbst@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/DM6PR19MB2780805D4BE1E3F9B3AC96D0BC409@DM6PR19MB2780.namprd19.prod.outlook.com
      11d24327
  5. Jun 12, 2023
    • Linus Torvalds's avatar
      Linux 6.4-rc6 · 858fd168
      Linus Torvalds authored
      858fd168
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.4_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4c605260
      Linus Torvalds authored
      Pull x86 fix from Borislav Petkov:
      
       - Set up the kernel CS earlier in the boot process in case EFI boots
         the kernel after bypassing the decompressor and the CS descriptor
         used ends up being the EFI one which is not mapped in the identity
         page table, leading to early SEV/SNP guest communication exceptions
         resulting in the guest crashing
      
      * tag 'x86_urgent_for_v6.4_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/head/64: Switch to KERNEL_CS as soon as new GDT is installed
      4c605260
    • Linus Torvalds's avatar
      Merge tag '6.4-rc5-smb3-server-fixes' of git://git.samba.org/ksmbd · 65d7ca59
      Linus Torvalds authored
      Pull smb server fixes from Steve French:
       "Five smb3 server fixes, all also for stable:
      
         - Fix four slab out of bounds warnings: improve checks for protocol
           id, and for small packet length, and for create context parsing,
           and for negotiate context parsing
      
         - Fix for incorrect dereferencing POSIX ACLs"
      
      * tag '6.4-rc5-smb3-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: validate smb request protocol id
        ksmbd: check the validation of pdu_size in ksmbd_conn_handler_loop
        ksmbd: fix posix_acls and acls dereferencing possible ERR_PTR()
        ksmbd: fix out-of-bound read in parse_lease_state()
        ksmbd: fix out-of-bound read in deassemble_neg_contexts()
      65d7ca59
  6. Jun 11, 2023
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 022ce886
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "Biggest news is that Andi Shyti steps in for maintaining the
        controller drivers. Thank you very much!
      
        Other than that, one new driver maintainer and the rest is usual
        driver bugfixes. at24 has a Kconfig dependecy fix"
      
      * tag 'i2c-for-6.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        MAINTAINERS: Add entries for Renesas RZ/V2M I2C driver
        eeprom: at24: also select REGMAP
        i2c: sprd: Delete i2c adapter in .remove's error path
        i2c: mv64xxx: Fix reading invalid status value in atomic mode
        i2c: designware: fix idx_write_cnt in read loop
        i2c: mchp-pci1xxxx: Avoid cast to incompatible function type
        i2c: img-scb: Fix spelling mistake "innacurate" -> "inaccurate"
        MAINTAINERS: Add myself as I2C host drivers maintainer
      022ce886
    • Linus Torvalds's avatar
      Merge tag 'soundwire-6.4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire · 6be5e47b
      Linus Torvalds authored
      Pull soundwire fixes from Vinod Koul:
       "Core fix for missing flag clear, error patch handling in qcom driver
        and BIOS quirk for HP Spectre x360:
      
         - HP Spectre x360 soundwire DMI quirk
      
         - Error path handling for qcom driver
      
         - Core fix for missing clear of alloc_slave_rt"
      
      * tag 'soundwire-6.4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire:
        soundwire: stream: Add missing clear of alloc_slave_rt
        soundwire: qcom: add proper error paths in qcom_swrm_startup()
        soundwire: dmi-quirks: add new mapping for HP Spectre x360
      6be5e47b
    • Linus Torvalds's avatar
      Merge tag 'arm-fixes-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 859c7459
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "Most of the changes this time are for the Qualcomm Snapdragon
        platforms.
      
        There are bug fixes for error handling in Qualcomm icc-bwmon,
        rpmh-rsc, ramp_controller and rmtfs driver as well as the AMD tee
        firmware driver and a missing initialization in the Arm ff-a firmware
        driver. The Qualcomm RPMh and EDAC drivers need some rework to work
        correctly on all supported chips.
      
        The DT fixes include:
      
         - i.MX8 fixes for gpio, pinmux and clock settings
      
         - ADS touchscreen gpio polarity settings in several machines
      
         - Address dtb warnings for caches, panel and input-enable properties
           on Qualcomm platforms
      
         - Incorrect data on qualcomm platforms fir SA8155P power domains,
           SM8550 LLCC, SC7180-lite SDRAM frequencies and SM8550 soundwire
      
         - Remoteproc firmware paths are corrected for Sony Xperia 10 IV"
      
      * tag 'arm-fixes-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (36 commits)
        firmware: arm_ffa: Set handle field to zero in memory descriptor
        ARM: dts: Fix erroneous ADS touchscreen polarities
        arm64: dts: imx8mn-beacon: Fix SPI CS pinmux
        arm64: dts: imx8-ss-dma: assign default clock rate for lpuarts
        arm64: dts: imx8qm-mek: correct GPIOs for USDHC2 CD and WP signals
        EDAC/qcom: Get rid of hardcoded register offsets
        EDAC/qcom: Remove superfluous return variable assignment in qcom_llcc_core_setup()
        arm64: dts: qcom: sm8550: Use the correct LLCC register scheme
        dt-bindings: cache: qcom,llcc: Fix SM8550 description
        arm64: dts: qcom: sc7180-lite: Fix SDRAM freq for misidentified sc7180-lite boards
        arm64: dts: qcom: sm8550: use uint16 for Soundwire interval
        soc: qcom: rpmhpd: Add SA8155P power domains
        arm64: dts: qcom: Split out SA8155P and use correct RPMh power domains
        dt-bindings: power: qcom,rpmpd: Add SA8155P
        soc: qcom: Rename ice to qcom_ice to avoid module name conflict
        soc: qcom: rmtfs: Fix error code in probe()
        soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe()
        ARM: dts: at91: sama7g5ek: fix debounce delay property for shdwc
        ARM: at91: pm: fix imbalanced reference counter for ethernet devices
        arm64: dts: qcom: sm6375-pdx225: Fix remoteproc firmware paths
        ...
      859c7459
  7. Jun 10, 2023