From patchwork Sun May 16 15:45:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Contreras X-Patchwork-Id: 99971 X-Patchwork-Delegate: omar.ramirez@ti.com 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 o4GFkPwO025255 for ; Sun, 16 May 2010 15:46:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753405Ab0EPPqY (ORCPT ); Sun, 16 May 2010 11:46:24 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:51910 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753268Ab0EPPqX (ORCPT ); Sun, 16 May 2010 11:46:23 -0400 Received: by fxm6 with SMTP id 6so2977823fxm.19 for ; Sun, 16 May 2010 08:46:22 -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=7FGtAVM/IVIk3PMhUXMQdAtucp0Wi6hnYUlbYTRf7pY=; b=bCIoFuilQas6jFyqqx5jNiCuI2A7KzPsv3fSZDuJI30SEOGLZpNXoxh9y/aeGgjdl1 xi8esB9jxuzwj6tWHnOyyOyRnOn0v0LmtUiqJAedOmaiPJ3qjquvIye98oU1+t9WSAht LWMlJgh5Q11T3uuEFe6zLtvBWdrdJ/QmHAY+A= 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=LbGAPsJWhrSluEVikmr3FO+NdBB+wOmJeEDmdnjG2xBY0yA1o8CyZNk0KwBwWAlttX 3cov8esyLHQlXHAQ7T+2HCVeQW0rM4zA76dZZrfPMDygArjvIrfa9dMZu2Xa1pHMwJdH opTJ87rn6wGjeD+djHcWED7ysccvtGYQ3N7Sc= Received: by 10.87.13.6 with SMTP id q6mr1222926fgi.19.1274024782404; Sun, 16 May 2010 08:46:22 -0700 (PDT) Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80]) by mx.google.com with ESMTPS id d8sm11666843fga.21.2010.05.16.08.46.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 May 2010 08:46:21 -0700 (PDT) From: Felipe Contreras To: linux-omap Cc: Omar Ramirez Luna , Fernando Guzman Lugo , Felipe Contreras Subject: [PATCH 07/14] dspbridge: deh: ensure only tlb #0 is enabled Date: Sun, 16 May 2010 18:45:58 +0300 Message-Id: <1274024765-21076-8-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1274024765-21076-1-git-send-email-felipe.contreras@gmail.com> References: <1274024765-21076-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, 16 May 2010 15:46:25 +0000 (UTC) diff --git a/drivers/dsp/bridge/core/ue_deh.c b/drivers/dsp/bridge/core/ue_deh.c index 61e5e4e..f661aaf 100644 --- a/drivers/dsp/bridge/core/ue_deh.c +++ b/drivers/dsp/bridge/core/ue_deh.c @@ -235,6 +235,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,