Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp796540rdb; Fri, 2 Feb 2024 04:32:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEp57yua+OzUYl4Lr5hY5dASix/taLxaPA+yHAp01DNvWZdyALyfsgTCUYuHIpgaGCoZJT1 X-Received: by 2002:a05:622a:202:b0:42c:514:7fa2 with SMTP id b2-20020a05622a020200b0042c05147fa2mr1116572qtx.7.1706877150873; Fri, 02 Feb 2024 04:32:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706877150; cv=pass; d=google.com; s=arc-20160816; b=bE/7eFvTexFHUZ8UDzyKgm7SyjSziwz6BkINvc9ldUb6puPwNveCphry/ZqaLJHgr/ +QncXWD2UgUTPUsr39cG0V2+bwQK0XEcNh8mBKAlOvsqkbadIq70cJbqDb147OR/1b8i irZFjwN24uczOBxn64CVgjSXHPMMOVAC2coz8T74bnyHxBM7P3w4C+OgqJ/wHVpFKQov fHQCJW3m11fQ2VnWpIO+3VoZd4dgYOJG2DHQ07V8PLDn1EXW0TBE1niGlFtoR0BdB2EZ w/qsdKkr8sb3B5BEdRXueMVhImUip2FvSKE9rBXl9sXkhe5RChnpvDGwX9NyJgIbvC67 dTRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Zay0yPt7mzIwbFHxCrA+J0m0UNJP6Hth5Q4vBN+kW4Y=; fh=pKGw+NUHhNP+odK/6NoY6CA5HEq76rxsvjBAUf5dshE=; b=CVkch+wwN20Ac2/3nObdYuMdrwSXzB/BcyjgjWUdkO61zWf44NuOXLUCaAiMRDUVHp 5Suvq3Pl7mLgjCGUqv7cvs4MUwrPiOSH0ATCxhY0lItyaarT/s7VMqboP+oXxdI867p5 ntQfo9JHaia77NcugayuQvYw79TXeXzbdV/qYz/BV+vOIstQUk4tDrlUN7hJXWRfSl96 UT/zVYcRgEoMrAyJ5rkE1TYHkL3vCbhuOGMKjPEgZCyd5Ochlihiv32MujmuKeiDjYj2 BtP/LYPt4E/AIkmmRAI5974+gh1DFjPEwuAjN/tyN1DGqzsPfYKp0t+w9C4b3xUZTltB HijQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="HBFRj/te"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-49846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUYdQgcgtd+Olx+4LLw+rvtKgHhJHt+uzowJrWYJAevNEF8ss/q8aZePskZeB/SS+dYBKkB8Hd3VOzGI/dVR1SH9U/7X2nS2B7/ICDNdg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n16-20020a05622a11d000b0042bf405ed7fsi1862741qtk.305.2024.02.02.04.32.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 04:32:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="HBFRj/te"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-49846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9081D1C210F1 for ; Fri, 2 Feb 2024 12:32:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01F6429411; Fri, 2 Feb 2024 12:31:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HBFRj/te" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4714F3D72 for ; Fri, 2 Feb 2024 12:31:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706877068; cv=none; b=GBnwYbx8p8DyrRmBC+P7Z6X0ZzMyg35tWEpmU9pKOHoGtmoyuyRTN1kGFebybBRViA/FOVQDNvs7l5RYlR67bK+3/HGRl2IjlBtwJOgE+NbqQBNDt4b1gn9SyGUlTNbt+okDn5OjWfKyrhwbEkQOudMWToB0TtGAKcJe/hH9J+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706877068; c=relaxed/simple; bh=LpszH7bN80s4d8SEsQ1YuXs3jTA07zr8GrbTSAzq/f8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WmUHU/dUfOqg2uNmKYsy8+S1LmGlPs1ZgsIJpuv0rJWhvAXPq+3V8rY9GvNQYQtOYr5etIVu8x2zgQFgvinGF4Y2WkK2QZwfODWUaFrB2ZCU3OJy6eLrg9Esq+Y+jhEszURYvIcogQQpYWfK7OdEu88WnJHcEjbv02ShL3Cu/Vs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HBFRj/te; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a363961b96aso270018066b.3 for ; Fri, 02 Feb 2024 04:31:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706877064; x=1707481864; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Zay0yPt7mzIwbFHxCrA+J0m0UNJP6Hth5Q4vBN+kW4Y=; b=HBFRj/tez72fsdxy2H1LqkMtAXNnxXXdHLBlhJMNOUgbIlOUXPK0qiA0cN4AZn2+tw YZVdRkkfGLgjsU6A4cG81Q3zXQzJl+gXG0XNu3ufWkVzmRihyqloCk6tchvdWdT62qBu +Ts3/h2VO7m+E7K25tgMCjkmB2qNIK+qu1hryGfl2LPpn25BOmUagvW5stFR4hmoGLw6 HinWWQOyuDmqTGE6Mfg5txkAFHmZ/s2MrUQBXRD3Lsomxrhvu0nLlV2ZuFtisN+M+bXn /Bdnyv8DaHFq5wjafPIHYTEefl3FizSSyxZwdj5ff3XoSyfWYVKg8m/APoVRhesKKDnF qrjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706877064; x=1707481864; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Zay0yPt7mzIwbFHxCrA+J0m0UNJP6Hth5Q4vBN+kW4Y=; b=R81zuzwWstYknj7ITTloePMTWq1dHwQATaxl3d+FwQ/uak8vD2ngUYSDfTS2ZTPbAI yKBYJ/QBT3fpM7XopLdmyMvXZZobxDaP92dsSuEc2l+32NeniTTrwhA14WHVOfB3/9zZ SCBSq3peNOINrznEfEf1+HZM1a9Oli/5vYy9uhkRG5miAIbvBXrOmAC95jQtq9rVrEeD 2LJ1HjghWttLcEeASVfr4KoRVVhOElX0/dPr+bfmHYwoa/yRk6b3RMrxSSdaaMh7uY8W ICvmDU/MhWmt4cvYa/QB2o+HRN8GnsZrixihz1uLBu6g30EDRxJhIBStjYD6xJhd9lR8 asBA== X-Gm-Message-State: AOJu0Yy5jA6mp9ZVwR1laQVitWusHZzIsyHOLDP394vZUruApVdcd9eq Vc7hjYzZj8GdCaL3ODKTrpHHdqmk8L8waZVHETk/OIC+f1tUWmgQUhNL1wlQhyWDXPVZguHFVDR E X-Received: by 2002:a17:906:4ca:b0:a37:2932:df4 with SMTP id g10-20020a17090604ca00b00a3729320df4mr195465eja.15.1706877064127; Fri, 02 Feb 2024 04:31:04 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUshf9fRHSIWw9BSovZa+W594/TCcQIw45cLWNVtgXgAm2u2VrMiP+yRRFGBBjrDyb8ZWG7NVck6t+1Ji4mWEQYShlneFt6AySo19EKGe9Mt/Co6gq9KQxxr5J798jbkvfb8DEE9LVnSsxL4IGjDTAyC3mKcRQCrdxPDY4goXRd1Zs9hgN18ixp Received: from [192.168.159.104] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id kt17-20020a1709079d1100b00a36f42fa79esm848945ejc.16.2024.02.02.04.31.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Feb 2024 04:31:03 -0800 (PST) Message-ID: <17cae1aa-98a8-48f4-adf3-2ddfc451bef6@linaro.org> Date: Fri, 2 Feb 2024 13:31:01 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Workqueue regression Content-Language: en-US To: Tejun Heo , Konrad Dybcio Cc: linux-kernel@vger.kernel.org, Naohiro.Aota@wdc.com, kernel-team@meta.com, Bjorn Andersson References: From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIE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GXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2.02.2024 02:52, Tejun Heo wrote: > Hello, > > On Thu, Feb 01, 2024 at 09:57:59PM +0100, Konrad Dybcio wrote: >> So, commit "Implement system-wide nr_active enforcement for unbound workqueues" >> broke *something* and now performing a suspend-wakeup cycle on a Qualcomm >> SC8280XP-based (arm64) platform hangs when performing the resume tasks, >> presumably somewhere near PCIe reinitialization (but that may be a red herring). >> >> Reverting the commit (and the ones on top of it due to conflicts) fixes >> the issue on next-20240130 and later (plus some out-of-tree patches that >> are largely unrelated). >> >> Not sure where to start looking. > > Hmm... sorry about that. Can you please boot with `console_no_suspend` and > retry? Once the system gets stuck, you can wait for several minutes till the > workqueue watchdog triggers and dumps the state or, if you can, trigger > `sysrq-t` which has workqueue state dump at the end. > > If the system doesn't become live enough after suspend/resume cycle to get > more info, the following might help: Looks like it's too far gone indeed.. > > $ echo test_resume > /sys/power/disk > $ echo disk > /sys/power/state Sadly, hibernation is not a thing on this platform.. Without going into much detail of how messy the power management stuff is, you can either have "on", "off" or "power collapsed" (bound to s2idle).. Trying to trigger this sequence makes the thing lock up and die due to unclocked accesses with or without the WQ regression. Konrad