Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp499103rdh; Wed, 7 Feb 2024 10:41:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXd3AtwC94QmLNDiJhHEAwqc99toGUYzjo+Xxx+LIVtW2LLcDWxxwZIB/JtxkpfxVBHNe9UrKK5ejI+lbtgHvKZRhwp7s7mXHtpEg+OgQ== X-Google-Smtp-Source: AGHT+IHwyIL05UHdSGcYfKPFEfOEs9EMRtjyGPyUndXf1TZ9B/XLAkVqJV0QlHuQswQwbfvdNGBq X-Received: by 2002:a17:90a:d443:b0:296:a13c:8f84 with SMTP id cz3-20020a17090ad44300b00296a13c8f84mr3440739pjb.33.1707331316628; Wed, 07 Feb 2024 10:41:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707331316; cv=pass; d=google.com; s=arc-20160816; b=oHtP+ldL/FMBTVwQPkX63H1esOofb9FI0fqBjnRi4gQZJKNcmrZy3YgncYOKJgSRAO Yj2R2YjP3bJ+Rjw8uwdZ/S5PTbNwgIfZ/Q6FvSmnTmudimf44XxnfGypdRufdjbkCmQK Zr85eEAw5v1g50c7DuViLV+B0OccDGKc2OtN174FH5OvRuyBo3ILPF2A6IWvpKeF1n/L bZYW3QXJ0pWNIs9BJB9rwe1k0YS8lEhlD0FWMnTwMoaRFmaqYMC6k5XvbsHSUULJLRNH Jj0W4oVUW7i4CUC3Rs1TaMQCCzZZn5Ekgw3XjV0MPUo3RBpIR07AHvX5XyuzPn5GSq8i CamQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=7Gw4hg2CsAnVovJphC9v6Pju8JP+Q+4f7seH5ViqG7U=; fh=nX6S6+X3S2nu2YMER0aCZsN1pZsTC46d1WrvCew1Jz4=; b=vTiR1QCqo3sXwWeXHoApuo0YXsfAuUu/AEhcOTemI8kf5uFke9nrn+FclpyR7rXDpd Je8OJd29ni17M38VpxIcCAINQr3TUuIIIjOcxt09mUJl0VGREqY8OfJnJqb0sXj/ZHiv XP4xNoDqy9NywK/hb1cFhW92J16BrUEmRD/OIL4oVDib+5eA6HytsMWI6beCeFDNtVmI 97kHxZn0qPXita/uJNaQihgYmo2HDJpDDNvja0eFuv4lRtCbWkR2NVxMdoMdki4fi485 mHCIJ19Ni15hCgpjdtV0GV/cH3JVPmJdxK4AX+xMCJIdRqhN2ASeSOOenEMlXGDBntbx KLoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-56915-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWL6utLDkMn7ujE69ipeg/Trd33JnzfBvbVS6IF1umBwI/S6izq+vDHRRUwAguU0LnKZZ9LNd3S9nBHCU1tatqGl3V456jPfWvcP4KBLg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 59-20020a17090a09c100b0029633e89571si4115561pjo.13.2024.02.07.10.41.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 10:41:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56915-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-56915-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CBC5D28B29B for ; Wed, 7 Feb 2024 18:41:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 203DD84051; Wed, 7 Feb 2024 18:41:47 +0000 (UTC) Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) (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 3A0AE41C91; Wed, 7 Feb 2024 18:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707331306; cv=none; b=ZSCEUYRQk++JGzyvRyEtahKqaFL/LeDHiWH2DV4ll0AOVGCGt2+7OiGera8uDi2YqkrG8ewaZsbNr6XuqDC9Tgvj5SDCF0zL/rV2+d+zw9ft3Ibt7AtwELY5XUVaHfKtULfqdxVMCD77oXtJn+7xxjtOg73bjbepZqkstNoGMr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707331306; c=relaxed/simple; bh=LbVL5RmiqfFAGVDDrMbFn7+nEaeBOAF0DjlcOQRg/aA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=UNZP6Ky26GJoyE7pBThcr0OHfhkETN9fdaUKPI9z+bel37cpL+yrkOYV3M6ZbVKwu1U6UEjfXbqaD/svr338IKxLhmscMNpTo4C1cy6XUeS39rQ/jHmBK8vkbdyjCm6eRDplarqmeKR1A2JQx52GhNHi9wrXsAENgEKsg0aIbc0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.161.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-59cbf204d52so34157eaf.1; Wed, 07 Feb 2024 10:41:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707331304; x=1707936104; 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=7Gw4hg2CsAnVovJphC9v6Pju8JP+Q+4f7seH5ViqG7U=; b=UEdcMQ4Hx0yY/O07RvA4oAuwtJwCYoABQMyYqUEIphQP9vJ8QD90Jgds7yxiq7t5Y0 2MikwJLcYglz7VbuynwWEfJDuXCP4NBiPAIw8CPtgUGIyk4Ed3t+96HmzOSU+Kf1bZdr KW5c+JBmumi7SUISSUOsbZ5BJOEs1GXjcKMYNV6WkkVa8rRo302nHQagy0cx6TRszh+F ylFAt51gw3i6dG9POlVDOtTFJ9+JFS87AfEHGBYaBcNj3wYblN3kVrDKQKDjsG5XZs/c HOAXxMWjk7U5SuFPdp2ri2cMzQj/aoI2xavWzCEDOLi9hcfdAfV+BfQxg94ShcekUr6h +cSA== X-Forwarded-Encrypted: i=1; AJvYcCWZn1FA8kwUzEW8cvnvr8bi9LCgbPOlpG3GWNDCLBd3LOLFWFravFIUyJ0/ylHfgebfd9ggyPXg5YSoojMlcOrwGujKXW3vFoKQ6bWz/1p6/aWYDAnyvrDoiHciRQTMLZ9MmwOD9YI= X-Gm-Message-State: AOJu0Yxa2bFBKFRpKODUyFjlGJRZbl/1eeHrxiY1tXpkHCeGpb4zVf+h pduC8NpsiOFCinGxQMbve0LcCLl9Ry5xYveaT0IpJ4X4cvs9ZWTMdVwXvj8xRAXWrMIgfn2zNj4 x1iwVKIIYmZXODK+ckp/OZYeTotk= X-Received: by 2002:a05:6870:9110:b0:219:75d2:a39b with SMTP id o16-20020a056870911000b0021975d2a39bmr7211911oae.3.1707331304073; Wed, 07 Feb 2024 10:41:44 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <10423008.nUPlyArG6x@kreacher> <708a65cc-79ec-44a6-8454-a93d0f3114c3@samsung.com> <4a043533-009f-4db9-b107-c8374be28d2b@samsung.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 7 Feb 2024 19:41:32 +0100 Message-ID: Subject: Re: [PATCH v1] PM: sleep: Restore asynchronous device resume optimization To: Tejun Heo Cc: "Rafael J. Wysocki" , Marek Szyprowski , "Rafael J. Wysocki" , Linux PM , Ulf Hansson , Nathan Chancellor , LKML , Stanislaw Gruszka , Lai Jiangshan , Naohiro.Aota@wdc.com, kernel-team@meta.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 7, 2024 at 5:40=E2=80=AFPM Tejun Heo wrote: > > Hello, > > On Wed, Feb 07, 2024 at 12:25:46PM +0100, Rafael J. Wysocki wrote: > > The other one is that what happens during async resume does not meet > > the assumptions of commit 5797b1c18919 (for example, it can easily > > produce a chain of interdependent work items longer than 8) and so it > > breaks things. > > Ah, that's fascinating. But aren't CPUs all brought up online before devi= ces > are resumed? They are. > If so, the max_active should already be way higher than the > WQ_DFL_MIN_ACTIVE. Also, are these multi node NUMA machines? They aren't. > Otherwise, it really shouldn't affect anything. Well, it evidently makes a difference. I'm wondering what difference it can make in that case. > One easy way to verify would be just bumping up WQ_DFL_MIN_ACTIVE and see= what happens. Sure.