Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2304595ybn; Thu, 26 Sep 2019 09:54:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2Vsz+pfLrShjlMaiSTFT1rLSMfgRgRKpMis8BfOry1fMD51MrJhLNz8ulLaP+fzFiYUKo X-Received: by 2002:a17:906:860d:: with SMTP id o13mr4041047ejx.284.1569516852260; Thu, 26 Sep 2019 09:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569516852; cv=none; d=google.com; s=arc-20160816; b=0cNuDUuqgkLA3cPYxc8p5qj+wfUz9HwqwrzTDRBxQNrNNNV7XDVNYTrhesz+6Xw/pk Wtd1VlWNrcv2BcJJ6g3yQCXoLBEfEek1Pe1ki0uo6RrYCFdTlK/F94T8O66Jcj4hScRp uBe702qAuOuoFkrqWwne7Qqmri3qo4jXeucUx2emSqvH/G9/1etBlFuZPkmJj31hPoic ev9XZ4d2kzyuE5xMVSqVh4UaGbRCm4PYVN1zxsrjV9eHhWAnn1xPdihIMh8LdQz2Bh1s 0dcyXpncCdZECaI42SyLmND7XbfVEYgjirzKQjxrLIzgYTaXhLY+acYc3a4kPNHlolbF PAgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=2mo2AKTRWQvmqc/Um4LXJCULdQqaN0Y6r3KbIWj1zoA=; b=gdV6aIdqkHC/CwuYX7n6CPXVLQyBUxAWmXIvd3aVatPpJF+HpQ+4nkAfqGMZDm4HCS gqOLx6ccQxj3ZSmyvNJhw6IxZJzstKKtC9FIm0KGJJQPB6A3ri6FFQvZqeDzKk26QBXE PV7XUq6u5J2w5OPmvtz9rd4xjqUt/m4JeG4NEGeMq3LY0q1Z1wLzO7dmnm1vH007Fy9V B/VSwYOPdG3Rly0HLsySJXE98xDX28OWsCgwTX3QYwgtRxMeHQFEr9uESCtW2I2m9W3F v8IPGZnA2ntXqXoEDIeipALOWRybnTZ3GWzSOuD54eKU/6ZUbe+kwC1ua4hVvLzELG5l ShNw== 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 g19si1266219ejj.120.2019.09.26.09.53.32; Thu, 26 Sep 2019 09:54:12 -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 S1727545AbfIZQvD convert rfc822-to-8bit (ORCPT + 99 others); Thu, 26 Sep 2019 12:51:03 -0400 Received: from mga09.intel.com ([134.134.136.24]:46443 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfIZQvD (ORCPT ); Thu, 26 Sep 2019 12:51:03 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2019 09:51:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,552,1559545200"; d="scan'208";a="219466843" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by fmsmga002.fm.intel.com with ESMTP; 26 Sep 2019 09:51:01 -0700 Received: from orsmsx154.amr.corp.intel.com (10.22.226.12) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 26 Sep 2019 09:51:00 -0700 Received: from orsmsx122.amr.corp.intel.com ([169.254.11.236]) by ORSMSX154.amr.corp.intel.com ([169.254.11.180]) with mapi id 14.03.0439.000; Thu, 26 Sep 2019 09:51:00 -0700 From: "Schmauss, Erik" To: "Shevchenko, Andriy" 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 Thread-Topic: [PATCH] ACPICA: make acpi_load_table() return table index Thread-Index: AQHVaUE6PwWyj3qAlUyiJ16YhgOwE6c+NeMQgAB9wgD//42XEA== Date: Thu, 26 Sep 2019 16:51:00 +0000 Message-ID: References: <20190906174605.GY2680@smile.fi.intel.com> <20190912080742.24642-1-nikolaus.voss@loewensteinmedical.de> <20190926163528.GH32742@smile.fi.intel.com> In-Reply-To: <20190926163528.GH32742@smile.fi.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTczMTQ5Y2QtNTJkOC00MjdkLTg3OWYtOWRmZjQzNDlmN2M1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVzNISmZaM3VHTmFkQ1l0b01LMzNHQVhkNVVXZFJYN3hTcFN2OE1lNnRtTXZCOFwvQWlITXhGOVhuREJyZ0g0WlYifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----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. Erik > > Because it's kinda strange to call acpi_load_table*() and acpi_tb_*() in the > same module. > > -- > With Best Regards, > Andy Shevchenko >