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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E49CC3A5A1 for ; Wed, 28 Aug 2019 22:01:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 61482208C2 for ; Wed, 28 Aug 2019 22:01:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="HqxFGd8W" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726926AbfH1WBR (ORCPT ); Wed, 28 Aug 2019 18:01:17 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44081 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726583AbfH1WBR (ORCPT ); Wed, 28 Aug 2019 18:01:17 -0400 Received: by mail-wr1-f67.google.com with SMTP id j11so1274982wrp.11 for ; Wed, 28 Aug 2019 15:01:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fmBEVsYi4QuKQRZjwpp0nZ3eNArJlo+G4W4KEsJJTMU=; b=HqxFGd8WnKcVT8DT8EMSx6k8GKWmt/pdImgGrB1+L0OUHD34LKAFXMiOxI9PSoBn7u oDPq3tDwLNV4j8olE13agRwJygqH+rc7R6+R83YmqPKzPi9wGrIaEJoWGZThHuSOKQfj H5TEL5JHrgzVziuCMLs1o29DMJULPT6VURlnZymIQ2IBIoiDY4fKXU1cdbKI1+Achj0G WQb8ePFlz2MNDDgz6wMa75PrT9jKKXfdFy0uE1W5MouRvdgXC90kB4dTbemEa8UbabqP HB1ConV//RX9IcEVdpC7au+SpVP7ACrI5WgXXDvEEfx3sNcRuvd5QHbV3LMsZJ8ul3FI ra/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fmBEVsYi4QuKQRZjwpp0nZ3eNArJlo+G4W4KEsJJTMU=; b=P/bgdCil61cTvhepmpBoR8ND6E0siPN82Y3E4NtPPqnrDRAJsYjxddvgSuCcxVE3PP nNNNW3n8ek46YmQg3fXVj/znzK0hd6xOB9cdFwNKFpP+7lGnW4vPzLQCqCPcctrEXoKH Qv0E6UC1oVnE+aL3+KJdXonMgtPzkO+ytBxUWv8TnJFiaQPABw9h/9Lk8+rVH7qAAIsa 0iVSH8Gn6/9nRFO4uJCB9bmd8ovBQs0AtXXJ3ACQit6t2bAjG7TKNQldw3W7NrlrNdi4 9EsFdwWpPiO0XSpNJUxaqvcfk2vn+1c6JdVsq9XXSTowdLZtQL9PKas+sIni63ThxySm 9+KA== X-Gm-Message-State: APjAAAV0AxCxKO0iKW1yieLhkXZL1lGwaCiBPJkXgsHrz6TXuadB7OiM LEr7LPRONJy53RhAxA/kzuE= X-Google-Smtp-Source: APXvYqxQ11Iu94905LRZrNZgpLNAC8FKQI0ZfY8ZwpGXIpO6MRXhRQmn3C6n6m95AENth/iByEJ0Mg== X-Received: by 2002:adf:fccd:: with SMTP id f13mr5490080wrs.148.1567029674631; Wed, 28 Aug 2019 15:01:14 -0700 (PDT) Received: from [192.168.1.20] (host109-153-59-46.range109-153.btcentralplus.com. [109.153.59.46]) by smtp.googlemail.com with ESMTPSA id z1sm322425wrp.51.2019.08.28.15.01.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Aug 2019 15:01:13 -0700 (PDT) Subject: Re: [Intel-gfx] Workqueue - warning splat To: Chris Wilson , LKML Cc: tj@kernel.org, intel-gfx@lists.freedesktop.org References: <156700557283.15406.5823286371997423740@skylake-alporthouse-com> From: Chris Clayton Message-ID: <4230d1b4-a20a-ffee-961d-070feabb30c7@googlemail.com> Date: Wed, 28 Aug 2019 23:01:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <156700557283.15406.5823286371997423740@skylake-alporthouse-com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/08/2019 16:19, Chris Wilson wrote: > Quoting Chris Clayton (2019-08-28 16:14:20) >> Hi, >> >> I've just copying 319G of data from a partition on one USB-attached (/dev/sdb3) to a partition on another USB-attached >> drive (/dev/sdc1). It's not quite finished but as it's progressed, I have been reading email and browsing web sites, so >> switching between windows from time to time. >> >> I found the splat below at the end the output from dmesg: > >> [ 6048.070148] workqueue: PF_MEMALLOC task 148(kswapd0) is flushing !WQ_MEM_RECLAIM events:gen6_pm_rps_work [i915] >> [ 6048.070152] WARNING: CPU: 6 PID: 148 at kernel/workqueue.c:2598 check_flush_dependency+0x105/0x120 >> [ 6048.070152] Modules linked in: uas rfcomm bnep iptable_filter xt_conntrack iptable_nat xt_MASQUERADE nf_nat >> nf_conntrack nf_defrag_ipv4 coretemp hwmon snd_hda_codec_hdmi snd_hda_codec_generic iwlmvm mac80211 uvcvideo >> videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common snd_hda_intel iwlwifi usbhid snd_hda_codec btusb >> btintel snd_hwdep x86_pkg_temp_thermal snd_hda_core cfg80211 i915 >> [ 6048.070162] CPU: 6 PID: 148 Comm: kswapd0 Tainted: G U 5.3.0-rc6+ #40 >> [ 6048.070163] Hardware name: PC Specialist LTD N8xxEZ /N8xxEZ , BIOS >> 1.07.08 10/04/2018 >> [ 6048.070165] RIP: 0010:check_flush_dependency+0x105/0x120 >> [ 6048.070166] Code: 8d 8a c0 05 00 00 49 89 e8 48 c7 c7 90 61 b5 b0 48 8d 8b b0 00 00 00 4c 89 ca 48 89 04 24 c6 05 02 >> 8f 00 01 01 e8 b2 97 fe ff <0f> 0b 48 8b 04 24 e9 63 ff ff ff 80 3d eb 8e 00 01 00 0f 85 56 ff >> [ 6048.070167] RSP: 0018:ffffa6e4003679a0 EFLAGS: 00010086 >> [ 6048.070167] RAX: 0000000000000000 RBX: ffff8a188d414000 RCX: 0000000000000000 >> [ 6048.070168] RDX: 0000000000000063 RSI: ffffffffb125f723 RDI: ffffffffb125d28c >> [ 6048.070169] RBP: ffffffffc0466390 R08: 000005802d12a057 R09: 0000000000000063 >> [ 6048.070169] R10: ffffffffb125faa0 R11: 00000000b125f70b R12: ffff8a188c809a80 >> [ 6048.070170] R13: ffff8a1890a23e00 R14: 0000000000000001 R15: 0000000000000000 >> [ 6048.070170] FS: 0000000000000000(0000) GS:ffff8a1890b80000(0000) knlGS:0000000000000000 >> [ 6048.070171] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> [ 6048.070172] CR2: 00000000025d1fa0 CR3: 00000004d700a004 CR4: 00000000003606e0 >> [ 6048.070172] Call Trace: >> [ 6048.070175] __flush_work+0x8d/0x1d0 >> [ 6048.070176] ? try_to_wake_up+0x1b9/0x3b0 >> [ 6048.070177] __cancel_work_timer+0xfb/0x180 >> [ 6048.070179] ? synchronize_irq+0x30/0xa0 >> [ 6048.070204] ? fwtable_write32+0xf1/0x180 [i915] >> [ 6048.070212] gen6_disable_rps_interrupts+0x79/0xa0 [i915] >> [ 6048.070220] gen6_rps_idle+0xe/0xd0 [i915] >> [ 6048.070230] intel_gt_park+0x4f/0x60 [i915] >> [ 6048.070239] __intel_wakeref_put_last+0x12/0x40 [i915] >> [ 6048.070248] __engine_park+0xb7/0xc0 [i915] >> >> It might be difficult to create it again, but I guess a heads up might be useful. > > Should be fixed by > > commit c7302f204490f3eb4ef839bec228315bcd3ba43f > Author: Chris Wilson > Date: Thu Aug 8 21:27:58 2019 +0100 > > drm/i915: Defer final intel_wakeref_put to process context > Thanks, Chris. That patch doesn't apply cleanly to Linus' current tree, so I'll wait for it to make it's way through the process where the problems will be resolved. Chris > -Chris >