Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp157043pxb; Tue, 9 Mar 2021 19:25:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcKmZ0R1OtxpCrDUZLzL1TkuWa9A/+vmV2Sxw9EY5VcmVZwtoI4PUZVd8uZ7pN5gAZ/VE9 X-Received: by 2002:a17:906:4955:: with SMTP id f21mr1353315ejt.74.1615346722590; Tue, 09 Mar 2021 19:25:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615346722; cv=none; d=google.com; s=arc-20160816; b=z1wfHctbcrQQzUofB9iV9gyVhVhkckfNkpAe7Ozmt25skXxu+pFea5kGrF1B138LIH 0T/WMZAEW+um2QLK96z0Fcc3KuMc+uTqlBNaEYa36+KyNEiUIw9i23IOow0bC7wKZouy UDoqix5bUS6VZSqCPbE/ZtonF980FbVaT70sC5jM3XoFVQ/HOwJBlWtC+jtlLcc4jhG/ XZ034Umafcs5Akrr0FiYkcR7pKlpDhEd815Fo+3ibkHGAsl+6QWQo7mGZcrgGd52jrNL RIvWUOZL7Lx8NgW8NU457PLBHodK+8AV+whubmJZdxQJ1zr1/40NA7wV7a3jMjWOPEPj ygLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=AIfiWlwGM03DtK/L7XVMxhRijvkYedx3zYeINX9bv5k=; b=RKZW1O+3lr7Q1A6CCz+PeMuRw+VFAAMWdlAGIhkDiAJjRgzcd1A0goShupqY1kfvd8 0LL+5bSLatFTdeZ3p7oXDQAHZ12acn1MwULiw34BMM8ZX4wQY50uSZdC7n7rTt05MLFj EVQrC25LRFmCKHoHH7DcNgpeEYXkzpH5F3HKcZWFPE10tZeya3MWrzK2cCW8NQPXRpZA zwXCfb4bh4pyOtMzKQeXLOi4uXZoLuIyHLNWhC95xY9ouwqoSYB6c7pnnAdAGSHwIsLv 15eG/xBy44m1HWP3ugjRGBr3ffxQVg4r3Lcc1u3WSIqteyvW6gPGv3J/LwXGlv3IhK0f fwjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kevinlocke.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga37si6924985ejc.4.2021.03.09.19.25.00; Tue, 09 Mar 2021 19:25:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kevinlocke.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230183AbhCJDX4 (ORCPT + 99 others); Tue, 9 Mar 2021 22:23:56 -0500 Received: from vulcan.kevinlocke.name ([107.191.43.88]:55644 "EHLO vulcan.kevinlocke.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230458AbhCJDX3 (ORCPT ); Tue, 9 Mar 2021 22:23:29 -0500 X-Greylist: delayed 5260 seconds by postgrey-1.27 at vger.kernel.org; Tue, 09 Mar 2021 22:23:29 EST Received: from kevinolos.kevinlocke.name (host-69-145-60-23.bln-mt.client.bresnan.net [69.145.60.23]) (Authenticated sender: kevin@kevinlocke.name) by vulcan.kevinlocke.name (Postfix) with ESMTPSA id 7619B210AA3F; Wed, 10 Mar 2021 03:23:28 +0000 (UTC) Received: by kevinolos.kevinlocke.name (Postfix, from userid 1000) id E3E9313006A0; Tue, 9 Mar 2021 20:23:26 -0700 (MST) Date: Tue, 9 Mar 2021 20:23:26 -0700 From: Kevin Locke To: Jens Axboe Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, rafael.j.wysocki@intel.com Subject: Re: [v5.12-rc2 regression] io_uring: high CPU use after suspend-to-ram Message-ID: Mail-Followup-To: Kevin Locke , Jens Axboe , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, rafael.j.wysocki@intel.com References: <0d333d67-9a3e-546d-ad1c-ecebfdbe9932@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d333d67-9a3e-546d-ad1c-ecebfdbe9932@kernel.dk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-03-09 at 19:48 -0700, Jens Axboe wrote: > On 3/9/21 6:55 PM, Kevin Locke wrote: >> With kernel 5.12-rc2 (and torvalds/master 144c79ef3353), if mpd is >> playing or paused when my system is suspended-to-ram, when the system is >> resumed mpd will consume ~200% CPU until killed. It continues to >> produce audio and respond to pause/play commands, which do not affect >> CPU usage. This occurs with either pulse (to PulseAudio or >> PipeWire-as-PulseAudio) or alsa audio_output. > > The below makes it work as expected for me - but I don't quite > understand why we're continually running after the freeze. Adding Rafael > to help understand this. I can confirm that your patch resolves the high CPU usage after suspend on my system as well. Many thanks! Tested-by: Kevin Locke Happy to test any future revisions as well. Thanks again, Kevin