Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3320862pxb; Mon, 25 Jan 2021 12:41:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlTx1mmHPgzGLPdUsWgwy4w9XK2yVGXIET4Ba9rx9SqZqcCzq92xtWqAOrk2Q8ZmUI1g2L X-Received: by 2002:a17:906:52c1:: with SMTP id w1mr1496794ejn.214.1611607296266; Mon, 25 Jan 2021 12:41:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611607296; cv=none; d=google.com; s=arc-20160816; b=cHtQuwthKinIJQBAbQE2/vFDMCrr7lVIRFV9jbRIGOhh8T11SU2g/cIQ7C7eY5dMmo wl45FJCtKqDtdr6m3w4im1/kiS6hp0af8FMl/5WpKM7y60AE6al8/Mz6BLEJwgJsrl7w Sd0DvggNozP/G6PMWsVzgHhz7fxIYIGx1J6pg2MdmdeYm99O5IKaYEBIN3NarARveYku +5Zqkvm4/hlq8wbyu6D873bRWJq/1XeLQt7JN8qrUUZgxxpHK6rYUm40zDL2uETkHvTV ZbEin7EGzZbu7dNzPFAkHMaCoktcEPuSp2bUVuGFRhEgZtwSgMMVtKQyaRtziR0sGlMr rFMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=QVCz4OQyURKyLTQqCqd71mGGKNmSxqUJph4KoLtdmnI=; b=N2Mwkpcihxd0Qse5zFiqgB9tXKnPz4S7fkfNhtbuOKLQWNzjSlqmXy0ClvPcEvbFaw dQOkLMzBbbCnsPzmztEZOZGSRuH6fFD8AgvqfB5SrusncqOA84Jlk5FhFpvW5Ax4ctnc b7dJ0FGZPFM5mx1IHg4kvIKz1/gN0P8BNsPTmr6W0bku3kN3AIJcBx6kukkiHHYfPQHz GzC/Q2cgisJgtwDyg+ej48D3PRS4ZMHYBP0O36Qsw4emYOueaezblI/ASEA27SVVKsfb 021Hq4Z0BACOeINx0da5lf2xy9wZPlUz875lYJJWbN2DGF3vyyo7pKYs4ggLUbo6eXix QpYA== 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 f21si8134989edc.60.2021.01.25.12.41.10; Mon, 25 Jan 2021 12:41: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 S1732404AbhAYUkN (ORCPT + 99 others); Mon, 25 Jan 2021 15:40:13 -0500 Received: from mga04.intel.com ([192.55.52.120]:37450 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732357AbhAYUij (ORCPT ); Mon, 25 Jan 2021 15:38:39 -0500 IronPort-SDR: xnKOzKHeLTAjwnNVg+Z9C9lyJa2Y1QsYuaNQY9ThUG4KciJM4+1raGvpawUcfv+6jY8F4k83Ja +bjT9onit5VQ== X-IronPort-AV: E=McAfee;i="6000,8403,9875"; a="177227322" X-IronPort-AV: E=Sophos;i="5.79,374,1602572400"; d="scan'208";a="177227322" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2021 12:36:44 -0800 IronPort-SDR: MVCtqYm5vl8XbbMD+fKVdYFBpcIMRgpQPOABLUhI2XFv4WIWSzZZlKEofCsI0B651MICJHLjdT AxhGBJHCBajg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,374,1602572400"; d="scan'208";a="504283142" Received: from marshy.an.intel.com ([10.122.105.143]) by orsmga004.jf.intel.com with ESMTP; 25 Jan 2021 12:36:42 -0800 From: richard.gong@linux.intel.com To: mdf@kernel.org, trix@redhat.com, gregkh@linuxfoundation.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dinguyen@kernel.org, sridhar.rajagopal@intel.com, Richard Gong Subject: [PATCHv3 0/6] [PATCHv3 0/6] Extend Intel service layer, FPGA manager and region Date: Mon, 25 Jan 2021 14:56:22 -0600 Message-Id: <1611608188-25621-1-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Gong This is 3rd submission of Intel service layer and FPGA patches. This submission include 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. The customer wants to verify that a FPGA bitstream can be started properly before saving the bitstream to the QSPI flash memory. 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 (6): 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_BITSTREM_AUTHENTICATION 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 | 1 + drivers/firmware/stratix10-svc.c | 12 ++++- drivers/fpga/of-fpga-region.c | 3 ++ drivers/fpga/stratix10-soc.c | 62 +++++++++++++++++++--- include/linux/firmware/intel/stratix10-smc.h | 21 +++++++- .../linux/firmware/intel/stratix10-svc-client.h | 15 ++++-- include/linux/fpga/fpga-mgr.h | 13 +++-- 7 files changed, 109 insertions(+), 18 deletions(-) -- 2.7.4