From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760564AbYDNVNH (ORCPT ); Mon, 14 Apr 2008 17:13:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760239AbYDNVMl (ORCPT ); Mon, 14 Apr 2008 17:12:41 -0400 Received: from hades.rz.tu-clausthal.de ([139.174.2.20]:54568 "EHLO hades.rz.tu-clausthal.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759172AbYDNVMh convert rfc822-to-8bit (ORCPT ); Mon, 14 Apr 2008 17:12:37 -0400 From: Volker Armin Hemmann To: "Peer Chen" Subject: Re: 2.6.24.X: SATA/AHCI related boot delay. - not with 2.6.24.3 Date: Mon, 14 Apr 2008 23:12:32 +0200 User-Agent: KMail/1.9.9 Cc: "Jeff Garzik" , "Tejun Heo" , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, "Kuan Luo" References: <200803091922.33083.volker.armin.hemmann@tu-clausthal.de> <200804140841.32477.volker.armin.hemmann@tu-clausthal.de> <15F501D1A78BD343BE8F4D8DB854566B26C12206@hkemmail01.nvidia.com> In-Reply-To: <15F501D1A78BD343BE8F4D8DB854566B26C12206@hkemmail01.nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200804142312.32991.volker.armin.hemmann@tu-clausthal.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Montag, 14. April 2008, Peer Chen wrote: > Volker, > I mean add msleep(x) function between writel(HOST_AHCI_EN, mmio + HOST_CTL) > and readl(mmio + HOST_CTL) cause we ever met a bug that writing data to the > AHCI BAR5 but need a delay to get correct read back value. But forget it, > looks like it's not the same case here. Which mode do you set(ahci or > non-raid) when you encountered the issue that the AHCI_EN bit failed to > set? I found we have workaround for AHCI_EN bit setting in our Bios > programming guide for AHCI mode. you mean this? [ 0.363828] ------------[ cut here ]------------ [ 0.363828] WARNING: at drivers/ata/ahci.c:645 ahci_init_one+0x190/0xa3a() [ 0.363828] Modules linked in: [ 0.363828] Pid: 1, comm: swapper Not tainted 2.6.25-rc8 #2 [ 0.363828] [ 0.363828] Call Trace: [ 0.363828] [] warn_on_slowpath+0x51/0x63 [ 0.363832] [] __ioremap+0x8/0x197 [ 0.363872] [] pci_conf1_read+0xb2/0xbd [ 0.363911] [] pcim_iomap_release+0x0/0x2c [ 0.363950] [] pcim_iomap_release+0x0/0x2c [ 0.363989] [] devres_find+0x4b/0x65 [ 0.364028] [] ahci_init_one+0x190/0xa3a [ 0.364067] [] sysfs_addrm_finish+0x1d/0x209 [ 0.364107] [] ifind+0x34/0x8d [ 0.364145] [] sysfs_find_dirent+0x1b/0x2f [ 0.364184] [] ida_get_new_above+0xf0/0x180 [ 0.364223] [] sysfs_addrm_finish+0x1d/0x209 [ 0.364263] [] sysfs_create_link+0xb6/0x102 [ 0.364303] [] pci_device_probe+0x4c/0x72 [ 0.364342] [] driver_probe_device+0xb5/0x132 [ 0.364381] [] __driver_attach+0x6f/0xaf [ 0.364419] [] __driver_attach+0x0/0xaf [ 0.364458] [] __driver_attach+0x0/0xaf [ 0.364498] [] bus_for_each_dev+0x44/0x6f [ 0.364538] [] proc_match+0x23/0x2d [ 0.364576] [] bus_add_driver+0xae/0x1f4 [ 0.364614] [] driver_register+0x59/0xce [ 0.364654] [] __pci_register_driver+0x4a/0x7d [ 0.364701] [] kernel_init+0x14f/0x2b9 [ 0.364740] [] child_rip+0xa/0x12 [ 0.364779] [] kernel_init+0x0/0x2b9 [ 0.364817] [] child_rip+0x0/0x12 [ 0.364854] [ 0.364891] ---[ end trace ea9d541113ecaf1e ]--- this happened with AHCI mode set in bios, pci=nomsi as kernel boot parameter and kernel 2.6.25-rc8. Something similar looking happened without pci=nomsi, but in that case I could not scroll back to even make a picture because of the kernel panic (rootfs not found). Glück Auf Volker