Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp535429ybt; Sat, 13 Jun 2020 12:21:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxHghlvgo8uuQWV+6MF5Kl6qzHFqo3b4vN7y0PurYF+6NDjhAODHLjIrjD3buOczt6yB1O X-Received: by 2002:a17:906:35ca:: with SMTP id p10mr18290874ejb.392.1592076102242; Sat, 13 Jun 2020 12:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592076102; cv=none; d=google.com; s=arc-20160816; b=w0PUmPe8asdbH1Lw9ssyuGCnIPabBMocLIvbFbEy4XcSUHisD2YK3UD1U7nYAm32lF s1H1Db0ATAKO9LgE9m4I9UbX4qnuiLXvvztKXQiBmLBVyZvIfQlxq+rvtbmiqSGK7JI4 KbqJxjm5UB+tGfIBV4zcRKEnBhfCi/p2WYN1+sJDACIQFHbVDXUEBNQWt/lj+/V+I1VP e3YmyhXxxAqWs60tbN6/Yx66iRhwrNHuPZvX3PsGevaQb9XF59cxMtuNzrH5QLKrMl2p AtN7rMEJuaPX7T2+2LIM1xqYubL2TpaX0CJF0vexKTGQfYgI1jvBTsnGwWx/FHK5nLBK wB0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jF+/XNf6J904k2nGFa+EGiVJaw20if7EzL3bzxpclaw=; b=bis2/jrlk1a2qcI91h0DLr3dX43eBoEEkzDYZDUDI8iC5DQK5OB7Otu8h8LNMLFHn9 PuEbOSS/h6Xkhyq6upc7zELcc7S7WLf2VMWZ8xvrXc1rmuRUEzzZZG2FZrKql9Akahqx Vh6ji4M1qJvUxA25vqLcYWQCJoQgi59n95ibgDc/LyFsDDFPbK1+P+DK45IYamzwll8G uuDvTwdRpffKsx9QjlRjceLEBLO7pFCTudG3bfN8H0w+6WWTc1JZVRAnbOpZmPirv1JC VOv3u8LoRTEKOiDoPQenhpY/pa3bUcQHsJMYTufIGDg+Dl2ODESc163BQFDpkfyw06es b6Cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce7si6235576edb.483.2020.06.13.12.21.18; Sat, 13 Jun 2020 12:21:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgFMTTc (ORCPT + 99 others); Sat, 13 Jun 2020 15:19:32 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:46790 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbgFMTTc (ORCPT ); Sat, 13 Jun 2020 15:19:32 -0400 Received: from 89-77-60-66.dynamic.chello.pl (89.77.60.66) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.415) id b5415c95c99b9eab; Sat, 13 Jun 2020 21:19:29 +0200 From: "Rafael J. Wysocki" To: "Rafael J. Wysocki" Cc: Dan Williams , Erik Kaneda , rafael.j.wysocki@intel.com, Len Brown , Borislav Petkov , Ira Weiny , James Morse , Myron Stowe , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-nvdimm@lists.01.org, Bob Moore Subject: Re: [RFT][PATCH 0/3] ACPI: ACPICA / OSL: Avoid unmapping ACPI memory inside of the AML interpreter Date: Sat, 13 Jun 2020 21:19:28 +0200 Message-ID: <6131168.ASH3qCSnW2@kreacher> In-Reply-To: <318372766.6LKUBsbRXE@kreacher> References: <158889473309.2292982.18007035454673387731.stgit@dwillia2-desk3.amr.corp.intel.com> <318372766.6LKUBsbRXE@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, June 10, 2020 2:17:04 PM CEST Rafael J. Wysocki wrote: > Hi All, > > This series is to address the problem with RCU synchronization occurring, > possibly relatively often, inside of acpi_ex_system_memory_space_handler(), > when the namespace and interpreter mutexes are held. > > The basic idea is to avoid the actual unmapping of memory in > acpi_ex_system_memory_space_handler() by making it take the advantage of the > reference counting of memory mappings utilized by the OSL layer in Linux. > > The basic assumption in patch [1/3] is that if the special > ACPI_OS_MAP_MEMORY_FAST_PATH() macro is present, it can be used to increment > the reference counter of a known-existing memory mapping in the OS layer > which then is dropped by the subsequent acpi_os_unmap_memory() without > unmapping the address range at hand. That can be utilized by > acpi_ex_system_memory_space_handler() to prevent the reference counters of > all mappings used by it from dropping down to 0 (which also prevents the > address ranges associated with them from being unmapped) so that they can > be unmapped later (specifically, at the operation region deactivation time). > > Patch [2/3] defers the unmapping even further, until the namespace and > interpreter mutexes are released, to avoid invoking the RCU synchronization > under theses mutexes. > > Finally, patch [3/3] changes the OS layer in Linux to provide the > ACPI_OS_MAP_MEMORY_FAST_PATH() macro. > > Note that if this macro is not defined, the code works the way it used to. > > The series is available from the git branch at > > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ > acpica-osl > > for easier testing. Please disregard this patch series, it will be replaced by a new one which already is there in the acpica-osl branch above. Thanks!