Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp751160ybt; Fri, 26 Jun 2020 10:37:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmyb9yZidX8aoQCvzoxoreLw9Ougm9h0vINzEcz1iQZF0FeqeQ8T/gULgueN2S02hfDStn X-Received: by 2002:a17:906:c155:: with SMTP id dp21mr3384163ejc.92.1593193073564; Fri, 26 Jun 2020 10:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593193073; cv=none; d=google.com; s=arc-20160816; b=xPRHoUDJ/F+4QzkW1XMx22abOPXQyqI+M/fSiE/Gn1VS0FHUYppjyMoEszoUNIYJsq Hu1cmNL8NOBR3+qQnO2MRo1C/vrirrAR/XFw0e2sjUu1eVqQH+CXVCKaM08QU+zWQcCo NxT5Qg+LuoFbdMw5//EE1IUi8RUH8tdohTGyH7mbAawlmgQ1OTG7YrFjE3kKAksEbwG9 bMlVnEtcqAIcNzvom8nkHlmCMWvA/wtkvddapKrWUDuUBMEd0A6GxHGiEFV2NrFpedz7 z9c16qZ8MWmp4qIc0RoWCZTVYbkH1Xyzjdb7ux+HNbHA86bEavdTwzs5Sm911bj/JS/A ltPw== 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=MCJPTb/DhbOn3eEYsIWXuZqB8t/MVTLvCQ3hAC4/88Q=; b=zFM9YMM+fIM1KFIKQZa370D0Sjwb4lIzbh1ZThL+Txg5gEUUNbkPAigEWXE5ezj80Z Kevt2FgPTpUtn7js+SMdGhKllBu+0POszEMhFk2Mn6S/h3qoRfll6bZCc0EGbtpUFfhW Vdmsnvz3XGu806NYFqqwttmah5uBvnzVznv6tqtyid8JOU81ITC64PKAO/W6K+0fRfNB j/QbFAitZRZI7f+MBjj99thSpudZVpDhlCBD2xb7Nu2aDxiaXtBgbsbxcqWmqxJSUEsa 6X5lFJedq8n1lTMEkN1g1pnc8L7cT94tc5h0kkO9ScZXclIN4rGZCmNWWwvf6OppVupw AfPg== 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 a9si560853ejd.356.2020.06.26.10.37.30; Fri, 26 Jun 2020 10:37:53 -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 S1727047AbgFZRe0 (ORCPT + 99 others); Fri, 26 Jun 2020 13:34:26 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:56028 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbgFZReS (ORCPT ); Fri, 26 Jun 2020 13:34:18 -0400 Received: from 89-64-83-223.dynamic.chello.pl (89.64.83.223) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.415) id aea2085616e28395; Fri, 26 Jun 2020 19:34:16 +0200 From: "Rafael J. Wysocki" To: Dan Williams , Erik Kaneda Cc: 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: [RFT][PATCH v3 0/4] ACPI: ACPICA / OSL: Avoid unmapping ACPI memory inside of the AML interpreter Date: Fri, 26 Jun 2020 19:28:27 +0200 Message-ID: <2788992.3K7huLjdjL@kreacher> In-Reply-To: <2713141.s8EVnczdoM@kreacher> References: <158889473309.2292982.18007035454673387731.stgit@dwillia2-desk3.amr.corp.intel.com> <2713141.s8EVnczdoM@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 Hi All, On Monday, June 22, 2020 3:50:42 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. > > Like I said before, I had decided to change the approach used in the previous > iteration of this series and to allow the unmap operations carried out by > acpi_ex_system_memory_space_handler() to be deferred in the first place, > which is done in patches [1-2/4]. In the meantime I realized that calling syncrhonize_rcu_expedited() under the "tables" mutex within ACPICA is not quite a good idea too and that there is no reason for any users of acpi_os_unmap_memory() in the tree to use the "sync" variant of unmapping. So, unless I'm missing something, acpi_os_unmap_memory() can be changed to always defer the final unmapping and the only ACPICA change needed to support that is the addition of the acpi_os_release_unused_mappings() call to get rid of the unused mappings when leaving the interpreter (module the extra call in the debug code for consistency). So patches [1-2/4] have been changed accordingly. > However, it turns out that the "fast-path" mapping is still useful on top of > the above to reduce the number of ioremap-iounmap cycles for the same address > range and so it is introduced by patches [3-4/4]. Patches [3-4/4] still do what they did, but they have been simplified a bit after rebasing on top of the new [1-2/4]. The below information is still valid, but it applies to the v3, of course. > For details, please refer to the patch changelogs. > > 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. Also the series have been tested locally. Thanks, Rafael