From patchwork Mon Sep 28 00:46:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1372212 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=d/z0LaDu; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C03lf3NPNz9sSs for ; Mon, 28 Sep 2020 10:47:58 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5732582387; Mon, 28 Sep 2020 02:46:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="d/z0LaDu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 48BC482371; Mon, 28 Sep 2020 02:46:41 +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.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) (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 9734B82355 for ; Mon, 28 Sep 2020 02:46:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x343.google.com with SMTP id 95so7976576ota.13 for ; Sun, 27 Sep 2020 17:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sukUlO54w6QgUCvG2/RmpyTEjV1R/5jnCjXG/olJqKQ=; b=d/z0LaDuV56vvJUcmF5+faJQqY5NGCkjJxISNs38XfHqdmVfjInXOFGHTM3YzBCZ/r uga2SlBWDbQauMIvSEIJYOXVuqOYe3mU/H5akunXO4h4hMATikYkYItU7t/6m1mSx7+g MyIdzvNKMwDanG8SQLmJM2L/sDrqvsjurqzjk= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=sukUlO54w6QgUCvG2/RmpyTEjV1R/5jnCjXG/olJqKQ=; b=Zkbosag8wE6vO7qYzm44Rvq3V2XN0OPWA46t5WX+nlEuPmbAjJ4LiPHTtj90odVO45 s4rNorY1MHb8GJGckk8WWMS35Imx/g4UaCDWjH62kH5e+d+TrW3SzJY5ehTaD+ZhkHv6 9rQ7c36EEixWEtYvKA8ihhBt9QFl33nCe6p8mVwOEjf0uZUPCzt5cewD769OB6e/K/5j QktPEFdc79Bs1PNhvig0qxhgp/PP3Je/4JvDHqFvV2loAinK3z1wP35zfTmUUX+Gm5a6 tqkAuSSt187JYrT1IaGChhC3yqwd56wexTR45IRvPFSbK19AGXSMqvpoUgYfTbvwWlek G65A== X-Gm-Message-State: AOAM533w2+Cd02hDlzmcO+AonvURW+stciaXTgiQFzP1QPRQ56wONPgl p7ZO2/rhFt+AHHj16YDws860FZEsocm7A++6 X-Google-Smtp-Source: ABdhPJxS7k17Bx3jaV0hIs/24Ku/f6aBQGaIQOXASzW0bULM/T+42SGmxkcht6PcvEJzK4A5xuYGjw== X-Received: by 2002:a05:6830:1e8c:: with SMTP id n12mr7523431otr.17.1601253996375; Sun, 27 Sep 2020 17:46:36 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id t7sm1790995ooq.0.2020.09.27.17.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 17:46:36 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Bin Meng , Masahiro Yamada , Ovidiu Panait , Patrick Delaunay , Stefan Roese , Stephen Warren Subject: [PATCH 06/12] bloblist: Place on a 4KB boundary Date: Sun, 27 Sep 2020 18:46:18 -0600 Message-Id: <20200928004624.1652803-7-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog In-Reply-To: <20200928004624.1652803-1-sjg@chromium.org> References: <20200928004624.1652803-1-sjg@chromium.org> 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.102.3 at phobos.denx.de X-Virus-Status: Clean It is much easier to read the bloblist addresses if it starts on a 4KB boundary. Update it to align it accordingly. Signed-off-by: Simon Glass --- common/board_f.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 62473abf793..e99277d7e88 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -573,7 +573,9 @@ static int reserve_stacks(void) static int reserve_bloblist(void) { #ifdef CONFIG_BLOBLIST - gd->start_addr_sp = reserve_stack_aligned(CONFIG_BLOBLIST_SIZE); + /* Align to a 4KB boundary for easier reading of addresses */ + gd->start_addr_sp = ALIGN_DOWN(gd->start_addr_sp - CONFIG_BLOBLIST_SIZE, + 0x1000); gd->new_bloblist = map_sysmem(gd->start_addr_sp, CONFIG_BLOBLIST_SIZE); #endif