Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp542486pxb; Thu, 12 Nov 2020 09:52:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8HEnpzgAswULuxkGqrKdWVqbjItSZapSVokcqPgFHpopz8mDaPzWprc3aOIW15MOTvlPE X-Received: by 2002:a50:d582:: with SMTP id v2mr1047368edi.218.1605203551036; Thu, 12 Nov 2020 09:52:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605203551; cv=none; d=google.com; s=arc-20160816; b=ufLSor9IWZ69nz0PGMZ4Th0XPOp73281g+MJgrPMqc70XvWWyB2c4vigLFhByyenS6 QYfqaBr9v5Eq65dJu3AvwclMV3hgY2U7vw4yf6i2vTGNNQpkVRDLGZ5zHHxrARQ/58U3 KCAX8QjJn1haDYIyr90S8+EGZE/d3TWdic/MUn27rrT3Yzcz//Bf2yZqLL2DfwFrzP7I OdkrELNd9n7OvfqAnULU0GaA08ViULlgDwAlRPemY/Pqo6vujio1p/xy/wPNgZBOn5C6 MJ25hRFbbQmzPlMIMaQV9TaPWQGCsEFMlu4XpNtI55XXARWd+t6Q1dITcoy9j7vCKYqs sVwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=ce3T6XBnpYeTjor30vFTVFSmci37gUbLUeYMK+l9TQI=; b=w1pa014DX7uxq/XzJyVJXNhzBsMMzJt05Vio+v5A8zn8jP+KtaFeUdb3FAscfE+oMt VnTXu4N+QqBQckZ8dKPTdOfY2Aek4kbBaE6Pk8Zu1+j/cX/wAbN4LJWQFRypSa12F3d9 qRnMMaGl9Bray/hVRffxh5r18Zf5sEypKFOOYXC0OfB8G/W32B1Yo124J46WRy3DttjA UNp84uG/PXgEo0/lhQPvCHoYtwWo3YD2eky7WR5OXNXYBXbhW/AFYhiFlb7z1hs4e18x BtWHHbsjioWQQeNJf01nbWr7VOINL4zgdIEJLmkizMpgzcJ4hpBFcaMYxE9E0pIGUFT9 2zAQ== 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 hk6si4071693ejb.716.2020.11.12.09.52.08; Thu, 12 Nov 2020 09:52:31 -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 S1726443AbgKLRro (ORCPT + 99 others); Thu, 12 Nov 2020 12:47:44 -0500 Received: from mga18.intel.com ([134.134.136.126]:5888 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgKLRrc (ORCPT ); Thu, 12 Nov 2020 12:47:32 -0500 IronPort-SDR: L2Cy4M26uLEx+dd9H2e1J5zKZwO+4rkEX68jWy0Cl+klbFHDjVX6h+Blelfc0ECY00b4J13MDO ScCT2a813TAw== X-IronPort-AV: E=McAfee;i="6000,8403,9803"; a="158128483" X-IronPort-AV: E=Sophos;i="5.77,472,1596524400"; d="scan'208";a="158128483" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2020 09:47:32 -0800 IronPort-SDR: NbEprrJmNWrSQpq/a12O87/g3d+3K21XcPJd9XyUZkc3zEEI4V6rxP7Nf12yJKTyHVOA/0r18L gar8+Y74G7rA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,472,1596524400"; d="scan'208";a="328576399" Received: from marshy.an.intel.com ([10.122.105.143]) by orsmga006.jf.intel.com with ESMTP; 12 Nov 2020 09:47:31 -0800 From: richard.gong@linux.intel.com To: mdf@kernel.org, trix@redhat.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dinguyen@kernel.org, sridhar.rajagopal@intel.com, richard.gong@linux.intel.com, Richard Gong Subject: [PATCHv1 4/4] fpga: stratix10-soc: entend driver for bitstream authentication Date: Thu, 12 Nov 2020 12:06:43 -0600 Message-Id: <1605204403-6663-5-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605204403-6663-1-git-send-email-richard.gong@linux.intel.com> References: <1605204403-6663-1-git-send-email-richard.gong@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Gong Exten FPGA manager driver to support FPGA bitstream authentication on Intel SocFPGA platforms. Signed-off-by: Richard Gong --- drivers/fpga/stratix10-soc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c index 657a70c..8a59365 100644 --- a/drivers/fpga/stratix10-soc.c +++ b/drivers/fpga/stratix10-soc.c @@ -185,7 +185,10 @@ static int s10_ops_write_init(struct fpga_manager *mgr, ctype.flags = 0; if (info->flags & FPGA_MGR_PARTIAL_RECONFIG) { dev_dbg(dev, "Requesting partial reconfiguration.\n"); - ctype.flags |= BIT(COMMAND_RECONFIG_FLAG_PARTIAL); + ctype.flags |= FPGA_MGR_PARTIAL_RECONFIG; + } else if (info->flags & FPGA_MGR_BITSTREM_AUTHENTICATION) { + dev_dbg(dev, "Requesting bitstream authentication.\n"); + ctype.flags |= FPGA_MGR_BITSTREM_AUTHENTICATION; } else { dev_dbg(dev, "Requesting full reconfiguration.\n"); } -- 2.7.4