From patchwork Mon Dec 14 03:04:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolay Martynov X-Patchwork-Id: 556277 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C45001402A1 for ; Mon, 14 Dec 2015 14:06:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ce7Bb+Xy; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 6A026284314; Mon, 14 Dec 2015 04:05:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2620E283FA7 for ; Mon, 14 Dec 2015 04:05:12 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-ig0-f177.google.com (mail-ig0-f177.google.com [209.85.213.177]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 14 Dec 2015 04:05:05 +0100 (CET) Received: by mail-ig0-f177.google.com with SMTP id ph11so73865563igc.1 for ; Sun, 13 Dec 2015 19:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6xABztEejkz3j5n/3Uoxshio8E6HeuXEQcfZgkEERuw=; b=ce7Bb+XyvuzDet3eYS93KXmWJWNp9XyB41jcEuflShlsrEGaA+lCa6ok5CInL41omE VF1Gie4Sa24v+6MczULPoaXwXutHHadGo98RRm/l3crbifwIKPD2mYwIHKr73TVg6iwi RGQN8OD3Sa4EbaNMDnu2IOAeVZelE9wSkStbWG8iI/mKmRKIwf/Uq3uVdHC7JgSyWkCs tGgY57cRNQ+yr+B7dNLpe3oBdMSRH9ebgX7W+g1IBtf4KRtIRjZYiM3YK8U/NYwJrsT3 xxpwGWgc9+JPczvY0EAkdDTABzAkJMtp6tKZJXNPTCmO5OtIRgajC2AWK8+Gp/IgA0nY b6SQ== X-Received: by 10.50.80.1 with SMTP id n1mr884432igx.86.1450062317965; Sun, 13 Dec 2015 19:05:17 -0800 (PST) Received: from kolya-laptop.shuttercorp.net (dhcp-108-170-142-183.cable.user.start.ca. [108.170.142.183]) by smtp.gmail.com with ESMTPSA id e5sm3470402ioj.40.2015.12.13.19.05.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Dec 2015 19:05:17 -0800 (PST) From: Nikolay Martynov To: openwrt-devel@lists.openwrt.org Date: Sun, 13 Dec 2015 22:04:29 -0500 Message-Id: <1450062272-7026-3-git-send-email-mar.kolya@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1450062272-7026-1-git-send-email-mar.kolya@gmail.com> References: <1450062272-7026-1-git-send-email-mar.kolya@gmail.com> Subject: [OpenWrt-Devel] [PATCH 3/6] ramips: mt7621: undo mips-cm probe hack to not wipe out memory regions X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Since now we hopefully setup memory regions properly we no longer need this hack. Tested and works on ubnt-erx. Signed-off-by: Nikolay Martynov --- .../0062-remove-cm-memory-regions-cleanup-hack.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 target/linux/ramips/patches-4.3/0062-remove-cm-memory-regions-cleanup-hack.patch diff --git a/target/linux/ramips/patches-4.3/0062-remove-cm-memory-regions-cleanup-hack.patch b/target/linux/ramips/patches-4.3/0062-remove-cm-memory-regions-cleanup-hack.patch new file mode 100644 index 0000000..9013819 --- /dev/null +++ b/target/linux/ramips/patches-4.3/0062-remove-cm-memory-regions-cleanup-hack.patch @@ -0,0 +1,20 @@ +--- a/arch/mips/kernel/mips-cm.c ++++ b/arch/mips/kernel/mips-cm.c +@@ -238,7 +238,7 @@ int mips_cm_probe(void) + write_gcr_base(base_reg); + + /* disable CM regions */ +-/* write_gcr_reg0_base(CM_GCR_REGn_BASE_BASEADDR_MSK); ++ write_gcr_reg0_base(CM_GCR_REGn_BASE_BASEADDR_MSK); + write_gcr_reg0_mask(CM_GCR_REGn_MASK_ADDRMASK_MSK); + write_gcr_reg1_base(CM_GCR_REGn_BASE_BASEADDR_MSK); + write_gcr_reg1_mask(CM_GCR_REGn_MASK_ADDRMASK_MSK); +@@ -246,7 +246,7 @@ int mips_cm_probe(void) + write_gcr_reg2_mask(CM_GCR_REGn_MASK_ADDRMASK_MSK); + write_gcr_reg3_base(CM_GCR_REGn_BASE_BASEADDR_MSK); + write_gcr_reg3_mask(CM_GCR_REGn_MASK_ADDRMASK_MSK); +-*/ ++ + /* probe for an L2-only sync region */ + mips_cm_probe_l2sync(); +