From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755350AbYGFBnc (ORCPT ); Sat, 5 Jul 2008 21:43:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753195AbYGFBnY (ORCPT ); Sat, 5 Jul 2008 21:43:24 -0400 Received: from userg500.nifty.com ([202.248.238.80]:26344 "EHLO userg500.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753144AbYGFBnX (ORCPT ); Sat, 5 Jul 2008 21:43:23 -0400 DomainKey-Signature: a=rsa-sha1; s=userg500; d=nifty.com; c=nofws; q=dns; h=date:from:to:cc:subject:message-id:in-reply-to:references: x-mailer:mime-version:content-type:content-transfer-encoding; b=Sb360s/otzZu8hcawq2WaLDIxkGK9AnYy6tPnzKmY0jeazayW2g0uTDQV2WbX7O2s NH/v3KiDrRuxVQUu4wGsQ== X-Nifty-SrcIP: [220.145.29.40] Date: Sun, 6 Jul 2008 10:37:52 +0900 From: Komuro To: Tejun Heo Cc: Jeff Garzik , linux-pcmcia , linux-kernel@vger.kernel.org, Dominik Brodowski , linux-ide@vger.kernel.org, Kristoffer Ericson , jgarzik@redhat.com, rjw@sisk.pl Subject: Re: [KERNEL 2.6.26-rc4] bugreport : pata_pcmcia with Sandisk Extreme III 8GB Message-Id: <20080706103752.13935ffd.komurojun-mbn@nifty.com> In-Reply-To: <20080617212345.c452d8c5.komurojun-mbn@nifty.com> References: <20080528225049.9a134e0d.Kristoffer.Ericson@Gmail.com> <20080528222740.GB20893@isilmar.linta.de> <20080530135728.be02d3dc.Kristoffer.Ericson@Gmail.com> <20080607223716.7d142072.komurojun-mbn@nifty.com> <20080611072029.GB28692@comet.dominikbrodowski.net> <20080614120055.ad8fbee0.komurojun-mbn@nifty.com> <48537149.4040102@garzik.org> <20080614213612.96873c25.komurojun-mbn@nifty.com> <4855D8E2.10409@gmail.com> <20080616221145.e3b069b9.komurojun-mbn@nifty.com> <485669A0.6000404@gmail.com> <20080617212345.c452d8c5.komurojun-mbn@nifty.com> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Tejun The patch below fixes the pata_pcmcia problem. I think the ap->lock points to bogus address. Any comment? --- linux-2.6.26-rc8/drivers/ata/libata-core.c.orig 2008-07-06 10:05:46.000000000 +0900 +++ linux-2.6.26-rc8/drivers/ata/libata-core.c 2008-07-06 10:09:16.000000000 +0900 @@ -5304,6 +5304,8 @@ struct ata_host *ata_host_alloc(struct d goto err_out; ap->port_no = i; + ap->lock = &ap->__lock; + spin_lock_init(ap->lock); host->ports[i] = ap; } --- linux-2.6.26-rc8/include/linux/libata.h.orig 2008-07-06 10:03:54.000000000 +0900 +++ linux-2.6.26-rc8/include/linux/libata.h 2008-07-06 10:04:35.000000000 +0900 @@ -639,6 +639,7 @@ struct ata_port { struct Scsi_Host *scsi_host; /* our co-allocated scsi host */ struct ata_port_operations *ops; spinlock_t *lock; + spinlock_t __lock; unsigned long flags; /* ATA_FLAG_xxx */ unsigned int pflags; /* ATA_PFLAG_xxx */ unsigned int print_id; /* user visible unique port ID */ Best Regards Komuro