Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2369592ybn; Thu, 26 Sep 2019 10:51:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqygn7cifwSEZ9h3kO7cNJmM/PqlDOSvFMwiM+NGZAOzFdDmwMrfj5WX4Gyv58tNlsOJ/XiU X-Received: by 2002:a17:906:f204:: with SMTP id gt4mr4229349ejb.299.1569520277370; Thu, 26 Sep 2019 10:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569520277; cv=none; d=google.com; s=arc-20160816; b=tN/9G/R52iDUA2bnXTrRKNGXv95eGfPR8i0g9sxv2m7N2Gv350RfAcQliSc3ctPWcn LD/ryOb8KUA4NJIgyleR0QWDcGGy5eVIk7Nri6AxAN5dfV+3x0qjquGAGS2svWkLBdSZ QwmIDzi3LP8EWwUGjpYQcPqU8KkIDhUc0pJZP0e4EGkHJKO22MW8+ynwKho9iM3Rg7Dc 81degvoNfojXS3i6GnOHbMZHDUZrd/YcNQuGWmNzoaPzeMlIUrTRy6nEFEetKKa//QsM GGP7Yezndh9FoYeAqyTQ5hRLush2nXE6KNZXdVM2sZtrU+pQ3waO8LKOTqaU41lHJldT 42Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6Es0ESLSCB5w9wXTGzCsPCMSJBxrVcjXfz4V5G2j4WA=; b=C0Btxf0BErhd9lM4KzBonNEh7wFoRFrFOLzjEiQjUXaNaGEmFLL1QWEudmHB3Lcp8C J2ed72i6zyjESBkixyPMeuOY3RIipyNj67K3kkzgX0eYXZh68dCIn2p5lPvRcpPpWmfm chAMNYh0+mvWoGP8pqNFawBoX1fDDAbqhj9zmFoU3QRNnNx/jvr6AFSNXDuTTVnt/H5l pkiXfcUD2JozcREeSU6vF445Is7OR3hBJkzN1V/weDb6KeM5YFyiD69c0kTcLTq3J5cy dEIvPQj/Yt4PTyxXXU/dREQniyQvHnJbQ4SzFnv03pyT4ZUcIyeFqtaR8Siki3KumxU+ pchA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12si1407477ejb.312.2019.09.26.10.50.52; Thu, 26 Sep 2019 10:51:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727904AbfIZRr5 (ORCPT + 99 others); Thu, 26 Sep 2019 13:47:57 -0400 Received: from mga09.intel.com ([134.134.136.24]:54146 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727794AbfIZRr5 (ORCPT ); Thu, 26 Sep 2019 13:47:57 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2019 10:47:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,552,1559545200"; d="scan'208";a="203907123" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga001.fm.intel.com with ESMTP; 26 Sep 2019 10:47:51 -0700 Received: from andy by smile with local (Exim 4.92.1) (envelope-from ) id 1iDXrp-00027m-Na; Thu, 26 Sep 2019 20:47:49 +0300 Date: Thu, 26 Sep 2019 20:47:49 +0300 From: "Shevchenko, Andriy" To: "Schmauss, Erik" Cc: Nikolaus Voss , "Rafael J. Wysocki" , "Moore, Robert" , Len Brown , Jacek Anaszewski , Pavel Machek , Dan Murphy , "linux-acpi@vger.kernel.org" , "devel@acpica.org" , "linux-kernel@vger.kernel.org" , "nv@vosn.de" Subject: Re: [PATCH] ACPICA: make acpi_load_table() return table index Message-ID: <20190926174749.GI32742@smile.fi.intel.com> References: <20190906174605.GY2680@smile.fi.intel.com> <20190912080742.24642-1-nikolaus.voss@loewensteinmedical.de> <20190926163528.GH32742@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 26, 2019 at 07:51:00PM +0300, Schmauss, Erik wrote: > > -----Original Message----- > > From: linux-acpi-owner@vger.kernel.org > > On Behalf Of Shevchenko, Andriy > > Sent: Thursday, September 26, 2019 9:35 AM > > To: Schmauss, Erik > > Cc: Nikolaus Voss ; Rafael J. Wysocki > > ; Moore, Robert ; Len Brown > > ; Jacek Anaszewski ; Pavel > > Machek ; Dan Murphy ; linux- > > acpi@vger.kernel.org; devel@acpica.org; linux-kernel@vger.kernel.org; > > nv@vosn.de > > Subject: Re: [PATCH] ACPICA: make acpi_load_table() return table index > > > > On Thu, Sep 26, 2019 at 07:09:05PM +0300, Schmauss, Erik wrote: > > > > -----Original Message----- > > > > From: Nikolaus Voss > > > > Sent: Thursday, September 12, 2019 1:08 AM > > > > To: Shevchenko, Andriy ; Schmauss, Erik > > > > ; Rafael J. Wysocki ; > > > > Moore, Robert > > > > Cc: Len Brown ; Jacek Anaszewski > > > > ; Pavel Machek ; Dan > > > > Murphy ; linux-acpi@vger.kernel.org; > > > > devel@acpica.org; linux- kernel@vger.kernel.org; nv@vosn.de; > > > > Nikolaus Voss > > > > Subject: [PATCH] ACPICA: make acpi_load_table() return table index > > > > > > > Hi Nikolaus, > > > > > > > For unloading an ACPI table, it is necessary to provide the index of the table. > > > > The method intended for dynamically loading or hotplug addition of > > > > tables, acpi_load_table(), should provide this information via an > > > > optional pointer to the loaded table index. > > > > > > We'll take this patch for ACPICA upstream > > > > Erik, > > > Hi Andy, > > > how about to have also counterpart to acpi_load_table() which will do what it's > > done now in acpi_configfs.c via acpi_tb_*() API? > > I should have given more details. We decided to add this extra parameter in AcpiLoadTable and > we're going to create an AcpiUnloadTable function that will take table index to unload the table (basically the acpi_tb_unload..). > Once we do this, you can use table indices with AcpiUnloadTable and AcpiLoadTable. Sounds like what we discussed with Nikolaus earlier [1]. Thanks! [1]: https://lore.kernel.org/linux-acpi/20190924120734.GT2680@smile.fi.intel.com/ -- With Best Regards, Andy Shevchenko