From patchwork Mon Aug 23 02:43:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying-Chun Liu X-Patchwork-Id: 501534 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp1787724jab; Sun, 22 Aug 2021 19:43:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEaBOYsYmibnXlbhgKKw+ReLHqE8swN+XGmWaP7gsshR3XL3dnPBjqoNAzKinccV0ZHq7k X-Received: by 2002:a17:907:9602:: with SMTP id gb2mr34032166ejc.119.1629686608929; Sun, 22 Aug 2021 19:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629686608; cv=none; d=google.com; s=arc-20160816; b=XChFcCsJc2UAbHQ33aZxb9FCpm/ONCmEFbBXpggkv7doXRCkSd2IRrfsOMa0oB4psT 9v9kVZ05WHEFfL9Kdg9zy8X89RJBsw2/81BiAiErRaLgtH6Pidta9uOJi0CsVKqfi3CT J2Ces4w/ZqjBp45Jc0UA8DMTyHnCS7S3AuHJYOH09pxSAfPf6Gd8X1WzNfdZpnJnrnf8 z16vkkFUYC0rN9rM5Q9tW7yO71Oi29Yf2GV8x4OI3qM4kOI9IFtjbM+ZWZ2zMwnPKW4J ZMCND5l4erb3cBIwoKvB9BATzTkQwd4VVQZKcyv7UWksJmRnWtpO/Eu6wbJyymgT992R QeIA== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=hjoOxJof9Hct6k2WDhnPNeuwJdd551k+a/1kkQpmhQw=; b=TOi315q0SgJONKVxrJIxjBAe928nAsidEma57dl/i4equFLtXOVyrIgVZr7fjWMGmQ TH35qX/YnMKnug+q8kkx0DXPedqnAovgAORfgPVIUAyVq8FrzVTGPnv/nDeK33eiq0qC pSFtpnFgSWGGxoMuWLFIVdvmy0PcfgfJtuX8cvglR5A3aJbme11hd2kcktXXcUu56JSe 0eHehJTHpCcypHHBooMGy23ehX6N7CEaxNPEAU0INUAOLAD7jGAg+hdQn72Tk4YSyJ9J lAF2/Ve7WvelXbUWu1z4yGbm3nmYA3TosG7aIhw8mdrZjEMxncIhCYZjbQ0nF09TggsI iN6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iadJxCCI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id n21si13661459edy.166.2021.08.22.19.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 19:43:28 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=iadJxCCI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 65F8B82E8E; Mon, 23 Aug 2021 04:43:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="iadJxCCI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C57ED82E8E; Mon, 23 Aug 2021 04:43:21 +0200 (CEST) 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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (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 A6864821F0 for ; Mon, 23 Aug 2021 04:43:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=grandpaul@gmail.com Received: by mail-pf1-x434.google.com with SMTP id x16so14071241pfh.2 for ; Sun, 22 Aug 2021 19:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hjoOxJof9Hct6k2WDhnPNeuwJdd551k+a/1kkQpmhQw=; b=iadJxCCIK8zwiZiD64sP7hzzbRAcRrXSXurSAuC3L1SbXp0jwha6X4vIul65dPb2KI 2mBi81nCu6pjLN5sAItvJB2kmQAncJGA4KGDc8KhMYsuELiW8V1wH46AM5RUapLZW5lr ok5AS17x9fovhUCCr1KMPe5Th6tmZAkAFrKZyNGyFsP8qERbf+KDS/SjeO6vi66EaOiC 7GP1dsfee7TZxO+WuJ16XeFoU7FKcLruH7wNCXzqntOJ2/fQO/bqKD4Ff5Zk1Z5UHpZa mQbF11f975LZtE2buSnbud+rQLLsMfxwa7ffRjGu73/IsvCwleNdUl5l4PQT9u7GmCS2 dfgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hjoOxJof9Hct6k2WDhnPNeuwJdd551k+a/1kkQpmhQw=; b=TnEL4CDGiBKg6oKErv5oNmjUgywBZp6FMPG7R0IdRRKFjRO2yFjjuXiOZS7vAezztQ e5sUQV3aecDvflWOliW0Pvf9D9qdA9UavoyFvySkd3s4UGLQrO/OGrmheJj8lY3x/Wif QAYX5nqPgNZ1sWyIEyUwFL0XWsFUhnyxXVGBNvRt7Ija2ySvU0GIsNVPJzwZ4kff0j1f yPEu1cjNCgryL6TqdDPK7sC4QlQpOYEAmK6PiG3CwxkFLusJScJicvApxVDyaq4Y6tJL 0iPX4btD1b86fII/vcml/SRZjUkjGv9miORMhPj8uWpg0KuVXCJYLHUae0QB69a/SVSQ 8Vmg== X-Gm-Message-State: AOAM533xR/daZwy++xpx0o82LlMvjiyEk5FxOytTQfWiVDvPM6k2PX6o MmwFauj0cyyzVeDH1+FswL/loydEb2E= X-Received: by 2002:a63:f241:: with SMTP id d1mr29584751pgk.424.1629686596544; Sun, 22 Aug 2021 19:43:16 -0700 (PDT) Received: from localhost (host-111-184-129-17.dynamic.kbtelecom.net. [111.184.129.17]) by smtp.gmail.com with ESMTPSA id q13sm17445378pjq.10.2021.08.22.19.43.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 19:43:16 -0700 (PDT) From: Ying-Chun Liu To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" Subject: [PATCH 0/1] imx8m: Restrict usable memory based on rom_pointer[0] Date: Mon, 23 Aug 2021 10:43:05 +0800 Message-Id: <20210823024306.2046708-1-grandpaul@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean From: "Ying-Chun Liu (PaulLiu)" When TEE is loaded, we need to restrict the memory usage based on rom_pointer[0] This patch fixes a regression on Compulab IoT gate imx8 hang when OPTEE runs. Ying-Chun Liu (PaulLiu) (1): imx8m: Restrict usable memory based on rom_pointer[0] arch/arm/mach-imx/imx8m/soc.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- 2.32.0