From patchwork Wed Nov 29 13:52:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 171362 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a5a7:0:b0:403:3b70:6f57 with SMTP id d7csp350107vqn; Wed, 29 Nov 2023 05:53:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEykrWin7KFqykB7ljMRxFcNYL30qj9AKRjAmS0lHfG57Ryk4tSloaApVn0JTInoDEfAj8Q X-Received: by 2002:a05:6a21:78a3:b0:18c:3ea9:b85d with SMTP id bf35-20020a056a2178a300b0018c3ea9b85dmr20098354pzc.11.1701265980509; Wed, 29 Nov 2023 05:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701265980; cv=none; d=google.com; s=arc-20160816; b=CBnISP+8RYtAJWpbh4UVCoMUurRPaUR+hZM47JD8jqhhxqhctV1Zp1mtP59SmAgDAA o+9KJqEIVJMclHUv5AGwQoIirFlGXJvEhDxagXi/6Yj33i1vN0VDxgJ9UsS/of8NDcd9 TJ/ES/zcUEAxHF9In0lJLNMW5ABwDW3dCX0YqD3g6i/Yuxtn3Fey2McUCdxydtZ5XLbJ g7vIZsXiS8OXUciypYUCfAxTLH32M/L0zKUGof5Y45rZcZ+30S0vg6stkAeycfjViTs5 uf17rkSDonYpF5tK9uuDICcBMsR8T0zwahqJyOLZF7zrx+rwjTEUEMnoZY22vlc0C4mR xaUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UERtOHEfB+wcRXPR63aJC4ZE5tHu6aBvT4BEe2asFMo=; fh=Xy56yUsN7dnS9aJqFVOKrydaYiEvkn2fuPmAP6j6D88=; b=gSof+IgXBZuO/W8xSdeQBIknrQVVai/syNtKwHLj1VubvdFyCzO7LucsvIOoHp8wXk u2fhJmh8F2UtRw0YBd942G+gVUVwMB5ivYK8XyRuWom5JWVi/L8NPgk7hOE6FI9LvnmD dO7bbEIn0azDQYlFL1cS1lp0U6ZHgBcWRGP7MZOuv1JKwRKOOPDnA15avEIzGRhdwtzz QehehLLlG/9KpWEyzfvHlaR4FI20j5268PDQRVh2eEVlBUD1GuBvguvM9a2I4y5coFt0 sS8QENQLrVQXJlJQfb7Irhk0ruuk6BFtwqjGVq33/IvOx7ivEuJdPBIdfNwjOeuLXAJt uKpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id p9-20020a63c149000000b005be0ca9ca31si13967583pgi.294.2023.11.29.05.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 05:53:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E094780AEFB0; Wed, 29 Nov 2023 05:52:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234115AbjK2Nwp (ORCPT + 99 others); Wed, 29 Nov 2023 08:52:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233724AbjK2Nwo (ORCPT ); Wed, 29 Nov 2023 08:52:44 -0500 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A5D7DD; Wed, 29 Nov 2023 05:52:50 -0800 (PST) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.4.0) id a0bed9a11a4d3cbd; Wed, 29 Nov 2023 14:52:49 +0100 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cloudserver094114.home.pl (Postfix) with ESMTPSA id 714456684BD; Wed, 29 Nov 2023 14:52:48 +0100 (CET) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Zhang Rui , Srinivas Pandruvada , Michal Wilczynski , Hans de Goede , Andy Shevchenko , Mika Westerberg , Heikki Krogerus , Mario Limonciello Subject: [PATCH v1 4/4] ACPI: OSL: Use GFP_KERNEL for work item allocations Date: Wed, 29 Nov 2023 14:52:22 +0100 Message-ID: <3552364.iIbC2pHGDl@kreacher> In-Reply-To: <3281896.aeNJFYEL58@kreacher> References: <3281896.aeNJFYEL58@kreacher> MIME-Version: 1.0 X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrudeihedgheehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepuddtpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhuihdriihhrghnghesihhnthgvlhdrtghomhdprhgtphhtthhopehsrhhinhhivhgrshdrphgrnhgurhhuvhgruggrsehlihhnuhigrdhinhhtvghlrdgt ohhmpdhrtghpthhtohepmhhitghhrghlrdifihhltgiihihnshhkihesihhnthgvlhdrtghomhdprhgtphhtthhopehhuggvghhovgguvgesrhgvughhrghtrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=10 Fuz1=10 Fuz2=10 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 29 Nov 2023 05:52:54 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783906677121885406 X-GMAIL-MSGID: 1783906677121885406 From: Rafael J. Wysocki After the recent modification changing the ACPI SCI interrupt handler into a threaded one, the SCI interrupt handler code does not run in interrupt context any more and acpi_os_execute(), that may be invoked by it, need not use GFP_ATOMIC for allocating work items. Make it use GFP_KERNEL instead. Signed-off-by: Rafael J. Wysocki Reviewed-by: Andy Shevchenko --- drivers/acpi/osl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Index: linux-pm/drivers/acpi/osl.c =================================================================== --- linux-pm.orig/drivers/acpi/osl.c +++ linux-pm/drivers/acpi/osl.c @@ -1084,8 +1084,7 @@ acpi_status acpi_os_execute(acpi_execute * parameters we can't use the approach some kernel code uses of * having a static work_struct. */ - - dpc = kzalloc(sizeof(struct acpi_os_dpc), GFP_ATOMIC); + dpc = kzalloc(sizeof(struct acpi_os_dpc), GFP_KERNEL); if (!dpc) return AE_NO_MEMORY;