Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3100782pxb; Mon, 16 Nov 2020 05:57:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3qhY+GL8sB8OeK0npWpTL2cEJRnuKJZ56CoFljISWQihwjIBetWlANEIZmWA3V/UTiGsT X-Received: by 2002:a17:906:bc46:: with SMTP id s6mr14370663ejv.456.1605535056731; Mon, 16 Nov 2020 05:57:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605535056; cv=none; d=google.com; s=arc-20160816; b=X/lFpw94vXgdK5RLLwVohXRXd54wNFJYVSy3hagYe7vagDIVTnnTPq3dNyoow5mvJw VjSSfonQVEpaKhkNaQc4tPomITPzcGQCP+4K7tfY2Elfm1ixmpnCSQCm82nNi/NFrw8r SZ30TGNvOTcLIs+d94uHxcLRl/pYj4VGZ0vh+ZtT731PSavN0uVvP0uj3X9awYbj2PwH 5+AQrS7Vb5s21/29fDGnl7obmfs+F0UtlGnoBsRE7zkuNrcBRA+6/lczI59GHUT4SVHF N2uBLFLmWtTX5mgSdTTNbubzJSE8PutUIblR1UkEyALxk6Qt/TQMFo+6oLXKenPKLKHV F/DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=x+wUXmUvUyZ/jscgnNriH8qO2i3lvyunp2KnyshVi1I=; b=c7V9Td/5r8MwqDaEBBRWrGk5xMCosZ5mriHrrfx+w3pAcUIXTtys9v0D2xSdB/QSkT DazpZb1Kb+4FqX8ZRoLuZ+fkAeeG8KpwMCKqpUcUMTOkkBIRtjX4nL/Es1vQM2oGl51e 9IwGI43hzanToEv0IpNbQHeFJsR2Le+HBwdCP1advqlsml7coDyoU2v5I9mMdfSeKU+g xgj0eXxFb1cUmwbnZ1qv+f0hYYZSzA7hpj1DWqMNgQ6GLP/hzXy/IXiq13w7DwslMwuR YMfG0Zeo2uY2clB3IjgMC3ZBMUo8Zi8i8NTfP8lu8bC/wDKPGvGROpa13t/fx2U7B0GP TCEw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d59si12062830edd.519.2020.11.16.05.57.13; Mon, 16 Nov 2020 05:57:36 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729694AbgKPNxz (ORCPT + 99 others); Mon, 16 Nov 2020 08:53:55 -0500 Received: from mga14.intel.com ([192.55.52.115]:39479 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729691AbgKPNxw (ORCPT ); Mon, 16 Nov 2020 08:53:52 -0500 IronPort-SDR: B/OAyuzbBNHcibXMX97uqH1SaJHmueaMKH8ggmLXfwwuCEbzYiaY6mwoyuF9KZA5lrdQmX7Bck f2qAJuur3+/A== X-IronPort-AV: E=McAfee;i="6000,8403,9806"; a="169962075" X-IronPort-AV: E=Sophos;i="5.77,482,1596524400"; d="scan'208";a="169962075" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2020 05:53:51 -0800 IronPort-SDR: 5El4P6fk4qn62fdct5ZkAD9m3mIBukH55ffkyku/l6W7g0s0kZqoHjkui45EcQj23D1P63zQsy SlGDh7n75gaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,482,1596524400"; d="scan'208";a="531852296" Received: from marshy.an.intel.com (HELO [10.122.105.143]) ([10.122.105.143]) by fmsmga006.fm.intel.com with ESMTP; 16 Nov 2020 05:53:51 -0800 Subject: Re: [PATCHv1 3/4] dt-bindings: fpga: add authenticate-fpga-config property To: Xu Yilun , Moritz Fischer Cc: trix@redhat.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, dinguyen@kernel.org, sridhar.rajagopal@intel.com, Richard Gong References: <1605204403-6663-1-git-send-email-richard.gong@linux.intel.com> <1605204403-6663-4-git-send-email-richard.gong@linux.intel.com> <20201115192106.GB283592@epycbox.lan> <20201116024758.GA6810@yilunxu-OptiPlex-7050> From: Richard Gong Message-ID: Date: Mon, 16 Nov 2020 08:14:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201116024758.GA6810@yilunxu-OptiPlex-7050> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yilun, On 11/15/20 8:47 PM, Xu Yilun wrote: > On Sun, Nov 15, 2020 at 11:21:06AM -0800, Moritz Fischer wrote: >> Hi Richard, >> >> On Thu, Nov 12, 2020 at 12:06:42PM -0600, richard.gong@linux.intel.com wrote: >>> From: Richard Gong >>> >>> Add authenticate-fpga-config property for FPGA bitstream authentication. >>> >>> Signed-off-by: Richard Gong >>> --- >>> Documentation/devicetree/bindings/fpga/fpga-region.txt | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/Documentation/devicetree/bindings/fpga/fpga-region.txt b/Documentation/devicetree/bindings/fpga/fpga-region.txt >>> index e811cf8..7a512bc 100644 >>> --- a/Documentation/devicetree/bindings/fpga/fpga-region.txt >>> +++ b/Documentation/devicetree/bindings/fpga/fpga-region.txt >>> @@ -187,6 +187,7 @@ Optional properties: >>> - external-fpga-config : boolean, set if the FPGA has already been configured >>> prior to OS boot up. >>> - encrypted-fpga-config : boolean, set if the bitstream is encrypted >>> +- authenticate-fpga-config : boolean, set if do bitstream authentication >> It is unclear to me from the description whether this entails >> authentication + reconfiguration or just authentication. >> >> If the latter is the case this should probably be described as such. > > If it is just authentication, do we still need to disable bridges in > fpga_region_program_fpga? > Yes. Except for the actual configuration of the device, the authentication feature is the same as FPGA configuration. Regards, Richard > I'm wondering if the FPGA functionalities could still be working when > the authenticating is ongoing, or when the authenticating is failed. > > Thanks, > Yilun > >> >>> - region-unfreeze-timeout-us : The maximum time in microseconds to wait for >>> bridges to successfully become enabled after the region has been >>> programmed. >>> -- >>> 2.7.4 >>> >> >> Thanks