From mboxrd@z Thu Jan 1 00:00:00 1970 From: Len Brown Subject: b44 suspend/resume (Re: PCI not restored correctly after suspend to ram) Date: 19 Mar 2004 15:35:00 -0500 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <1079728500.7277.140.camel@dhcppc4> References: <200403180935.09436.stefan.doesinger@gym-leoben.asn-graz.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200403180935.09436.stefan.doesinger-dYJrdcitkgg0+Ua9VpOLR6Q1ief8SNuKXqFh9Ls21Oc@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: stefan.doesinger-dYJrdcitkgg0+Ua9VpOLR6Q1ief8SNuKXqFh9Ls21Oc@public.gmane.org, davem-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, pp-YuCZbdju05vHOG6cAo2yLw@public.gmane.org Cc: ACPI Developers List-Id: linux-acpi@vger.kernel.org On Thu, 2004-03-18 at 03:35, Stefan D=F6singer wrote: > Hello list, > I have the following problems with suspend to ram on my Acer Travelmate= 803 > (Centrino) notebook: > With the patch for radeon_driver.c(Xfree v. 4.4) I can suspend and resu= me my=20 > notebook. After resume, the settings of most pci devices are not restor= ed=20 > correctly and the devices do not work. See the attached lspci_before_su= spend=20 > and lspci_after_suspend files for details. > Devices not working are: > *Soundcard(00:1f.5) > *All devices on bus 02 > *The modem, but there's only a non-GPL driver available. >=20 > I can get most devices devies to work by setting the pci registers with= setpci=20 > after resume. I use the attached fixpci.sh script to do so. I can get m= y=20 > soundcard, the ethernet card(02:02.0) ... 02:02.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01) #broadcom ethernet controller DEV=3D02:02.0 echo "Configuring $DEV" $SETPCI -s $DEV 04.w=3D0x0106 $SETPCI -s $DEV 08.w=3D0x0810 $SETPCI -s $DEV 0c.w=3D0x4000 $SETPCI -s $DEV 10.w=3D0x4000 $SETPCI -s $DEV 12.w=3D0xd020 I think this is the b44. Looking at b44_suspend/b44_resume, I don't see any calls to pci_save_state()/pci_restore_state() that I would expect, so it comes back after resume with bus mastering disabled etc. -Len ----------- lspci_before_suspend: 02:02.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01) Subsystem: Acer Incorporated [ALI]: Unknown device 001f Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=3Dfast >TAbort+ SERR- TAbort- SERR-