Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 12 Apr 2002 10:42:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 12 Apr 2002 10:42:38 -0400 Received: from [195.63.194.11] ([195.63.194.11]:52742 "EHLO mail.stock-world.de") by vger.kernel.org with ESMTP id ; Fri, 12 Apr 2002 10:42:37 -0400 Message-ID: <3CB6E394.7070703@evision-ventures.com> Date: Fri, 12 Apr 2002 15:39:32 +0200 From: Martin Dalecki User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311 X-Accept-Language: en-us, pl MIME-Version: 1.0 To: Bill Davidsen CC: Baldur Norddahl , linux-kernel@vger.kernel.org Subject: Re: More than 10 IDE interfaces In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Bill Davidsen wrote: > On Thu, 11 Apr 2002, Martin Dalecki wrote: > > >>Baldur Norddahl wrote: >> >>>Hi, >>> >>>I have a machine with the following configuration: >>> >>>2 on board IDE interfaces (AMD chipset) >>>2 Promise Technology UltraDMA100 controllers with each 2 IDE interfaces. >>>4 Promise Technology UltraDMA133 controllers with each 2 IDE interfaces. >>> >>>This adds up to 14 IDE interfaces. And I just discovered that the kernel >>>only supports 10 IDE interfaces :-( >>> >>>So I tried to hack the kernel, and I was partially successfull. I changed >>>MAX_HWIF from 10 to 14. I made up some major numbers for the extra >> >>In your case if should be changed to 15 there is an off by one error here in the >>interpretation of this constant. > > > ??? If the current value is 10, and supports 10 interfaces, and I > believe that is the case, why should he need a value of 15 to get 14? > Doesn't the off by one error happen on smaller values, or what? > > I am NOT disagreeing with you, I just don't see how to code an off by > one and have it work some of the time and not others. You can have luck due to alignment issues. - 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/