Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E88DC05027 for ; Fri, 20 Jan 2023 07:17:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7DFF885694; Fri, 20 Jan 2023 08:17:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="eKNUQ56V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8BF0785695; Fri, 20 Jan 2023 08:17:44 +0100 (CET) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 56DB185694 for ; Fri, 20 Jan 2023 08:17:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sumit.garg@linaro.org Received: by mail-pg1-x535.google.com with SMTP id b6so3446475pgi.7 for ; Thu, 19 Jan 2023 23:17:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=c6KJR1dXWQfbUVvWqz3TDKFjYpVTl3dj4ftXimlQA7Q=; b=eKNUQ56VgwJws/sYZKZfFSMLdwVpB0kiJc7a4CIZ+M+Lk09buQOYhHSwexJgN1wgOZ bTPWxYLrs87kcEnpZS9esHB0AM9OvDQR4DF9QBzN0LRDERNHvOC6evX7NENr9Z8z7pCA KvoAoDRlfWsvk9baSMmqnLYb9so7Mg46k6437tTNCZg06N0FI4Bo4noXMSa/F2rrEm8t VWbGcS+3VU7161mGs0mLzi68B2q5hSEBHHzu+RDRVfFm/C0iuVNg6ICMe/lKznuXtd1J vtCYik+yEUKlv+EVkFhIcFfgHqWesUdEXa6Cm01EuYo4lGqJRq37lzRZysB04meiDKnj 4xog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c6KJR1dXWQfbUVvWqz3TDKFjYpVTl3dj4ftXimlQA7Q=; b=GoN7rP+Ik8IwcKApQVZpABOLGJOT+phWQDRFER2+Dzt3WDCBOKETxRgH4+51ET11yZ zvYd0tFcTvxuZuEAoxPdrPMqoZeAKiIE36q1frKEI4q8dyL+EKSPKcTs//egv4yPShxp ObhaIuR/KHIsHVuyvB5ugha0ubHasoWPWSkJYiM/9eLBK1NHkQml09Fm84Xp4ImJVZfn ZyVOkAv04M2NJ93sobezaCA+R+vGYj+B95cDo0Z1WTMFLgVGK5Ytbm4sDVPS45drNZXJ WVh2kJAj1S+vY2IzapbDSf65ThMnAxs803oOV58L2JKbMBwQf13jK2Y/i+NjDtF/nTDb 0I9Q== X-Gm-Message-State: AFqh2krChMzQCTRHv2azps5YVYoI0IkNVC+gLgammc07JaNrumKsClUl shP5cmAeBpVL0jLFj5WHDBUHQza2yh4/oliW X-Google-Smtp-Source: AMrXdXsSZAbyiZE6sIWbYqjdrtmhqgW+NUY1s00BJt0tom7ITLB5XUGfNtCsRY8aDYRkdY79JqzQwg== X-Received: by 2002:a05:6a00:3495:b0:58d:d7b6:cf58 with SMTP id cp21-20020a056a00349500b0058dd7b6cf58mr13699202pfb.7.1674199059329; Thu, 19 Jan 2023 23:17:39 -0800 (PST) Received: from sumit-X1.. ([223.178.212.120]) by smtp.gmail.com with ESMTPSA id x15-20020aa7956f000000b0058bacd6c4e8sm9797586pfq.207.2023.01.19.23.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 23:17:38 -0800 (PST) From: Sumit Garg To: u-boot@lists.denx.de Cc: rfried.dev@gmail.com, hs@denx.de, joe.hershberger@ni.com, stephan@gerhold.net, mworsfold@impinj.com, lgillham@impinj.com, jbrennan@impinj.com, nicolas.dechesne@linaro.org, vinod.koul@linaro.org, daniel.thompson@linaro.org, Sumit Garg Subject: [PATCH 01/14] qcs404: sysmap: Don't map reserved memory ranges Date: Fri, 20 Jan 2023 12:47:06 +0530 Message-Id: <20230120071719.623661-2-sumit.garg@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230120071719.623661-1-sumit.garg@linaro.org> References: <20230120071719.623661-1-sumit.garg@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Currently u-boot maps whole of 1G RAM but there reserved memory ranges on QCS404 which are reserved for TrustZone, various firmware components etc. Any access to these reserved memory ranges causes a bus hang issue. So disable mapping for reserved memory ranges in u-boot. Signed-off-by: Sumit Garg --- arch/arm/mach-snapdragon/sysmap-qcs404.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-snapdragon/sysmap-qcs404.c b/arch/arm/mach-snapdragon/sysmap-qcs404.c index b7409031a0..64ca4adf1b 100644 --- a/arch/arm/mach-snapdragon/sysmap-qcs404.c +++ b/arch/arm/mach-snapdragon/sysmap-qcs404.c @@ -19,7 +19,19 @@ static struct mm_region qcs404_mem_map[] = { }, { .virt = 0x80000000UL, /* DDR */ .phys = 0x80000000UL, /* DDR */ - .size = 0x40000000UL, + .size = 0x05900000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_INNER_SHARE + }, { + .virt = 0x89600000UL, /* DDR */ + .phys = 0x89600000UL, /* DDR */ + .size = 0x162000000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_INNER_SHARE + }, { + .virt = 0xa0000000UL, /* DDR */ + .phys = 0xa0000000UL, /* DDR */ + .size = 0x20000000UL, .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_INNER_SHARE }, { -- 2.34.1