Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261951AbVCIWFt (ORCPT ); Wed, 9 Mar 2005 17:05:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261924AbVCIWFh (ORCPT ); Wed, 9 Mar 2005 17:05:37 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:6792 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S261951AbVCIWDn (ORCPT ); Wed, 9 Mar 2005 17:03:43 -0500 Date: Wed, 9 Mar 2005 22:03:35 +0000 From: "'Christoph Hellwig'" To: "Bagalkote, Sreenivas" Cc: "'Arjan van de Ven'" , "'linux-kernel@vger.kernel.org'" , "'linux-scsi@vger.kernel.org'" , "'James Bottomley'" , "'Matt_Domsch@Dell.com'" , Andrew Morton , "'Christoph Hellwig'" Subject: Re: [ANNOUNCE][PATCH 2.6.11 2/3] megaraid_sas: Announcing new mod ule for LSI Logic's SAS based MegaRAID controllers Message-ID: <20050309220335.GA9350@infradead.org> Mail-Followup-To: 'Christoph Hellwig' , "Bagalkote, Sreenivas" , 'Arjan van de Ven' , "'linux-kernel@vger.kernel.org'" , "'linux-scsi@vger.kernel.org'" , 'James Bottomley' , "'Matt_Domsch@Dell.com'" , Andrew Morton References: <0E3FA95632D6D047BA649F95DAB60E570230CC1C@exa-atlanta> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E570230CC1C@exa-atlanta> User-Agent: Mutt/1.4.1i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 859 Lines: 15 On Wed, Mar 09, 2005 at 09:43:47AM -0500, Bagalkote, Sreenivas wrote: > During the module load time, I allocate 32 bit or 64 bit SGLs based on > whether I can receive 64 bit DMA addresses or not. If size of dma_addr_t > is 4, then I allocate only 32 bit SGLs. During the run time, I prepare > 32/64 bit SGLs based on this variable. And since this is compile time > system-wide property, I kept it as driver global. Even for kernels with a 64bit dma_addr_t you can get 32bit dma addresses only. As a start check whether the pci_set_dma_mask for the 64bit mask failed - in that case you can always use 32bit SGLs. - 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/