Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp395689pxb; Thu, 25 Feb 2021 05:34:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyB2GNypBCeHaEruFxboS3PMbuOAYcvgA584T3b8d7O0h6joVSRLK6n0pu6DpDxTikkjf57 X-Received: by 2002:a17:906:f2c3:: with SMTP id gz3mr2675813ejb.315.1614260076185; Thu, 25 Feb 2021 05:34:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614260076; cv=none; d=google.com; s=arc-20160816; b=MUHCZPNHFfMb1uqUT13wy97Pf3xqTRZYm80RuUdCJ0TxTc6NNGrWuOxWugIXQL2gjc GAVyEvLGtxT5u0wVuL2wNZWOa0p7fcr/KYwJrotk4l4qQ+ZEnB76DkgmT321s8wS2Zaj t2ZNTWKJbsEkjL1PGJ/T9qVkffVfsGPI0VHFbBlh+P7Jn2jPjn+j3RNFykPXlJcy19ct UoivjtM6eixeDRNlGDvlMG1A3fVxIiAo8HxwCfFcXv7cRJDi4XKUzRie076GWwc6bZuc tHwPslc1jBB2pEFQ/N59so3Gy/wGvo/RB61LAPsEl53L5vBVK950R6kgrbIkQ5cJAgTl 4Utw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=cX1YwP3YWDah575YgPl8iZuouPyX+en9n47H8Xk4fEg=; b=FxHbYe0uJE9DoqOM5/ZdLftI9lLc5TTxhqpY1imCtXDtlijQ2ct8kg9AxUt1sJuRRn Ow6XnYrlEykm1YT/GmtgQmhitW+GI3j0WuVA4hoTa1dnFqQllFGLJ0XMMJJW0A+OIA7H KmLN8ZAx+I/uPlwQ8QKgekKk7CwCnH/KE51mBCav1O8qfiuLpKos7AmdGr9JXSE2J81v fTjj+97Cgar3Q9zoEeiLYWMojDubaT74x3qs6hBqh9jVkM471cF+ki7dlS3m8k79+/UM kLWhgvvv6xBXXfMbIQnj8ndtG55xvGqUXT6xfju9d4HbxG7WV8yCEqHyYbPWEEZECe7y b3nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EMish+Sk; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si3415783edt.571.2021.02.25.05.34.13; Thu, 25 Feb 2021 05:34: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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EMish+Sk; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231895AbhBYNbm (ORCPT + 99 others); Thu, 25 Feb 2021 08:31:42 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:26524 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232203AbhBYN3w (ORCPT ); Thu, 25 Feb 2021 08:29:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614259705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cX1YwP3YWDah575YgPl8iZuouPyX+en9n47H8Xk4fEg=; b=EMish+SkfXuFPKG4JTmcdie6kmG8rmGVs+L9XL2EwsVpTOkwSHMRG4ANVolWyGweBzgIfY hQsP6FqKYzjj7Xq5EaeYj6m447s2DWkD36wvGm8gVkzHvEAUj5A1MUs8fG9wPL6F2NEBgN 4XPhqUkpvNhCX/do7IuI3E/1kJx5g4Y= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-131-mF8eXEY1P9Sd4zsgOmhQRA-1; Thu, 25 Feb 2021 08:28:23 -0500 X-MC-Unique: mF8eXEY1P9Sd4zsgOmhQRA-1 Received: by mail-qt1-f198.google.com with SMTP id d10so3980524qtx.8 for ; Thu, 25 Feb 2021 05:28:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=cX1YwP3YWDah575YgPl8iZuouPyX+en9n47H8Xk4fEg=; b=jXFXBW5YQF0R/OWQjok306dpp7Oe+u0JJTTc38fgrBm6SUnaqpEl6ySn8Py9EKjn0k UKDtteYxT2ileImoeH2HoRNTin9K16e3e3U089bvFV1xP8P9T4QnjKN/WWmmK/p8HK45 fzlW8KNNeWODtPEvv02pXorHQcSD3v4QauKwo4aZNQPWr3B8cFikaj1lTmQjraFXJ9Pv aji//BotENHrbbUCZjZ55hJV1B7SoqubtbnZ0RsDNCtNjKkNDcy6lK1rVnBxKPharP3U agx2WJxTcWYR2g1f/tXeqHlAk2PBFY7ErzJk/qR1qZsNP+pJypNhJtQTVnCJL2RRvs/Y oB0g== X-Gm-Message-State: AOAM5302ysgZcP2BrU+fucWu8LDpOz/eUttoGC37wxsYi5KWQisdqG2C XozJYmJGOABDFwHk6wdx+IRSDyZhA1p/C6pk25Q+WZVmeHLDtFn82tbYerIcS3sNgxgsdXRJ6Ow mrfmZY1s6HkcSSVajCZFzz8bH X-Received: by 2002:a05:622a:11:: with SMTP id x17mr2328169qtw.195.1614259702766; Thu, 25 Feb 2021 05:28:22 -0800 (PST) X-Received: by 2002:a05:622a:11:: with SMTP id x17mr2328155qtw.195.1614259702568; Thu, 25 Feb 2021 05:28:22 -0800 (PST) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id 197sm3866710qkf.33.2021.02.25.05.28.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Feb 2021 05:28:22 -0800 (PST) Subject: Re: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region To: "Gong, Richard" , "mdf@kernel.org" , "gregkh@linuxfoundation.org" , "linux-fpga@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: "richard.gong@linux.intel.com" References: <1612909233-13867-1-git-send-email-richard.gong@linux.intel.com> From: Tom Rix Message-ID: <3c6d5adf-c355-f0c8-b843-5bf95f81876e@redhat.com> Date: Thu, 25 Feb 2021 05:28:20 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first patch is a fix that is targeted for stable. Tom On 2/25/21 5:07 AM, Gong, Richard wrote: > Hi Moritz, > > Sorry for asking. > > When you have chance, can you help review the version 5 patchset submitted on 02/09/21? > > Regards, > Richard > > -----Original Message----- > From: richard.gong@linux.intel.com > Sent: Tuesday, February 9, 2021 4:20 PM > To: mdf@kernel.org; trix@redhat.com; gregkh@linuxfoundation.org; linux-fpga@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: Gong, Richard > Subject: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region > > From: Richard Gong > > This is 5th submission of Intel service layer and FPGA patches, which includes the missing standalone patch in the 4th submission. > > This submission includes additional changes for Intel service layer driver to get the firmware version running at FPGA SoC device. Then FPGA manager driver, one of Intel service layer driver's client, can decide whether to handle the newly added bitstream authentication function based on the retrieved firmware version. So that we can maintain FPGA manager driver the back compatible. > > Bitstream authentication makes sure a signed bitstream has valid signatures. > > The customer sends the bitstream via FPGA framework and overlay, the firmware will authenticate the bitstream but not program the bitstream to device. If the authentication passes, the bitstream will be programmed into QSPI flash and will be expected to boot without issues. > > Extend Intel service layer, FPGA manager and region drivers to support the bitstream authentication feature. > > Richard Gong (7): > firmware: stratix10-svc: reset COMMAND_RECONFIG_FLAG_PARTIAL to 0 > firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag > firmware: stratix10-svc: extend SVC driver to get the firmware version > fpga: fpga-mgr: add FPGA_MGR_BITSTREAM_AUTHENTICATE flag > fpga: of-fpga-region: add authenticate-fpga-config property > dt-bindings: fpga: add authenticate-fpga-config property > fpga: stratix10-soc: extend driver for bitstream authentication > > .../devicetree/bindings/fpga/fpga-region.txt | 10 ++++ > drivers/firmware/stratix10-svc.c | 12 ++++- > drivers/fpga/of-fpga-region.c | 24 ++++++--- > drivers/fpga/stratix10-soc.c | 62 +++++++++++++++++++--- > include/linux/firmware/intel/stratix10-smc.h | 21 +++++++- > .../linux/firmware/intel/stratix10-svc-client.h | 11 +++- > include/linux/fpga/fpga-mgr.h | 3 ++ > 7 files changed, 125 insertions(+), 18 deletions(-) > > -- > 2.7.4 >