From patchwork Mon Sep 12 17:05:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 604990 Delivered-To: patch@linaro.org Received: by 2002:a05:6504:2213:b0:1da:4c02:b5e7 with SMTP id z19csp2732012ltw; Mon, 12 Sep 2022 10:05:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR4zaUJ3u4ff5v6Lud39gzBzeeOX7Z4loxuYwahshYqrqc71Yz8f9txTnxIgkUI8uCmpkTp/ X-Received: by 2002:a17:907:2722:b0:77e:d84d:9e09 with SMTP id d2-20020a170907272200b0077ed84d9e09mr2419808ejl.679.1663002328136; Mon, 12 Sep 2022 10:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663002328; cv=none; d=google.com; s=arc-20160816; b=ZblNLW5CEMyM/mfIqNvTZiplCnOeU2Zphkh1EmkgzILhOg29lF00K5LrgGu5NICT1k yaU4gzaJE5xk1ijNo8Zb7PjEPEFle4H2yUuXIkbp9SpX+uPSdlkVPWO58Nqf9qQDL3Zz XPaf6b8R+NPlvmAF2YLdr6q6Q5/196PPuiytGWJjU7T7RJklOWEcxuczDIgy3uc0y38Z hEdpIQtWQeyEM3MF43SbWqL3aMvJwhmut8w13YcTfl7eTVeq2KHeJVv0qi7R5bAbqsx4 0fjBJJTxEoGEzZXrAHDnTxogjPcmO4AJiZnRpRecMzdzuQK9jhOFX8MoGSVMLlv8pFoR BYww== 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=UFYYiDh1AP57Qexw1vPddJ+sDhSUvsk8pYTWEwGO8V0=; b=oTDdZpOm9ahie+yK9vpiXSe/X2Joo9zbsAoGGvTEAlg/dluDIbDUKmVEpeGUA5R2Aa IlknT/D0E0z/OoaNPHV+vSDhpqcj3WYo98ZAaKF25MI6bXAk0E7m9HVOYf4FbPDAOlsP hz428eySVd3jORkGPUQg0NFdLpBDK9pLIOxTYhjk4ZBrk11URFcjao8Pk2R4Nt4nzA90 lQGIjNtft6cTytDWl/YtAww4mD8iKe7GwcDekgO9tg9aL9FnKVntCg/C8HvyCkVVirfn K94+wKgjIZPU176rOpZcTI5dM3CslH7dk3u6wHmhTK5rWxtVxv9/evz1Xd+mCB12gOUX +/Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FRWI85vK; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id x19-20020a1709064bd300b00734be0ce0e5si5400651ejv.311.2022.09.12.10.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 10:05:28 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FRWI85vK; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 5FCD784A71; Mon, 12 Sep 2022 19:05:25 +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="FRWI85vK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5200184A73; Mon, 12 Sep 2022 19:05:24 +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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 D764A84A34 for ; Mon, 12 Sep 2022 19:05:21 +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=jassisinghbrar@gmail.com Received: by mail-io1-xd2f.google.com with SMTP id v128so7470836ioe.12 for ; Mon, 12 Sep 2022 10:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=UFYYiDh1AP57Qexw1vPddJ+sDhSUvsk8pYTWEwGO8V0=; b=FRWI85vKyniM1A3nMf3QsAWtnir4OApJE+i3YCM9yKafYpVnV7rt3jsKGMevCFDzzF hFQ6fHcHR3oJLqXdvI+66wu0VJk72plDlCIWCyonPgKendw5ouauZqX60vGJ2kMso3jx o0mM9DigDfg7f8bwfTM1rR4LnTwPpEUTNfwlA3MDjtIVWHiRal1noyi09OmwggZMJdSB 49hum5YO4HTouV1xGEY4IPGZxZzO8gFVwKqN+E1oBHwVux1d8rzcFaY68it/wdGWGkLI 1LsroqnfiyTQIwJ91CI9D9aV5WGXagniTGvX78AHs8Oe6Pup0XAdk2og0Xi+sbuWDyXd rh/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=UFYYiDh1AP57Qexw1vPddJ+sDhSUvsk8pYTWEwGO8V0=; b=F/AoD/DbQGnBV6DtEi6f9c8h0fUZPItyGMXuRFWJjJWfifBiF8slYPIcQt9scWHPWR VpNaTZWhoH1lMYH4RBoORErJ+ApmxWIo+NYtSRBxw57t4xGzoZ3EUFLvYQhe4RFNkAsl PO3UqP8xKOCB+lGWY30678we4AUrfX05kXYDIGCtpOUpt2HehkuHL93kaTT5JAqvOJpQ kgqiJL4YuwH65J1idHgLmFO8xGyVbVM87MFPvu2wkjI9ToV7kvuMe3Ocs7xM3EZa81md rPpbOYmyA/gWAHCEAgyelf/8N6+YvGw/DQKmC/Co8+CiePN0XeopmTqZN72fvzqWnPYv LNmw== X-Gm-Message-State: ACgBeo03aLx3XoNxk8Nc27Vh/+6Qf/f3iDQwUoac5sHmz6ntcHlIUDVP jooiHD5EnBSlPFOQ2LaoXwY= X-Received: by 2002:a05:6602:2a43:b0:689:f95d:330b with SMTP id k3-20020a0566022a4300b00689f95d330bmr11799662iov.128.1663002319474; Mon, 12 Sep 2022 10:05:19 -0700 (PDT) Received: from localhost.localdomain (wnpgmb0311w-ds01-45-179-115.dynamic.bellmts.net. [206.45.179.115]) by smtp.gmail.com with ESMTPSA id f5-20020a056638112500b003495b85a3b9sm4004995jar.178.2022.09.12.10.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 10:05:18 -0700 (PDT) From: jassisinghbrar@gmail.com To: trini@konsulko.com, u-boot@lists.denx.de Cc: kojima.masahisa@socionext.com, ilias.apalodimas@linaro.org, Jassi Brar Subject: [PATCH 1/2] board: developerbox: use identity mapping for >4GB Date: Mon, 12 Sep 2022 12:05:15 -0500 Message-Id: <20220912170515.718989-1-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 From: Jassi Brar Identity-map the second and later memory banks which are located >4GB. Signed-off-by: Jassi Brar --- board/socionext/developerbox/developerbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/socionext/developerbox/developerbox.c b/board/socionext/developerbox/developerbox.c index 9552bfcdc3..b680f77d80 100644 --- a/board/socionext/developerbox/developerbox.c +++ b/board/socionext/developerbox/developerbox.c @@ -127,11 +127,11 @@ int dram_init(void) ri = DDR_REGION_INDEX(i); mem_map[ri].phys = ent[i].base; mem_map[ri].size = ent[i].size; + mem_map[ri].virt = mem_map[ri].phys; if (i == 0) continue; mr = &mem_map[DDR_REGION_INDEX(0)]; - mem_map[ri].virt = mr->virt + mr->size; mem_map[ri].attrs = mr->attrs; }