Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S272401AbTHNPOW (ORCPT ); Thu, 14 Aug 2003 11:14:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S272402AbTHNPOW (ORCPT ); Thu, 14 Aug 2003 11:14:22 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:2270 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S272401AbTHNPOV (ORCPT ); Thu, 14 Aug 2003 11:14:21 -0400 Message-ID: <3F3BA741.9030304@pobox.com> Date: Thu, 14 Aug 2003 11:14:09 -0400 From: Jeff Garzik Organization: none User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk X-Accept-Language: en MIME-Version: 1.0 To: Alan Cox CC: Bartlomiej Zolnierkiewicz , Andries Brouwer , Linux Kernel Mailing List Subject: Re: [PATCH] ide: limit drive capacity to 137GB if host doesn't support LBA48 References: <200308140324.45524.bzolnier@elka.pw.edu.pl> <1060851207.5535.15.camel@dhcp23.swansea.linux.org.uk> In-Reply-To: <1060851207.5535.15.camel@dhcp23.swansea.linux.org.uk> 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 Content-Length: 979 Lines: 30 Alan Cox wrote: > On Iau, 2003-08-14 at 02:24, Bartlomiej Zolnierkiewicz wrote: > >> hwif->rqsize = old_hwif.rqsize; >>- hwif->addressing = old_hwif.addressing; >>+ hwif->no_lba48 = old_hwif.no_lba48; > > > This change is a bad idea. Its called "addressing" because that is what > it is about (see SATA and ATA specs). In future SATA addressing becomes > a 0,1,2 value because 48bits isnt enough, it may get more forms beyond > that. > > Might be worth defining ADDR_LBA48, ADDR_LBA28 etc to make it clearer, > but really people shouldnt be randomly hacking IDE code without having > read the specifications. Yep. Guess what? Some host controller vendors are already building lba64 support into their chips... Jeff - 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/