Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp596812rdh; Wed, 7 Feb 2024 14:08:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5+aT+jUisQAl5GmIa3UHbMtEc0Or9rjfU6L0yYRM/huPKsXaV97oaIBxFHpXgqWXIRs4b X-Received: by 2002:ac8:4548:0:b0:42c:368d:346c with SMTP id z8-20020ac84548000000b0042c368d346cmr4828652qtn.0.1707343700984; Wed, 07 Feb 2024 14:08:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707343700; cv=pass; d=google.com; s=arc-20160816; b=fhjBv2my11292wJ73/f0K2/sUot5GgvOg06Mqsqs2+XjsR7COh82bCLNxvxVxv7kZU TYZsktk7SCr5le+r1UXaTXrsBqDPwoYMiWveoEFow1EzRqd3lJjLk0gPDaaQMlg3F5ox S6J7cRDat0xGRy3t5Xy7+G0cU/d6GHlLEWjor9sAA/pO6RIw+5j7V+hCr8h9L0MuWFyZ qOMRWAlu0LgtK3RULKaOj3XcJ/OYGSqcv0FeqmA2HtY2o6lyt4diLB9AvzvLxD3JA250 qOSYzY4SrPFKhcQ1kjjVlmohembFBzzjLKdIHOAWfN7o7lE+8bcMIbAN8xkZck9Tw62O d8Qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:content-transfer-encoding:in-reply-to:from:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature:dkim-filter; bh=giEsucpdNlnWSHysV0Xbof/QdmgFW+LMKr4piMpm4aQ=; fh=8BAdVQUtY29x0M2khbxOxaUghIU0ZK99LqIgeH0tRwo=; b=IVTm6auHB2Ls53zm/Od4XjqllvuAmeR796k2G2EE/Zi5s6LQSC62m07YUjLWaE7dEG BrTn8m+vFf6Qf4Ruc2ax4GaO9UIZI7KpwNs/qDUPOAEtq+pvDVGU6hHEJ9eDZ5hf/i1N RcGaB3B756ltFLs14ft8e5RRQUwLkv1Tu+rGXx5Dp962C05uLbcBByhnLxZ8TkCbLnJ2 gQeRCkGWhCTWQeR9mqcgDUt4ekr8o+fHtvdqQou701HcYGpWowJ0jzs4kBnPhaSREGy5 xBdy/gYzlXa8AVQLDGaKk2TZlumS06LlO2gn1SNp5H+YMkCR05eVr5ColVwJe5wptIb+ IVfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=LYKXjOMh; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-57232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=2; AJvYcCW+fQz5LFY5xxW92W9oyLGkwl1xcxbxjNPYqc+/OwoyiGzLJbwiiGdlBtqVLx3VwjxRYbZyyQkvOmHKEGfRKsUN8vAw6BVY7GpU9uvo4A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u7-20020a05622a14c700b0042bb00c9583si2003778qtx.673.2024.02.07.14.08.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 14:08:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=LYKXjOMh; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-57232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com 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 66BAA1C25850 for ; Wed, 7 Feb 2024 22:08:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7586812BE94; Wed, 7 Feb 2024 21:31:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="LYKXjOMh" Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A883F127B6C for ; Wed, 7 Feb 2024 21:31:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707341466; cv=none; b=NMNpcr5S17TRRPSu5NsyfOCnTTQRw/MLR22iTXV2QoYBoRTB8Qckw5Ads2KWUMhkqV1YsXoGQZGBeB+k+Re0kCERon2kuuZsgL5/9AgcKEz5ZgE7v80EG2hnnEAAnpNYhiRPYuJZDpbItX3JLIvqViSxyfpQs16e1q/AzQsPgeU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707341466; c=relaxed/simple; bh=cdJe1ztU6E5GZI3pna9qPmlOhh2zb+xFkuJpyM7H3KU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type:References; b=pdsCjyXHyGBAjW9ndmpieumgdzjVXz7eWOnDR7KmImdiwFGZ0MUtNjilKyDIgRhsITrMKTuKD0F9M0JlUEXerlDFHeMrVo7iGLI/otiqtzYaDdnM9p5F7epnc46O66Lcuisk402xjmTRIlGYGF5Y18MWVbmiVIOVxecPGvsgio4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=LYKXjOMh; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240207213100euoutp0226c9caecb7d50dca679a52337ee7e430~xsgM3SfhS1444914449euoutp02Q for ; Wed, 7 Feb 2024 21:31:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240207213100euoutp0226c9caecb7d50dca679a52337ee7e430~xsgM3SfhS1444914449euoutp02Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707341460; bh=giEsucpdNlnWSHysV0Xbof/QdmgFW+LMKr4piMpm4aQ=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=LYKXjOMh89zCve+4r0IWw/2xrPj4B0xDYxsIb2ihkIPg6FbKz7tTaWrsz1rQEovri c9KVNfKVwVH7zH6CiCxORINfhe+mytFH4r3JV/abmSZKsmRJubazpu2JCoakslKXcl 5CM8bL+hmOgBoYBWsy3U23m5+wVxcLLffTnPoPAc= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20240207213100eucas1p18ff344f47d25a7d13a51048eb1945f47~xsgMg8qZN2313223132eucas1p1s; Wed, 7 Feb 2024 21:31:00 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 67.46.09552.496F3C56; Wed, 7 Feb 2024 21:31:00 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240207213059eucas1p10a237b3b9208eae12cd75afb55a3e071~xsgLb7sc21776717767eucas1p1i; Wed, 7 Feb 2024 21:30:59 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240207213059eusmtrp100bb07f68e681f3b18b1a9aaa030f9a4~xsgLWX7uR1255812558eusmtrp1v; Wed, 7 Feb 2024 21:30:59 +0000 (GMT) X-AuditID: cbfec7f5-83dff70000002550-9d-65c3f6948ac3 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D3.FF.09146.296F3C56; Wed, 7 Feb 2024 21:30:58 +0000 (GMT) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240207213058eusmtip122feeca1207a4fa13dd66b3a6b1a7c9a~xsgKjtXA03032030320eusmtip1V; Wed, 7 Feb 2024 21:30:58 +0000 (GMT) Message-ID: Date: Wed, 7 Feb 2024 22:30:58 +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: [PATCH v1] PM: sleep: Restore asynchronous device resume optimization Content-Language: en-US To: Tejun Heo Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux PM , Ulf Hansson , Nathan Chancellor , LKML , Stanislaw Gruszka , Lai Jiangshan , Naohiro.Aota@wdc.com, kernel-team@meta.com From: Marek Szyprowski In-Reply-To: Content-Transfer-Encoding: 7bit X-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fFxOXwjlk+TkFq5nZ3bf25Wde0njZ49iiYLsOuvZRd/+7Hl/KuPS 95al2kfzgtaEbZ3yr8ZHooJ1W5sAw+GHSd6hM541MDBvCNj6zcD9766WEzxKLMUZiYZazEXF iQAmQFhQYwMAAA== X-CMS-MailID: 20240207213059eucas1p10a237b3b9208eae12cd75afb55a3e071 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20240207103144eucas1p16b601a73ff347d2542f8380b25921491 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240207103144eucas1p16b601a73ff347d2542f8380b25921491 References: <10423008.nUPlyArG6x@kreacher> <708a65cc-79ec-44a6-8454-a93d0f3114c3@samsung.com> <4a043533-009f-4db9-b107-c8374be28d2b@samsung.com> <2f125955-8c7c-465c-938c-8768f7ca360b@samsung.com> On 07.02.2024 20:48, Tejun Heo wrote: > Hello, > > I couldn't reproduce effective max_active being pushed down to min_active > across suspend/resume cycles on x86. There gotta be something different. > > - Can you please apply the following patch along with the WQ_DFL_MIN_ACTIVE > bump, go through suspend/resume once and report the dmesg? Here is the relevant part of the log: PM: suspend entry (deep) Filesystems sync: 0.004 seconds Freezing user space processes Freezing user space processes completed (elapsed 0.002 seconds) OOM killer disabled. Freezing remaining freezable tasks Freezing remaining freezable tasks completed (elapsed 0.002 seconds) dwc2 12480000.usb: suspending usb gadget g_ether dwc2 12480000.usb: new device is full-speed smsc95xx 1-2:1.0 eth0: entering SUSPEND2 mode wake enabled for irq 97 (gpx3-2) usb3503 0-0008: switched to STANDBY mode wake enabled for irq 124 (gpx1-3) samsung-pinctrl 11000000.pinctrl: Setting external wakeup interrupt mask: 0xfbfff7ff Disabling non-boot CPUs ... XXX wq_update_node_max_active: wq=events_unbound off_cpu=1 total=3 range=[32, 512] node[0] node_cpus=3 max=512 XXX wq_update_node_max_active: wq=events_unbound off_cpu=2 total=2 range=[32, 512] node[0] node_cpus=2 max=512 XXX wq_update_node_max_active: wq=events_unbound off_cpu=3 total=1 range=[32, 512] node[0] node_cpus=1 max=512 Enabling non-boot CPUs ... XXX wq_update_node_max_active: wq=events_unbound off_cpu=-1 total=2 range=[32, 512] node[0] node_cpus=2 max=512 CPU1 is up XXX wq_update_node_max_active: wq=events_unbound off_cpu=-1 total=3 range=[32, 512] node[0] node_cpus=3 max=512 CPU2 is up XXX wq_update_node_max_active: wq=events_unbound off_cpu=-1 total=4 range=[32, 512] node[0] node_cpus=4 max=512 CPU3 is up s3c-i2c 138e0000.i2c: slave address 0x00 s3c-i2c 138e0000.i2c: bus frequency set to 97 KHz s3c-i2c 13870000.i2c: slave address 0x00 s3c-i2c 13870000.i2c: bus frequency set to 97 KHz s3c-i2c 13860000.i2c: slave address 0x00 s3c-i2c 13860000.i2c: bus frequency set to 390 KHz s3c-i2c 13880000.i2c: slave address 0x00 s3c-i2c 13880000.i2c: bus frequency set to 97 KHz s3c2410-wdt 10060000.watchdog: watchdog disabled wake disabled for irq 124 (gpx1-3) s3c-rtc 10070000.rtc: rtc disabled, re-enabling usb3503 0-0008: switched to HUB mode wake disabled for irq 97 (gpx3-2) usb usb1: root hub lost power or was reset usb 1-2: reset high-speed USB device number 2 using exynos-ehci smsc95xx 1-2:1.0 eth0: Link is Down dwc2 12480000.usb: resuming usb gadget g_ether usb 1-3: reset high-speed USB device number 3 using exynos-ehci usb 1-3.1: reset high-speed USB device number 4 using exynos-ehci OOM killer enabled. Restarting tasks ... done. random: crng reseeded on system resumption PM: suspend exit > ... Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland