Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1430617pxb; Fri, 13 Nov 2020 12:28:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwh9Ws5spQ1ThKB3f6Imq2N+RfVsrBpl4P0AKI1fwV06xRvGM04aX0OqdcC9Rm3Iu1SBfsn X-Received: by 2002:aa7:cc0e:: with SMTP id q14mr4213620edt.326.1605299281727; Fri, 13 Nov 2020 12:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605299281; cv=none; d=google.com; s=arc-20160816; b=nLgZmTDLxsOeGtAPvPaiPd8ySk6Njjoo3dacEG8ps+87FlovoI6S1OxveT8YVTDLSm syEUqQ9Q00TbFK4tFnlUq6ZYb4VRaPQmK/KcTK0znQw3sfmAKJ6T8tNmVhiG20UQnBZy mqAteDrvbFNXD/Gi5Tn+KdHrbJ5pvc78lCgekISaou2oTDf8WKs+XJ6IusD6ToIVEff+ FYu6SxvY47/3AKtrtsBRxQ/FGGWsV+5o6FiLyFSCDE5Cw5FkWqH/SuK3S7gfI7Wpnf9e y4O3dWSi/iO+j8P58mGRENapMccPlEaLx7POE2OfQCf8iwf0KVd7ckRNFyihKLsMNRBE O84A== 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=necTzLb9sYFoxc0q+K6VlpmR/hW224U1Sbo8SlUmuww=; b=doGeztbgRw4wBmby5mLxnm+PpJEPrfo+i/5yjwRWRJUAM3uVC64QyYg2U6Q2357gpj R4J5eESOgwwpSdNiYJxw+bd80jf10GzYoLVrxoYTpHxvcg4wB6YSda5ph4KbQxyCcBDQ iAeXaUIPDcQ1c8bBLOdw03Cn+ZiNGZ9kvC3A6JaCPFAw3a4OiCzTlAwqPQom4/Jnryd6 stmMKqgBheh1X3ehOkfD2ncaRBT9xtmCuFnPYdlzfm+gGuzOQotIZhcqaHRhMXMMPzTt dpXIXa8tBCWQbuRTSXi0zsfCVVWKUHuu0NPHwpHH8tqNETMB6DcgLCC/eToqavRfLnN8 Pzxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ROvywgXX; 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 w6si4259512edv.224.2020.11.13.12.27.37; Fri, 13 Nov 2020 12:28:01 -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=ROvywgXX; 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 S1726233AbgKMUZ2 (ORCPT + 99 others); Fri, 13 Nov 2020 15:25:28 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:47135 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgKMUZ1 (ORCPT ); Fri, 13 Nov 2020 15:25:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605299126; 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=necTzLb9sYFoxc0q+K6VlpmR/hW224U1Sbo8SlUmuww=; b=ROvywgXXh1CDhI+7soDis7YOmPMpG4d0failoujNr2wmmr6MIE+hgkX2XF57Fng6MTY7Ff /m0o6stQpoIKkQeMynn1d0CXbKbUrWTNmTQWptzecCALqTJ5RlAdGdy91h71ZBWQ+/0f2+ 2USTmMBlUOT+ffhSV4lpfNCla3kooeI= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-144-S8VqbOx8Pn-zFtyqgPTd7g-1; Fri, 13 Nov 2020 15:25:24 -0500 X-MC-Unique: S8VqbOx8Pn-zFtyqgPTd7g-1 Received: by mail-qv1-f69.google.com with SMTP id q6so6823401qvr.21 for ; Fri, 13 Nov 2020 12:25:24 -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=necTzLb9sYFoxc0q+K6VlpmR/hW224U1Sbo8SlUmuww=; b=FEfo/rENVZQQciuvz2zIgi1qd+Wj7lHqxMt1n1R6i2/p82k2s1Tat9jZvKytxvIreW 5lCL2zG7eCTpnhCRpbxX8U9b1Jqs0Oe+1evHRcysnQIE31a93KGQkS/tXvoAYrHWqaEL htgqlGHROgqCtV5gnxSwFRX0Y3VJtZZ/7n6UMZHHlP0NhlIcvEZDnWl9MbHbMFBRV2Ng fet9gWtLhN6x8t7lDYV5tVASqiH/P/nnP6wk4ccrwJH+MxuJYlyIHBuMopXqQ0Q61bLN Ebtbr+MlLdZ/0Qrha9+G+Sw6QMjMkofy5I/F8jugMQQ/Iv+l8ckfaoMp4ZwU2tCvKx1s 34AA== X-Gm-Message-State: AOAM533Y9nvC3C5VDiIU6z+eNuznzYkMGyeUmcbpH/4OgjaiAuLWtRT0 GrofsimXkRXSCZLG9FCDGCqeAJacQppq8b5R7MWdZ1yr9D+O/mvDDxjaqFGsOjHs6WtVK2Bv8EL F2XBs6JZVCnx6KtEXE6qsDArk X-Received: by 2002:ad4:4ae4:: with SMTP id cp4mr3963873qvb.21.1605299124277; Fri, 13 Nov 2020 12:25:24 -0800 (PST) X-Received: by 2002:ad4:4ae4:: with SMTP id cp4mr3963846qvb.21.1605299123973; Fri, 13 Nov 2020 12:25:23 -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 f189sm7354421qkb.84.2020.11.13.12.25.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Nov 2020 12:25:23 -0800 (PST) Subject: Re: [PATCHv1 2/4] fpga: of-fpga-region: add authenticate-fpga-config property To: richard.gong@linux.intel.com, mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dinguyen@kernel.org, sridhar.rajagopal@intel.com, Richard Gong References: <1605204403-6663-1-git-send-email-richard.gong@linux.intel.com> <1605204403-6663-3-git-send-email-richard.gong@linux.intel.com> From: Tom Rix Message-ID: <77c39677-e6cb-92eb-3680-897a3a755e91@redhat.com> Date: Fri, 13 Nov 2020 12:25:21 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <1605204403-6663-3-git-send-email-richard.gong@linux.intel.com> 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 On 11/12/20 10:06 AM, richard.gong@linux.intel.com wrote: > 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, This looks fine. Reviewed-by: Tom Rix