RE: [PATCH] PCI/ACPI: Add support for `AE_SUPPORT` in _OSC queries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[Public]

> -----Original Message-----
> From: Rafael J. Wysocki <rafael@xxxxxxxxxx>
> Sent: Wednesday, March 9, 2022 08:25
> To: Limonciello, Mario <Mario.Limonciello@xxxxxxx>
> Cc: Rafael J. Wysocki <rafael@xxxxxxxxxx>; Rafael J . Wysocki
> <rjw@xxxxxxxxxxxxx>; ACPI Devel Maling List <linux-acpi@xxxxxxxxxxxxxxx>;
> Qian Cai <quic_qiancai@xxxxxxxxxxx>
> Subject: Re: [PATCH] PCI/ACPI: Add support for `AE_SUPPORT` in _OSC
> queries
> 
> On Wed, Mar 9, 2022 at 2:48 PM Limonciello, Mario
> <Mario.Limonciello@xxxxxxx> wrote:
> >
> > [AMD Official Use Only]
> >
> >
> > > >
> > > > commit a412caea5a2d ("ACPI: bus: Allow negotiating _OSC capabilities")
> > > > added support for `acpi_run_osc` to return `AE_SUPPORT` when
> negotiating
> > > > an _OSC.
> > > >
> > > > This was fixed in other kernel consumers, but `acpi_pci_run_osc` was
> > > > missed.  Update the function to detect when called with
> > > `OSC_QUERY_ENABLE`
> > > > set and attempt to negotiate up to 5 times.
> > >
> > > This is not how it is designed to work, though.
> > >
> > > acpi_pci_query_osc() is for that.
> > >
> > > >
> > > > Reported-by: Qian Cai <quic_qiancai@xxxxxxxxxxx>
> > > > Fixes: a412caea5a2d ("ACPI: bus: Allow negotiating _OSC capabilities")
> > >
> > > So I'm seriously thinking about dropping that whole lot at this point.
> >
> > Do you want me to send up a series perhaps that reverts those 3 commits
> 
> I can just drop them at this point, so no need to revert.
> 
> > and instead moves the logic changes on query handling from acpi_run_osc
> into
> > acpi_bus_osc_negotiate_platform_control?
> 
> Yes, please!

Here it is.  I did it based on linux-pm/bleeding-edge with those 3 commits reverted first (on the assumption they drop).
Should have done this from start - it's so many less LOC and easier to follow!
https://patchwork.kernel.org/project/linux-acpi/patch/20220309163749.773474-1-mario.limonciello@xxxxxxx/




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux