Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp542239pxb; Thu, 12 Nov 2020 09:52:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6XCpXqLktLaQzD4FsrLPRfI/wZnOZ2S4rvv6TGEGgVGqxWh5Bi/YFMXspDT0VX3a/CYMk X-Received: by 2002:a05:6402:3064:: with SMTP id bs4mr1058598edb.258.1605203531833; Thu, 12 Nov 2020 09:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605203531; cv=none; d=google.com; s=arc-20160816; b=LsDBU8ouF8qxBrJITIGSinJ45Lz6OxVcqDQW2nz0Z6AjjHusB5v8K3bivcX/Tc5Z3F QfDu1jaR5SoijMkXsPY9lOuJDiyJEnBL0Q6ujNORqlSH3P3qnbcrHVm0BsWMJt4ieZTV 0W01vnUAPUvLBfN5wgpQBA8ObubjMKWZY9VddyzUzA1id/1XVC+ehisYLKfL674YU385 1OC4EsFER/un/e1gejjvA2DM7QdX6ftvz3VgHHl+Fgm/DfYl+tfK4gt4zlNJB1d62WHj fkl2JjA5FfS6glxqiz4JXwQqwaXJo+sCw7Jm17Amu9euaZKewY5pXYyDXIFTu/pYzrlY Gutw== 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=bYkD9zbY3/CQ5LlpLUto55lXARZe6zYXLL7M6UCTiUo=; b=Z2ZIXyLC+2tYwkmHqEHx8GT/Daex6xhURaH3UOL7Qzm4AudwDgix03TVWF/8VZmPlB Quyo7wbQQBYoVimbIcJ0kOydzA0LaaiaD3e2esg6vb/+txRh4MnEsFAovv4ivvSScw9P fe/ajxZ+HfpMxVJlErZVkcVSWyZi2IHV1h+6tjZnvEMitUdU2gWpp6wBUg4RxDOAdCDi KSQJFPMdiBjYftvSEjcWHhSaB9X6Cwctkdu64dHn7eQwG5v0bwWVzhrJvMOXDofsBbar Ew3e+DZiEgzRyLIasDYHdap5+b23JEizQC4hIcNuUmJkHl8tZn8ROsoLPvDcrWY7pg/e 8ngQ== 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 bt25si4412381ejb.507.2020.11.12.09.51.47; Thu, 12 Nov 2020 09:52:11 -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 S1726433AbgKLRr3 (ORCPT + 99 others); Thu, 12 Nov 2020 12:47:29 -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 S1726426AbgKLRr0 (ORCPT ); Thu, 12 Nov 2020 12:47:26 -0500 IronPort-SDR: gxJror6URQOLCCi4zraJc6B+1vRvvVEi4luDbIL3+DCklL0YTnwlq6Bc//c40JLfeuR2dwMJly pp3LGgvG6rWw== X-IronPort-AV: E=McAfee;i="6000,8403,9803"; a="158128461" X-IronPort-AV: E=Sophos;i="5.77,472,1596524400"; d="scan'208";a="158128461" 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:25 -0800 IronPort-SDR: frS8isPJJskiIVBO+3vzhWXH+IVyBu9JlToavkLSf5RxQco4J5pYkZVITYf8aD6g/UxDSrwrFF oCPdeFM1MxIg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,472,1596524400"; d="scan'208";a="328576364" Received: from marshy.an.intel.com ([10.122.105.143]) by orsmga006.jf.intel.com with ESMTP; 12 Nov 2020 09:47:24 -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 1/4] fpga: fpga-mgr: add FPGA_MGR_BITSTREM_AUTHENTICATION flag Date: Thu, 12 Nov 2020 12:06:40 -0600 Message-Id: <1605204403-6663-2-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 FPGA_MGR_BITSTREM_AUTHENTICATION flag for FPGA bitstream authentication. Signed-off-by: Richard Gong --- include/linux/fpga/fpga-mgr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h index 2bc3030..1d65814 100644 --- a/include/linux/fpga/fpga-mgr.h +++ b/include/linux/fpga/fpga-mgr.h @@ -67,12 +67,15 @@ enum fpga_mgr_states { * %FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first * * %FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed + * + * %FPGA_MGR_BITSTREM_AUTHENTICATION: do FPGA bitstream authentication */ #define FPGA_MGR_PARTIAL_RECONFIG BIT(0) #define FPGA_MGR_EXTERNAL_CONFIG BIT(1) #define FPGA_MGR_ENCRYPTED_BITSTREAM BIT(2) #define FPGA_MGR_BITSTREAM_LSB_FIRST BIT(3) #define FPGA_MGR_COMPRESSED_BITSTREAM BIT(4) +#define FPGA_MGR_BITSTREM_AUTHENTICATION BIT(5) /** * struct fpga_image_info - information specific to a FPGA image -- 2.7.4