From patchwork Sun Jul 4 13:34:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Contreras X-Patchwork-Id: 110134 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o64DYukB004395 for ; Sun, 4 Jul 2010 13:34:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757748Ab0GDNez (ORCPT ); Sun, 4 Jul 2010 09:34:55 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:40955 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757698Ab0GDNez (ORCPT ); Sun, 4 Jul 2010 09:34:55 -0400 Received: by mail-bw0-f46.google.com with SMTP id 1so2295322bwz.19 for ; Sun, 04 Jul 2010 06:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=bHWT9ogCUrYPk1xxUExZZ5A+WHe1MErfIInXO4arM9s=; b=spujvMG9hYGvvh9WekgesFkxraLspFDxyhHD3f6TEshORCUjrnplmGXjsw22sAuMCi ctDOLvT5/PtQi+o6RZmv9N3KWwGRsaMEmNKc7jIqnkG6AXSEGApgJ0Df+E5skWMkrMkq T+30Lw3hyr/VViegfXc+MDhsdzkTyAAsvG+6s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=v8yQqNfg0PCi8w4kCiJpQ7UZ2Ah5R0LrGvhsqr41qDV/VzmwPD9flEzMu1PjKpXz8j SCCYxhL/pvy+4IRJfsNd7mukpsjfJJR1EdzxmVzsy5iaV4kh7PWFBFc4wo3kvrVbCo6W pbTuF7mvEz2uLkHLKoh1xiT3f89K3vEh/Ds/o= Received: by 10.204.134.156 with SMTP id j28mr1346075bkt.10.1278250494407; Sun, 04 Jul 2010 06:34:54 -0700 (PDT) Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80]) by mx.google.com with ESMTPS id s17sm9762816bkx.18.2010.07.04.06.34.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 04 Jul 2010 06:34:54 -0700 (PDT) From: Felipe Contreras To: linux-omap Cc: Ohad Ben-Cohen , Omar Ramirez Luna , Greg KH , Felipe Contreras Subject: [PATCH 06/13] staging: ti dspbridge: deh: ensure only tlb #0 is enabled Date: Sun, 4 Jul 2010 16:34:32 +0300 Message-Id: <1278250479-16982-7-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1278250479-16982-1-git-send-email-felipe.contreras@gmail.com> References: <1278250479-16982-1-git-send-email-felipe.contreras@gmail.com> 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]); Sun, 04 Jul 2010 13:34:57 +0000 (UTC) diff --git a/drivers/staging/tidspbridge/core/ue_deh.c b/drivers/staging/tidspbridge/core/ue_deh.c index 06167ed..793e982 100644 --- a/drivers/staging/tidspbridge/core/ue_deh.c +++ b/drivers/staging/tidspbridge/core/ue_deh.c @@ -186,6 +186,14 @@ void bridge_deh_notify(struct deh_mgr *deh_mgr, u32 ulEventMask, u32 dwErrInfo) print_dsp_trace_buffer(dev_context); dump_dl_modules(dev_context); + /* + * Before acking the MMU fault, let's make sure MMU can only + * access entry #0. Then add a new entry so that the DSP OS + * can continue in order to dump the stack. + */ + hw_mmu_twl_disable(resources->dw_dmmu_base); + hw_mmu_tlb_flush_all(resources->dw_dmmu_base); + hw_mmu_tlb_add(resources->dw_dmmu_base, virt_to_phys(dummy_va_addr), fault_addr, HW_PAGE_SIZE4KB, 1,