> -----Original Message-----
> From: Rafael J. Wysocki <raf...@kernel.org>
> Sent: Thursday, September 26, 2019 12:26 PM
> To: Nikolaus Voss <n...@vosn.de>
> Cc: Schmauss, Erik <erik.schma...@intel.com>; Shevchenko, Andriy
> <andriy.shevche...@intel.com>; Rafael J. Wysocki <r...@rjwysocki.net>;
> Moore, Robert <robert.mo...@intel.com>; Len Brown <l...@kernel.org>;
> Jacek Anaszewski <jacek.anaszew...@gmail.com>; Pavel Machek
> <pa...@ucw.cz>; Dan Murphy <dmur...@ti.com>; linux-a...@vger.kernel.org;
> de...@acpica.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH] ACPICA: make acpi_load_table() return table index
> 
> On Thu, Sep 26, 2019 at 8:44 PM Nikolaus Voss <n...@vosn.de> wrote:
> >
> > On Thu, 26 Sep 2019, Schmauss, Erik wrote:
> > >> -----Original Message-----
> > >> From: linux-acpi-ow...@vger.kernel.org
> > >> <linux-acpi-ow...@vger.kernel.org>
> > >> On Behalf Of Shevchenko, Andriy
> > >> Sent: Thursday, September 26, 2019 9:35 AM
> > >> To: Schmauss, Erik <erik.schma...@intel.com>
> > >> Cc: Nikolaus Voss <nikolaus.v...@loewensteinmedical.de>; Rafael J.
> > >> Wysocki <r...@rjwysocki.net>; Moore, Robert
> > >> <robert.mo...@intel.com>; Len Brown <l...@kernel.org>; Jacek
> > >> Anaszewski <jacek.anaszew...@gmail.com>; Pavel Machek
> > >> <pa...@ucw.cz>; Dan Murphy <dmur...@ti.com>; linux-
> > >> a...@vger.kernel.org; de...@acpica.org;
> > >> linux-kernel@vger.kernel.org; n...@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 <nikolaus.v...@loewensteinmedical.de>
> > >>>> Sent: Thursday, September 12, 2019 1:08 AM
> > >>>> To: Shevchenko, Andriy <andriy.shevche...@intel.com>; Schmauss,
> > >>>> Erik <erik.schma...@intel.com>; Rafael J. Wysocki
> > >>>> <r...@rjwysocki.net>; Moore, Robert <robert.mo...@intel.com>
> > >>>> Cc: Len Brown <l...@kernel.org>; Jacek Anaszewski
> > >>>> <jacek.anaszew...@gmail.com>; Pavel Machek <pa...@ucw.cz>; Dan
> > >>>> Murphy <dmur...@ti.com>; linux-a...@vger.kernel.org;
> > >>>> de...@acpica.org; linux- ker...@vger.kernel.org; n...@vosn.de;
> > >>>> Nikolaus Voss <nikolaus.v...@loewensteinmedical.de>
> > >>>> 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.
> >
> > that's even better news.
> >
> > Rafael, shall I prepare anything?
Hi everyone,

> I don't think so.  I'm expecting to get a proper fix from the upstream through
> the normal process.
Just so that we are on the same page:

I've backported Nikolaus's patch for upstream here 
https://github.com/acpica/acpica/pull/506
and Bob has implemented the new API here: 
https://github.com/acpica/acpica/commit/c69369cd9cf0134e1aac516e97d612947daa8dc2

Once we do a release, I will send Bob's change to the linux ACPI mailing list.
Feel free to use this new API where you see fit.

Thanks,
Erik

> 
> Thanks,
> Rafael

Reply via email to