Skip to content
Snippets Groups Projects
  1. Dec 06, 2023
    • David E. Box's avatar
      PCI/ASPM: pci_enable_link_state: Add argument to acquire bus lock · b37e8e4b
      David E. Box authored and Lucas De Marchi's avatar Lucas De Marchi committed
      The VMD driver calls pci_enabled_link_state as a callback from
      pci_bus_walk. Both will acquire the pci_bus_sem lock leading to a lockdep
      warning. Add an argument to pci_enable_link_state to set whether the lock
      should be acquired. In the VMD driver, set the argument to false since the
      lock will already be obtained by pci_bus_walk.
      
      Still, review comments needs to be addressed. However, this fix
      is helping to unblock CI execution for now.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8316
      
      
      Reported-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Fixes: de82f60f ("PCI/ASPM: Add pci_enable_link_state()")
      Link: https://lore.kernel.org/linux-pci/ZBjko%2FifunIwsK2v@intel.com/
      
      
      Signed-off-by: default avatarDavid E. Box <david.e.box@linux.intel.com>
      Signed-off-by: default avatarSwati Sharma <swati2.sharma@intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230330121135.15414-1-swati2.sharma@intel.com
      b37e8e4b
    • Joonas Lahtinen's avatar
    • Chris Wilson's avatar
    • Chris Wilson's avatar
      HAX sound: Disable probing snd_hda with DG1 · 90fbd685
      Chris Wilson authored and Lucas De Marchi's avatar Lucas De Marchi committed
      Audio component in i915 is not hooked up yet causing long timeouts and
      angry abortive CI.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8045
      
      
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      90fbd685
    • Chris Wilson's avatar
    • Maarten Lankhorst's avatar
      perf/core: Only copy-to-user after completely unlocking all locks, v3. · 0f47f842
      Maarten Lankhorst authored and Lucas De Marchi's avatar Lucas De Marchi committed
      We inadvertently create a dependency on mmap_sem with a whole chain.
      
      This breaks any user who wants to take a lock and call rcu_barrier(),
      while also taking that lock inside mmap_sem:
      
      <4> [604.892532] ======================================================
      <4> [604.892534] WARNING: possible circular locking dependency detected
      <4> [604.892536] 5.6.0-rc7-CI-Patchwork_17096+ #1 Tainted: G     U
      <4> [604.892537] ------------------------------------------------------
      <4> [604.892538] kms_frontbuffer/2595 is trying to acquire lock:
      <4> [604.892540] ffffffff8264a558 (rcu_state.barrier_mutex){+.+.}, at: rcu_barrier+0x23/0x190
      <4> [604.892547]
      but task is already holding lock:
      <4> [604.892547] ffff888484716050 (reservation_ww_class_mutex){+.+.}, at: i915_gem_object_pin_to_display_plane+0x89/0x270 [i915]
      <4> [604.892592]
      which lock already depends on the new lock.
      <4> [604.892593]
      the existing dependency chain (in reverse order) is:
      <4> [604.892594]
      -> #6 (reservation_ww_class_mutex){+.+.}:
      <4> [604.892597]        __ww_mutex_lock.constprop.15+0xc3/0x1090
      <4> [604.892598]        ww_mutex_lock+0x39/0x70
      <4> [604.892600]        dma_resv_lockdep+0x10e/0x1f5
      <4> [604.892602]        do_one_initcall+0x58/0x300
      <4> [604.892604]        kernel_init_freeable+0x17b/0x1dc
      <4> [604.892605]        kernel_init+0x5/0x100
      <4> [604.892606]        ret_from_fork+0x24/0x50
      <4> [604.892607]
      -> #5 (reservation_ww_class_acquire){+.+.}:
      <4> [604.892609]        dma_resv_lockdep+0xec/0x1f5
      <4> [604.892610]        do_one_initcall+0x58/0x300
      <4> [604.892610]        kernel_init_freeable+0x17b/0x1dc
      <4> [604.892611]        kernel_init+0x5/0x100
      <4> [604.892612]        ret_from_fork+0x24/0x50
      <4> [604.892613]
      -> #4 (&mm->mmap_sem#2){++++}:
      <4> [604.892615]        __might_fault+0x63/0x90
      <4> [604.892617]        _copy_to_user+0x1e/0x80
      <4> [604.892619]        perf_read+0x200/0x2b0
      <4> [604.892621]        vfs_read+0x96/0x160
      <4> [604.892622]        ksys_read+0x9f/0xe0
      <4> [604.892623]        do_syscall_64+0x4f/0x220
      <4> [604.892624]        entry_SYSCALL_64_after_hwframe+0x49/0xbe
      <4> [604.892625]
      -> #3 (&cpuctx_mutex){+.+.}:
      <4> [604.892626]        __mutex_lock+0x9a/0x9c0
      <4> [604.892627]        perf_event_init_cpu+0xa4/0x140
      <4> [604.892629]        perf_event_init+0x19d/0x1cd
      <4> [604.892630]        start_kernel+0x362/0x4e4
      <4> [604.892631]        secondary_startup_64+0xa4/0xb0
      <4> [604.892631]
      -> #2 (pmus_lock){+.+.}:
      <4> [604.892633]        __mutex_lock+0x9a/0x9c0
      <4> [604.892633]        perf_event_init_cpu+0x6b/0x140
      <4> [604.892635]        cpuhp_invoke_callback+0x9b/0x9d0
      <4> [604.892636]        _cpu_up+0xa2/0x140
      <4> [604.892637]        do_cpu_up+0x61/0xa0
      <4> [604.892639]        smp_init+0x57/0x96
      <4> [604.892639]        kernel_init_freeable+0x87/0x1dc
      <4> [604.892640]        kernel_init+0x5/0x100
      <4> [604.892642]        ret_from_fork+0x24/0x50
      <4> [604.892642]
      -> #1 (cpu_hotplug_lock.rw_sem){++++}:
      <4> [604.892643]        cpus_read_lock+0x34/0xd0
      <4> [604.892644]        rcu_barrier+0xaa/0x190
      <4> [604.892645]        kernel_init+0x21/0x100
      <4> [604.892647]        ret_from_fork+0x24/0x50
      <4> [604.892647]
      -> #0 (rcu_state.barrier_mutex){+.+.}:
      <4> [604.892649]        __lock_acquire+0x1328/0x15d0
      <4> [604.892650]        lock_acquire+0xa7/0x1c0
      <4> [604.892651]        __mutex_lock+0x9a/0x9c0
      <4> [604.892652]        rcu_barrier+0x23/0x190
      <4> [604.892680]        i915_gem_object_unbind+0x29d/0x3f0 [i915]
      <4> [604.892707]        i915_gem_object_pin_to_display_plane+0x141/0x270 [i915]
      <4> [604.892737]        intel_pin_and_fence_fb_obj+0xec/0x1f0 [i915]
      <4> [604.892767]        intel_plane_pin_fb+0x3f/0xd0 [i915]
      <4> [604.892797]        intel_prepare_plane_fb+0x13b/0x5c0 [i915]
      <4> [604.892798]        drm_atomic_helper_prepare_planes+0x85/0x110
      <4> [604.892827]        intel_atomic_commit+0xda/0x390 [i915]
      <4> [604.892828]        drm_atomic_helper_set_config+0x57/0xa0
      <4> [604.892830]        drm_mode_setcrtc+0x1c4/0x720
      <4> [604.892830]        drm_ioctl_kernel+0xb0/0xf0
      <4> [604.892831]        drm_ioctl+0x2e1/0x390
      <4> [604.892833]        ksys_ioctl+0x7b/0x90
      <4> [604.892835]        __x64_sys_ioctl+0x11/0x20
      <4> [604.892835]        do_syscall_64+0x4f/0x220
      <4> [604.892836]        entry_SYSCALL_64_after_hwframe+0x49/0xbe
      <4> [604.892837]
      
      Changes since v1:
      - Use (*values)[n++] in perf_read_one().
      Changes since v2:
      - Centrally allocate values.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8042
      
      
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200502171413.9133-1-chris@chris-wilson.co.uk
      
      
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      0f47f842
    • Chris Wilson's avatar
      pci/msi: Stop warning for MSI enabling failure · b29f3f06
      Chris Wilson authored and Lucas De Marchi's avatar Lucas De Marchi committed
      If the MSI is already enabled, trying to enable it again results in an
      -EINVAL and on the first attempt a WARN. That WARN causes our CI to
      abort the run [on each first attempt to suspend]:
      
      <4> [463.142025] WARNING: CPU: 0 PID: 2225 at drivers/pci/msi.c:1074 __pci_enable_msi_range+0x3cb/0x420
      <4> [463.142026] Modules linked in: snd_hda_intel i915 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic mei_hdcp x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul snd_intel_dspcfg ghash_clmulni_intel snd_hda_codec btusb btrtl btbcm btintel e1000e bluetooth snd_hwdep snd_hda_core ptp ecdh_generic snd_pcm ecc pps_core mei_me mei prime_numbers [last unloaded: i915]
      <4> [463.142045] CPU: 0 PID: 2225 Comm: kworker/u8:14 Tainted: G     U            5.7.0-rc2-CI-CI_DRM_8350+ #1
      <4> [463.142046] Hardware name: Intel Corporation NUC7i5BNH/NUC7i5BNB, BIOS BNKBL357.86A.0060.2017.1214.2013 12/14/2017
      <4> [463.142049] Workqueue: events_unbound async_run_entry_fn
      <4> [463.142051] RIP: 0010:__pci_enable_msi_range+0x3cb/0x420
      <4> [463.142053] Code: 76 58 49 8d 56 48 48 89 df e8 31 73 fd ff e9 20 fe ff ff 31 f6 48 89 df e8 c2 e9 fd ff e9 d6 fe ff ff 45 89 fc e9 1a ff ff ff <0f> 0b 41 bc ea ff ff ff e9 0d ff ff ff 41 bc ea ff ff ff e9 02 ff
      <4> [463.142054] RSP: 0018:ffffc90000593cd0 EFLAGS: 00010202
      <4> [463.142056] RAX: 0000000000000010 RBX: ffff888274051000 RCX: 0000000000000000
      <4> [463.142057] RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff888274051000
      <4> [463.142058] RBP: ffff888238aa1018 R08: 0000000000000001 R09: 0000000000000001
      <4> [463.142060] R10: ffffc90000593d90 R11: 00000000c79cdfd5 R12: ffff8882740510b0
      <4> [463.142061] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
      <4> [463.142062] FS:  0000000000000000(0000) GS:ffff888276c00000(0000) knlGS:0000000000000000
      <4> [463.142064] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      <4> [463.142065] CR2: 000055706f347d80 CR3: 0000000005610003 CR4: 00000000003606f0
      <4> [463.142066] Call Trace:
      <4> [463.142073]  pci_enable_msi+0x11/0x20
      <4> [463.142077]  azx_resume+0x1ab/0x200 [snd_hda_intel]
      <4> [463.142080]  ? pci_pm_thaw+0x80/0x80
      <4> [463.142084]  dpm_run_callback+0x64/0x280
      <4> [463.142089]  device_resume+0xd4/0x1c0
      <4> [463.142093]  ? dpm_watchdog_set+0x60/0
      
      While this would appear to be a bug in snd-hda, it does appear
      inconsequential, at least for gfx-ci.
      
      Downgrade the warning to an info, like the other already-enabled error
      for MSI-X.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8041
      Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1687
      
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200423082753.3899018-1-chris@chris-wilson.co.uk
      
      
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      b29f3f06
    • Chris Wilson's avatar
      uapi/perf: Squelch compiler warning · 98e60307
      Chris Wilson authored and Lucas De Marchi's avatar Lucas De Marchi committed
      Remove copious amounts of
      ./include/uapi/linux/perf_event.h:147:56: warning: cast truncates bits from constant value (8000000000000000 becomes 0)
      as they are drowning out our warnings.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8039
      
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190727121750.20882-1-chris@chris-wilson.co.uk
      
      
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      98e60307
    • Chris Wilson's avatar
      mm: Show slab debug as offsets from section base not hashed pointers · 6c136dec
      Chris Wilson authored and Lucas De Marchi's avatar Lucas De Marchi committed
      Since the kernel now used hashed pointers for raw addresses, it is very
      hard to guage the relative placement within a section, and since the
      hash value will never match up with any contents, using it provides no
      information relevant for slab debugging. Show the relative offset into
      each section, so that some reference for the hexdump is provided.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8038
      
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      6c136dec
    • Simona Vetter's avatar
      net/sch_generic: Shut up noise · 8b6d8660
      Simona Vetter authored and Lucas De Marchi's avatar Lucas De Marchi committed
      We can't allow spam in CI.
      
      Update 26th June 2018: This is still an issue:
      Update 23rd May 2019: You guessed it, still ocurring.
      
      [  224.739686] ------------[ cut here ]------------
      [  224.739712] WARNING: CPU: 3 PID: 2982 at net/sched/sch_generic.c:461 dev_watchdog+0x1fd/0x210
      [  224.739714] Modules linked in: vgem snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_pcm i915 asix usbnet mii mei_me mei prime_numbers i2c_hid pinctrl_sunrisepoint pinctrl_intel btusb btrtl btbcm btintel bluetooth ecdh_generic
      [  224.739775] CPU: 3 PID: 2982 Comm: gem_exec_suspen Tainted: G     U  W         4.18.0-rc2-CI-Patchwork_9414+ #1
      [  224.739777] Hardware name: Dell Inc. XPS 13 9350/, BIOS 1.4.12 11/30/2016
      [  224.739780] RIP: 0010:dev_watchdog+0x1fd/0x210
      [  224.739781] Code: 49 63 4c 24 f0 eb 92 4c 89 ef c6 05 21 46 ad 00 01 e8 77 ee fc ff 89 d9 48 89 c2 4c 89 ee 48 c7 c7 88 4c 14 82 e8 a3 fe 84 ff <0f> 0b eb be 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 c7 47
      [  224.739866] RSP: 0018:ffff88027dd83e40 EFLAGS: 00010286
      [  224.739869] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000102
      [  224.739871] RDX: 0000000080000102 RSI: ffffffff820c8c6c RDI: 00000000ffffffff
      [  224.739873] RBP: ffff8802644c1540 R08: 0000000071be9b33 R09: 0000000000000000
      [  224.739874] R10: ffff88027dd83dc0 R11: 0000000000000000 R12: ffff8802644c1588
      [  224.739876] R13: ffff8802644c1160 R14: 0000000000000001 R15: ffff88026a5dc728
      [  224.739878] FS:  00007f18f4887980(0000) GS:ffff88027dd80000(0000) knlGS:0000000000000000
      [  224.739880] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [  224.739881] CR2: 00007f4c627ae548 CR3: 000000022ca1a002 CR4: 00000000003606e0
      [  224.739883] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      [  224.739885] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      [  224.739886] Call Trace:
      [  224.739888]  <IRQ>
      [  224.739892]  ? qdisc_reset+0xe0/0xe0
      [  224.739894]  ? qdisc_reset+0xe0/0xe0
      [  224.739897]  call_timer_fn+0x93/0x360
      [  224.739903]  expire_timers+0xc1/0x1d0
      [  224.739908]  run_timer_softirq+0xc7/0x170
      [  224.739916]  __do_softirq+0xd9/0x505
      [  224.739923]  irq_exit+0xa9/0xc0
      [  224.739926]  smp_apic_timer_interrupt+0x9c/0x2d0
      [  224.739929]  apic_timer_interrupt+0xf/0x20
      [  224.739931]  </IRQ>
      [  224.739934] RIP: 0010:delay_tsc+0x2e/0xb0
      [  224.739936] Code: 49 89 fc 55 53 bf 01 00 00 00 e8 6d 2c 78 ff e8 88 9d b6 ff 41 89 c5 0f ae e8 0f 31 48 c1 e2 20 48 09 c2 48 89 d5 eb 16 f3 90 <bf> 01 00 00 00 e8 48 2c 78 ff e8 63 9d b6 ff 44 39 e8 75 36 0f ae
      [  224.740021] RSP: 0018:ffffc900002f7d48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
      [  224.740024] RAX: 0000000080000000 RBX: 0000000649565ca9 RCX: 0000000000000001
      [  224.740026] RDX: 0000000080000001 RSI: ffffffff820c8c6c RDI: 00000000ffffffff
      [  224.740027] RBP: 00000006493ea9ce R08: 000000005e81e2ee R09: 0000000000000000
      [  224.740029] R10: 0000000000000120 R11: 0000000000000000 R12: 00000000002ad8d6
      [  224.740030] R13: 0000000000000003 R14: 0000000000000004 R15: ffff88025caf5408
      [  224.740040]  ? delay_tsc+0x66/0xb0
      [  224.740045]  hibernation_debug_sleep+0x1c/0x30
      [  224.740048]  hibernation_snapshot+0x2c1/0x690
      [  224.740053]  hibernate+0x142/0x2a4
      [  224.740057]  state_store+0xd0/0xe0
      [  224.740063]  kernfs_fop_write+0x104/0x190
      [  224.740068]  __vfs_write+0x31/0x180
      [  224.740072]  ? rcu_read_lock_sched_held+0x6f/0x80
      [  224.740075]  ? rcu_sync_lockdep_assert+0x29/0x50
      [  224.740078]  ? __sb_start_write+0x152/0x1f0
      [  224.740080]  ? __sb_start_write+0x168/0x1f0
      [  224.740084]  vfs_write+0xbd/0x1a0
      [  224.740088]  ksys_write+0x50/0xc0
      [  224.740094]  do_syscall_64+0x55/0x190
      [  224.740097]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
      [  224.740099] RIP: 0033:0x7f18f400a281
      [  224.740100] Code: c3 0f 1f 84 00 00 00 00 00 48 8b 05 59 8d 20 00 c3 0f 1f 84 00 00 00 00 00 8b 05 8a d1 20 00 85 c0 75 16 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 57 f3 c3 0f 1f 44 00 00 41 54 55 49 89 d4 53
      [  224.740186] RSP: 002b:00007fffd1f4fec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
      [  224.740189] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f18f400a281
      [  224.740190] RDX: 0000000000000004 RSI: 00007f18f448069a RDI: 0000000000000006
      [  224.740192] RBP: 00007fffd1f4fef0 R08: 0000000000000000 R09: 0000000000000000
      [  224.740194] R10: 0000000000000000 R11: 0000000000000246 R12: 000055e795d03400
      [  224.740195] R13: 00007fffd1f50500 R14: 0000000000000000 R15: 0000000000000000
      [  224.740205] irq event stamp: 1582591
      [  224.740207] hardirqs last  enabled at (1582590): [<ffffffff810f9f9c>] vprintk_emit+0x4bc/0x4d0
      [  224.740210] hardirqs last disabled at (1582591): [<ffffffff81a0111c>] error_entry+0x7c/0x100
      [  224.740212] softirqs last  enabled at (1582568): [<ffffffff81c0034f>] __do_softirq+0x34f/0x505
      [  224.740215] softirqs last disabled at (1582571): [<ffffffff8108c959>] irq_exit+0xa9/0xc0
      [  224.740218] WARNING: CPU: 3 PID: 2982 at net/sched/sch_generic.c:461 dev_watchdog+0x1fd/0x210
      [  224.740219] ---[ end trace 6e41d690e611c338 ]---
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8037
      References: https://bugzilla.kernel.org/show_bug.cgi?id=196399
      
      
      Acked-by: default avatarMartin Peres <martin.peres@linux.intel.com>
      Cc: Martin Peres <martin.peres@linux.intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20170718082110.12524-1-daniel.vetter@ffwll.ch
      
      
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@intel.com>
      8b6d8660
    • Simona Vetter's avatar
    • Simona Vetter's avatar
      RFC: soft/hardlookup: taint kernel · eb069582
      Simona Vetter authored and Lucas De Marchi's avatar Lucas De Marchi committed
      There's the soft/hardlookup_panic sysctls, but that's a bit an extreme
      measure. As a fallback taint at least the machine.
      
      Our CI uses this to decide when a reboot is necessary, plus to figure
      out whether the kernel is still happy.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8035
      
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Valdis Kletnieks <valdis.kletnieks@vt.edu>
      Cc: Laurence Oberman <loberman@redhat.com>
      Cc: Vincent Whitchurch <vincent.whitchurch@axis.com>
      Cc: Don Zickus <dzickus@redhat.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
      Cc: Sinan Kaya <okaya@kernel.org>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Acked-by: Chris Wilson <chris@chris-wilson.co.uk> (for core-for-CI)
      Link: https://patchwork.freedesktop.org/patch/msgid/20190502194208.3535-2-daniel.vetter@ffwll.ch
      
      
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      eb069582
    • Simona Vetter's avatar
      RFC: hung_task: taint kernel · bca55107
      Simona Vetter authored and Lucas De Marchi's avatar Lucas De Marchi committed
      There's the hung_task_panic sysctl, but that's a bit an extreme measure.
      As a fallback taint at least the machine.
      
      Our CI uses this to decide when a reboot is necessary, plus to figure
      out whether the kernel is still happy.
      
      v2: Works much better when I put the else { add_taint() } at the right
      place.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8034
      
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Cc: Dmitry Vyukov <dvyukov@google.com>
      Cc: "Paul E. McKenney" <paulmck@linux.ibm.com>
      Cc: Valdis Kletnieks <valdis.kletnieks@vt.edu>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
      Cc: "Liu, Chuansheng" <chuansheng.liu@intel.com>
      Acked-by: Chris Wilson <chris@chris-wilson.co.uk> (for core-for-CI)
      Link: https://patchwork.freedesktop.org/patch/msgid/20190502204648.5537-1-daniel.vetter@ffwll.ch
      
      
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      bca55107
    • Imre Deak's avatar
      ICL HACK: usb/icl: Work around ACPI boottime crash · 7cf7673c
      Imre Deak authored and Lucas De Marchi's avatar Lucas De Marchi committed
      Work around the following boot time crash:
      
      [   10.456056] CPU: 1 PID: 220 Comm: systemd-udevd Tainted: G        W         4.17.0-rc7-CI-CI_DRM_4040+ #182
      [   10.465828] Hardware name: Intel Corporation Ice Lake Client Platform/IceLake U DDR4 SODIMM PD RVP, BIOS
      +ICLSFWR1.R00.2204.A00.1805172221 05/17/2018
      [   10.479168] RIP: 0010:acpi_ps_complete_this_op+0xa7/0x22a
      [   10.484627] RSP: 0018:ffffc900003a7578 EFLAGS: 00010202
      [   10.489881] RAX: 6b6b6b6b6b6b6b6b RBX: ffff8804abeda9c8 RCX: 0000000000000020
      [   10.497045] RDX: 0000000000000000 RSI: ffff88049e604a68 RDI: 0000000000000000
      [   10.504213] RBP: 0000000000000000 R08: ffff8804abeda9c8 R09: 0000000000000000
      [   10.511376] R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000e
      [   10.518542] R13: ffff88049e604a68 R14: ffff88049e604a68 R15: ffffffffa00263c2
      [   10.525713] FS:  00007ff6d85f18c0(0000) GS:ffff8804be880000(0000) knlGS:0000000000000000
      [   10.533839] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [   10.539616] CR2: 00007ff6d73cff40 CR3: 000000049f794001 CR4: 0000000000760ee0
      [   10.546783] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      [   10.553949] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      [   10.561112] PKRU: 55555554
      [   10.563849] Call Trace:
      [   10.566323]  acpi_ps_complete_op+0x49/0x3f1
      [   10.570537]  acpi_ps_parse_loop+0x94c/0x9bb
      [   10.574754]  ? acpi_ds_delete_walk_state+0x113/0x131
      [   10.579750]  acpi_ps_parse_aml+0x1a2/0x4af
      [   10.583875]  acpi_ps_execute_method+0x1e9/0x2a5
      [   10.588435]  acpi_ns_evaluate+0x2e4/0x42c
      [   10.592473]  acpi_evaluate_object+0x1fd/0x3a8
      [   10.596873]  usb_acpi_find_companion+0xee/0x1f0 [usbcore]
      [   10.602319]  acpi_platform_notify+0x33/0xa0
      [   10.606532]  device_add+0x197/0x600
      [   10.610048]  ? __init_waitqueue_head+0x36/0x50
      [   10.614529]  usb_hub_create_port_device+0x11d/0x340 [usbcore]
      [   10.620314]  hub_probe+0x9a5/0x1010 [usbcore]
      [   10.624701]  ? _raw_spin_unlock_irqrestore+0x51/0x60
      [   10.629730]  usb_probe_interface+0x13f/0x300 [usbcore]
      [   10.634900]  driver_probe_device+0x302/0x470
      [   10.639198]  ? __driver_attach+0xe0/0xe0
      [   10.643147]  bus_for_each_drv+0x59/0x90
      [   10.647013]  __device_attach+0xb7/0x130
      [   10.650878]  bus_probe_device+0x9c/0xb0
      [   10.654745]  device_add+0x3c5/0x600
      [   10.658270]  usb_set_configuration+0x540/0x880 [usbcore]
      [   10.663621]  generic_probe+0x28/0x80 [usbcore]
      [   10.668097]  driver_probe_device+0x302/0x470
      [   10.672393]  ? __driver_attach+0xe0/0xe0
      [   10.676346]  bus_for_each_drv+0x59/0x90
      [   10.680211]  __device_attach+0xb7/0x130
      [   10.684076]  bus_probe_device+0x9c/0xb0
      [   10.687940]  device_add+0x3c5/0x600
      [   10.691464]  usb_new_device+0x269/0x490 [usbcore]
      [   10.696206]  usb_add_hcd+0x558/0x850 [usbcore]
      [   10.700682]  xhci_pci_probe+0x13d/0x240 [xhci_pci]
      [   10.705534]  pci_device_probe+0xa1/0x130
      [   10.709484]  driver_probe_device+0x302/0x470
      [   10.713784]  __driver_attach+0xb9/0xe0
      [   10.717562]  ? driver_probe_device+0x470/0x470
      [   10.722033]  ? driver_probe_device+0x470/0x470
      [   10.726505]  bus_for_each_dev+0x64/0x90
      [   10.730370]  ? preempt_count_sub+0x92/0xd0
      [   10.734495]  bus_add_driver+0x164/0x260
      [   10.738362]  ? 0xffffffffa004e000
      [   10.741704]  driver_register+0x57/0xc0
      [   10.745482]  ? 0xffffffffa004e000
      [   10.748824]  do_one_initcall+0x4a/0x350
      [   10.752690]  ? do_init_module+0x22/0x20a
      [   10.756643]  ? rcu_read_lock_sched_held+0x74/0x80
      [   10.761377]  ? kmem_cache_alloc_trace+0x284/0x2e0
      [   10.766114]  do_init_module+0x5b/0x20a
      [   10.769895]  load_module+0x250d/0x2b20
      [   10.773678]  ? kernel_read+0x2c/0x40
      [   10.777285]  ? __se_sys_finit_module+0xaa/0xc0
      [   10.781759]  __se_sys_finit_module+0xaa/0xc0
      [   10.786061]  do_syscall_64+0x54/0x190
      [   10.789752]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
      [   10.794831] RIP: 0033:0x7ff6d74664d9
      [   10.798430] RSP: 002b:00007ffd91e7dd78 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
      [   10.806033] RAX: ffffffffffffffda RBX: 0000560519bfae20 RCX: 00007ff6d74664d9
      [   10.813195] RDX: 0000000000000000 RSI: 00007ff6d795ce23 RDI: 000000000000000e
      [   10.820360] RBP: 00007ff6d795ce23 R08: 0000000000000000 R09: 0000000000000000
      [   10.827523] R10: 000000000000000e R11: 0000000000000246 R12: 0000000000000000
      [   10.834690] R13: 0000560519bf9a30 R14: 0000000000020000 R15: 000000000aba9500
      [   10.841862] Code: c2 10 5f ea 81 48 c7 c6 f0 5e ea 81 bf 7c 00 00 00 e8 0d 7c 00 00 31 ed e9 88 01 00 00 48 8b 03 31 ed 48 85 c0
      +0f 84 e9 00 00 00 <4c> 8b 60 28 4d 85 e4 0f 84 dc 00 00 00 0f b7 78 0a e8 62 fe ff
      [   10.860832] RIP: acpi_ps_complete_this_op+0xa7/0x22a RSP: ffffc900003a7578
      [   10.867907] ---[ end trace 3a0d2ee1129bc71e ]---
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8033
      
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
      Tested-by: default avatarTomi Sarvela <tomi.p.sarvela@intel.com>
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180702135756.12159-1-imre.deak@intel.com
      
      
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      7cf7673c
    • Simona Vetter's avatar
      libata: Downgrade unsupported feature warnings to notifications · 400ac54b
      Simona Vetter authored and Lucas De Marchi's avatar Lucas De Marchi committed
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8032
      
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Petri Latvala <petri.latvala@intel.com>
      [danvet: Rebase]
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      400ac54b
    • Chris Wilson's avatar
      x86: Downgrade clock throttling thermal event critical error · 37b5c5e9
      Chris Wilson authored and Lucas De Marchi's avatar Lucas De Marchi committed
      Under CI testing, it is common for the cpus to overheat with the
      continuous workloads and end up being throttled. As the cpus still
      function, it is less of a critical error meriting urgent action, but an
      expected yet significant condition (pr_note).
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8031
      
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Petri Latvala <petri.latvala@intel.com>
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      37b5c5e9
    • Chris Wilson's avatar
      kernel/panic: Show the stacktrace after additional notifier messages · 623a22d2
      Chris Wilson authored and Lucas De Marchi's avatar Lucas De Marchi committed
      Most systems keep the last messages from the panic, and we value the
      stacktrace most, so dump it last in order to preserve it for
      post-mortems.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8030
      
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Acked-by: default avatarMartin Peres <martin.peres@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180903131745.30593-1-chris@chris-wilson.co.uk
      
      
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      623a22d2
    • Chris Wilson's avatar
      ftrace: Allow configuring global trace buffer size (for dump-on-oops) · 32d3617f
      Chris Wilson authored and Lucas De Marchi's avatar Lucas De Marchi committed
      We have recently turned on ftrace-dump-on-oops for i915's CI and an
      issue we have encountered is that the trace buffer size greatly exceeds
      the pstore capabilities; we get the tail of the oops but not the
      introduction.
      
      Currently the global buffer size is controllable on the cmdline, but at
      the request of our CI sysadmin, we would like to add a control to the
      Kconfig as well. The rationale being the cmdline carries the temporary
      hacks that we want to eradicate, and we want to track the permanent
      configuration in .config.
      
      I have kept the Kconfig option hidden from the user as the default
      should suffice for the majority of users; reserving the configuration
      for those that eschew the cmdline option.
      
      v2: Add an expert prompt to stop the default value overriding .config
      changes.
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8029
      
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Steven Rostedt <srostedt@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      32d3617f
    • Chris Wilson's avatar
      lockdep: Swap storage for pin_count and references · baf8cda4
      Chris Wilson authored and Lucas De Marchi's avatar Lucas De Marchi committed
      As a lockmap takes a reference for every ww_mutex used together, this
      can be an arbitrarily large number and under control of userspace --
      easily overflowing the arbitrary limit of 4096. However, the pin_count
      (used for detecting unexpected lock dropping) is a full 32b despite
      nesting being extremely rare (see lockdep_pin_lock).
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/8028
      
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190425092004.9995-33-chris@chris-wilson.co.uk
      
      
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      [Joonas: Converting to pin_count:11 as per addition of sync:1]
      Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@intel.com>
      baf8cda4
  2. Dec 03, 2023
  3. Dec 02, 2023
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 1b8af655
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix corruption of f0/vs0 during FP/Vector save, seen as userspace
         crashes when using io-uring workers (in particular with MariaDB)
      
       - Fix KVM_RUN potentially clobbering all host userspace FP/Vector
         registers
      
      Thanks to Timothy Pearson, Jens Axboe, and Nicholas Piggin.
      
      * tag 'powerpc-6.7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        KVM: PPC: Book3S HV: Fix KVM_RUN clobbering FP/VEC user registers
        powerpc: Don't clobber f0/vs0 during fp|altivec register save
      1b8af655
    • Linus Torvalds's avatar
      Merge tag 'vfio-v6.7-rc4' of https://github.com/awilliam/linux-vfio · 17b17be2
      Linus Torvalds authored
      Pull vfio fixes from Alex Williamson:
      
       - Fix the lifecycle of a mutex in the pds variant driver such that a
         reset prior to opening the device won't find it uninitialized.
         Implement the release path to symmetrically destroy the mutex. Also
         switch a different lock from spinlock to mutex as the code path has
         the potential to sleep and doesn't need the spinlock context
         otherwise (Brett Creeley)
      
       - Fix an issue detected via randconfig where KVM tries to symbol_get an
         undeclared function. The symbol is temporarily declared
         unconditionally here, which resolves the problem and avoids churn
         relative to a series pending for the next merge window which resolves
         some of this symbol ugliness, but also fixes Kconfig dependencies
         (Sean Christopherson)
      
      * tag 'vfio-v6.7-rc4' of https://github.com/awilliam/linux-vfio:
        vfio: Drop vfio_file_iommu_group() stub to fudge around a KVM wart
        vfio/pds: Fix possible sleep while in atomic context
        vfio/pds: Fix mutex lock->magic != lock warning
      17b17be2
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.7a-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · deb4b9dd
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - A fix for the Xen event driver setting the correct return value when
         experiencing an allocation failure
      
       - A fix for allocating space for a struct in the percpu area to not
         cross page boundaries (this one is for x86, a similar one for Arm was
         already in the pull request for rc3)
      
      * tag 'for-linus-6.7a-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/events: fix error code in xen_bind_pirq_msi_to_irq()
        x86/xen: fix percpu vcpu_info allocation
      deb4b9dd
    • Linus Torvalds's avatar
      Merge tag 'probes-fixes-v6.7-rc3' of... · 669fc834
      Linus Torvalds authored
      Merge tag 'probes-fixes-v6.7-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
      
      Pull probes fixes from Masami Hiramatsu:
      
       - objpool: Fix objpool overrun case on memory/cache access delay
         especially on the big.LITTLE SoC. The objpool uses a copy of object
         slot index internal loop, but the slot index can be changed on
         another processor in parallel. In that case, the difference of 'head'
         local copy and the 'slot->last' index will be bigger than local slot
         size. In that case, we need to re-read the slot::head to update it.
      
       - kretprobe: Fix to use appropriate rcu API for kretprobe holder. Since
         kretprobe_holder::rp is RCU managed, it should use
         rcu_assign_pointer() and rcu_dereference_check() correctly. Also
         adding __rcu tag for finding wrong usage by sparse.
      
       - rethook: Fix to use appropriate rcu API for rethook::handler. The
         same as kretprobe, rethook::handler is RCU managed and it should use
         rcu_assign_pointer() and rcu_dereference_check(). This also adds
         __rcu tag for finding wrong usage by sparse.
      
      * tag 'probes-fixes-v6.7-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        rethook: Use __rcu pointer for rethook::handler
        kprobes: consistent rcu api usage for kretprobe holder
        lib: objpool: fix head overrun on RK3588 SBC
      669fc834
    • Linus Torvalds's avatar
      Merge tag 'pm-6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 815fb87b
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix issues in two cpufreq drivers, in the AMD P-state driver and
        in the power-capping DTPM framework.
      
        Specifics:
      
         - Fix the AMD P-state driver's EPP sysfs interface in the cases when
           the performance governor is in use (Ayush Jain)
      
         - Make the ->fast_switch() callback in the AMD P-state driver return
           the target frequency as expected (Gautham R. Shenoy)
      
         - Allow user space to control the range of frequencies to use via
           scaling_min_freq and scaling_max_freq when AMD P-state driver is in
           use (Wyes Karny)
      
         - Prevent power domains needed for wakeup signaling from being turned
           off during system suspend on Qualcomm systems and prevent
           performance states votes from runtime-suspended devices from being
           lost across a system suspend-resume cycle in qcom-cpufreq-nvmem
           (Stephan Gerhold)
      
         - Fix disabling the 792 Mhz OPP in the imx6q cpufreq driver for the
           i.MX6ULL types that can run at that frequency (Christoph
           Niedermaier)
      
         - Eliminate unnecessary and harmful conversions to uW from the DTPM
           (dynamic thermal and power management) framework (Lukasz Luba)"
      
      * tag 'pm-6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq/amd-pstate: Only print supported EPP values for performance governor
        cpufreq/amd-pstate: Fix scaling_min_freq and scaling_max_freq update
        powercap: DTPM: Fix unneeded conversions to micro-Watts
        cpufreq/amd-pstate: Fix the return value of amd_pstate_fast_switch()
        pmdomain: qcom: rpmpd: Set GENPD_FLAG_ACTIVE_WAKEUP
        cpufreq: qcom-nvmem: Preserve PM domain votes in system suspend
        cpufreq: qcom-nvmem: Enable virtual power domain devices
        cpufreq: imx6q: Don't disable 792 Mhz OPP unnecessarily
      815fb87b
  4. Dec 01, 2023
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · ce474ae7
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "This fixes a recently introduced build issue on ARM32 and a NULL
        pointer dereference in the ACPI backlight driver due to a design issue
        exposed by a recent change in the ACPI bus type code.
      
        Specifics:
      
         - Fix a recently introduced build issue on ARM32 platforms caused by
           an inadvertent header file breakage (Dave Jiang)
      
         - Eliminate questionable usage of acpi_driver_data() in the ACPI
           backlight cooling device code that leads to NULL pointer
           dereferences after recent ACPI core changes (Hans de Goede)"
      
      * tag 'acpi-6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: video: Use acpi_video_device for cooling-dev driver data
        ACPI: Fix ARM32 platforms compile issue introduced by fw_table changes
      ce474ae7
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 35f84584
      Linus Torvalds authored
      Pull arm64 fix from Catalin Marinas:
       "Fix a regression where the arm64 KPTI ends up enabled even on systems
        that don't need it"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: Avoid enabling KPTI unnecessarily
      35f84584
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v6.7-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 1a2b4185
      Linus Torvalds authored
      Pull iommu fixes from Joerg Roedel:
      
       - Fix race conditions in device probe path
      
       - Handle ERR_PTR() returns in __iommu_domain_alloc() path
      
       - Update MAINTAINERS entry for Qualcom IOMMUs
      
       - Printk argument fix in device tree specific code
      
       - Several Intel VT-d fixes from Lu Baolu:
           - Do not support enforcing cache coherency for non-empty domains
           - Avoid devTLB invalidation if iommu is off
           - Disable PCI ATS in legacy passthrough mode
           - Support non-PCI devices when clearing context
           - Fix incorrect cache invalidation for mm notification
           - Add MTL to quirk list to skip TE disabling
           - Set variable intel_dirty_ops to static
      
      * tag 'iommu-fixes-v6.7-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        iommu: Fix printk arg in of_iommu_get_resv_regions()
        iommu/vt-d: Set variable intel_dirty_ops to static
        iommu/vt-d: Fix incorrect cache invalidation for mm notification
        iommu/vt-d: Add MTL to quirk list to skip TE disabling
        iommu/vt-d: Make context clearing consistent with context mapping
        iommu/vt-d: Disable PCI ATS in legacy passthrough mode
        iommu/vt-d: Omit devTLB invalidation requests when TES=0
        iommu/vt-d: Support enforce_cache_coherency only for empty domains
        iommu: Avoid more races around device probe
        MAINTAINERS: list all Qualcomm IOMMU drivers in the QUALCOMM IOMMU entry
        iommu: Flow ERR_PTR out from __iommu_domain_alloc()
      1a2b4185
    • Linus Torvalds's avatar
      Merge tag 'sound-6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 06a3c59f
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "No surprise here, including only a collection of HD-audio
        device-specific small fixes"
      
      * tag 'sound-6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda: Disable power-save on KONTRON SinglePC
        ALSA: hda/realtek: Add supported ALC257 for ChromeOS
        ALSA: hda/realtek: Headset Mic VREF to 100%
        ALSA: hda: intel-nhlt: Ignore vbps when looking for DMIC 32 bps format
        ALSA: hda: cs35l56: Enable low-power hibernation mode on SPI
        ALSA: cs35l41: Fix for old systems which do not support command
        ALSA: hda: cs35l41: Remove unnecessary boolean state variable firmware_running
        ALSA: hda - Fix speaker and headset mic pin config for CHUWI CoreBook XPro
      06a3c59f
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-12-01' of git://anongit.freedesktop.org/drm/drm · b1e51588
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Weekly fixes, mostly amdgpu fixes with a scattering of nouveau, i915,
        and a couple of reverts. Hopefully it will quieten down in coming
        weeks.
      
        drm:
         - Revert unexport of prime helpers for fd/handle conversion
      
        dma_resv:
         - Do not double add fences in dma_resv_add_fence.
      
        gpuvm:
         - Fix GPUVM license identifier.
      
        i915:
         - Mark internal GSC engine with reserved uabi class
         - Take VGA converters into account in eDP probe
         - Fix intel_pre_plane_updates() call to ensure workarounds get applied
      
        panel:
         - Revert panel fixes as they require exporting device_is_dependent.
      
        nouveau:
         - fix oversized allocations in new vm path
         - fix zero-length array
         - remove a stray lock
      
        nt36523:
         - Fix error check for nt36523.
      
        amdgpu:
         - DMUB fix
         - DCN 3.5 fixes
         - XGMI fix
         - DCN 3.2 fixes
         - Vangogh suspend fix
         - NBIO 7.9 fix
         - GFX11 golden register fix
         - Backlight fix
         - NBIO 7.11 fix
         - IB test overflow fix
         - DCN 3.1.4 fixes
         - fix a runtime pm ref count
         - Retimer fix
         - ABM fix
         - DCN 3.1.5 fix
         - Fix AGP addressing
         - Fix possible memory leak in SMU error path
         - Make sure PME is enabled in D3
         - Fix possible NULL pointer dereference in debugfs
         - EEPROM fix
         - GC 9.4.3 fix
      
        amdkfd:
         - IP version check fix
         - Fix memory leak in pqm_uninit()"
      
      * tag 'drm-fixes-2023-12-01' of git://anongit.freedesktop.org/drm/drm: (53 commits)
        Revert "drm/prime: Unexport helpers for fd/handle conversion"
        drm/amdgpu: Use another offset for GC 9.4.3 remap
        drm/amd/display: Fix some HostVM parameters in DML
        drm/amdkfd: Free gang_ctx_bo and wptr_bo in pqm_uninit
        drm/amdgpu: Update EEPROM I2C address for smu v13_0_0
        drm/amd/display: Allow DTBCLK disable for DCN35
        drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer
        drm/amd: Enable PCIe PME from D3
        drm/amd/pm: fix a memleak in aldebaran_tables_init
        drm/amdgpu: fix AGP addressing when GART is not at 0
        drm/amd/display: update dcn315 lpddr pstate latency
        drm/amd/display: fix ABM disablement
        drm/amd/display: Fix black screen on video playback with embedded panel
        drm/amd/display: Fix conversions between bytes and KB
        drm/amdkfd: Use common function for IP version check
        drm/amd/display: Remove config update
        drm/amd/display: Update DCN35 clock table policy
        drm/amd/display: force toggle rate wa for first link training for a retimer
        drm/amdgpu: correct the amdgpu runtime dereference usage count
        drm/amd/display: Update min Z8 residency time to 2100 for DCN314
        ...
      b1e51588
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.7-2023-11-30' of git://git.kernel.dk/linux · c9a925b7
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Fix an issue with discontig page checking for IORING_SETUP_NO_MMAP
      
       - Fix an issue with not allowing IORING_SETUP_NO_MMAP also disallowing
         mmap'ed buffer rings
      
       - Fix an issue with deferred release of memory mapped pages
      
       - Fix a lockdep issue with IORING_SETUP_NO_MMAP
      
       - Use fget/fput consistently, even from our sync system calls. No real
         issue here, but if we were ever to allow closing io_uring descriptors
         it would be required. Let's play it safe and just use the full ref
         counted versions upfront. Most uses of io_uring are threaded anyway,
         and hence already doing the full version underneath.
      
      * tag 'io_uring-6.7-2023-11-30' of git://git.kernel.dk/linux:
        io_uring: use fget/fput consistently
        io_uring: free io_buffer_list entries via RCU
        io_uring/kbuf: prune deferred locked cache when tearing down
        io_uring/kbuf: recycle freed mapped buffer ring entries
        io_uring/kbuf: defer release of mapped buffer rings
        io_uring: enable io_mem_alloc/free to be used in other parts
        io_uring: don't guard IORING_OFF_PBUF_RING with SETUP_NO_MMAP
        io_uring: don't allow discontig pages for IORING_SETUP_NO_MMAP
      c9a925b7
    • Linus Torvalds's avatar
      Merge tag 'block-6.7-2023-12-01' of git://git.kernel.dk/linux · ee0c8a9b
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - NVMe pull request via Keith:
           - Invalid namespace identification error handling (Marizio Ewan,
             Keith)
           - Fabrics keep-alive tuning (Mark)
      
       - Fix for a bad error check regression in bcache (Markus)
      
       - Fix for a performance regression with O_DIRECT (Ming)
      
       - Fix for a flush related deadlock (Ming)
      
       - Make the read-only warn on per-partition (Yu)
      
      * tag 'block-6.7-2023-12-01' of git://git.kernel.dk/linux:
        nvme-core: check for too small lba shift
        blk-mq: don't count completed flush data request as inflight in case of quiesce
        block: Document the role of the two attribute groups
        block: warn once for each partition in bio_check_ro()
        block: move .bd_inode into 1st cacheline of block_device
        nvme: check for valid nvme_identify_ns() before using it
        nvme-core: fix a memory leak in nvme_ns_info_from_identify()
        nvme: fine-tune sending of first keep-alive
        bcache: revert replacing IS_ERR_OR_NULL with IS_ERR
      ee0c8a9b
    • Linus Torvalds's avatar
      Merge tag 'dm-6.7/dm-fixes-2' of... · abd792f3
      Linus Torvalds authored
      Merge tag 'dm-6.7/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
      
       - Fix DM verity target's FEC support to always initialize IO before it
         frees it. Also fix alignment of struct dm_verity_fec_io within the
         per-bio-data
      
       - Fix DM verity target to not FEC failed readahead IO
      
       - Update DM flakey target to use MAX_ORDER rather than MAX_ORDER - 1
      
      * tag 'dm-6.7/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm-flakey: start allocating with MAX_ORDER
        dm-verity: align struct dm_verity_fec_io properly
        dm verity: don't perform FEC for failed readahead IO
        dm verity: initialize fec io before freeing it
      abd792f3
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · ff4a9f49
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Three small fixes, one in drivers.
      
        The core changes are to the internal representation of flags in
        scsi_devices which removes space wasting bools in favour of single bit
        flags and to add a flag to force a runtime resume which is used by ATA
        devices"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: sd: Fix system start for ATA devices
        scsi: Change SCSI device boolean fields to single bit flags
        scsi: ufs: core: Clear cmd if abort succeeds in MCQ mode
      ff4a9f49
    • Linus Torvalds's avatar
      Merge tag 'fs_for_v6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · c1c09da0
      Linus Torvalds authored
      Pull ext2 fix from Jan Kara:
       "Fix an ext2 bug introduced by changes in ext2 & iomap stepping on each
        other toes (apparently ext2 driver does not get much testing in
        linux-next)"
      
      * tag 'fs_for_v6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        ext2: Fix ki_pos update for DIO buffered-io fallback case
      c1c09da0
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2023-11-29' of https://evilpiepirate.org/git/bcachefs · e6861be4
      Linus Torvalds authored
      Pull more bcachefs bugfixes from Kent Overstreet:
      
       - bcache & bcachefs were broken with CFI enabled; patch for closures to
         fix type punning
      
       - mark erasure coding as extra-experimental; there are incompatible
         disk space accounting changes coming for erasure coding, and I'm
         still seeing checksum errors in some tests
      
       - several fixes for durability-related issues (durability is a device
         specific setting where we can tell bcachefs that data on a given
         device should be counted as replicated x times)
      
       - a fix for a rare livelock when a btree node merge then updates a
         parent node that is almost full
      
       - fix a race in the device removal path, where dropping a pointer in a
         btree node to a device would be clobbered by an in flight btree write
         updating the btree node key on completion
      
       - fix one SRCU lock hold time warning in the btree gc code - ther's
         still a bunch more of these to fix
      
       - fix a rare race where we'd start copygc before initializing the "are
         we rw" percpu refcount; copygc would think we were already ro and die
         immediately
      
      * tag 'bcachefs-2023-11-29' of https://evilpiepirate.org/git/bcachefs: (23 commits)
        bcachefs: Extra kthread_should_stop() calls for copygc
        bcachefs: Convert gc_alloc_start() to for_each_btree_key2()
        bcachefs: Fix race between btree writes and metadata drop
        bcachefs: move journal seq assertion
        bcachefs: -EROFS doesn't count as move_extent_start_fail
        bcachefs: trace_move_extent_start_fail() now includes errcode
        bcachefs: Fix split_race livelock
        bcachefs: Fix bucket data type for stripe buckets
        bcachefs: Add missing validation for jset_entry_data_usage
        bcachefs: Fix zstd compress workspace size
        bcachefs: bpos is misaligned on big endian
        bcachefs: Fix ec + durability calculation
        bcachefs: Data update path won't accidentaly grow replicas
        bcachefs: deallocate_extra_replicas()
        bcachefs: Proper refcounting for journal_keys
        bcachefs: preserve device path as device name
        bcachefs: Fix an endianness conversion
        bcachefs: Start gc, copygc, rebalance threads after initing writes ref
        bcachefs: Don't stop copygc thread on device resize
        bcachefs: Make sure bch2_move_ratelimit() also waits for move_ops
        ...
      e6861be4
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-tables' · 7d4c44a5
      Rafael J. Wysocki authored
      Merge a fix for a recently introduced build issue on ARM32 platforms
      caused by an inadvertent header file breakage (Dave Jiang).
      
      * acpi-tables:
        ACPI: Fix ARM32 platforms compile issue introduced by fw_table changes
      7d4c44a5
    • Rafael J. Wysocki's avatar
      Merge branch 'powercap' · a6b31256
      Rafael J. Wysocki authored
      Merge a power capping fix for 6.7-rc4 which eliminates unnecessary
      and harmful conversions to uW from the DTPM (dynamic thermal and power
      management) framework (Lukasz Luba).
      
      * powercap:
        powercap: DTPM: Fix unneeded conversions to micro-Watts
      a6b31256
Loading