Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2783146rdb; Mon, 4 Dec 2023 07:26:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyTUuMFYjQd7nVBb/Zw4vs7JQ4DbPUeKGcJrF2xpzxxZQcQSB9FyZmgJso3GIR7Aen90Ty X-Received: by 2002:a17:902:9343:b0:1d0:6ffe:1ea5 with SMTP id g3-20020a170902934300b001d06ffe1ea5mr1970133plp.136.1701703619300; Mon, 04 Dec 2023 07:26:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701703619; cv=none; d=google.com; s=arc-20160816; b=uhBNBRGub2oRC2bjC6CWjCU74hpKU36+2qPdfcARIgOHTCHwXCKtFaAiyjj6rmOqKS cvs0tcRdZ5XqjIX6bJam1g9VJHL32ad0zWC2TW4sRqtFBGwHHlTg4G/5pCNxQXHnzQcO eeZiFjwPVHIBO1fmE/I/akoF9+Qnk7cdxHRRhpzlhNJ9GzZEUItp5bs0VZdCkvxKDl+T ziMkBdMvEtda9lSytqucN33Jk63VjMjlscoXBtxlg/gr1/n5vwI+5GmxXHNXggk8wwTd gM11xp0yUGuokN0X70jADWpuoic+WtzfpTSiU4WTu9z/ojmwhXrZ/PC/7t9ApFPqEc4X sCnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=U2Y83/ppeMxZxRno16PNW2wlEtTiDCExkCeMc8V9kdM=; fh=WxdBbLiRAzvEOAvxfVduA3zMImeqYBoa7uNpMGvi5xY=; b=gtiF6necCWGm/SqCZcA84mnOoAL+KLOLsls3urzyKkaxENCX3SWx6aOoFz2Fa7ScNo uldryv63iylb+/xafR7ObbTWMhHPzzRTyMgFdqxO6OLeF7dOZnObAzZleEv0xFBO2dHK ay/2672la/bv9jlUf1Qzd/Tuon89o08qnWMDzB80ChEADNXfvOLTLiYS6zqn8U8GkAtv qFw75B3Ou+sTYdsDIt2cUMr/FQiHl6G5geC9bphzBVH23gFS1hdy5Gkb0KFDjiov7wHd lT31gmbGrpP4R6iNS8/pgTvc65UGAsYO0D7kcF0TCrr6FZzHlC+3XY0xA/vYNkxxfFi5 VGmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k187-20020a6324c4000000b005c69246e16bsi1553918pgk.2.2023.12.04.07.26.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 07:26:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0078B80944CB; Mon, 4 Dec 2023 07:26:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231328AbjLDP0l convert rfc822-to-8bit (ORCPT + 99 others); Mon, 4 Dec 2023 10:26:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234963AbjLDP0X (ORCPT ); Mon, 4 Dec 2023 10:26:23 -0500 Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95A2B198; Mon, 4 Dec 2023 07:26:19 -0800 (PST) Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-1fb1620a00eso552542fac.1; Mon, 04 Dec 2023 07:26:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701703579; x=1702308379; 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=UIUtVPpyS8fYPGpGVIiSGAPMUKiBnO1J7wrsfSDkQ8w=; b=uoAskszJc7PrAdQub6c2RdQFtDovUjznT6B4V9tFf3a6fwC4QaQ18EI/ABNAje/y5N yK+GBorjK/w675u7m7ZcgpqPNJs+CLqdFoey6XuVEU/zV+JRbVnYdZVyLEVOecGGefjG fO2DYvAfm3rp0x7u3VHhy1upqzU4iNYcinexfBgAHEperZKYRertgzdTmSB83mA9Cy1c YJhpK4GYHDDBpAgQFeeMXlPzDWl21Qz5nCx3A4ODTqOlbetliTZ5SaH6QShGk6auZjhI qZM43+0V2NHg0FkpUans5zJvpxCSR0HFpZMmx1s7UwNhomqqAwulvv+2+WrCMaFBTiJU YfMg== X-Gm-Message-State: AOJu0YxW9pX+8dlDoXIaGiPLfzw9PeMe+ap4coigtO8Hh6pXHgToiW8K dwHEW8eL7unFZhQNYlSYDL7Hj8iyL4kRwsUWt5E= X-Received: by 2002:a05:6870:e38a:b0:1fb:25fb:fabc with SMTP id x10-20020a056870e38a00b001fb25fbfabcmr5889457oad.5.1701703578877; Mon, 04 Dec 2023 07:26:18 -0800 (PST) MIME-Version: 1.0 References: <3281896.aeNJFYEL58@kreacher> <3552364.iIbC2pHGDl@kreacher> In-Reply-To: <3552364.iIbC2pHGDl@kreacher> From: "Rafael J. Wysocki" Date: Mon, 4 Dec 2023 16:26:02 +0100 Message-ID: Subject: Re: [PATCH v1 4/4] ACPI: OSL: Use GFP_KERNEL for work item allocations To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML , Zhang Rui , Srinivas Pandruvada , Michal Wilczynski , Hans de Goede , Andy Shevchenko , Mika Westerberg , Heikki Krogerus , Mario Limonciello Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 07:26:57 -0800 (PST) On Wed, Nov 29, 2023 at 3:33 PM Rafael J. Wysocki wrote: > > 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. This change is premature, because acpi_ev_detect_gpe() still disables local interrupts around acpi_os_execute() calls, even though it runs from a kernel thread now. Withdrawing. > Signed-off-by: Rafael J. Wysocki > --- > 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; > > > > >