linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 5.6 regression caused by "ACPICA: Dispatcher: always generate buffer objects for ASL create_field() operator"
@ 2020-05-05 12:55 Hans de Goede
  2020-05-05 13:50 ` Maximilian Luz
  0 siblings, 1 reply; 5+ messages in thread
From: Hans de Goede @ 2020-05-05 12:55 UTC (permalink / raw)
  To: Maximilian Luz, Rafael J. Wysocki, Bob Moore, Erik Kaneda,
	Mattia Dongili, William Bader, Dominik Mierzejewski
  Cc: linux-acpi, Darren Hart, Andy Shevchenko, platform-driver-x86

Hi All,

Commit 6d232b29cfce ("ACPICA: Dispatcher: always generate buffer
objects for ASL create_field() operator") has dropped the
automatic conversion of small buffers into integers.

But some drivers relied on this automatic conversion, these
drivers have checks like this:

         if (object->type != ACPI_TYPE_INTEGER) {
                 pr_warn("Invalid acpi_object: expected 0x%x got 0x%x\n",
                                 ACPI_TYPE_INTEGER, object->type);
                 kfree(object);
                 return -EINVAL;
         }

This specific bit comes from the sony-laptop (platform/x86) code,
the ACPICA change has broken this code, causing systems using this
driver to hang on resume from suspend.

We have multiple bug-reports open for this already:

https://bugzilla.kernel.org/show_bug.cgi?id=207491
https://bugzilla.redhat.com/show_bug.cgi?id=1829096
https://bugzilla.redhat.com/show_bug.cgi?id=1830150

Mattia Dongili, the sony-laptop driver has already submitted
a fix for this upstream, adjusting the sony-laptop driver
to deal with the returned object type now being a BUFFER.

The goal of this email is to:

1. Make everyone involved aware of this breakage as we
may see similar breakage elsewhere.

2. Discuss if we should maybe revert the ACPICA change.

If you are reading this then 1. has been accomplished :)

Which leaves us with 2. I'm tending towards keeping the
change, since it seems the right thing to do and dealing
with the fallout. But since there is fallout we should
also at least consider reverting the ACPICA change.

So ACPI maintainers what is you take on this ?

Regards,

Hans


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

end of thread, other threads:[~2020-05-07  7:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 12:55 5.6 regression caused by "ACPICA: Dispatcher: always generate buffer objects for ASL create_field() operator" Hans de Goede
2020-05-05 13:50 ` Maximilian Luz
2020-05-05 22:11   ` Kaneda, Erik
2020-05-06 17:21     ` Rafael J. Wysocki
2020-05-07  7:34       ` Hans de Goede

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).