qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH v2 5/7] ACPICA: Integrate package handling with module-level code
       [not found]         ` <CF6A88132359CE47947DB4C6E1709ED539727606@ORSMSX110.amr.corp.intel.com>
@ 2018-04-16 23:21           ` Dan Williams
  2018-04-17  0:05             ` Schmauss, Erik
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2018-04-16 23:21 UTC (permalink / raw)
  To: Schmauss, Erik
  Cc: Rafael J. Wysocki, Linux ACPI, Moore, Robert, linux-nvdimm,
	Qemu Developers

On Mon, Apr 16, 2018 at 4:15 PM, Schmauss, Erik <erik.schmauss@intel.com> wrote:
> [ trimming ]
>> >> Rafael, we may want to hold back on the module-level code changes
>> >> (the patches below) for rc1. Between this and the strange _TSS issue,
>> >> it seems like there are a few more things to resolve before this is
>> >> ready for kernel upstream.
>> >
> Hi Rafael,
>
>> > It looks like you are asking me to queue up reverts as per the Dan's
>> > report, is that correct?
>
> This is indeed what I meant last week. However, I've looked into the issue and Dan's qemu
> instance had AML that we no longer support. This is because the ACPICA commit makes changes to the execution of AML
> during table load to match windows AML interpreter behavior so this commit also got rid of support for executing code
> containing forward references (except for package elements).
>
> I've suggested a fix for the firmware in a separate email. So I would say that this issue is resolved after if Dan can run
> his test successfully with the adjusted firmware.
>
> If Dan's test is successful, we don’t need to revert these changes

I'm concerned about other qemu-kvm users that do not upgrade their
hypervisor at the same pace as their guest kernel. Especially for
cloud providers that may be running latest mainline kernel on older
qemu-kvm this will look like a pure kernel regression. Is there a
quick fix we can carry in the kernel to support these forward
references, at least until we know that qemu-kvm is no longer shipping
the broken AML?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH v2 5/7] ACPICA: Integrate package handling with module-level code
  2018-04-16 23:21           ` [Qemu-devel] [PATCH v2 5/7] ACPICA: Integrate package handling with module-level code Dan Williams
@ 2018-04-17  0:05             ` Schmauss, Erik
  2018-04-17  4:06               ` Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Schmauss, Erik @ 2018-04-17  0:05 UTC (permalink / raw)
  To: Williams, Dan J
  Cc: Rafael J. Wysocki, Linux ACPI, Moore, Robert, linux-nvdimm,
	Qemu Developers


> -----Original Message-----
> From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
> owner@vger.kernel.org] On Behalf Of Dan Williams
> Sent: Monday, April 16, 2018 4:22 PM
> To: Schmauss, Erik <erik.schmauss@intel.com>
> Cc: Rafael J. Wysocki <rjw@rjwysocki.net>; Linux ACPI <linux-
> acpi@vger.kernel.org>; Moore, Robert <robert.moore@intel.com>; linux-
> nvdimm <linux-nvdimm@lists.01.org>; Qemu Developers <qemu-
> devel@nongnu.org>
> Subject: Re: [PATCH v2 5/7] ACPICA: Integrate package handling with module-
> level code
> 
> On Mon, Apr 16, 2018 at 4:15 PM, Schmauss, Erik <erik.schmauss@intel.com>
> wrote:
> > [ trimming ]
> >> >> Rafael, we may want to hold back on the module-level code changes
> >> >> (the patches below) for rc1. Between this and the strange _TSS
> >> >> issue, it seems like there are a few more things to resolve before
> >> >> this is ready for kernel upstream.
> >> >
> > Hi Rafael,
> >
> >> > It looks like you are asking me to queue up reverts as per the
> >> > Dan's report, is that correct?
> >
> > This is indeed what I meant last week. However, I've looked into the
> > issue and Dan's qemu instance had AML that we no longer support. This
> > is because the ACPICA commit makes changes to the execution of AML
> > during table load to match windows AML interpreter behavior so this commit
> also got rid of support for executing code containing forward references (except
> for package elements).
> >
> > I've suggested a fix for the firmware in a separate email. So I would
> > say that this issue is resolved after if Dan can run his test successfully with the
> adjusted firmware.
> >
> > If Dan's test is successful, we don’t need to revert these changes
> 

Hi Dan,

> I'm concerned about other qemu-kvm users that do not upgrade their hypervisor
> at the same pace as their guest kernel. Especially for cloud providers that may
> be running latest mainline kernel on older qemu-kvm this will look like a pure
> kernel regression. Is there a quick fix we can carry in the kernel to support these
> forward references, at least until we know that qemu-kvm is no longer shipping
> the broken AML?

This is a very good point. Thanks for bringing this up! One option is for them to set
the global variable acpi_gbl_execute_tables_as_methods in include/acpi/acpixf.h to false.
This will effectively revert the new behavior in the AML interpreter and go back to the old way.
Since this is a global flag, we could have a command line option for Linux kernel to turn this
feature on.

Out of curiosity, is this ACPI table somehow customized for your work? I have a collection
of acpi tables and your ACPI tables are the only ones that have an OperationRegion called
NRAM. What is the chance that others will be running Linux on the same tables as the one
you sent me?

Erik

> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of
> a message to majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH v2 5/7] ACPICA: Integrate package handling with module-level code
  2018-04-17  0:05             ` Schmauss, Erik
@ 2018-04-17  4:06               ` Dan Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Williams @ 2018-04-17  4:06 UTC (permalink / raw)
  To: Schmauss, Erik
  Cc: Rafael J. Wysocki, Linux ACPI, Moore, Robert, linux-nvdimm,
	Qemu Developers

On Mon, Apr 16, 2018 at 5:05 PM, Schmauss, Erik <erik.schmauss@intel.com> wrote:
>
>> -----Original Message-----
>> From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
>> owner@vger.kernel.org] On Behalf Of Dan Williams
>> Sent: Monday, April 16, 2018 4:22 PM
>> To: Schmauss, Erik <erik.schmauss@intel.com>
>> Cc: Rafael J. Wysocki <rjw@rjwysocki.net>; Linux ACPI <linux-
>> acpi@vger.kernel.org>; Moore, Robert <robert.moore@intel.com>; linux-
>> nvdimm <linux-nvdimm@lists.01.org>; Qemu Developers <qemu-
>> devel@nongnu.org>
>> Subject: Re: [PATCH v2 5/7] ACPICA: Integrate package handling with module-
>> level code
>>
>> On Mon, Apr 16, 2018 at 4:15 PM, Schmauss, Erik <erik.schmauss@intel.com>
>> wrote:
>> > [ trimming ]
>> >> >> Rafael, we may want to hold back on the module-level code changes
>> >> >> (the patches below) for rc1. Between this and the strange _TSS
>> >> >> issue, it seems like there are a few more things to resolve before
>> >> >> this is ready for kernel upstream.
>> >> >
>> > Hi Rafael,
>> >
>> >> > It looks like you are asking me to queue up reverts as per the
>> >> > Dan's report, is that correct?
>> >
>> > This is indeed what I meant last week. However, I've looked into the
>> > issue and Dan's qemu instance had AML that we no longer support. This
>> > is because the ACPICA commit makes changes to the execution of AML
>> > during table load to match windows AML interpreter behavior so this commit
>> also got rid of support for executing code containing forward references (except
>> for package elements).
>> >
>> > I've suggested a fix for the firmware in a separate email. So I would
>> > say that this issue is resolved after if Dan can run his test successfully with the
>> adjusted firmware.
>> >
>> > If Dan's test is successful, we don’t need to revert these changes
>>
>
> Hi Dan,
>
>> I'm concerned about other qemu-kvm users that do not upgrade their hypervisor
>> at the same pace as their guest kernel. Especially for cloud providers that may
>> be running latest mainline kernel on older qemu-kvm this will look like a pure
>> kernel regression. Is there a quick fix we can carry in the kernel to support these
>> forward references, at least until we know that qemu-kvm is no longer shipping
>> the broken AML?
>
> This is a very good point. Thanks for bringing this up! One option is for them to set
> the global variable acpi_gbl_execute_tables_as_methods in include/acpi/acpixf.h to false.
> This will effectively revert the new behavior in the AML interpreter and go back to the old way.
> Since this is a global flag, we could have a command line option for Linux kernel to turn this
> feature on.
>
> Out of curiosity, is this ACPI table somehow customized for your work? I have a collection
> of acpi tables and your ACPI tables are the only ones that have an OperationRegion called
> NRAM. What is the chance that others will be running Linux on the same tables as the one
> you sent me?

I don't think there's anything atypical about my particular setup. It
creates two virtual NVDIMMs that each represent a 30GB address space.
I suspect any user of the KVM NVDIMM virtualization would see the same
problem.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-17  4:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20180215210932.15490-1-erik.schmauss@intel.com>
     [not found] ` <CAPcyv4hp_pm2n3H_froFkedd_GMQvsrEc8yZxYzfYkPDYvjDww@mail.gmail.com>
     [not found]   ` <CF6A88132359CE47947DB4C6E1709ED5397230D6@ORSMSX110.amr.corp.intel.com>
     [not found]     ` <3701399.BBZtpt46yJ@aspire.rjw.lan>
     [not found]       ` <CAPcyv4j-iC+b07=JPP_TV1MLHA2iO5iKLvc+jaPHoEuRfzoAFQ@mail.gmail.com>
     [not found]         ` <CF6A88132359CE47947DB4C6E1709ED539727606@ORSMSX110.amr.corp.intel.com>
2018-04-16 23:21           ` [Qemu-devel] [PATCH v2 5/7] ACPICA: Integrate package handling with module-level code Dan Williams
2018-04-17  0:05             ` Schmauss, Erik
2018-04-17  4:06               ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).