Received: by 10.192.165.156 with SMTP id m28csp918286imm; Wed, 18 Apr 2018 00:13:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/EgBqpa9puzzCfNc/d4mssD0SgKePpyqYO5vHxDIPf2svmGhH94pz+IpCmNUk/YzgPQTBz X-Received: by 2002:a17:902:b105:: with SMTP id q5-v6mr1019745plr.173.1524035631095; Wed, 18 Apr 2018 00:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524035631; cv=none; d=google.com; s=arc-20160816; b=BCjk7aK8WlExXWR/uWMn7W3GwNmkjcDe0jRYadqaRTDVPuSt/63BOootF+e61R4ixN 7MmZGv0i0jQQftlvt6G7YEmH9m/MzFnsLpgHOo8L3HRXG7sB3Sn6OzdjOCjNn1ZuPKIO hcbIAqJGT6La5Au5zOig1cDYC6B7Uf58/nd0ELNrHEpRHjyjneeiqixw8SPBYTLYI9x0 3WrizN78VjrhO8IBCPe0jY88ACw1W+HIv33kNM5B44kmc6pIyiVrcnn995FfikI1/uyp crK77q00zlZxg9F7Jp7obJwQmcwpSRjaxBcR96hcfxvroKdzTbibu+eWUwc5RGGTVHXO ui/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=wHZtOUpaM2f9JVoIkaNJfo2E/evrjXcJ0WFClbcixaY=; b=MOgfdZ9aTcRv8xmtAKrOHGRfYWho4zP3gRS4CQ92gl8Xgc/J49fRknZBhz6pqSpRqB OLdL0byhTuBMUM4LAJjA3a0MiXZPa06Jo+EZ+pDTLhVI85JVkjHE6JBlY7/KvaC6DSY1 FhPeQvlN/a6lQFzFncnp3M4tG8oyIYQjWdGseVGU367iGtv1giuRJhi8Z7QZZntrEah0 mV9DYEc0YiTNXHyPiMAO78oLG7oB7H5Ix9eeK5SCityli24oA/lVoJfKHajwqsBxCmwS mh4Wrtk0Dtwa1XsJmLnbOJik3s2UA4kHVGCKov3+VM04uo1mw7B26cp0IE352ngH7cO2 NK0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=OT+t3yy7; dkim=pass header.i=@codeaurora.org header.s=default header.b=OT+t3yy7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si602797pga.70.2018.04.18.00.13.36; Wed, 18 Apr 2018 00:13:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=OT+t3yy7; dkim=pass header.i=@codeaurora.org header.s=default header.b=OT+t3yy7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752810AbeDRHM3 (ORCPT + 99 others); Wed, 18 Apr 2018 03:12:29 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46202 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752022AbeDRHM1 (ORCPT ); Wed, 18 Apr 2018 03:12:27 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E3B3660246; Wed, 18 Apr 2018 07:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524035546; bh=iAxhLJIx/xD3EbGyEfzPKPahBFWlZp0NdOlqwFRnj6U=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=OT+t3yy7VUTosRSJKW8kE4u1ZJk5g4e70UJpZPU2wmyKWYP2OHWADI0I6n6ChQIl3 RxfiMBnn6NxQuJ69PRKxndGzoulzDcCcmFQuzSH8JuGGTXDD/1wG6jArRBP7GtpHXp 9um81b4VaWDfPxBgTElRPSt2wOOAu44quPQky5Fo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.201.3.39] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sricharan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id BB29360246; Wed, 18 Apr 2018 07:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524035546; bh=iAxhLJIx/xD3EbGyEfzPKPahBFWlZp0NdOlqwFRnj6U=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=OT+t3yy7VUTosRSJKW8kE4u1ZJk5g4e70UJpZPU2wmyKWYP2OHWADI0I6n6ChQIl3 RxfiMBnn6NxQuJ69PRKxndGzoulzDcCcmFQuzSH8JuGGTXDD/1wG6jArRBP7GtpHXp 9um81b4VaWDfPxBgTElRPSt2wOOAu44quPQky5Fo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BB29360246 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sricharan@codeaurora.org Subject: Re: [v5,08/13] ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data To: Sven Eckelmann Cc: robh+dt@kernel.org, robh@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, andy.gross@linaro.org, david.brown@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, sboyd@codeaurora.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, absahu@codeaurora.org, marc.zyngier@arm.com, richardcochran@gmail.com References: <1521800336-19266-9-git-send-email-sricharan@codeaurora.org> <1724020.V9x0kZZp2B@bentobox> From: Sricharan R Message-ID: <4e687302-6c42-315b-e76d-2274131da3a0@codeaurora.org> Date: Wed, 18 Apr 2018 12:42:18 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1724020.V9x0kZZp2B@bentobox> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sven, On 4/18/2018 12:29 PM, Sven Eckelmann wrote: > On Freitag, 23. M?rz 2018 15:48:51 CEST Sricharan R wrote: >> Add the common data for all dk07 based boards. >> >> Reviewed-by: Abhishek Sahu >> Signed-off-by: Sricharan R >> --- >> arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi | 69 +++++++++++++++++++++++++++ >> 1 file changed, 69 insertions(+) >> create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi > > The no-map reserved-memory for tz and smem are missing. Linux doesn't have > control over these regions and they are placed in the middle of the ram before > Linux even starts. And u-boot is also not adding these ranges automatically. > > reserved-memory { > #address-cells = <0x1>; > #size-cells = <0x1>; > ranges; > > smem@87e00000 { > reg = <0x87e00000 0x080000>; > no-map; > }; > > tz@87e80000 { > reg = <0x87e80000 0x180000>; > no-map; > }; > }; > > This can either (depending on HW/SW configuration) lead to a failed boot [1] > or to runtime crashes like: > > root@OpenWrt:/# /tmp/memory-allocator-test > main 0 > [ 571.758058] Unhandled fault: imprecise external abort (0xc06) at 0x01715ff8 > [ 571.758099] pgd = cebec000 > [ 571.763826] [01715ff8] *pgd=8e7fa835, *pte=87e7f75f, *ppte=87e7fc7f > Bus error > > I would not know how to disable QSEE on these boards and thus would assume > that it should be part of this dtsi. As we discussed offline, i agree that the smem and tz reserved memory nodes need to be added. It still boots today without that, but would abort when that memory region is allocated and written. I will add the reserved-memory node for that in V6 along with other comments. Regards, Sricharan -- "QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation