From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 52D61B7121 for ; Thu, 11 Nov 2010 22:56:41 +1100 (EST) Subject: Re: [PATCH v2] fsldma: add support to 36-bit physical address Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Kumar Gala In-Reply-To: <1289477789-10651-1-git-send-email-leoli@freescale.com> Date: Thu, 11 Nov 2010 05:56:01 -0600 Message-Id: <54AAF9B7-9533-45B8-9C49-A964203AF707@kernel.crashing.org> References: <1289477789-10651-1-git-send-email-leoli@freescale.com> To: Li Yang Cc: dan.j.williams@intel.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Nov 11, 2010, at 6:16 AM, Li Yang wrote: > Expand the dma_mask of fsldma device to 36-bit, indicating that the > DMA engine can deal with 36-bit physical address and does not need > the SWIOTLB to create bounce buffer for it when doing dma_map_*(). >=20 > Signed-off-by: Li Yang > --- > Add more detailed commit message >=20 > drivers/dma/fsldma.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) >=20 > diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c > index cea08be..8c79b37 100644 > --- a/drivers/dma/fsldma.c > +++ b/drivers/dma/fsldma.c > @@ -1,7 +1,7 @@ > /* > * Freescale MPC85xx, MPC83xx DMA Engine support > * > - * Copyright (C) 2007 Freescale Semiconductor, Inc. All rights = reserved. > + * Copyright (C) 2007-2010 Freescale Semiconductor, Inc. All rights = reserved. > * > * Author: > * Zhang Wei , Jul 2007 > @@ -1338,6 +1338,8 @@ static int __devinit fsldma_of_probe(struct = platform_device *op, > fdev->common.device_control =3D fsl_dma_device_control; > fdev->common.dev =3D &op->dev; >=20 > + dma_set_mask(&(op->dev), DMA_BIT_MASK(36)); > + Is there any reason we shouldn't set DMA_BIT_MASK(64) since the DMA = block programming model allows the address to be 64-bits? > dev_set_drvdata(&op->dev, fdev); >=20 > /* > --=20 > 1.6.6-rc1.GIT >=20