Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751649AbWHXSTh (ORCPT ); Thu, 24 Aug 2006 14:19:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751671AbWHXSTh (ORCPT ); Thu, 24 Aug 2006 14:19:37 -0400 Received: from web83102.mail.mud.yahoo.com ([216.252.101.31]:3974 "HELO web83102.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S1751649AbWHXSTg (ORCPT ); Thu, 24 Aug 2006 14:19:36 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Ts8Mx8gRWSLE8B2No9acHf0b8CzZ37IMs10ru3Thm3ACYVyBEg2Z5eyuiUGpFl7WpeIw0r6B2kwKEZ77PGDAz5DxOL0NV1Tvw/rH5UobeBQjhD/Cxorr9K5TfUoXE5e7EKjag+5GGU2y/7hqHo8z48caO3VO2n1pTHpTICsUFes= ; Message-ID: <20060824181935.90856.qmail@web83102.mail.mud.yahoo.com> Date: Thu, 24 Aug 2006 11:19:35 -0700 (PDT) From: Aleksey Gorelov Subject: RE: Generic Disk Driver in Linux To: jengelh@linux01.gwdg.de, daniel.rodrick@gmail.com Cc: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org, linux-newbie@vget.kernel.org, satinder.jeet@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1704 Lines: 50 >From: linux-kernel-owner@vger.kernel.org >[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Jan Engelhardt >> >> I was curious that can we develop a generic disk driver that could >> handle all the kinds of hard drives - IDE, SCSI, RAID et al? > >ide_generic >sd_mod > >All there, what more do you want? Unfortunately, not _all_. DMRAID does not support all fake raids yet. Moreover, there is usually some gap for bleeding edge hw support. > >> I thought we could use the BIOS interrupt 13H for this purpose, >> >I fail to see a BIOS on non-x86 computers. > >> but ran into a LOT of real mode / protected mode issues. >> >Sure. We are not real mode. >Ever heard of BIOS limitations? If no, first check out >http://www.pcguide.com/ref/hdd/bios/sizeGB8-c.html This is not really relevant. They actually answer it right in the article - BIOS extensions, aka EDD. I'd say the performance issue is more in int13 non-dma vs. dma data transfers, and tricks associated with vm86. Although most 'on board' BIOSes support dma just fine for single drives, faik raid and 'plug-in' card option ROMS usually lacks any dma support. Plus, there is no way to tell whether BIOS will do dma or pio upfront. Another problem here is that BIOSes usually support legacy PIC interrupt model, and modern OSes use IO APIC and resteer the interrups. Aleks. > > > >Jan Engelhardt >-- >- >To unsubscribe from this list: send the line "unsubscribe >linux-kernel" in - 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/