From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leif Liddy Subject: Re: ACPI SPI slave device Date: Wed, 2 Mar 2016 15:37:27 +0100 Message-ID: References: <20160223150222.GL1770@lahna.fi.intel.com> <20160223153240.GM1770@lahna.fi.intel.com> <20160229082114.GC1770@lahna.fi.intel.com> <20160301160726.GA23371@wunner.de> <20160302114250.GA23487@wunner.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-io0-f172.google.com ([209.85.223.172]:36196 "EHLO mail-io0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751365AbcCBOh2 (ORCPT ); Wed, 2 Mar 2016 09:37:28 -0500 Received: by mail-io0-f172.google.com with SMTP id l127so261249865iof.3 for ; Wed, 02 Mar 2016 06:37:28 -0800 (PST) In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Lukas Wunner Cc: Mika Westerberg , linux-acpi@vger.kernel.org, jarkko.nikula@linux.intel.com This issue is more easily resolved by just changing !OSDW to OSDW for that method. The default behavior it seems is for Linux to identify itself as OSX, but there are a few methods where we don't want to identify as being OSX. I'll try and come up with a list of methods of where we don't want to identify as being OSX. On Wed, Mar 2, 2016 at 2:07 PM, Leif Liddy wrote: > You're right, it's not evaluating the OSDW method properly. I tracked > it down to this single change: > > change this: > > If (!OSDW ()) > { > Return (UBUF) /* \_SB_.PCI0.SPI1.SPIT._CRS.UBUF */ > } > Return (ABUF) /* \_SB_.PCI0.SPI1.SPIT._CRS.ABUF */ > } > > to: > > Return (UBUF) /* \_SB_.PCI0.SPI1.SPIT._CRS.UBUF */ > > > On Wed, Mar 2, 2016 at 12:42 PM, Lukas Wunner wrote: >> Hi, >> >> On Wed, Mar 02, 2016 at 04:13:16AM +0100, Leif Liddy wrote: >>> I'll post more tomorrow, need to evaluate the changes I made --but I >>> think the change that did it was changing this: >>> >>> Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings >>> { >>> If (!OSDW ()) >>> { >>> Return (WBUF) /* \_SB_.PCI0.SPI1.WBUF */ >>> } >>> >>> Return (ConcatenateResTemplate (RBUF, DBUF)) >>> } >>> >>> to: >>> >>> Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings >>> { >>> Return (ConcatenateResTemplate (RBUF, DBUF)) >>> } >> >> If that is true then the fix is to change the OS we're reporting to ACPI: >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/acpi/osl.c#n141 >> >> We had trouble with this before: >> https://mjg59.dreamwidth.org/29954.html >> >> I've just grabbed the acpidump you've posted here: >> https://bugzilla.kernel.org/attachment.cgi?id=200961&action=edit >> >> I'll take a look at it hopefully this afternoon to see what they've >> changed in the OSDW method. >> >> Thanks a lot for your perseverance in tackling this issue. >> >> Lukas