Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1456840
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Zheng, Lv" <lv.zheng@intel.com> |
| Newsgroups | linux.kernel |
| Subject | RE: acpi: broken suspend to RAM with v4.7-rc1 |
| Date | Fri, 05 Aug 2016 03:10:02 +0200 |
| Message-ID | <s2BOa-IF-3@gated-at.bofh.it> (permalink) |
| References | <rIBnH-1m9-5@gated-at.bofh.it> <rICa6-24v-23@gated-at.bofh.it> <rIOEh-1Yk-7@gated-at.bofh.it> <rIPK1-2AT-5@gated-at.bofh.it> <rJvT0-3Sn-7@gated-at.bofh.it> <rJvT0-3Sn-5@gated-at.bofh.it> <rJwYF-4R0-3@gated-at.bofh.it> <rNnN7-1lP-3@gated-at.bofh.it> <rNGZr-574-11@gated-at.bofh.it> |
| X-Original-To | Andrey Skvortsov <andrej.skvortzov@gmail.com> |
| X-Extloop1 | 1 |
| X-Ironport-Av | E=Sophos;i="5.28,471,1464678000"; d="scan'208";a="744406851" |
| Thread-Topic | acpi: broken suspend to RAM with v4.7-rc1 |
| Thread-Index | AQHRw1c7GPRYLlgFDUm62PuvdnayUp/isDgAgADg0ACAABKygIACxKyAgACs9CD//5SKgIARNvtwgADSLoCAQTCYgA== |
| Accept-Language | zh-CN, en-US |
| Content-Language | en-US |
| X-Titus-Metadata-40 | eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2Y3MjQ5NTktOTgxMy00ODJhLWI0YjgtMGQ5ZWE3NDE2NWYyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlV6ek5kU1wvakJDMFwvTXo5KzYwOVhwWEllVUsrNkZnaTFmY2NrbzBETE5LZz0ifQ== |
| X-Ctpclassification | CTP_IC |
| X-Originating-IP | [10.239.127.40] |
| Content-Type | text/plain; charset="utf-8" |
| Content-Transfer-Encoding | base64 |
| MIME-Version | 1.0 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 109 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "Moore, Robert" <robert.moore@intel.com>, "Wysocki, Rafael J" <rafael.j.wysocki@intel.com>, "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>, "devel@acpica.org" <devel@acpica.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> |
| X-Original-Date | Fri, 5 Aug 2016 01:06:57 +0000 |
| X-Original-Message-ID | <1AE640813FDE7649BE1B193DEA596E883BC0A4BE@SHSMSX101.ccr.corp.intel.com> |
| X-Original-References | <20160610203210.GA2262@nest> <3027571.8eTQaleASL@vostro.rjw.lan> <20160611104922.GA2368@nest> <2544058.dYPSaC0ylY@vostro.rjw.lan> <744357E9AAD1214791ACBA4B0B9092633AA54819@SHSMSX101.ccr.corp.intel.com> <1AE640813FDE7649BE1B193DEA596E883BBCF836@SHSMSX101.ccr.corp.intel.com> <20160613100707.GA2365@nest> <1AE640813FDE7649BE1B193DEA596E883BBF7E94@SHSMSX101.ccr.corp.intel.com> <20160624213235.GA8304@nest> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1456840 |
Show key headers only | View raw
Hi, Andrey > From: Andrey Skvortsov [mailto:andrej.skvortzov@gmail.com] > Subject: Re: acpi: broken suspend to RAM with v4.7-rc1 > > On 24 Jun, Zheng, Lv wrote: > > Hi, > > > > > From: Andrey Skvortsov [mailto:andrej.skvortzov@gmail.com] > > > Subject: Re: acpi: broken suspend to RAM with v4.7-rc1 > > > > > > Hi Lv, > > > > > > On 13 Jun, Zheng, Lv wrote: > > > > > From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi- > > > > > owner@vger.kernel.org] On Behalf Of Rafael J. Wysocki > > > > > Subject: Re: acpi: broken suspend to RAM with v4.7-rc1 > > > > > > > > > > On Saturday, June 11, 2016 01:49:22 PM Andrey Skvortsov wrote: > > > > > > On 10 Jun, Rafael J. Wysocki wrote: > > > > > > > On Friday, June 10, 2016 11:32:10 PM Andrey Skvortsov wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > > On my laptop (DELL Vostro 1500) in v4.7-rc1 is broken > suspend > > > to RAM. > > > > > > > > Laptop doesn't finish suspend to RAM process (disks are off, > but > > > > > > > > WiFi and Power LEDs are still on). The only way to get it out of > > > > > > > > this state, is to turn the power off. > > > > > > > > > > > > > > > > I've bisected the issue to commit 66b1ed5aa8dd25 > > > > > > > > [ACPICA: ACPI 2.0, Hardware: Add access_width/bit_offset > > > support > > > > > > > > for acpi_hw_write()]. > > > > > > > > > > > > > > > > If I revert this commit in v4.7-rc1 (or v4.7-rc2), suspend to > RAM > > > > > > > > is working again. > > > > > > > > > > > > > > > > The cause of this problem is that after this commit write to > > > PM1A > > > > > > > > Control Block (16-bit register) is done using two 8-bit writes. > > > > > > > > If I force this write to be 16-bit, then all is working as before. > > > > > > > > > > > > > > > > To get it working 'access_width' for PM1A Control Block > needs to > > > > > > > > be 2 (16-bit), but it's 1 (8-bit). > > > > [Lv Zheng] > > > > Could you send me the acpidump of the machine? > > > Here it is > > > > https://dl.dropboxusercontent.com/u/24023626/dell_vostro_1500.acpid > > > ump.bin > > [Lv Zheng] > > I've been trying to download it these days but all failed. > > Could you send an off-list email to me with this attached? > Strange. I've check now. The link above is working, but I see that > part of the link above is moved to the next line. > Anyway I resend you all files off-list. > > > > > > > > > > The root of the problem seems to be not the commit > > > > > 66b1ed5aa8dd25 > > > > > > > > itself, but the ACPI tables in BIOS where wrong access_width > > > > > > > > comes from. I fixed problem in FACP table, put it in initrd to > > > > > > > > override FACP table from BIOS. This fixed the issue, suspend > to > > > > > > > > RAM is working now again. > > > > > > > > > > > > > > > > But I'm not sure whether is this proper fix for this problem. > > > > > > > > Is there any place in the kernel, where such ACPI quirks are > placed? > > > > [Lv Zheng] > > > > My question would be: > > > > Does Windows behave correctly for this table? > > > Yes, suspend to RAM is working under Windows Vista. > > > IIRC it worked under Windows XP too. > > > > > > > However there is a real case showing that there are real tables need > us to > > > correctly support BitWidth/BitOffset. > > > > Here is the information for you to refer: > > > > > http://permalink.gmane.org/gmane.linux.kernel.commits.head/313870 > > > > > > > > > > > > > > > > > > Well, if the commit in question caused a problem to happen for > > > you, > > > > > > > it also might cause similar problems to happen elsewhere. > > > > > > > > > > > > > > It looks like we'll need to revert that commit. > > > > > > Hi, > > > > > > > > > > > > or maybe to reset access_width AnyAcc from FACP table only for > > > PM1A > > > > > > control register or even for all registers? This will fix the issue too. > > > > > > > > > > That's a good idea actually. > > > > > > > > > > > diff --git a/drivers/acpi/acpica/tbfadt.c > > > > > > b/drivers/acpi/acpica/tbfadt.c index 6208069..a476e94 100644 > > > > > > --- a/drivers/acpi/acpica/tbfadt.c > > > > > > +++ b/drivers/acpi/acpica/tbfadt.c > > > > > > @@ -714,7 +714,14 @@ static void > > > acpi_tb_setup_fadt_registers(void) > > > > > > } > > > > > > } > > > > > > } > > > > > > > > > > > > + /* > > > > > > + * Reset access_width in the GAS for PM1A control register > to > > > > > > + * undefined value. Because in some cases this field contains > > > > > > + * wrong value. > > > > > > + */ > > > > > > + acpi_gbl_FADT.xpm1a_control_block.access_width = 0; > > > > > > > > > > OK, let's see what Bob and Lv think about that. > > > > [Lv Zheng] > > > > There is a commit in 4.7-rc2: > > > > > > > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id= > > > 7f9bef9d > > > > Have you tried if the problem still exists in 4.7-rc2? > > > I've just tried v4.7-rc3. It contains commit 7f9bef9d and the problem > > > exists there too. > > [Lv Zheng] > > IMO, for the time being, you can use quirks. > > Booting your kernel with the following parameters: > > > > acpi=rsdt > > Or > > acpi_force_32bit_fadt_addr > > Or > > Both > > Rafael reverted commit, so I'm ok now. > > Actually acpi_force_32bit_fadt_addr will not help here, because it's take > effect only if address64 != address32. But here these addresses are > the same, therefore access_width is taken from extended address. [Lv Zheng] This sounds strange. My recent investigation shows that Windows may favor 32bit fadt address. So we need to get this quirk working. I filed a bug here, hope you can help me to dig this a bit further: https://bugzilla.kernel.org/show_bug.cgi?id=151501 Thanks in advance. Best regards Lv > > http://lxr.free-electrons.com/source/drivers/acpi/acpica/tbfadt.c#L576 > > > acpi=rsdt helps. Thanks for the information about this option. I > missed it, when I read documentation. > > > > -- > Best regards, > Andrey Skvortsov >
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
RE: acpi: broken suspend to RAM with v4.7-rc1 "Zheng, Lv" <lv.zheng@intel.com> - 2016-08-05 03:10 +0200 Re: acpi: broken suspend to RAM with v4.7-rc1 Andrey Skvortsov <andrej.skvortzov@gmail.com> - 2016-08-10 22:50 +0200
csiph-web