Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp292840pxu; Tue, 1 Dec 2020 11:23:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJztnO0vaKEHF4xFaYeP7DvtPz257se4XLOUl2iGh3n/RpiYyBT2vnGX1WVFrLyFfGPprkht X-Received: by 2002:a17:906:b309:: with SMTP id n9mr4371457ejz.365.1606850601384; Tue, 01 Dec 2020 11:23:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606850601; cv=none; d=google.com; s=arc-20160816; b=whJVNllvUSQJQP7/0/u+kkfNz7zk3QJB1xLr9Q9R7oMzY6c9n6Kz6l+AofjjA/Kms+ c7Ccv+jv/cvObkqnY5SzihrIQyyD3Peql2Ih9kr5RinImfCAslu1EvLglUu8HFZ7eqfV IF01XRhejusbQ8tb/wLuGvCzJGq5mvn3E498U+et5WrPCVBmodRCZQaUCEMY8ODp0GyF +YKr7R68IDB+iG5v7ussahH0F8JD6WvluBRrWKUAn3j1h5UYEzAUBKr5ZIMrpRwRQFd7 g7iaVIVVxa2A3ylJNE8/r+ASU2TqYBPpM+qHF8rjVmQvwjAmuJ9hLOzkb1WNl+zUQZjL xEuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=4HBnddxeG8nQ7Q4yBAmvFQXRedJfPDrjBB+3fGH8iF4=; b=eGvd3+ZQhf8YZyrI7VbfpyIwBgcmerVG4RkRLedJeMM3AgTZAOW+un9v3kEo0p805t mSI8FpSveHCfZKdJUZZBDFeT8Qak4ZXg51GXHid5mICVALTto17pbeMKJm5PU2urBexb Pwo45TyT8ha24GR48P9SEtRSij5giVVNJ2zoJ4MgdZ9Mjl0dDQIya00Gr5KMmHji3dkv 9fpHl/pkZfoXzS54hh5fAt8RzoDphzaWsk5eXbe2c1ED+Hc4TjjY3aLMAFwyClnJ2y5v lEHizs2wgRQjkp5uRwhz0hT1dE6ks1ttUTXyb5oqrvqsLf2bKiwD1bk+EqhbnKtfzntN 1sTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s10si402753ejb.154.2020.12.01.11.22.57; Tue, 01 Dec 2020 11:23:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730194AbgLATUA (ORCPT + 99 others); Tue, 1 Dec 2020 14:20:00 -0500 Received: from mail-pf1-f180.google.com ([209.85.210.180]:43996 "EHLO mail-pf1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbgLATT7 (ORCPT ); Tue, 1 Dec 2020 14:19:59 -0500 Received: by mail-pf1-f180.google.com with SMTP id o9so1716058pfd.10; Tue, 01 Dec 2020 11:19:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4HBnddxeG8nQ7Q4yBAmvFQXRedJfPDrjBB+3fGH8iF4=; b=kkPwZ2tjBh7fcVYKhlE/UhonvMgk5bvjd4c5HK85GSFPhcVJNUy3XOvuiOBnWBP+hc fVfCw3tKEszzfP45VfV749jJvxg1I2BpoloMS/VefE4uPo9BHOz6W6v1BW3+AKcxhg57 wGH7mu9ZSPbNNe4dxSrKKKaqfNKwei/428GOmxUc3VYLLdi+WSPT58igKkK4ydMbAZMl azxJNy+0Y13H+G1blK+l0a93lMcPP7Jf6fRXkCsMkeq9wVhwuk0u7dOicBQvOiekcgqY znHDFA3xttSnTFVY/sgv+JYVoCWoZbT+mTi59tM6tXQAY5i7qRT43FTcItf6ZXm1+d4X DXvA== X-Gm-Message-State: AOAM530BP3mkWThXp2kB448i5Crz3BVt1qNXO6AHcvMZJ3wvU8v/Pkn/ fdlEVzXtdA/Dy3qvyE0fcIU= X-Received: by 2002:a62:8685:0:b029:197:f766:b135 with SMTP id x127-20020a6286850000b0290197f766b135mr4023312pfd.0.1606850358843; Tue, 01 Dec 2020 11:19:18 -0800 (PST) Received: from localhost ([2601:647:5b00:1162:1ac0:17a6:4cc6:d1ef]) by smtp.gmail.com with ESMTPSA id a20sm337747pgg.89.2020.12.01.11.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 11:19:17 -0800 (PST) Date: Tue, 1 Dec 2020 11:19:16 -0800 From: Moritz Fischer To: Richard Gong Cc: Moritz Fischer , gregkh@linuxfoundation.org, trix@redhat.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, dinguyen@kernel.org, sridhar.rajagopal@intel.com, richard.gong@intel.com Subject: Re: [PATCHv2 1/5] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag Message-ID: References: <1605709753-7800-1-git-send-email-richard.gong@linux.intel.com> <1605709753-7800-2-git-send-email-richard.gong@linux.intel.com> <771ba4f4-59e1-74b0-ba55-3f65914e2bc7@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, On Tue, Dec 01, 2020 at 01:30:16PM -0600, Richard Gong wrote: > > Can U-Boot determine whether it's the new or old flow? Can you set a > > different compatible value in your device-tree, to disambiguate > > behaviors? > > > > The boot flow is determined by defconfig during compilation, which means > each boot flow will have its own defconfig. > > SDM firmware loads SPL into OCRAM, then SPL will load the apporiate ATF or > U-boot into the DRAM according to the setting of CONFIG_SPL_ATF. If > CONFIG_SPL_ATF=y, SPL loads ATF and then jumps to ATF. ATF setups EL3 > environment and initialize the PSCI services. > > CONFIG_SPL_ATF is not set for the old boot flow. So you know at (U-Boot) build time? Can you just pass a different DT to the kernel in that case? - Moritz