Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp541093pxb; Thu, 12 Nov 2020 09:50:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOqXykdGRK4xENT9ambePX/Gd9APs0jH6c6wX74K55JHikmo1MmIWKtcaiefK3WOzGJl+u X-Received: by 2002:a17:906:6013:: with SMTP id o19mr439152ejj.348.1605203425325; Thu, 12 Nov 2020 09:50:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605203425; cv=none; d=google.com; s=arc-20160816; b=iQOZ0kINrhS+b3UYxgkIM1vpnNMhlFM+XYZ02b6N9MYmt6Q9me3dxd2Q7+hvVlo/VM Aik9iCfWluC2mPZPNGipcQedSrPzFaXQhFUsHdxKZh6T681+NUA/VJf0kZ+kdW2e0fU5 NteIlKcDSiSMpmr2EBdMKY3tNxp8okJccNMEbMAwwv6GM66UG/ON8xFu4wRLWoegHaV0 HzMzWLJ6t+yPk68CKXxQtfSBE+Q1hXZO/cr7WTyLBhpIJ5Ow6JubbSw6GftS7mh3adq6 SKCuAK68CeHtsST0J3wlD0avPGMo48Bm6/x43XK2kSVKYFu/SPpuqM0gf83+TH8Hhyi0 GX1w== 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=+XbO6tnY0ygVif60prFidbNVHUdGbK6pzALTjfcUfjc=; b=WIax+ztFgBoswkWHPrtMjMjJwAEoRfDnty4ysEnDVBzzggc2+Nwx53InnDD7WxFpKF ZwX3jINjwytw7oGeA+ls+/KP2OWweoH2bNvJD5kD+iOjLe4iF3BMKtCiqS0dGs71GtOJ I9Sa1KkcVUId0/Sa8PfFc7bLrkIUi8+oTnDouLZWc2Tos7g+4uK58tm2UoM3KA99aJsP fQwhmXKJlA8JccyZvNkFLpT827as6By81MM66RaSRyupxupDQ8SKXky2icMXIjImzcsA i/aXxUw7q3aiOXAOf2Pkxxt11B1Zoy2kONOai4hBeHUTdi9lmrI4cyvvkRYyKBkbLdIX EmBw== 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 ay12si3934383ejb.431.2020.11.12.09.50.01; Thu, 12 Nov 2020 09:50:25 -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 S1726477AbgKLRrh (ORCPT + 99 others); Thu, 12 Nov 2020 12:47:37 -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 S1726394AbgKLRr2 (ORCPT ); Thu, 12 Nov 2020 12:47:28 -0500 IronPort-SDR: gINq8hxpdzFW9nbS8rQ/yqsMlsVUfZYeJWE6GfOkxSZUUD8AWbullly3K06O+0NBun6WMpnCYt V4BimN+eTRKA== X-IronPort-AV: E=McAfee;i="6000,8403,9803"; a="158128468" X-IronPort-AV: E=Sophos;i="5.77,472,1596524400"; d="scan'208";a="158128468" 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:27 -0800 IronPort-SDR: H+MfRLfGlEk0eMJS0l2rm9JZDz1wj3ha2SB0sWXO+ZggY1lZmE3ELNSoXl+t7rG4/eU80EvgX4 Cxx2BLD4vMhA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,472,1596524400"; d="scan'208";a="328576378" Received: from marshy.an.intel.com ([10.122.105.143]) by orsmga006.jf.intel.com with ESMTP; 12 Nov 2020 09:47:26 -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 2/4] fpga: of-fpga-region: add authenticate-fpga-config property Date: Thu, 12 Nov 2020 12:06:41 -0600 Message-Id: <1605204403-6663-3-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 Add authenticate-fpga-config property to support FPGA bitstream authentication. Signed-off-by: Richard Gong --- drivers/fpga/of-fpga-region.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/fpga/of-fpga-region.c b/drivers/fpga/of-fpga-region.c index e405309..c7c6d1c 100644 --- a/drivers/fpga/of-fpga-region.c +++ b/drivers/fpga/of-fpga-region.c @@ -228,6 +228,9 @@ static struct fpga_image_info *of_fpga_region_parse_ov( if (of_property_read_bool(overlay, "encrypted-fpga-config")) info->flags |= FPGA_MGR_ENCRYPTED_BITSTREAM; + if (of_property_read_bool(overlay, "authenticate-fpga-config")) + info->flags |= FPGA_MGR_BITSTREM_AUTHENTICATION; + if (!of_property_read_string(overlay, "firmware-name", &firmware_name)) { info->firmware_name = devm_kstrdup(dev, firmware_name, -- 2.7.4