From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 221DCC48BD1 for ; Fri, 11 Jun 2021 13:56:42 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4943D61181 for ; Fri, 11 Jun 2021 13:56:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4943D61181 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 999468031F; Fri, 11 Jun 2021 15:56:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com 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=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="pw46uuDH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 36769801DE; Fri, 11 Jun 2021 15:56:37 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on20604.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eab::604]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 26446801DE for ; Fri, 11 Jun 2021 15:56:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michals@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oVIOvcuQJ6/hVL7Pzxro/OnyKCYvWptINg9wUMVESK1BOk0Pxxt6eEReHQd8IE6o/mUoV2Nxvt+h7aZi75K5WXUhMmIo0LR2ms7PUkNFcwjbM17CYE2ERJEITjShJP5NhcoeRvUDuyuDJhKiMy3svak365ZkisKNAOBZ1ffwm4r3j6vvCRraMPBwx+UHgrM8adko2xiI+RjFdxtWmd7soFnIZo382bxGpJb94GyuFPSBU7itHKoaDv5AX+AnrIdmneyKLPlQ2yAr2TM3OXwBiscBo6pUk6gc6FNg7omt8xRWwZE4cDPcOoQyxxvOPaWF2bddCQfalxyNbJe+OCKXag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ds5WBh9jYvhEnpeP1D2usiAvWFWhJVitqli5JEiKp8M=; b=HC6cneC/C7ALjb+fE+A2jVfI6CuU6wUiNzFU6V1fjrROH5eeEd2Ssv5+6g5FkQbqug+fZPjBqHeCIo+ncsZ2nVrFZKcWsoqDEXB89cDdYKEezFbvtj3mjtDOJCePAVj6ahFBSSu1uVxCjP8wu0so26tjj1laHTXM1P9F44jVI9SHF9jXON6Nbq/y8FZPVzMgRruMHbZ+m7FDEh4xD8iDoXhtkWBRMY0A7d+90802NCg/Wj4RnPxCQeGpIbmoLiz9geDy2x8xFZb1/nCL5hFDXT0xMLxaDjerqDh2Va6r7hfFSe8Bu9w9rVG0SqT/hotk1QXWrYpNI++G5EE1gieSmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=chromium.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ds5WBh9jYvhEnpeP1D2usiAvWFWhJVitqli5JEiKp8M=; b=pw46uuDHADU+zqUNT7pBVhN0hHB+EqYuNBB7gL9S9KdlyfuSQPu+lDFPs8dI7Htn4e/Aitvbx+E+AgfrlpDq0LEWLTNZl6d89akICLl6Vr+0qay7IZ2Cq25Fnqufl1B/a1v7MwABMzRk8QkQnwhzSdVhP3pTx+S6CexkyZq3bOQ= Received: from BN9PR03CA0972.namprd03.prod.outlook.com (2603:10b6:408:109::17) by BYAPR02MB4984.namprd02.prod.outlook.com (2603:10b6:a03:65::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Fri, 11 Jun 2021 13:56:26 +0000 Received: from BN1NAM02FT035.eop-nam02.prod.protection.outlook.com (2603:10b6:408:109:cafe::ff) by BN9PR03CA0972.outlook.office365.com (2603:10b6:408:109::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 13:56:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; chromium.org; dkim=none (message not signed) header.d=none;chromium.org; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT035.mail.protection.outlook.com (10.13.2.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 13:56:26 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 06:56:25 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 11 Jun 2021 06:56:25 -0700 Envelope-to: sjg@chromium.org, u-boot@lists.denx.de Received: from [172.30.17.109] (port=41712) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lrhe4-0004QE-RI; Fri, 11 Jun 2021 06:56:25 -0700 To: U-Boot Mailing List , Simon Glass From: Michal Simek Subject: DTB_RESELECT/MULTI DTB with SPL flow Message-ID: <01397dc0-b124-ee64-ee42-d7ac9900a0d8@xilinx.com> Date: Fri, 11 Jun 2021 15:56:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0688aaa8-f4e2-4ec3-078f-08d92ce0b47b X-MS-TrafficTypeDiagnostic: BYAPR02MB4984: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dNd3T2fR0laRTeVwHQwka9qId+P2sgVxzDT1QK+uYMw+H1QuQ8A0fgdSGTjDzTyvDrrV8v5ohizh0Prez3mw/3ct2kp6dKnCKhBDEJaWKXVzynRYCqRt1OJz0YW2RPzIRcnFzTS37vMJW/X3030mLFDeRtJIfkXP2sDN7i0XO60q2p3rJK5pynO6hmMPNBH6yP6DKAVYEW8tVBGiLsKdFS9ut8B5Deyvo0MDt2CFqgQHMYXOPDq4MuXQcmllKcC4aIAt/QOIAPEzzi703wkGmgL8lWuZUMTLv7GctF1nlDvHPbQ8Z/ORxG2oh2hYa896D/m+cVTxiSFa+HiyyM5OEM3RDX3QH5CLi9jW66drKGk8OXZesL53J96uG6X9tRk5wETzc6IsLZ6g6K4LvGIa3fUMs7n+g89H7sSP5sgebPijnXUQYHAEbRRjLEqabO3BvKYlyug1b7O8ztT4sck6B0CPwS6lhn2mtx0Z9C1xGRxkDHNyxE4beTiwaLPpwW9AFG8RbAdsldOr6Q/nkRzuEviZghMYihIyvx9r1E9cku+MYtNmTLUt1j5XAN4fYp/kFroQLPgf3BOh7wX9tNWUyJWCRGKyp858+zmz5HnFMQ2DVBTFryU+i330YSIV3gvHtWvHGWN/o8qiz27odTxU5mwJ/FlDFU5BS2CkoVVDwpbbgAUoa3VOpD+OP/WBZ3QZiWoIRvv01UOrn7Gkm1mgBA== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(376002)(39860400002)(396003)(136003)(346002)(36840700001)(46966006)(316002)(356005)(83380400001)(4744005)(70206006)(2906002)(82740400003)(82310400003)(5660300002)(36860700001)(70586007)(7636003)(36906005)(426003)(478600001)(2616005)(110136005)(31686004)(186003)(8936002)(31696002)(9786002)(36756003)(8676002)(26005)(44832011)(336012)(47076005)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 13:56:26.0414 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0688aaa8-f4e2-4ec3-078f-08d92ce0b47b X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT035.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB4984 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 Hi, I am just trying to wrap my head around DTB_RESELECT feature. ZynqMP is using u-boot.itb which is u-boot/atf + a lot of DT files. As of now SPL should pick the right one load it predefined location which U-Boot proper pickup. Others DTBs are not loaded at all. This is working fine and I expect it should work like this even with DTB_RESELECT enabled because you need to have base DTB for being able to do platform detection. I have hookup platform detection in embedded_dtb_select and I know which board revision I am running at and struggling how to tell u-boot what to do. What should be the right flow for changing DTB at run time? Where they should be stored? I would expect that I need to have FIT image in memory for all board revisions and u-boot should be calling board_fit_config_name_match() which will decide which DT is correct based on board detection done in embedded_dtb_select(). Thanks, Michal