From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: dma_mask on scsi_calculate_bounce_limit Date: Thu, 18 Nov 2010 18:52:24 -0600 Message-ID: <1290127944.11007.46.camel@mulgrave.site> References: <1290093715.3041.13.camel@mulgrave.site> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from cantor2.suse.de ([195.135.220.15]:35907 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753708Ab0KSAw3 (ORCPT ); Thu, 18 Nov 2010 19:52:29 -0500 In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: =?UTF-8?Q?=E7=8E=8B=E7=A5=9E?= Cc: linux-scsi@vger.kernel.org On Fri, 2010-11-19 at 01:54 +0800, =E7=8E=8B=E7=A5=9E wrote: > On Thu, Nov 18, 2010 at 11:21 PM, James Bottomley > wrote: > > On Thu, 2010-11-18 at 14:20 +0530, =E7=8E=8B=E7=A5=9E wrote: > >> Hi > >> > >> I have enabled DMA for my host device and when i connect a scsi de= vice > >> to the host, it crashes in the following code.. > >> > >> Function: scsi_calculate_bounce_limit > >> > >> if (host_dev && host_dev->dma_mask) > >> bounce_limit =3D *host_dev->dma_mask; > >> > >> "*dma_mask" is illegal pointer operation. I would like to understa= nd > >> is this known and is there reason behind such a code ? > > > > It likely means you're operating on a new architecture and its gene= ric > > devices haven't been set up correctly. >=20 > Could you please more specific on what is generic devices haven't bee= n > setup properly... It means the architecture setup code left a NULL pointer in the generic device which shouldn't be there ... without knowing which architecture and seeing the code, it's pretty impossible to be more specific. James -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html