From patchwork Sat Nov 26 19:02:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9448505 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7F3F76071C for ; Sat, 26 Nov 2016 19:02:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 559D926C9B for ; Sat, 26 Nov 2016 19:02:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 386E926E39; Sat, 26 Nov 2016 19:02:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AA69026C9B for ; Sat, 26 Nov 2016 19:02:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAiFE-0000XD-Ot; Sat, 26 Nov 2016 19:02:40 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAiFA-0000EI-36 for linux-amlogic@lists.infradead.org; Sat, 26 Nov 2016 19:02:38 +0000 Received: by mail-wm0-x236.google.com with SMTP id a197so170259687wmd.0 for ; Sat, 26 Nov 2016 11:02:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-transfer-encoding; bh=TZogS2znR3bBso7QIDaEBsgR4YiY4kDbeO0o8gLcYF4=; b=OSP5iX2gc6c4rZuviFE1ypFy71q15Mqqc+N7W4ZOp1t107w4nb8d0NMKE5D+Ak6oyb HfaT1BLBkCvDCbe8vDWOJUPJsA9Htq7WEf2LxSCh44tK7StTUCWkFioXbWIQSqI2m/za a/LhCrtsLYIgjDqXGI+NzMLXbhMWUudbSvC5+7l0LEZ12tJegpG164zbasICe+/GUfv5 x2QvK2WTlNCnphspObnK9ER69+1QZir4Mt46w9ci20RTvjRE7iAX6LnKxbuCgIAdCavI VbxLeNQEK9Fewi1tRBFNwseObk9MfM6yBzSXwln3Ezkg4RsNL3pYltT7AgMA7Hs2OOsf Oa/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=TZogS2znR3bBso7QIDaEBsgR4YiY4kDbeO0o8gLcYF4=; b=I06EfDfu08eDw5871IheZ3XhQR2ddfLycNWsCajPwgCcmFcxM7QN1EfzTSSlkBL2w+ ZEDxolkl/AUvg5t+GoA+QkZ2lwJXIpUFMtWIifkCP3kBFVZyRgVkye/fsJjeR+ezT6r6 9qfls2Nuytk8LnNWoBuHDeKvZ2j1a0zktSLaVEjvImqxkdyrHsF8euGI2ujcB5qeHCFc 9JJu0jVNmh8+IDsCKPCPx4LAuSNi2WhuQa3cCzIZcwDOSf/txyWsUwdC5RAOrJl6yJzk vyMjTd6MdyOMZHAmrBO4ORppeGzfbQHxt5wLWCcMJy0CiZLAzXEwTUlhFU0MxnUe07RQ +M+w== X-Gm-Message-State: AKaTC032SXBagCzBjP7MjEe0tUk9EcxL02Wz+KTAILeHp8toq5ZFTuJyY5vw1xKqzMipe38N X-Received: by 10.28.31.23 with SMTP id f23mr13364114wmf.94.1480186933429; Sat, 26 Nov 2016 11:02:13 -0800 (PST) Received: from MacBook-Pro.local ([2a01:e35:2e4f:a3d0:b49a:3068:877d:b7d8]) by smtp.gmail.com with ESMTPSA id ei2sm53396506wjd.47.2016.11.26.11.02.12 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 26 Nov 2016 11:02:12 -0800 (PST) Message-ID: <5839DC32.3010800@baylibre.com> Date: Sat, 26 Nov 2016 20:02:10 +0100 From: Neil Armstrong User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: linux-amlogic@lists.infradead.org Subject: Re: net: stmmac: Meson GXBB: attempting to execute userspace memory References: <7a575702-2232-61b7-048c-e4075400be17@gmx.de> In-Reply-To: <7a575702-2232-61b7-048c-e4075400be17@gmx.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161126_110236_422931_92E2FE30 X-CRM114-Status: GOOD ( 14.40 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Le 26/11/2016 13:38, Heinrich Schuchardt a écrit : > On 11/26/2016 10:08 AM, Martin Blumenstingl wrote: >> Hello Heinrich, >> >> On Sat, Nov 26, 2016 at 8:53 AM, Heinrich Schuchardt >> wrote: >>> For Odroid C2 I have compiled kernel >>> 4.9.0-rc6-next-20161124-00001-gbf7e142 >>> with one additional patch >>> https://github.com/xypron/kernel-odroid-c2/blob/master/patch/0001-stmmac-RTL8211F-Meson-GXBB-TX-throughput-problems.patch >>> >>> I repeatedly see faults like the one below: >> do you see the same errors with the RTL8211F patch *not* applied? >> >>> [ 2557.400796] Unhandled fault: synchronous external abort (0x92000010) >>> at 0x000040001e8ee4b0 >>> [ 2557.952413] CPU: 0 PID: 22837 Comm: cc1 Tainted: G D >>> 4.9.0-rc6-next-20161124-00001-gbf7e142 #1 >>> [ 2557.962062] Hardware name: Hardkernel ODROID-C2 (DT) >>> [ 2557.966980] task: ffff80006ddb7080 task.stack: ffff80006dd9c000 >>> [ 2557.972846] PC is at 0x6a0d98 >>> [ 2557.975776] LR is at 0x6a0e54 >>> [ 2557.978709] pc : [<00000000006a0d98>] lr : [<00000000006a0e54>] >>> pstate: 80000000 [...] >>> 0000000000590578 >>> [ 2560.054186] [<000000000046d4e0>] 0x46d4e0 >>> [ 2560.058155] Code: aa1503e1 2a1403e0 52800002 97fe895d (2a0003e1) >>> [ 2560.064244] ---[ end trace 7d280955c14d4ff4 ]--- >> I am asking because when you look at the affected processes you'll get >> this list: cc1, mmcqd/1, gcc >> it doesn't sound like any of these using ethernet but rather MMC instead. >> >> >> Regards, >> Martin >> > > Hello Martin, > > the same error occurs without patch > https://github.com/xypron/kernel-odroid-c2/blob/master/patch/0001-stmmac-RTL8211F-Meson-GXBB-TX-throughput-problems.patch > > Best regards > > Heinrich Hello Heinrich, It's a problem we identified, some DDR memory zones are reserved by the Secure firmware, and thus should be excluded. A fixup patch should be posted shortly, could you try the following patch and adapt it to the Odroid-C2 ? Thanks, Neil -->8 From: Neil Armstrong Date: Fri, 18 Nov 2016 14:17:12 +0100 Subject: [PATCH] HACK add reserved memory zones Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi index 203be28..5e5e2de 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi @@ -56,6 +56,38 @@ memory@0 { device_type = "memory"; reg = <0x0 0x0 0x0 0x40000000>; + usable-memory = <0x0 0x1000000 0x0 0x3f000000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + sec0 { + reg = <0x0 0x0 0x0 0x1000000>; + no-map; + }; + + secmon { + reg = <0x0 0x10000000 0x0 0x200000>; + no-map; + }; + + secos { + reg = <0x0 0x05300000 0x0 0x2000000>; + no-map; + }; + + aml_pstore { + reg = <0x0 0x07300000 0x0 0x100000>; + no-map; + }; + + sec1 { + reg = <0x0 0x3f000000 0x0 0x1000000>; + no-map; + }; }; usb_pwr: regulator-usb-pwrs {