Message ID | 20230120071719.623661-2-sumit.garg@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp637686pvb; Thu, 19 Jan 2023 23:17:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXuLuweGn6PzlbB68WgJflJk8ZcZtdGesMHkyzNkdbx+HigwYd5/Z1j3Ig8JpcL6ZKMQyq98 X-Received: by 2002:a05:6808:308e:b0:363:a565:e392 with SMTP id bl14-20020a056808308e00b00363a565e392mr8290423oib.4.1674199079564; Thu, 19 Jan 2023 23:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674199079; cv=none; d=google.com; s=arc-20160816; b=GKLMImil+cbV7pBkliBKD4eLAz5KxL8mABctzCK2n7iPKXqu5pCtzC95CfpAcG5v1X /Ky/DqeLB14ykakls7YMIaOK6zUUr0AEObEdY5W6TPVuPyTxJ8BVsvGtVJuDL7TsmggO +5FsQMdPJEsfw6v0ith+EfFJeXb0nquKVSlphXWphezt6cbzWnK3qFRRwW47msd/dGmx pzzAbiod0WVoo31o8vkBUc20zXe1C9OySzWCDTt4o87whLWxxBqLoPsVnJomONQ5DQ3P OX87E/9byzxptVW9KrFOjLDr11CG7T3DPdp7a6uDBvHVRdNU6rwNRf4VCq9m7ZdsILuC jT6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=c6KJR1dXWQfbUVvWqz3TDKFjYpVTl3dj4ftXimlQA7Q=; b=qOwFnGPMAOVo4F4TND0+ubjc1O8f2UDqO8GkPpnDqd+aTBQgX9tg55ddeAuF+YcP4t QYin/Bri2PleCBBgUlCxaFiOiCaP6sGji+MHPAtuPE8r+aN1Kv/pp6H0Y5mFv/vUeVGU WZX4O8XEstyYgNjO310Drti+rcQFSyfUKucjRPjlxbYQne6wlzYKITgtqtJQa+LuzdbJ /G85Uas2fOqqvVokyTr+zIxTv8VF1Oig8m6SHS1J0xoISPujCW4F+qhz+ilI1kivGBpc j2YL7djf2ac3gE+wkU7oQLIp3mT4VfcIk8UBcOH8s/CeeaNrkeGUtGfa5NsmwpDU5DNI ufpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eKNUQ56V; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id cg10-20020a056830630a00b00666a50cccd0si41462664otb.238.2023.01.19.23.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 23:17:59 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eKNUQ56V; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 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 <u-boot@lists.denx.de>; 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 <u-boot@lists.denx.de>; 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-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 <sumit.garg@linaro.org> 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 <sumit.garg@linaro.org> 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
QCS404: Add ethernet and I2C drivers
|
expand
|
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 }, {
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 <sumit.garg@linaro.org> --- arch/arm/mach-snapdragon/sysmap-qcs404.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)