Skip to content
  1. Oct 13, 2023
  2. Oct 12, 2023
  3. Oct 10, 2023
    • Simon Ser's avatar
      drm/atomic-helper: relax unregistered connector check · 2b7947bd
      Simon Ser authored
      The driver might pull connectors which weren't submitted by
      user-space into the atomic state. For instance,
      intel_dp_mst_atomic_master_trans_check() pulls in connectors
      sharing the same DP-MST stream. However, if the connector is
      unregistered, this later fails with:
      
          [  559.425658] i915 0000:00:02.0: [drm:drm_atomic_helper_check_modeset] [CONNECTOR:378:DP-7] is not registered
      
      Skip the unregistered connector check to allow user-space to turn
      off connectors one-by-one.
      
      See this wlroots issue:
      https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3407
      
      Previous discussion:
      https://lore.kernel.org/intel-gfx/Y6GX7z17WmDSKwta@ideak-desk.fi.intel.com/
      
      
      
      Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
      Cc: stable@vger.kernel.org
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Imre Deak <imre.deak@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231005131623.114379-1-contact@emersion.fr
      2b7947bd
    • Ruihai Zhou's avatar
      drm/panel: boe-tv101wum-nl6: Completely pull GPW to VGL before TP term · 258dd5e6
      Ruihai Zhou authored
      
      
      The sta_himax83102 panel sometimes shows abnormally flickering
      horizontal lines. The front gate output will precharge the X point of
      the next pole circuit before TP(TouchPanel Enable) term starts, and wait
      until the end of the TP term to resume the CLK. For this reason, the X
      point must be maintained during the TP term. In abnormal case, we
      measured a slight leakage at point X. This because during the TP term,
      the GPW does not fully pull the VGL low, causing the TFT to not be
      closed tightly.
      
      To fix this, we completely pull GPW to VGL before entering the TP term.
      This will ensure that the TFT is closed tightly and prevent the abnormal
      display.
      
      Fixes: 1bc2ef06 ("drm/panel: Support for Starry-himax83102-j02 TDDI MIPI-DSI panel")
      Signed-off-by: default avatarRuihai Zhou <zhouruihai@huaqin.corp-partner.google.com>
      Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
      Link: https://lore.kernel.org/r/20231007064949.22668-1-zhouruihai@huaqin.corp-partner.google.com
      
      
      Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231007064949.22668-1-zhouruihai@huaqin.corp-partner.google.com
      258dd5e6
    • Zack Rusin's avatar
      drm/vmwgfx: Keep a gem reference to user bos in surfaces · 91398b41
      Zack Rusin authored
      
      
      Surfaces can be backed (i.e. stored in) memory objects (mob's) which
      are created and managed by the userspace as GEM buffers. Surfaces
      grab only a ttm reference which means that the gem object can
      be deleted underneath us, especially in cases where prime buffer
      export is used.
      
      Make sure that all userspace surfaces which are backed by gem objects
      hold a gem reference to make sure they're not deleted before vmw
      surfaces are done with them, which fixes:
      ------------[ cut here ]------------
      refcount_t: underflow; use-after-free.
      WARNING: CPU: 2 PID: 2632 at lib/refcount.c:28 refcount_warn_saturate+0xfb/0x150
      Modules linked in: overlay vsock_loopback vmw_vsock_virtio_transport_common vmw_vsock_vmci_transport vsock snd_ens1371 snd_ac97_codec ac97_bus snd_pcm gameport>
      CPU: 2 PID: 2632 Comm: vmw_ref_count Not tainted 6.5.0-rc2-vmwgfx #1
      Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020
      RIP: 0010:refcount_warn_saturate+0xfb/0x150
      Code: eb 9e 0f b6 1d 8b 5b a6 01 80 fb 01 0f 87 ba e4 80 00 83 e3 01 75 89 48 c7 c7 c0 3c f9 a3 c6 05 6f 5b a6 01 01 e8 15 81 98 ff <0f> 0b e9 6f ff ff ff 0f b>
      RSP: 0018:ffffbdc34344bba0 EFLAGS: 00010286
      RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000027
      RDX: ffff960475ea1548 RSI: 0000000000000001 RDI: ffff960475ea1540
      RBP: ffffbdc34344bba8 R08: 0000000000000003 R09: 65646e75203a745f
      R10: ffffffffa5b32b20 R11: 72657466612d6573 R12: ffff96037d6a6400
      R13: ffff9603484805b0 R14: 000000000000000b R15: ffff9603bed06060
      FS:  00007f5fd8520c40(0000) GS:ffff960475e80000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: 00007f5fda755000 CR3: 000000010d012005 CR4: 00000000003706e0
      Call Trace:
       <TASK>
       ? show_regs+0x6e/0x80
       ? refcount_warn_saturate+0xfb/0x150
       ? __warn+0x91/0x150
       ? refcount_warn_saturate+0xfb/0x150
       ? report_bug+0x19d/0x1b0
       ? handle_bug+0x46/0x80
       ? exc_invalid_op+0x1d/0x80
       ? asm_exc_invalid_op+0x1f/0x30
       ? refcount_warn_saturate+0xfb/0x150
       drm_gem_object_handle_put_unlocked+0xba/0x110 [drm]
       drm_gem_object_release_handle+0x6e/0x80 [drm]
       drm_gem_handle_delete+0x6a/0xc0 [drm]
       ? __pfx_vmw_bo_unref_ioctl+0x10/0x10 [vmwgfx]
       vmw_bo_unref_ioctl+0x33/0x40 [vmwgfx]
       drm_ioctl_kernel+0xbc/0x160 [drm]
       drm_ioctl+0x2d2/0x580 [drm]
       ? __pfx_vmw_bo_unref_ioctl+0x10/0x10 [vmwgfx]
       ? do_vmi_munmap+0xee/0x180
       vmw_generic_ioctl+0xbd/0x180 [vmwgfx]
       vmw_unlocked_ioctl+0x19/0x20 [vmwgfx]
       __x64_sys_ioctl+0x99/0xd0
       do_syscall_64+0x5d/0x90
       ? syscall_exit_to_user_mode+0x2a/0x50
       ? do_syscall_64+0x6d/0x90
       ? handle_mm_fault+0x16e/0x2f0
       ? exit_to_user_mode_prepare+0x34/0x170
       ? irqentry_exit_to_user_mode+0xd/0x20
       ? irqentry_exit+0x3f/0x50
       ? exc_page_fault+0x8e/0x190
       entry_SYSCALL_64_after_hwframe+0x6e/0xd8
      RIP: 0033:0x7f5fda51aaff
      Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 7>
      RSP: 002b:00007ffd536a4d30 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
      RAX: ffffffffffffffda RBX: 00007ffd536a4de0 RCX: 00007f5fda51aaff
      RDX: 00007ffd536a4de0 RSI: 0000000040086442 RDI: 0000000000000003
      RBP: 0000000040086442 R08: 000055fa603ada50 R09: 0000000000000000
      R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffd536a51b8
      R13: 0000000000000003 R14: 000055fa5ebb4c80 R15: 00007f5fda90f040
       </TASK>
      ---[ end trace 0000000000000000 ]---
      
      A lot of the analyis on the bug was done by Murray McAllister and
      Ian Forbes.
      
      Reported-by: default avatarMurray McAllister <murray.mcallister@gmail.com>
      Cc: Ian Forbes <iforbes@vmware.com>
      Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
      Fixes: a950b989 ("drm/vmwgfx: Do not drop the reference to the handle too soon")
      Cc: <stable@vger.kernel.org> # v6.2+
      Reviewed-by: default avatarMartin Krastev <krastevm@vmware.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230928041355.737635-1-zack@kde.org
      91398b41
    • Konstantin Meskhidze's avatar
      drm/vmwgfx: fix typo of sizeof argument · 39465cac
      Konstantin Meskhidze authored
      
      
      Since size of 'header' pointer and '*header' structure is equal on 64-bit
      machines issue probably didn't cause any wrong behavior. But anyway,
      fixing typo is required.
      
      Fixes: 7a73ba74 ("drm/vmwgfx: Use TTM handles instead of SIDs as user-space surface handles.")
      Co-developed-by: default avatarIvanov Mikhail <ivanov.mikhail1@huawei-partners.com>
      Signed-off-by: default avatarKonstantin Meskhidze <konstantin.meskhidze@huawei.com>
      Reviewed-by: default avatarZack Rusin <zackr@vmware.com>
      Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230905100203.1716731-1-konstantin.meskhidze@huawei.com
      39465cac
  4. Oct 09, 2023
  5. Oct 08, 2023
  6. Oct 07, 2023
  7. Oct 06, 2023
    • Linus Torvalds's avatar
      Merge tag 'for-6.6-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 7de25c85
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
      
       - reject unknown mount options
      
       - adjust transaction abort error message level
      
       - fix one more build warning with -Wmaybe-uninitialized
      
       - proper error handling in several COW-related cases
      
      * tag 'for-6.6-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: error out when reallocating block for defrag using a stale transaction
        btrfs: error when COWing block from a root that is being deleted
        btrfs: error out when COWing block using a stale transaction
        btrfs: always print transaction aborted messages with an error level
        btrfs: reject unknown mount options early
        btrfs: fix some -Wmaybe-uninitialized warnings in ioctl.c
      7de25c85
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 1d47ae27
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "A typo fix for a PMU driver, a workround for a side-channel erratum on
        Cortex-A520 and a fix for the local timer save/restore when using ACPI
        with Qualcomm's custom CPUs:
      
         - Workaround for Cortex-A520 erratum #2966298
      
         - Fix typo in Arm CMN PMU driver that breaks counter overflow handling
      
         - Fix timer handling across idle for Qualcomm custom CPUs"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        cpuidle, ACPI: Evaluate LPI arch_flags for broadcast timer
        arm64: errata: Add Cortex-A520 speculative unprivileged load workaround
        arm64: Add Cortex-A520 CPU part definition
        perf/arm-cmn: Fix the unhandled overflow status of counter 4 to 7
      1d47ae27
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-10-06' of git://anongit.freedesktop.org/drm/drm · 4940c154
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular weekly pull, all seems pretty normal, i915 and amdgpu mostly.
      
        There is one small new uAPI addition for nouveau but getting it in now
        avoids a bunch of userspace dances, and it's for a userspace that
        hasn't yet released, so should have no side effects.
      
        i915:
         - Fix for OpenGL CTS regression on Compute Shaders
         - Fix for default engines initialization
         - Fix TLB invalidation for Multi-GT devices
      
        amdgpu:
         - Add missing unique_id for GC 11.0.3
         - Fix memory leak in FRU error path
         - Fix PCIe link reporting on some SMU 11 parts
         - Fix ACPI _PR3 detection
         - Fix DISPCLK WDIVIDER handling in OTG code
      
        tests:
         - Fix kunit release
      
        panel:
         - panel-orientation: Add quirk for One Mix 25
      
        nouveau:
         - Report IB limit via getparams
         - Replace some magic numbers with constants
         - small clean up"
      
      * tag 'drm-fixes-2023-10-06' of git://anongit.freedesktop.org/drm/drm:
        drm/amd/display: apply edge-case DISPCLK WDIVIDER changes to master OTG pipes only
        drm/amd: Fix detection of _PR3 on the PCIe root port
        drm/amd: Fix logic error in sienna_cichlid_update_pcie_parameters()
        drm/amdgpu: Fix a memory leak
        drm/amd/pm: add unique_id for gc 11.0.3
        drm/i915: Invalidate the TLBs on each GT
        drm/i915: Register engines early to avoid type confusion
        drm/i915: Don't set PIPE_CONTROL_FLUSH_L3 for aux inval
        drm/nouveau: exec: report max pushs through getparam
        drm/nouveau: chan: use channel class definitions
        drm/nouveau: chan: use struct nvif_mclass
        drm: panel-orientation-quirks: Add quirk for One Mix 2S
        drm/tests: Fix kunit_release_action ctx argument
      4940c154
    • Uwe Kleine-König's avatar
      platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent section mismatch warning · 5b44abbc
      Uwe Kleine-König authored
      
      
      As described in the added code comment, a reference to .exit.text is ok
      for drivers registered via module_platform_driver_probe(). Make this
      explicit to prevent a section mismatch warning:
      
      	WARNING: modpost: drivers/platform/x86/hp/hp-wmi: section mismatch in reference: hp_wmi_driver+0x8 (section: .data) -> hp_wmi_bios_remove (section: .exit.text)
      
      Fixes: c165b80c ("hp-wmi: fix handling of platform device")
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Link: https://lore.kernel.org/r/20231004111624.2667753-1-u.kleine-koenig@pengutronix.de
      
      
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      5b44abbc
    • Linus Torvalds's avatar
      Merge tag 'erofs-for-6.6-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs · b78b18fb
      Linus Torvalds authored
      Pull erofs fixes from Gao Xiang:
      
       - Fix a memory leak issue when using LZMA global compressed
         deduplication
      
       - Fix empty device tags in flatdev mode
      
       - Update documentation for recent new features
      
      * tag 'erofs-for-6.6-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs:
        erofs: update documentation
        erofs: allow empty device tags in flatdev mode
        erofs: fix memory leak of LZMA global compressed deduplication
      b78b18fb
    • Linus Torvalds's avatar
      Merge tag 'for-linus-2023100502' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · 19fbf677
      Linus Torvalds authored
      Pull HID fixes from Jiri Kosina:
      
       - power management fix for intel-ish-hid (Srinivas Pandruvada)
      
       - power management fix for hid-nintendo (Martino Fontana)
      
       - error handling fixes for nvidia-shield (Christophe JAILLET)
      
       - memory leak fix for hid-sony (Christophe JAILLET)
      
       - fix for slab out-of-bound write in hid-holtek (Ma Ke)
      
       - other assorted smaller fixes and device ID / quirk entry additions
      
      * tag 'for-linus-2023100502' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: Add quirk to ignore the touchscreen battery on HP ENVY 15-eu0556ng
        HID: intel-ish-hid: ipc: Disable and reenable ACPI GPE bit
        HID: sony: remove duplicate NULL check before calling usb_free_urb()
        HID: nintendo: reinitialize USB Pro Controller after resuming from suspend
        HID: nvidia-shield: Fix some missing function calls() in the probe error handling path
        HID: nvidia-shield: Fix a missing led_classdev_unregister() in the probe error handling path
        HID: multitouch: Add required quirk for Synaptics 0xcd7e device
        HID: nvidia-shield: Select POWER_SUPPLY Kconfig option
        HID: holtek: fix slab-out-of-bounds Write in holtek_kbd_input_event
        HID: nvidia-shield: add LEDS_CLASS dependency
        HID: logitech-hidpp: Add Bluetooth ID for the Logitech M720 Triathlon mouse
        HID: steelseries: Fix signedness bug in steelseries_headset_arctis_1_fetch_battery()
        HID: sony: Fix a potential memory leak in sony_probe()
      19fbf677