Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753478AbYCQPX4 (ORCPT ); Mon, 17 Mar 2008 11:23:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752597AbYCQPXq (ORCPT ); Mon, 17 Mar 2008 11:23:46 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:53231 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752513AbYCQPXq (ORCPT ); Mon, 17 Mar 2008 11:23:46 -0400 Date: Mon, 17 Mar 2008 09:23:44 -0600 From: Matthew Wilcox To: Boaz Harrosh Cc: James Bottomley , linux-scsi , Andrew Morton , linux-kernel Subject: Re: ultrastor.c is a bit-rot Message-ID: <20080317152344.GE26285@parisc-linux.org> References: <47DE8736.8020405@panasas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47DE8736.8020405@panasas.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2191 Lines: 58 On Mon, Mar 17, 2008 at 04:59:02PM +0200, Boaz Harrosh wrote: > The driver's header says it supports 3 cards > > * 14F - ISA first-party DMA HA with floppy support and WD1003 emulation. > * 24F - EISA Bus Master HA with floppy support and WD1003 emulation. > * 34F - VL-Bus Bus Master HA with floppy support (no WD1003 emulation). > > But Kconfig only specifies ISA. I'm not sure what a VL-Bus is. VESA Local Bus. It was (in some sense) the predecessor of AGP. We treat it like ISA inside the kernel. On x86, EISA depends on ISA, so the dependency, while wrong, does not affect any x86 users who have an EISA card. > now the driver defines a static array of structures like this: > > struct { > ... > > struct mscp mscp[ULTRASTOR_MAX_CMDS]; > } config = {0}; > > and allocates a struct mscp in .queuecommand like this: > my_mscp = &config.mscp[mscp_index]; > > it will go on preparing this my_mscp structure including stuffing > some mapped pointers. Lets put that aside for now. > At the very end it will pass this my_mscp structure to the card's > firmware like this: > > /* Store pointer in OGM address bytes */ > outl(isa_virt_to_bus(my_mscp), config.ogm_address); > > Now this is one hell of a smart ISA card. But putting this aside. > > if the machine has more then 2^24 of memory. Then this will never > work, right? or I'm missing it completely? I believe this will work for VESA and EISA cards, though not, indeed for ISA cards. > (Also none of the emails in this file are valid) That doesn't mean it doesn't have users ... On the other hand, the u14-34f driver is supposed to be preferred to the ultrastor drivers. Only problem: it doesn't support the 24F card. -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- 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/