From patchwork Tue Apr 20 21:31:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kanigeri, Hari" X-Patchwork-Id: 93738 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3KLVMYF014064 for ; Tue, 20 Apr 2010 21:31:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755433Ab0DTVbV (ORCPT ); Tue, 20 Apr 2010 17:31:21 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:51100 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755379Ab0DTVbU (ORCPT ); Tue, 20 Apr 2010 17:31:20 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o3KLVHH7004160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Apr 2010 16:31:17 -0500 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o3KLVHRe016045; Tue, 20 Apr 2010 16:31:17 -0500 (CDT) Received: from dlee75.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id o3KLVHL9005648; Tue, 20 Apr 2010 16:31:17 -0500 (CDT) Received: from dlee03.ent.ti.com ([157.170.170.18]) by dlee75.ent.ti.com ([157.170.170.72]) with mapi; Tue, 20 Apr 2010 16:31:16 -0500 From: "Kanigeri, Hari" To: "linux-omap@vger.kernel.org" CC: "Shilimkar, Santosh" , Felipe Contreras , Hiroshi DOYU , "tony@atomide.com" Date: Tue, 20 Apr 2010 16:31:16 -0500 Subject: [PATCH 2/3][v2] OMAP:iommu - missing check for TLB valid entry Thread-Topic: [PATCH 2/3][v2] OMAP:iommu - missing check for TLB valid entry Thread-Index: Acrg0M7pPCF1dW4IRga+EIU5F3SJcw== Message-ID: <8F7AF80515AF0D4D93307E594F3CB40E4B3445E6@dlee03.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 20 Apr 2010 21:31:22 +0000 (UTC) diff --git a/arch/arm/mach-omap2/iommu2.c b/arch/arm/mach-omap2/iommu2.c index 6f4b7cc..f01f985 100644 --- a/arch/arm/mach-omap2/iommu2.c +++ b/arch/arm/mach-omap2/iommu2.c @@ -183,7 +183,7 @@ static struct cr_regs *omap2_alloc_cr(struct iommu *obj, struct iotlb_entry *e) if (!cr) return ERR_PTR(-ENOMEM); - cr->cam = (e->da & MMU_CAM_VATAG_MASK) | e->prsvd | e->pgsz; + cr->cam = (e->da & MMU_CAM_VATAG_MASK) | e->prsvd | e->pgsz | e->valid; cr->ram = e->pa | e->endian | e->elsz | e->mixed; return cr;