From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262558AbTKDVSB (ORCPT ); Tue, 4 Nov 2003 16:18:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262566AbTKDVSB (ORCPT ); Tue, 4 Nov 2003 16:18:01 -0500 Received: from adsl-67-117-73-34.dsl.sntc01.pacbell.net ([67.117.73.34]:23059 "EHLO muru.com") by vger.kernel.org with ESMTP id S262558AbTKDVR5 (ORCPT ); Tue, 4 Nov 2003 16:17:57 -0500 Date: Tue, 4 Nov 2003 13:17:57 -0800 To: Charles Lepple Cc: Pasi Savolainen , lkml Subject: Re: [PATCH] amd76x_pm on 2.6.0-test9 cleanup Message-ID: <20031104211757.GG1042@atomide.com> References: <20031104202104.GA408936@kosh.hut.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i From: Tony Lindgren Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org * Charles Lepple [031104 13:05]: > On Tuesday, November 4, 2003, at 03:21 PM, Pasi Savolainen wrote: > > >* Tony Lindgren [031104 21:24]: > >>I have problem where my S2460 goes into sleep for a while if compiled > >>in, > >>but this does not happen when loaded as module. > > > >Could you have some AMD_76X -define left over? I skimmed through MP & > >MPX AMD documents, but found nothing incriminating. > >Could it be ACPI doing it's things with S -states? (it does check for > >SMP, but does report S -states as supported). And if ACPI isn't > >enabled, could you toggle it on, or vice-versa. > > I wonder if the initialization code puts the chipset to sleep as it is > setting up the stopgrant control bits? > > Here's a wild hypothesis: module loads, twiddles the registers, and the > chipset enters sleep mode. In certain cases, enough interrupts are > unmasked that the next interrupt wakes the chipset up, and things > continue on their merry way. In other cases, it takes an ACPI interrupt > (which, in my case, has not been initialized, since my BIOS evidently > doesn't officially support ACPI C states) to wake things up (e.g. from > a front-panel button). Yeah, that makes sense. > FWIW, I just found this in the dmesg output: > > irq 9: nobody cared! > Call Trace: > [] __report_bad_irq+0x2a/0x90 > [] note_interrupt+0x6c/0xa0 > [] do_IRQ+0x15b/0x190 > [] common_interrupt+0x18/0x20 > [] amd76x_smp_idle+0x0/0xba [amd76x_pm] > [] amd76x_smp_idle+0x95/0xba [amd76x_pm] > [] cpu_idle+0x33/0x40 > [] printk+0x164/0x1d0 > > handlers: > [] (acpi_irq+0x0/0x16) > Disabling IRQ #9 > > Interestingly enough, I guess the 'button' module has claimed IRQ 9, > since I have this in /proc/interrupts: > > 9: 5013 94989 IO-APIC-edge acpi > > Well, I'm officially confused :-) Is your ACPI button a module too? Maybe load ACPI button first, then amd76x_pm? Tony