Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754751AbYHWQrY (ORCPT ); Sat, 23 Aug 2008 12:47:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751545AbYHWQrR (ORCPT ); Sat, 23 Aug 2008 12:47:17 -0400 Received: from proxima.lp0.eu ([85.158.45.36]:44825 "EHLO proxima.lp0.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751258AbYHWQrQ (ORCPT ); Sat, 23 Aug 2008 12:47:16 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=exim; d=fire.lp0.eu; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type; b=bKcYKCcF32/JUYFYb1mEq3EVa+Mx+iy/YIVb+9y8leoMaNGulrEoFzwYKO99Qn0RYn1brGCt4MyeDVl8aGI29GWPVMJ0pGZO/RNcWNRnaUVM3kDwH+/S1GZPbEyI3seq; Message-ID: <48B03F0E.9060605@simon.arlott.org.uk> Date: Sat, 23 Aug 2008 17:47:10 +0100 From: Simon Arlott User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: Pavel Machek CC: linux-pm@lists.linux-foundation.org, Linux Kernel Mailing List Subject: Re: [linux-pm] Tyan S2923-E suspend to ram fails to resume References: <48977AF7.2070300@simon.arlott.org.uk> <20080808071430.GA10370@ucw.cz> <21f16315cade48d9ecdc87a25b769b9f310fa112@8b5064a13e22126c1b9329f0dc35b8915774b7c3.invalid> <489DACCE.7050000@simon.arlott.org.uk> <20080812103143.GD2641@elf.ucw.cz> In-Reply-To: <20080812103143.GD2641@elf.ucw.cz> Content-Type: multipart/mixed; boundary="------------080002090807010009080906" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9675 Lines: 187 This is a multi-part message in MIME format. --------------080002090807010009080906 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/08/08 11:31, Pavel Machek wrote: > On Sat 2008-08-09 15:42:22, Simon Arlott wrote: >> On 08/08/08 12:20, Simon Arlott wrote: >>> On Fri, August 8, 2008 08:14, Pavel Machek wrote: >>>> On Mon 2008-08-04 22:56:07, Simon Arlott wrote: >>>>> My system (Tyan S2923-E, dmesg attached) suspends ok in >>>>> all pm_test modes, but it won't resume with pm_test >>>>> "none". >>>>> >>>>> [ 6.423515] mem full: hash matches >>>>> >>>>> When I press the power button, the port 80 display shows: >>>>> FF D0 23 01 D0 ... DE >>>>> (and again each time I press it) >>>>> >>>>> If I force it to turn off, then on again: >>>>> FF D0 23 01 D0 ... FF D0 23 01 D0 ... (D2?) D3 00 01 D5 >>>>> D6 >>>>> >>>>> Any ideas? (onboard SAS is disabled, watchdog is >>>>> disabled, everything else is enabled, PCI-E graphics >>>>> card) >>>> >>>> Try verifying if it reaches assembly code under realmode/ ... >> >> I've tried acpi_sleep=s3_beep, and this: >> diff --git a/arch/x86/kernel/acpi/realmode/wakeup.S b/arch/x86/kernel/acpi/realmode/wakeup.S >> Which doesn't work either. > > Yep, that should work. When it does not, it means BIOS is not > returning to our real mode code :-(. You may want to try disabling > APIC and similar stuff, in hope of working around BIOS bug you are > hitting, but ... I've tried the simplest possible 32-bit UP kernel I could come up with (.config attached) and it still doesn't work. (I modified post_init() to call pm_suspend(PM_SUSPEND_MEM).) Disassembly of the BIOS shows that DE is indeed part of 0xDEAD, but I haven't been able to tell what it's doing between D0 and there... not all of the port 80 codes that are displayed are easily visible. I've tried disabling all the CPU options in the BIOS, e.g. microcode update, VM, NMI but it doesn't help. I'm wondering if D0 is the right start point for the system - there's a DC code for S3 resume: AMI Checkpoint & Beep Code List 1.71: > The Bootblock initialization code sets up the chipset, memory and other components > before system memory is available. The following table describes the type of > checkpoints that may occur during the bootblock initialization portion of the BIOS: > > Before D0: If boot block debugger is enabled, CPU cache-as-RAM functionality is > enabled at this point. Stack will be enabled from this point. > > D0: Early Boot Strap Processor (BSP) initialization like microcode update, > frequency and other CPU critical initialization. Early chipset initialization is > done. > > D1: Early super I/O initialization is done including RTC and keyboard controller. > Serial port is enabled at this point if needed for debugging. NMI is disabled. > Perform keyboard controller BAT test. Save power-on CPUID value in scratch > CMOS. Go to flat mode with 4GB limit and GA20 enabled. > > D2: Verify the boot block checksum. System will hang here if checksum is bad. > > D3: Disable CACHE before memory detection. Execute full memory sizing > module. If memory sizing module not executed, start memory refresh and > do memory sizing in Boot block code. Do additional chipset initialization. > Re-enable CACHE. Verify that flat mode is enabled. > > D4: Test base 512KB memory. Adjust policies and cache first 8MB. Set stack. > > D5: Bootblock code is copied from ROM to lower system memory and control is > given to it. BIOS now executes out of RAM. Copies compressed boot block > code to memory in right segments. Copies BIOS from ROM to RAM for faster > access. Performs main BIOS checksum and updates recovery status > accordingly. > > D6: Both key sequence and OEM specific method is checked to determine if BIOS > recovery is forced. If BIOS recovery is necessary, control flows to > checkpoint E0. See Bootblock Recovery Code Checkpoints section of > document for more information. > > D7: Restore CPUID value back into register. The Bootblock-Runtime interface > module is moved to system memory and control is given to it. Determine > whether to execute serial flash. > > D8: The Runtime module is uncompressed into memory. CPUID information is > stored in memory. > > D9: Store the Uncompressed pointer for future use in PMM. Copying Main BIOS > into memory. Leaves all RAM below 1MB Read-Write including E000 and > F000 shadow areas but closing SMRAM. > > DA: Restore CPUID value back into register. Give control to BIOS POST > (ExecutePOSTKernel). See POST Code Checkpoints section of document for > more information. > > DC: System is waking from ACPI S3 state -- Simon Arlott --------------080002090807010009080906 Content-Type: application/x-bzip; name="config.bz2" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="config.bz2" QlpoOTFBWSZTWUb8ujoAA4NfgCgQXOP/8j////C/7//gYA88Aczpk1F9pXgWolHQBhHQ6A6K jZqEJXnvPU093hoETIaNNJgknpT001HplPKejU2gDKeoeUGDTRGgCmBCTU8RGUaYEYTEaYRk yAaamUyEyT1BoANBoaAxNpNkEaMmgCTSimk1PTRNGmp6aTAEY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OJoy87QwX0xSiMui y6MM8owdQKjLsqYnOWMkUzlLA1QsbowDeQPsH8CPTgnpirMUCDyhtDHLiBRLEJ5+lazjqUED eaozUCsFIG3VcS6ybvIOGmzXUKawZN/W2VXBlIY8e/hYYoVRNNFHHRpQA7m0kAXejZgTg0k+ qwVR7mETU3uvoYka7KJaKGMFGWmcCPakA/GBA+9OGcUimGVXxXCkBmNJaNaIr9X3Y0pWeFDG kdGtZhLZqrLvbiEm8dsSSo+PUZMSyrDayYsKQ2OT3klktLSpD5iKetaGzq82sWSwNo6SZvNr B+3mLsK6kJTBCN6QUYGusN1tGzs2hey0L9ysGvCukZeycCh4WBESgEj3KeopEgQztXOMC+tB Ugake/CZRglo/Cw7a8b2we0tjsdSBtQg2GjNiHPhzu/E95MPaDrWM0w4aObW4eJZep7W3XZL Axs1ymVKjfdRrFl0haKiRcHKD4QcqhMNl08JVCBi4qoeoBQkoERoolSK+ldWt2K1kwf35IGz DyY2EaTLxaQ1oxwmdelYTaQRR7ORCVOmVUcubj2ehyabt8QfJqJYv2sOht06leS//8ulqTNF pZw7vbuyKXnIV+DynxqcH2zq2RgstlNeejyKQjUlDMQIECAEz6j5RQFVDSpQDA3oW5C3sk5L 69vRaVon0pGgBTb6KfEN39TPNAv7HGlPDR+IxVRIQH2/PJ8OmDAZzgqhdjB6tphsg5P7eDZB vOMTebgIWBq6iqgZdDVRjGNXKkcq+FghOEIQH4CBUocX3+fxzLtb5okPeEfNqsK9/j4EfJCE BtlvH4e3+e/zamQGxYDqH8u434XZe9+NwHHqZ2dmoHscqqOmXSziN1kyIx6TrHu5mJcjn5U+ E1ces9mhCAcV+zpV/jYkIDbTLxYwt5TQQhKwDBAKjEhb6H/ceUIEAEoVlJUzLWsVAlFu4BrC rVJndf/f146+0Dzv22ABzXswCrXjOZATmQF98Gtp3jl/RPbz+ZEARXDaO2KZp/i7kinChII3 5dHQ --------------080002090807010009080906-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/