All of lore.kernel.org
 help / color / mirror / Atom feed
From: Huang Rui <ray.huang@amd.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Basavaraj Natikar <bnatikar@amd.com>,
	"Shah, Nehal-bakulchandra" <Nehal-bakulchandra.Shah@amd.com>,
	Stephen MacNeil <macneisj@gmail.com>,
	"Limonciello, Mario" <Mario.Limonciello@amd.com>,
	"Rafael J . Wysocki" <rjw@rjwysocki.net>,
	Linux PM <linux-pm@vger.kernel.org>,
	linux-acpi <linux-acpi@vger.kernel.org>,
	"Natikar, Basavaraj" <Basavaraj.Natikar@amd.com>,
	"S-k, Shyam-sundar" <Shyam-sundar.S-k@amd.com>,
	Prike Liang <prike.liang@amd.com>
Subject: Re: AMD laptops defaulting to S3 instead of S0ix (was amd_sfh)
Date: Tue, 3 Aug 2021 08:20:18 +0800	[thread overview]
Message-ID: <20210803002018.GH2563957@hr-amd> (raw)
In-Reply-To: <eab56fac-175b-29b7-f66b-398b6477f390@redhat.com>

+ Prike

On Mon, Aug 02, 2021 at 01:43:01PM +0200, Hans de Goede wrote:
> Hi,
> 
> On 8/2/21 11:34 AM, Basavaraj Natikar wrote:
> > On 8/1/2021 5:15 PM, Shah, Nehal-bakulchandra wrote:
> >> [AMD Official Use Only]
> >>
> >> Adding few more folks
> >>
> >> -----Original Message-----
> >> From: Hans de Goede <hdegoede@redhat.com> 
> >> Sent: Sunday, August 1, 2021 3:17 PM
> >> To: Stephen MacNeil <macneisj@gmail.com>; Limonciello, Mario <Mario.Limonciello@amd.com>; Rafael J . Wysocki <rjw@rjwysocki.net>
> >> Cc: Linux PM <linux-pm@vger.kernel.org>; linux-acpi <linux-acpi@vger.kernel.org>
> >> Subject: AMD laptops defaulting to S3 instead of S0ix (was amd_sfh)
> >>
> >> Hi Rafael, Mario,
> >>
> >> Stephen is having an issue with a recent AMD laptop (a Lenovo Ideapad model) where Linux defaults to using S3/deep suspend instead of S0ix/s2idle.
> > 
> > Hi Hans, Et al.
> > 
> > Looks like the Lenovo platform Stephen MacNeil is using does not support the S2Idle as the FADT flags as not set (looking at the output of the script).
> 
> I believe it does, if it would not support s2idle at all, then this would not be offered as an option in the
> "cat /sys/power/mem_sleep" output.
> 
> Part of the problem seems to be that the system supports s2idle, but does not use it by default
> 
> > If sensors are not working after ACPI S3 resume, I am suspecting that it could be because the PM support is missing in the amd-sfh driver
> > (which is already WIP from my side).
> 
> Right, making sure the SFH code also works with S3 suspend is good regardless, but AFAIK most modern
> systems should use S01x / s2idle suspend by default.
> 
> Regards,
> 
> Hans
> 
> 
> 
> >> This is causing the sensors provided by the AMD Sensor Fusion Hub to stop working after a suspend/resume. Adding mem_sleep_default=s2idle to the kernel commandline fixes this.
> >>
> >> Do you have any idea what might be causing this ?
> >>
> >> Regards,
> >>
> >> Hans
> >>
> >>
> >>
> >> On 7/31/21 2:31 PM, Stephen MacNeil wrote:
> >>> I wrote Basavaraj Natikar the new maintainer of amd_sfh for the kernel, after sending the information he wanted his reply was...
> >>>
> >>>>> Thanks Stephen MacNeil,
> >>> On our hardware we do not see any amd_sfh issue with 5.14.0-rc2 kernel.
> >>>  
> >>> Could you please check with Lenovo, as we are not observing amd_sfh issue on our reference platforms too.
> >>>
> >>> Thanks,
> >>> Basavaraj
> >>> <<
> >>> looking at the information I sent him  i looks like the issue is (to 
> >>> me anyway)
> >>>
> >>> cat /sys/power/mem_sleep
> >>> [s2idle] deep
> >>>
> >>> without
> >>> cat /sys/power/mem_sleep
> >>> s2idle [deep]
> >>>
> >>>
> >>> this is the info he requested... any idea who else I can contact.
> >>> this is the output with and without the kernel param
> >>>
> >>>  
> >>>
> >>> Thanks a lot Stephen MacNeil  for the information.
> >>>
> >>>  
> >>>
> >>> Could you please provide me below information:-
> >>>
> >>> ·  what version of kernel is running.
> >>>
> >>> uname -a
> >>> Linux ideapad 5.14.0-051400rc2-generic #202107182230 SMP Sun Jul 18 
> >>> 22:34:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
> >>>
> >>>
> >>> ·  Are you using latest patches from amd-sfh
> >>>
> >>> only the kernel
> >>>
> >>> ·  Could you please provide me output of /sys/power/mem_sleep
> >>>
> >>> with kernel option mem_sleep_default=s2idle
> >>>
> >>> cat /sys/power/mem_sleep
> >>> [s2idle] deep
> >>>
> >>> without
> >>> cat /sys/power/mem_sleep
> >>> s2idle [deep]
> >>>
> >>> ·  Could you please provide output of below script after installing 
> >>> "apt install iasl*". acpica-tools
> >>>
> >>> with kernel option mem_sleep_default=s2idle
> >>>
> >>> Intel ACPI Component Architecture
> >>> ASL+ Optimizing Compiler/Disassembler version 20190509
> >>> Copyright (c) 2000 - 2019 Intel Corporation
> >>>
> >>> File appears to be binary: found 265 non-ASCII characters, 
> >>> disassembling Binary file appears to be a valid ACPI table, 
> >>> disassembling Input file apic.dat, Length 0x138 (312) bytes
> >>> ACPI: APIC 0x0000000000000000 000138 (v02 LENOVO CB-01    00000000 
> >>> LENO 00000001) Acpi Data Table [APIC] decoded Formatted output:  
> >>> apic.dsl - 16071 bytes File appears to be binary: found 40 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file batb.dat, Length 0x4A (74) bytes
> >>> ACPI: BATB 0x0000000000000000 00004A (v02 LENOVO CB-01    00000000 
> >>> LENO 00000001) Unknown ACPI table signature [BATB], decoding ACPI 
> >>> table header only Acpi Data Table [BATB] decoded Formatted output:  
> >>> batb.dsl - 1274 bytes File appears to be binary: found 31 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file bgrt.dat, Length 0x38 (56) bytes
> >>> ACPI: BGRT 0x0000000000000000 000038 (v01 LENOVO CB-01    00000002 
> >>> LENO 00000001) Acpi Data Table [BGRT] decoded Formatted output:  
> >>> bgrt.dsl - 1606 bytes File appears to be binary: found 16 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file cdit.dat, Length 0x29 (41) bytes
> >>> ACPI: CDIT 0x0000000000000000 000029 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Unknown ACPI table signature [CDIT], decoding ACPI 
> >>> table header only Acpi Data Table [CDIT] decoded Formatted output:  
> >>> cdit.dsl - 1115 bytes File appears to be binary: found 2765 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file crat.dat, Length 0xB80 (2944) bytes
> >>> ACPI: CRAT 0x0000000000000000 000B80 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Unknown ACPI table signature [CRAT], decoding ACPI 
> >>> table header only Acpi Data Table [CRAT] decoded Formatted output:  
> >>> crat.dsl - 15424 bytes File appears to be binary: found 15189 
> >>> non-ASCII characters, disassembling Binary file appears to be a valid 
> >>> ACPI table, disassembling Input file dsdt.dat, Length 0xAE9B (44699) 
> >>> bytes
> >>> ACPI: DSDT 0x0000000000000000 00AE9B (v01 LENOVO AMD      00001000 
> >>> INTL 20180313) Pass 1 parse of [DSDT] Pass 2 parse of [DSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    dsdt.dsl - 384071 bytes File appears to be binary: 
> >>> found 229 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file facp.dat, Length 0x10C 
> >>> (268) bytes
> >>> ACPI: FACP 0x0000000000000000 00010C (v05 LENOVO CB-01    00000003 
> >>> LENO 00000001) Acpi Data Table [FACP] decoded Formatted output:  
> >>> facp.dsl - 10098 bytes File appears to be binary: found 59 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file facs.dat, Length 0x40 (64) bytes
> >>> ACPI: FACS 0x0000000000000000 000040
> >>> Acpi Data Table [FACS] decoded
> >>> Formatted output:  facs.dsl - 1368 bytes File appears to be binary: 
> >>> found 28 non-ASCII characters, disassembling Binary file appears to be 
> >>> a valid ACPI table, disassembling Input file fpdt.dat, Length 0x34 
> >>> (52) bytes
> >>> ACPI: FPDT 0x0000000000000000 000034 (v01 LENOVO CB-01    00000002 
> >>> LENO 00000001) Acpi Data Table [FPDT] decoded Formatted output:  
> >>> fpdt.dsl - 1452 bytes File appears to be binary: found 30 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file hpet.dat, Length 0x38 (56) bytes
> >>> ACPI: HPET 0x0000000000000000 000038 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [HPET] decoded Formatted output:  
> >>> hpet.dsl - 1865 bytes File appears to be binary: found 279 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file ivrs.dat, Length 0x1A4 (420) bytes
> >>> ACPI: IVRS 0x0000000000000000 0001A4 (v02 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [IVRS] decoded Formatted output:  
> >>> ivrs.dsl - 6001 bytes File appears to be binary: found 36 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file mcfg.dat, Length 0x3C (60) bytes
> >>> ACPI: MCFG 0x0000000000000000 00003C (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [MCFG] decoded Formatted output:  
> >>> mcfg.dsl - 1526 bytes File appears to be binary: found 32 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file msdm.dat, Length 0x55 (85) bytes
> >>> ACPI: MSDM 0x0000000000000000 000055 (v03 LENOVO CB-01    00000000 
> >>> LENO 00000001) Acpi Data Table [MSDM] decoded Formatted output:  
> >>> msdm.dsl - 1557 bytes File appears to be binary: found 25 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file sbst.dat, Length 0x30 (48) bytes
> >>> ACPI: SBST 0x0000000000000000 000030 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [SBST] decoded Formatted output:  
> >>> sbst.dsl - 1282 bytes File appears to be binary: found 410 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file ssdt10.dat, Length 0x47F (1151) bytes
> >>> ACPI: SSDT 0x0000000000000000 00047F (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt10.dsl - 5673 bytes File appears to be binary: 
> >>> found 708 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt11.dat, Length 
> >>> 0xC1D (3101) bytes
> >>> ACPI: SSDT 0x0000000000000000 000C1D (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt11.dsl - 15424 bytes File appears to be binary: 
> >>> found 848 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt12.dat, Length 
> >>> 0x9AD (2477) bytes
> >>> ACPI: SSDT 0x0000000000000000 0009AD (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt12.dsl - 12474 bytes File appears to be binary: 
> >>> found 9207 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt1.dat, Length 
> >>> 0x7216 (29206) bytes
> >>> ACPI: SSDT 0x0000000000000000 007216 (v02 LENOVO AmdTable 00000002 
> >>> MSFT 04000000) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt1.dsl - 208699 bytes File appears to be binary: 
> >>> found 3968 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt2.dat, Length 
> >>> 0x1500 (5376) bytes
> >>> ACPI: SSDT 0x0000000000000000 001500 (v01 LENOVO AmdTable 00000001 AMD  
> >>> 00000001) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt2.dsl - 59265 bytes File appears to be binary: 
> >>> found 449 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt3.dat, Length 
> >>> 0x53A (1338) bytes
> >>> ACPI: SSDT 0x0000000000000000 00053A (v01 LENOVO Tpm2Tabl 00009999 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt3.dsl - 10738 bytes File appears to be binary: 
> >>> found 474 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt4.dat, Length 
> >>> 0x64C (1612) bytes
> >>> ACPI: SSDT 0x0000000000000000 00064C (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt4.dsl - 8258 bytes
> >>> File appears to be binary: found 400 non-ASCII characters, 
> >>> disassembling Binary file appears to be a valid ACPI table, 
> >>> disassembling Input file ssdt5.dat, Length 0x480 (1152) bytes
> >>> ACPI: SSDT 0x0000000000000000 000480 (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt5.dsl - 5582 bytes
> >>> File appears to be binary: found 1140 non-ASCII characters, 
> >>> disassembling Binary file appears to be a valid ACPI table, 
> >>> disassembling Input file ssdt6.dat, Length 0x1497 (5271) bytes
> >>> ACPI: SSDT 0x0000000000000000 001497 (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt6.dsl - 20293 bytes File appears to be binary: 
> >>> found 1314 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt7.dat, Length 
> >>> 0x1576 (5494) bytes
> >>> ACPI: SSDT 0x0000000000000000 001576 (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt7.dsl - 30076 bytes File appears to be binary: 
> >>> found 4095 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt8.dat, Length 
> >>> 0x353C (13628) bytes
> >>> ACPI: SSDT 0x0000000000000000 00353C (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt8.dsl - 78242 bytes File appears to be binary: 
> >>> found 74 non-ASCII characters, disassembling Binary file appears to be 
> >>> a valid ACPI table, disassembling Input file ssdt9.dat, Length 0x90 
> >>> (144) bytes
> >>> ACPI: SSDT 0x0000000000000000 000090 (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt9.dsl - 1767 bytes
> >>> File appears to be binary: found 32 non-ASCII characters, 
> >>> disassembling Binary file appears to be a valid ACPI table, 
> >>> disassembling Input file tpm2.dat, Length 0x38 (56) bytes
> >>> ACPI: TPM2 0x0000000000000000 000038 (v04 LENOVO CB-01    00000002 
> >>> LENO 00000001) Acpi Data Table [TPM2] decoded Formatted output:  
> >>> tpm2.dsl - 1515 bytes File appears to be binary: found 189 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file uefi.dat, Length 0x12A (298) bytes
> >>> ACPI: UEFI 0x0000000000000000 00012A (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [UEFI] decoded Formatted output:  
> >>> uefi.dsl - 2505 bytes File appears to be binary: found 37100 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file vfct.dat, Length 0xD484 (54404) bytes
> >>> ACPI: VFCT 0x0000000000000000 00D484 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Unknown ACPI table signature [VFCT], decoding ACPI 
> >>> table header only Acpi Data Table [VFCT] decoded Formatted output:  
> >>> vfct.dsl - 269557 bytes File appears to be binary: found 17 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file wsmt.dat, Length 0x28 (40) bytes
> >>> ACPI: WSMT 0x0000000000000000 000028 (v01 LENOVO CB-01    00000000 
> >>> LENO 00000001) Acpi Data Table [WSMT] decoded Formatted output:  
> >>> wsmt.dsl - 1313 bytes Low Power S0 Idle is 0 The system does not 
> >>> support S0ix!
> >>>
> >>>
> >>> without
> >>>
> >>> Intel ACPI Component Architecture
> >>> ASL+ Optimizing Compiler/Disassembler version 20190509
> >>> Copyright (c) 2000 - 2019 Intel Corporation
> >>>
> >>> File appears to be binary: found 265 non-ASCII characters, 
> >>> disassembling Binary file appears to be a valid ACPI table, 
> >>> disassembling Input file apic.dat, Length 0x138 (312) bytes
> >>> ACPI: APIC 0x0000000000000000 000138 (v02 LENOVO CB-01    00000000 
> >>> LENO 00000001) Acpi Data Table [APIC] decoded Formatted output:  
> >>> apic.dsl - 16071 bytes File appears to be binary: found 40 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file batb.dat, Length 0x4A (74) bytes
> >>> ACPI: BATB 0x0000000000000000 00004A (v02 LENOVO CB-01    00000000 
> >>> LENO 00000001) Unknown ACPI table signature [BATB], decoding ACPI 
> >>> table header only Acpi Data Table [BATB] decoded Formatted output:  
> >>> batb.dsl - 1274 bytes File appears to be binary: found 31 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file bgrt.dat, Length 0x38 (56) bytes
> >>> ACPI: BGRT 0x0000000000000000 000038 (v01 LENOVO CB-01    00000002 
> >>> LENO 00000001) Acpi Data Table [BGRT] decoded Formatted output:  
> >>> bgrt.dsl - 1606 bytes File appears to be binary: found 16 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file cdit.dat, Length 0x29 (41) bytes
> >>> ACPI: CDIT 0x0000000000000000 000029 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Unknown ACPI table signature [CDIT], decoding ACPI 
> >>> table header only Acpi Data Table [CDIT] decoded Formatted output:  
> >>> cdit.dsl - 1115 bytes File appears to be binary: found 2765 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file crat.dat, Length 0xB80 (2944) bytes
> >>> ACPI: CRAT 0x0000000000000000 000B80 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Unknown ACPI table signature [CRAT], decoding ACPI 
> >>> table header only Acpi Data Table [CRAT] decoded Formatted output:  
> >>> crat.dsl - 15424 bytes File appears to be binary: found 15189 
> >>> non-ASCII characters, disassembling Binary file appears to be a valid 
> >>> ACPI table, disassembling Input file dsdt.dat, Length 0xAE9B (44699) 
> >>> bytes
> >>> ACPI: DSDT 0x0000000000000000 00AE9B (v01 LENOVO AMD      00001000 
> >>> INTL 20180313) Pass 1 parse of [DSDT] Pass 2 parse of [DSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    dsdt.dsl - 384071 bytes File appears to be binary: 
> >>> found 229 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file facp.dat, Length 0x10C 
> >>> (268) bytes
> >>> ACPI: FACP 0x0000000000000000 00010C (v05 LENOVO CB-01    00000003 
> >>> LENO 00000001) Acpi Data Table [FACP] decoded Formatted output:  
> >>> facp.dsl - 10098 bytes File appears to be binary: found 59 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file facs.dat, Length 0x40 (64) bytes
> >>> ACPI: FACS 0x0000000000000000 000040
> >>> Acpi Data Table [FACS] decoded
> >>> Formatted output:  facs.dsl - 1368 bytes File appears to be binary: 
> >>> found 28 non-ASCII characters, disassembling Binary file appears to be 
> >>> a valid ACPI table, disassembling Input file fpdt.dat, Length 0x34 
> >>> (52) bytes
> >>> ACPI: FPDT 0x0000000000000000 000034 (v01 LENOVO CB-01    00000002 
> >>> LENO 00000001) Acpi Data Table [FPDT] decoded Formatted output:  
> >>> fpdt.dsl - 1452 bytes File appears to be binary: found 30 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file hpet.dat, Length 0x38 (56) bytes
> >>> ACPI: HPET 0x0000000000000000 000038 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [HPET] decoded Formatted output:  
> >>> hpet.dsl - 1865 bytes File appears to be binary: found 279 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file ivrs.dat, Length 0x1A4 (420) bytes
> >>> ACPI: IVRS 0x0000000000000000 0001A4 (v02 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [IVRS] decoded Formatted output:  
> >>> ivrs.dsl - 6001 bytes File appears to be binary: found 36 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file mcfg.dat, Length 0x3C (60) bytes
> >>> ACPI: MCFG 0x0000000000000000 00003C (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [MCFG] decoded Formatted output:  
> >>> mcfg.dsl - 1526 bytes File appears to be binary: found 32 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file msdm.dat, Length 0x55 (85) bytes
> >>> ACPI: MSDM 0x0000000000000000 000055 (v03 LENOVO CB-01    00000000 
> >>> LENO 00000001) Acpi Data Table [MSDM] decoded Formatted output:  
> >>> msdm.dsl - 1557 bytes File appears to be binary: found 25 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file sbst.dat, Length 0x30 (48) bytes
> >>> ACPI: SBST 0x0000000000000000 000030 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [SBST] decoded Formatted output:  
> >>> sbst.dsl - 1282 bytes File appears to be binary: found 410 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file ssdt10.dat, Length 0x47F (1151) bytes
> >>> ACPI: SSDT 0x0000000000000000 00047F (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt10.dsl - 5673 bytes File appears to be binary: 
> >>> found 708 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt11.dat, Length 
> >>> 0xC1D (3101) bytes
> >>> ACPI: SSDT 0x0000000000000000 000C1D (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt11.dsl - 15424 bytes File appears to be binary: 
> >>> found 848 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt12.dat, Length 
> >>> 0x9AD (2477) bytes
> >>> ACPI: SSDT 0x0000000000000000 0009AD (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt12.dsl - 12474 bytes File appears to be binary: 
> >>> found 9207 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt1.dat, Length 
> >>> 0x7216 (29206) bytes
> >>> ACPI: SSDT 0x0000000000000000 007216 (v02 LENOVO AmdTable 00000002 
> >>> MSFT 04000000) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt1.dsl - 208699 bytes File appears to be binary: 
> >>> found 3968 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt2.dat, Length 
> >>> 0x1500 (5376) bytes
> >>> ACPI: SSDT 0x0000000000000000 001500 (v01 LENOVO AmdTable 00000001 AMD  
> >>> 00000001) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt2.dsl - 59265 bytes File appears to be binary: 
> >>> found 449 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt3.dat, Length 
> >>> 0x53A (1338) bytes
> >>> ACPI: SSDT 0x0000000000000000 00053A (v01 LENOVO Tpm2Tabl 00009999 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt3.dsl - 10738 bytes File appears to be binary: 
> >>> found 474 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt4.dat, Length 
> >>> 0x64C (1612) bytes
> >>> ACPI: SSDT 0x0000000000000000 00064C (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt4.dsl - 8258 bytes
> >>> File appears to be binary: found 400 non-ASCII characters, 
> >>> disassembling Binary file appears to be a valid ACPI table, 
> >>> disassembling Input file ssdt5.dat, Length 0x480 (1152) bytes
> >>> ACPI: SSDT 0x0000000000000000 000480 (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt5.dsl - 5582 bytes
> >>> File appears to be binary: found 1140 non-ASCII characters, 
> >>> disassembling Binary file appears to be a valid ACPI table, 
> >>> disassembling Input file ssdt6.dat, Length 0x1497 (5271) bytes
> >>> ACPI: SSDT 0x0000000000000000 001497 (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt6.dsl - 20293 bytes File appears to be binary: 
> >>> found 1314 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt7.dat, Length 
> >>> 0x1576 (5494) bytes
> >>> ACPI: SSDT 0x0000000000000000 001576 (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt7.dsl - 30076 bytes File appears to be binary: 
> >>> found 4095 non-ASCII characters, disassembling Binary file appears to 
> >>> be a valid ACPI table, disassembling Input file ssdt8.dat, Length 
> >>> 0x353C (13628) bytes
> >>> ACPI: SSDT 0x0000000000000000 00353C (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt8.dsl - 78242 bytes File appears to be binary: 
> >>> found 74 non-ASCII characters, disassembling Binary file appears to be 
> >>> a valid ACPI table, disassembling Input file ssdt9.dat, Length 0x90 
> >>> (144) bytes
> >>> ACPI: SSDT 0x0000000000000000 000090 (v01 LENOVO AmdTable 00000001 
> >>> INTL 20180313) Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Parsing 
> >>> Deferred Opcodes (Methods/Buffers/Packages/Regions)
> >>>
> >>> Parsing completed
> >>> Disassembly completed
> >>> ASL Output:    ssdt9.dsl - 1767 bytes
> >>> File appears to be binary: found 32 non-ASCII characters, 
> >>> disassembling Binary file appears to be a valid ACPI table, 
> >>> disassembling Input file tpm2.dat, Length 0x38 (56) bytes
> >>> ACPI: TPM2 0x0000000000000000 000038 (v04 LENOVO CB-01    00000002 
> >>> LENO 00000001) Acpi Data Table [TPM2] decoded Formatted output:  
> >>> tpm2.dsl - 1515 bytes File appears to be binary: found 189 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file uefi.dat, Length 0x12A (298) bytes
> >>> ACPI: UEFI 0x0000000000000000 00012A (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Acpi Data Table [UEFI] decoded Formatted output:  
> >>> uefi.dsl - 2505 bytes File appears to be binary: found 37100 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file vfct.dat, Length 0xD484 (54404) bytes
> >>> ACPI: VFCT 0x0000000000000000 00D484 (v01 LENOVO CB-01    00000001 
> >>> LENO 00000001) Unknown ACPI table signature [VFCT], decoding ACPI 
> >>> table header only Acpi Data Table [VFCT] decoded Formatted output:  
> >>> vfct.dsl - 269557 bytes File appears to be binary: found 17 non-ASCII 
> >>> characters, disassembling Binary file appears to be a valid ACPI 
> >>> table, disassembling Input file wsmt.dat, Length 0x28 (40) bytes
> >>> ACPI: WSMT 0x0000000000000000 000028 (v01 LENOVO CB-01    00000000 
> >>> LENO 00000001) Acpi Data Table [WSMT] decoded Formatted output:  
> >>> wsmt.dsl - 1313 bytes Low Power S0 Idle is 0 The system does not 
> >>> support S0ix!
> >>>
> >>>
> >>> #################################################
> >>> #!/bin/bash
> >>>
> >>> cd /var/tmp/
> >>>
> >>> acpidump -b
> >>>
> >>> iasl -d *.dat
> >>>
> >>> lp=$(grep "Low Power S0 Idle" /var/tmp/facp.dsl | awk '{print $(NF)}')
> >>>
> >>> if [ "$lp" -eq 1 ]; then
> >>>
> >>> echo "Low Power S0 Idle is" $lp
> >>>
> >>> echo "The system supports S0ix!"
> >>>
> >>> else
> >>>
> >>> echo "Low Power S0 Idle is" $lp
> >>>
> >>> echo "The system does not support S0ix!"
> >>>
> >>> fi
> >>>
> >>>  
> >>>
> >>> Thanks,
> >>>
> >>> Basavaraj
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> Stephen MacNeil
> >>> 905 334 5092
> >>> mglessons.com 
> >>> <https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmglessons.com%2F&amp;data=04%7C01%7Cray.huang%40amd.com%7C0dbf347b744f4480a76608d955aab43c%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637635013945224005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Zc6RqCBpmncIWTGiBpZ%2BmOBmPVV7gIx8mS2hqBenP6k%3D&amp;reserved=0>
> > 
> 

  reply	other threads:[~2021-08-03  0:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CALWF37bJU92DxcD4VhBxbS+X+EUv-UW2oY-ogwMyNyGAnn=0WA@mail.gmail.com>
2021-08-01  9:47 ` AMD laptops defaulting to S3 instead of S0ix (was amd_sfh) Hans de Goede
2021-08-01 11:45   ` Shah, Nehal-bakulchandra
2021-08-02  9:34     ` Basavaraj Natikar
2021-08-02 11:43       ` Hans de Goede
2021-08-03  0:20         ` Huang Rui [this message]
2021-08-03  2:42           ` Liang, Prike
2021-08-09 14:39             ` Limonciello, Mario
2021-08-09 15:06               ` Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210803002018.GH2563957@hr-amd \
    --to=ray.huang@amd.com \
    --cc=Basavaraj.Natikar@amd.com \
    --cc=Mario.Limonciello@amd.com \
    --cc=Nehal-bakulchandra.Shah@amd.com \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=bnatikar@amd.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=macneisj@gmail.com \
    --cc=prike.liang@amd.com \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.