From patchwork Mon Mar 21 22:43:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 649121 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2LMhHxW024026 for ; Mon, 21 Mar 2011 22:43:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754759Ab1CUWnO (ORCPT ); Mon, 21 Mar 2011 18:43:14 -0400 Received: from mail-vx0-f174.google.com ([209.85.220.174]:55404 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754011Ab1CUWnN (ORCPT ); Mon, 21 Mar 2011 18:43:13 -0400 Received: by vxi39 with SMTP id 39so5379329vxi.19 for ; Mon, 21 Mar 2011 15:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=yavjM1DBr56WtlC/SIu7SsC3MBgmMArxWI4YO2IYt3k=; b=NQrOAP0RfqM/hTQjlNCGirocegPLAqtH9yTBDD3ezEfzZoavNzMZTI+rYnu+bkRBz7 OT0UousftiZ3BWSq9Jbchtmk+7+/WTuWc0eJ2Lklrdpyz/PF9HZh/Ddb8ErdzDX4iU+V sLPC7EjatIbteoqkGlrOt7YZXLjiEoy1zUe4g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=kB08hZFlcyWPBar3ZPu55bpl73iD+khiK6uCwrhLWBTrzKCgk6wuGOijmveLX/z+zm fHpnosVMqWqTWV3yTR+KZUpCcUjeZJ5N+KnA8prr6CRXxWFC1dqSgQJpaZ5Qyvpe/gSW YQbhUzAV6W41E9UVcPzYikU4iEn5kZbXalO8s= Received: by 10.220.45.16 with SMTP id c16mr808665vcf.42.1300747392970; Mon, 21 Mar 2011 15:43:12 -0700 (PDT) Received: from [192.168.30.170] ([187.106.164.220]) by mx.google.com with ESMTPS id c15sm1606537vcs.31.2011.03.21.15.43.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Mar 2011 15:43:11 -0700 (PDT) Message-ID: <4D87D47B.80206@gmail.com> Date: Mon, 21 Mar 2011 19:43:07 -0300 From: Mauro Carvalho Chehab User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Red Hat/3.1.7-3.el6_0 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Jiri Slaby CC: Konrad Rzeszutek Wilk , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, jirislaby@gmail.com Subject: Re: [PATCH v2 -resend#1 1/1] V4L: videobuf, don't use dma addr as physical References: <1298885822-10083-1-git-send-email-jslaby@suse.cz> <20110228145301.GC10846@dumpdata.com> <4D6BC3AE.903@suse.cz> <4D6BE756.1090800@infradead.org> In-Reply-To: <4D6BE756.1090800@infradead.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 21 Mar 2011 22:43:17 +0000 (UTC) diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c index c969111..19d3e4a 100644 --- a/drivers/media/video/videobuf-dma-contig.c +++ b/drivers/media/video/videobuf-dma-contig.c @@ -300,7 +300,7 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q, vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); retval = remap_pfn_range(vma, vma->vm_start, - mem->dma_handle >> PAGE_SHIFT, + PFN_DOWN(virt_to_phys(mem->vaddr)) size, vma->vm_page_prot); if (retval) { dev_err(q->dev, "mmap: remap failed with error %d. ", retval);