Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 23 Mar 2002 00:17:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 23 Mar 2002 00:17:45 -0500 Received: from astound-64-85-224-253.ca.astound.net ([64.85.224.253]:64519 "EHLO master.linux-ide.org") by vger.kernel.org with ESMTP id ; Sat, 23 Mar 2002 00:17:36 -0500 Date: Fri, 22 Mar 2002 21:16:00 -0800 (PST) From: Andre Hedrick To: Martin Dalecki cc: Alan Cox , John Langford , linux-kernel@vger.kernel.org Subject: Re: BUG: 2.4.18 & ALI15X3 DMA hang on boot In-Reply-To: <3C9B1A73.2070606@evision-ventures.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Mar 2002, Martin Dalecki wrote: > I didn't look at the issue but anyway the following is still > obviously wrong. hwif->index should be hwif->channel > > Anyway please note the following: > > diff -urN linux-2.5.7/drivers/ide/alim15x3.c linux/drivers/ide/alim15x3.c > --- linux-2.5.7/drivers/ide/alim15x3.c Thu Mar 21 23:54:16 2002 > +++ linux/drivers/ide/alim15x3.c Fri Mar 22 02:08:58 2002 > @@ -247,8 +247,8 @@ > int s_time, a_time, c_time; > byte s_clc, a_clc, r_clc; > unsigned long flags; > int port = hwif->index ? 0x5c : 0x58; > int portFIFO = hwif->channel ? 0x55 : 0x54; > > The usage of hwif->index *is* wrong. I stand corrected, it is a real bug and I let it slip in from the ali.com.tw folks. I recant the point and error here is mine. However, one should note this would only be found if a person was booting an add-in card. This is why it has masked its self for so long. Now the much harder issue trace is the following. So I am impressed that you caught this very tiny bug that would be big and messy later. Tip of the hat to you. Noting that in the special case of who/what is allowed to have access to "ide0/ide1" this is an onboard host and generally would have the results: hwif->index == hwif->channel If and only if the host had rights and priviledges to "ide0/ide1", would it be masked. So as the previous offer still stands point to have peace again, I am still waiting for a reply on are going to be able to work through the inital bumps an bangs from the beginning. Cheers, Andre Hedrick LAD Storage Consulting Group - 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/