From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1A63C4332F for ; Wed, 2 Nov 2022 13:36:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 611AC10E1B7; Wed, 2 Nov 2022 13:36:24 +0000 (UTC) Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by gabe.freedesktop.org (Postfix) with ESMTPS id B33E910E19F; Wed, 2 Nov 2022 13:36:19 +0000 (UTC) Received: by mail-qv1-xf32.google.com with SMTP id u7so12406451qvn.13; Wed, 02 Nov 2022 06:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1gsoDXfp53NKUFfLqpm7H1XM53EnPzXt5NVjStzePn4=; b=pGkD5bKwBY+b2+tzwqg+Wi/FmikNEci6+2AIqzb9XGFRQZKg3cW7onz2JrzWxdW2Nv 3uu7XoaHkSTmRGfgLnxyE0jF+rwIvc+JxIOEwc8qGjifXbiMmnyveDRy8671uIX8noVW G+RsHA+oB/2Mjz5bDI5VW+8J2AO2vyjnOBzhE9A12d3q7i/WNRTMr9xWLpMzKLidI48C QX30FqkgCgDBbwdLoSd4a5ZE7Rgcjl9hMd7gt/+Jo2ye+eYw+42nrdaHeFUaGApme6bw PwSekedsa95CFVzFvO1Nqd8lTYN2tunfnzzILHRE1uzrnwjD/I4OjJk5n13TrxGC/vZj n68w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1gsoDXfp53NKUFfLqpm7H1XM53EnPzXt5NVjStzePn4=; b=5JRjFFW9EVK+RwIClJDyzojPq4C8lIZ0Drl5W8JNosR96tB0OQ/siNdystjPv8pX7e mgOBZqIGyFDYiY78Tpe8dfBCc3JxUdOLP1IKCWv2l5PUXuC2BMVsVk2aDb62JY4MTbaD 7wFGvOGQWDd7LqnMG+to7bCUpJ2eA+pa+NNG2y8aMtSYKiEIjpp0HCIeDmMkzDav+k9S 3mRF9VMAAqhaKhgU/8ncwzRoVWx2GEXjL9Dj1610d1wPx0cXwOrytFSCghAeEsVRhRgX 5/kshrp/kmWUvQaRGuWUKpUUjISLddmfRvI7E9pfnAzcppPdtk7uD/1KVc12TQ4Pbymh /grA== X-Gm-Message-State: ACrzQf1uHrRX5LCl2ZjEWEWurWwwo4O4yKMr+364Ptfsbes9PlpcMZlh u3BsH20n1f/iUQ5GdkRTRERPLXdKYzGcQ+mGlIk= X-Google-Smtp-Source: AMsMyM6UtZVbuxXI7LX5/ij5C85aDtiHTH0RSZYw2OW3Ko4QaN0ewrTr0rQHuqtOLeNbZM6yeZQfAAUueQmMZf3/Zno= X-Received: by 2002:a05:6214:27c1:b0:4b4:9f69:dd5e with SMTP id ge1-20020a05621427c100b004b49f69dd5emr20927748qvb.56.1667396178563; Wed, 02 Nov 2022 06:36:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mikhail Gavrilov Date: Wed, 2 Nov 2022 18:36:07 +0500 Message-ID: Subject: Re: [6.1][regression] after commit dd80d9c8eecac8c516da5b240d01a35660ba6cb6 some games (Cyberpunk 2077, Forza Horizon 4/5) hang at start To: =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Deucher, Alexander" , amd-gfx list , =?UTF-8?Q?Christian_K=C3=B6nig?= , dri-devel Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Tue, Nov 1, 2022 at 10:52 PM Christian K=C3=B6nig wrote: > > Let's focus on one problem at a time. > > The issue here is that somehow userptr handling became racy after we > removed the lock, but I don't see why. > > We need to fix this ASAP since it is probably a much wider problem and > the additional lock just hides it somehow. > > Going to provide you with an updated patch tomorrow. > > Thanks, > Christian. Recently sackboy has been updated and now the kernel log contains a trace very similar to the one in the first post, even with the patch applied. [ 155.948044] ------------[ cut here ]------------ [ 155.948164] WARNING: CPU: 3 PID: 4850 at drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:678 amdgpu_ttm_tt_get_user_pages+0x14c/0x190 [amdgpu] [ 155.948342] Modules linked in: uinput rfcomm snd_seq_dummy snd_hrtimer nft_objref nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables nfnetlink qrtr bnep intel_rapl_msr intel_rapl_common snd_hda_codec_realtek snd_sof_amd_renoir snd_sof_amd_acp snd_hda_codec_generic snd_hda_codec_hdmi snd_sof_pci sunrpc binfmt_misc snd_sof snd_hda_intel snd_sof_utils snd_intel_dspcfg mt7921e snd_intel_sdw_acpi snd_hda_codec mt7921_common snd_soc_core edac_mce_amd mt76_connac_lib btusb snd_hda_core snd_compress snd_hwdep mt76 btrtl ac97_bus kvm_amd snd_pcm_dmaengine btbcm snd_rpl_pci_acp6x snd_pci_acp6x btintel mac80211 btmtk snd_seq snd_seq_device kvm snd_pcm snd_pci_acp5x libarc4 bluetooth irqbypass vfat snd_timer snd_rn_pci_acp3x fat rapl snd_acp_config asus_nb_wmi snd cfg80211 snd_soc_acpi wmi_bmof k10temp pcspkr [ 155.948436] snd_pci_acp3x i2c_piix4 soundcore asus_wireless amd_pmc joydev zram amdgpu drm_ttm_helper ttm crct10dif_pclmul hid_asus crc32_pclmul asus_wmi crc32c_intel iommu_v2 ledtrig_audio polyval_clmulni gpu_sched sparse_keymap polyval_generic platform_profile drm_buddy drm_display_helper nvme rfkill ghash_clmulni_intel hid_multitouch ucsi_acpi sha512_ssse3 nvme_core typec_ucsi serio_raw sp5100_tco r8169 ccp cec nvme_common typec i2c_hid_acpi i2c_hid video wmi ip6_tables ip_tables fuse [ 155.948540] CPU: 3 PID: 4850 Comm: Sackboy-Win64-T Tainted: G W L ------- --- 6.1.0-0.rc3.20221101git5aaef24b5c6d.29.fc38.x86_64 #1 [ 155.948544] Hardware name: ASUSTeK COMPUTER INC. ROG Strix G513QY_G513QY/G513QY, BIOS G513QY.318 03/29/2022 [ 155.948547] RIP: 0010:amdgpu_ttm_tt_get_user_pages+0x14c/0x190 [amdgpu] [ 155.948748] Code: 9e f1 e9 32 ff ff ff 4c 89 e9 89 ea 48 c7 c6 a8 a3 fd c0 48 c7 c7 88 81 1e c1 e8 af 97 ea f1 eb 8e 66 90 bd f2 ff ff ff eb 8d <0f> 0b eb f5 bd fd ff ff ff eb 82 bd f2 ff ff ff e9 62 ff ff ff 48 [ 155.948751] RSP: 0018:ffff960b544d3a50 EFLAGS: 00010282 [ 155.948756] RAX: ffff8a4e40d44e00 RBX: ffff8a4f0e564140 RCX: 00000000000= 00001 [ 155.948759] RDX: 0000000000000000 RSI: ffff8a4e40d44e00 RDI: ffff8a4f4b5= 2b400 [ 155.948761] RBP: ffff8a4e8c979000 R08: 0000000000000dc0 R09: 00000000fff= fffff [ 155.948764] R10: 0000000000000001 R11: 0000000000000000 R12: ffff8a4e8aa= ad558 [ 155.948767] R13: 000000003b910000 R14: ffff8a4f0e667180 R15: ffff8a4f4b5= 2b458 [ 155.948770] FS: 00007fa13fe006c0(0000) GS:ffff8a5d16e00000(0000) knlGS:0000000036f80000 [ 155.948772] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 155.948775] CR2: 0000000025c9e1d0 CR3: 0000000361990000 CR4: 00000000007= 50ee0 [ 155.948778] PKRU: 55555554 [ 155.948780] Call Trace: [ 155.948783] [ 155.948790] amdgpu_cs_ioctl+0x9fd/0x2030 [amdgpu] [ 155.948992] ? amdgpu_cs_find_mapping+0xe0/0xe0 [amdgpu] [ 155.949155] drm_ioctl_kernel+0xac/0x160 [ 155.949165] drm_ioctl+0x1e7/0x450 [ 155.949172] ? amdgpu_cs_find_mapping+0xe0/0xe0 [amdgpu] [ 155.949344] amdgpu_drm_ioctl+0x4a/0x80 [amdgpu] [ 155.949528] __x64_sys_ioctl+0x90/0xd0 [ 155.949537] do_syscall_64+0x5b/0x80 [ 155.949547] ? lock_is_held_type+0xe8/0x140 [ 155.949559] ? do_syscall_64+0x67/0x80 [ 155.949565] ? lockdep_hardirqs_on+0x7d/0x100 [ 155.949573] ? do_syscall_64+0x67/0x80 [ 155.949579] ? do_syscall_64+0x67/0x80 [ 155.949586] ? do_syscall_64+0x67/0x80 [ 155.949592] ? lockdep_hardirqs_on+0x7d/0x100 [ 155.949597] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 155.949603] RIP: 0033:0x7fa1b7fd912f [ 155.949610] 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 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00 [ 155.949615] RSP: 002b:00007fa13fdfe920 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 155.949621] RAX: ffffffffffffffda RBX: 00007fa13fdfebe8 RCX: 00007fa1b7f= d912f [ 155.949625] RDX: 00007fa13fdfea10 RSI: 00000000c0186444 RDI: 00000000000= 00165 [ 155.949629] RBP: 00007fa13fdfea10 R08: 00007f9ff80018e0 R09: 00007fa13fd= fe9c0 [ 155.949633] R10: 000000007eb11590 R11: 0000000000000246 R12: 00000000c01= 86444 [ 155.949635] R13: 0000000000000165 R14: 00007f9ff8001860 R15: 00000000000= 00005 [ 155.949647] [ 155.949650] irq event stamp: 5375 [ 155.949652] hardirqs last enabled at (5383): [] __up_console_sem+0x5e/0x70 [ 155.949657] hardirqs last disabled at (5390): [] __up_console_sem+0x43/0x70 [ 155.949659] softirqs last enabled at (3236): [] __irq_exit_rcu+0xed/0x160 [ 155.949663] softirqs last disabled at (3231): [] __irq_exit_rcu+0xed/0x160 [ 155.949665] ---[ end trace 0000000000000000 ]--- [ 155.949676] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to process the buffer list -14! [ 155.950689] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D [ 155.950690] WARNING: lock held when returning to user space! [ 155.950691] 6.1.0-0.rc3.20221101git5aaef24b5c6d.29.fc38.x86_64 #1 Tainted: G W L ------- --- [ 155.950694] ------------------------------------------------ [ 155.950695] Sackboy-Win64-T/4850 is leaving the kernel with locks still = held! [ 155.950697] 1 lock held by Sackboy-Win64-T/4850: [ 155.950698] #0: ffff8a4e8aaad0a8 (&list->bo_list_mutex){+.+.}-{3:3}, at: amdgpu_cs_ioctl+0x903/0x2030 [amdgpu] But the most interesting thing is that all previous kernels 6.0, 5.19 are affected by the problem. It is not enough to revert the dd80d9c8eecac8c516da5b240d01a35660ba6cb6 commit. Full kernel log 6.1-rc3 + patch above: https://pastebin.com/6ebmReer Full kernel log 5.19: https://pastebin.com/5dRCgxNW Thanks. --=20 Best Regards, Mike Gavrilov. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0B2E4C433FE for ; Wed, 2 Nov 2022 13:36:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 31FEF10E19F; Wed, 2 Nov 2022 13:36:24 +0000 (UTC) Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by gabe.freedesktop.org (Postfix) with ESMTPS id B33E910E19F; Wed, 2 Nov 2022 13:36:19 +0000 (UTC) Received: by mail-qv1-xf32.google.com with SMTP id u7so12406451qvn.13; Wed, 02 Nov 2022 06:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1gsoDXfp53NKUFfLqpm7H1XM53EnPzXt5NVjStzePn4=; b=pGkD5bKwBY+b2+tzwqg+Wi/FmikNEci6+2AIqzb9XGFRQZKg3cW7onz2JrzWxdW2Nv 3uu7XoaHkSTmRGfgLnxyE0jF+rwIvc+JxIOEwc8qGjifXbiMmnyveDRy8671uIX8noVW G+RsHA+oB/2Mjz5bDI5VW+8J2AO2vyjnOBzhE9A12d3q7i/WNRTMr9xWLpMzKLidI48C QX30FqkgCgDBbwdLoSd4a5ZE7Rgcjl9hMd7gt/+Jo2ye+eYw+42nrdaHeFUaGApme6bw PwSekedsa95CFVzFvO1Nqd8lTYN2tunfnzzILHRE1uzrnwjD/I4OjJk5n13TrxGC/vZj n68w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1gsoDXfp53NKUFfLqpm7H1XM53EnPzXt5NVjStzePn4=; b=5JRjFFW9EVK+RwIClJDyzojPq4C8lIZ0Drl5W8JNosR96tB0OQ/siNdystjPv8pX7e mgOBZqIGyFDYiY78Tpe8dfBCc3JxUdOLP1IKCWv2l5PUXuC2BMVsVk2aDb62JY4MTbaD 7wFGvOGQWDd7LqnMG+to7bCUpJ2eA+pa+NNG2y8aMtSYKiEIjpp0HCIeDmMkzDav+k9S 3mRF9VMAAqhaKhgU/8ncwzRoVWx2GEXjL9Dj1610d1wPx0cXwOrytFSCghAeEsVRhRgX 5/kshrp/kmWUvQaRGuWUKpUUjISLddmfRvI7E9pfnAzcppPdtk7uD/1KVc12TQ4Pbymh /grA== X-Gm-Message-State: ACrzQf1uHrRX5LCl2ZjEWEWurWwwo4O4yKMr+364Ptfsbes9PlpcMZlh u3BsH20n1f/iUQ5GdkRTRERPLXdKYzGcQ+mGlIk= X-Google-Smtp-Source: AMsMyM6UtZVbuxXI7LX5/ij5C85aDtiHTH0RSZYw2OW3Ko4QaN0ewrTr0rQHuqtOLeNbZM6yeZQfAAUueQmMZf3/Zno= X-Received: by 2002:a05:6214:27c1:b0:4b4:9f69:dd5e with SMTP id ge1-20020a05621427c100b004b49f69dd5emr20927748qvb.56.1667396178563; Wed, 02 Nov 2022 06:36:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mikhail Gavrilov Date: Wed, 2 Nov 2022 18:36:07 +0500 Message-ID: Subject: Re: [6.1][regression] after commit dd80d9c8eecac8c516da5b240d01a35660ba6cb6 some games (Cyberpunk 2077, Forza Horizon 4/5) hang at start To: =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Deucher, Alexander" , amd-gfx list , =?UTF-8?Q?Christian_K=C3=B6nig?= , dri-devel , Bas Nieuwenhuizen Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Tue, Nov 1, 2022 at 10:52 PM Christian K=C3=B6nig wrote: > > Let's focus on one problem at a time. > > The issue here is that somehow userptr handling became racy after we > removed the lock, but I don't see why. > > We need to fix this ASAP since it is probably a much wider problem and > the additional lock just hides it somehow. > > Going to provide you with an updated patch tomorrow. > > Thanks, > Christian. Recently sackboy has been updated and now the kernel log contains a trace very similar to the one in the first post, even with the patch applied. [ 155.948044] ------------[ cut here ]------------ [ 155.948164] WARNING: CPU: 3 PID: 4850 at drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:678 amdgpu_ttm_tt_get_user_pages+0x14c/0x190 [amdgpu] [ 155.948342] Modules linked in: uinput rfcomm snd_seq_dummy snd_hrtimer nft_objref nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables nfnetlink qrtr bnep intel_rapl_msr intel_rapl_common snd_hda_codec_realtek snd_sof_amd_renoir snd_sof_amd_acp snd_hda_codec_generic snd_hda_codec_hdmi snd_sof_pci sunrpc binfmt_misc snd_sof snd_hda_intel snd_sof_utils snd_intel_dspcfg mt7921e snd_intel_sdw_acpi snd_hda_codec mt7921_common snd_soc_core edac_mce_amd mt76_connac_lib btusb snd_hda_core snd_compress snd_hwdep mt76 btrtl ac97_bus kvm_amd snd_pcm_dmaengine btbcm snd_rpl_pci_acp6x snd_pci_acp6x btintel mac80211 btmtk snd_seq snd_seq_device kvm snd_pcm snd_pci_acp5x libarc4 bluetooth irqbypass vfat snd_timer snd_rn_pci_acp3x fat rapl snd_acp_config asus_nb_wmi snd cfg80211 snd_soc_acpi wmi_bmof k10temp pcspkr [ 155.948436] snd_pci_acp3x i2c_piix4 soundcore asus_wireless amd_pmc joydev zram amdgpu drm_ttm_helper ttm crct10dif_pclmul hid_asus crc32_pclmul asus_wmi crc32c_intel iommu_v2 ledtrig_audio polyval_clmulni gpu_sched sparse_keymap polyval_generic platform_profile drm_buddy drm_display_helper nvme rfkill ghash_clmulni_intel hid_multitouch ucsi_acpi sha512_ssse3 nvme_core typec_ucsi serio_raw sp5100_tco r8169 ccp cec nvme_common typec i2c_hid_acpi i2c_hid video wmi ip6_tables ip_tables fuse [ 155.948540] CPU: 3 PID: 4850 Comm: Sackboy-Win64-T Tainted: G W L ------- --- 6.1.0-0.rc3.20221101git5aaef24b5c6d.29.fc38.x86_64 #1 [ 155.948544] Hardware name: ASUSTeK COMPUTER INC. ROG Strix G513QY_G513QY/G513QY, BIOS G513QY.318 03/29/2022 [ 155.948547] RIP: 0010:amdgpu_ttm_tt_get_user_pages+0x14c/0x190 [amdgpu] [ 155.948748] Code: 9e f1 e9 32 ff ff ff 4c 89 e9 89 ea 48 c7 c6 a8 a3 fd c0 48 c7 c7 88 81 1e c1 e8 af 97 ea f1 eb 8e 66 90 bd f2 ff ff ff eb 8d <0f> 0b eb f5 bd fd ff ff ff eb 82 bd f2 ff ff ff e9 62 ff ff ff 48 [ 155.948751] RSP: 0018:ffff960b544d3a50 EFLAGS: 00010282 [ 155.948756] RAX: ffff8a4e40d44e00 RBX: ffff8a4f0e564140 RCX: 00000000000= 00001 [ 155.948759] RDX: 0000000000000000 RSI: ffff8a4e40d44e00 RDI: ffff8a4f4b5= 2b400 [ 155.948761] RBP: ffff8a4e8c979000 R08: 0000000000000dc0 R09: 00000000fff= fffff [ 155.948764] R10: 0000000000000001 R11: 0000000000000000 R12: ffff8a4e8aa= ad558 [ 155.948767] R13: 000000003b910000 R14: ffff8a4f0e667180 R15: ffff8a4f4b5= 2b458 [ 155.948770] FS: 00007fa13fe006c0(0000) GS:ffff8a5d16e00000(0000) knlGS:0000000036f80000 [ 155.948772] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 155.948775] CR2: 0000000025c9e1d0 CR3: 0000000361990000 CR4: 00000000007= 50ee0 [ 155.948778] PKRU: 55555554 [ 155.948780] Call Trace: [ 155.948783] [ 155.948790] amdgpu_cs_ioctl+0x9fd/0x2030 [amdgpu] [ 155.948992] ? amdgpu_cs_find_mapping+0xe0/0xe0 [amdgpu] [ 155.949155] drm_ioctl_kernel+0xac/0x160 [ 155.949165] drm_ioctl+0x1e7/0x450 [ 155.949172] ? amdgpu_cs_find_mapping+0xe0/0xe0 [amdgpu] [ 155.949344] amdgpu_drm_ioctl+0x4a/0x80 [amdgpu] [ 155.949528] __x64_sys_ioctl+0x90/0xd0 [ 155.949537] do_syscall_64+0x5b/0x80 [ 155.949547] ? lock_is_held_type+0xe8/0x140 [ 155.949559] ? do_syscall_64+0x67/0x80 [ 155.949565] ? lockdep_hardirqs_on+0x7d/0x100 [ 155.949573] ? do_syscall_64+0x67/0x80 [ 155.949579] ? do_syscall_64+0x67/0x80 [ 155.949586] ? do_syscall_64+0x67/0x80 [ 155.949592] ? lockdep_hardirqs_on+0x7d/0x100 [ 155.949597] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 155.949603] RIP: 0033:0x7fa1b7fd912f [ 155.949610] 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 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00 [ 155.949615] RSP: 002b:00007fa13fdfe920 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 155.949621] RAX: ffffffffffffffda RBX: 00007fa13fdfebe8 RCX: 00007fa1b7f= d912f [ 155.949625] RDX: 00007fa13fdfea10 RSI: 00000000c0186444 RDI: 00000000000= 00165 [ 155.949629] RBP: 00007fa13fdfea10 R08: 00007f9ff80018e0 R09: 00007fa13fd= fe9c0 [ 155.949633] R10: 000000007eb11590 R11: 0000000000000246 R12: 00000000c01= 86444 [ 155.949635] R13: 0000000000000165 R14: 00007f9ff8001860 R15: 00000000000= 00005 [ 155.949647] [ 155.949650] irq event stamp: 5375 [ 155.949652] hardirqs last enabled at (5383): [] __up_console_sem+0x5e/0x70 [ 155.949657] hardirqs last disabled at (5390): [] __up_console_sem+0x43/0x70 [ 155.949659] softirqs last enabled at (3236): [] __irq_exit_rcu+0xed/0x160 [ 155.949663] softirqs last disabled at (3231): [] __irq_exit_rcu+0xed/0x160 [ 155.949665] ---[ end trace 0000000000000000 ]--- [ 155.949676] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to process the buffer list -14! [ 155.950689] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D [ 155.950690] WARNING: lock held when returning to user space! [ 155.950691] 6.1.0-0.rc3.20221101git5aaef24b5c6d.29.fc38.x86_64 #1 Tainted: G W L ------- --- [ 155.950694] ------------------------------------------------ [ 155.950695] Sackboy-Win64-T/4850 is leaving the kernel with locks still = held! [ 155.950697] 1 lock held by Sackboy-Win64-T/4850: [ 155.950698] #0: ffff8a4e8aaad0a8 (&list->bo_list_mutex){+.+.}-{3:3}, at: amdgpu_cs_ioctl+0x903/0x2030 [amdgpu] But the most interesting thing is that all previous kernels 6.0, 5.19 are affected by the problem. It is not enough to revert the dd80d9c8eecac8c516da5b240d01a35660ba6cb6 commit. Full kernel log 6.1-rc3 + patch above: https://pastebin.com/6ebmReer Full kernel log 5.19: https://pastebin.com/5dRCgxNW Thanks. --=20 Best Regards, Mike Gavrilov.