Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932226AbWBSTSy (ORCPT ); Sun, 19 Feb 2006 14:18:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932228AbWBSTSy (ORCPT ); Sun, 19 Feb 2006 14:18:54 -0500 Received: from ns.virtualhost.dk ([195.184.98.160]:5654 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S932226AbWBSTSx (ORCPT ); Sun, 19 Feb 2006 14:18:53 -0500 Date: Sun, 19 Feb 2006 20:18:59 +0100 From: Jens Axboe To: Ariel Garcia Cc: linux-kernel@vger.kernel.org Subject: Re: 2.6.16-rc4 libata + AHCI patched for suspend fails on ICH6 Message-ID: <20060219191859.GJ8852@suse.de> References: <200602191958.38219.garcia@iwr.fzk.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602191958.38219.garcia@iwr.fzk.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2156 Lines: 53 On Sun, Feb 19 2006, Ariel Garcia wrote: > Hi Jens, > > regarding your suspend support patch for libata: > > > author Jens Axboe > > Fri, 6 Jan 2006 08:28:07 +0000 (09:28 +0100) > > commit 9b847548663ef1039dd49f0eb4463d001e596bc3 > > > [PATCH] Suspend support for libata > > This patch adds suspend patch to libata, and ata_piix in particular. > > For most low level drivers, they should just need to add the 4 hooks to > > work. As I can only test ata_piix, I didn't enable it for more though. > > i tested the trivial "4-hooks" patch on kernel 2.6.16-rc4, on my laptop > (i915, ICH6 chipset, sata hd - a Fujitsu-Siemens 7020) > but it doesn't work as it should: > after resume the drive fails to respond to the commands so it > ends up remounted read-only. > > I am attaching: > - the trivial patch i used > - the output of lsmod (lsmod-clean.txt) > - the output of lspci -vv before (lspci-clean.txt) > and after resuming (lspci-resume.txt) > - the output of dmesg (glueing the full boot + resuming messages) > > All this was done running in single mode. I also tried suspending after > removing all unnecessary modules (usb, snd,ide,...), same result. > > BTW, running a 'diff lspci-clean.txt lspci-resume.txt' > i also noticed that after resume some pci devices get a different > "BusMaster" polarity, but the SATA controller doesn't. > > I would be glad to test patches/debug other things, feel free to ask. The first thing to try is to add the acpi addon from Randy and see if that helps at all. Looking at the log, the first command we issue after resume times out which smells a lot like an unlock command missing (which is typically in the GTF list from acpi). So try this patch on 2.6.16-rc3 (or -rc4, if it applies, haven't checked) and make sure to keep the ahci patch you have that adds the 4 needed hooks as well. -- Jens Axboe - 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/