Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1433800pxb; Fri, 13 Nov 2020 12:33:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJywOsEgYMxU9jcXccB1Atjiq/MiqGDNBDnOo9Xica3r+Shvc/X3uiJsQVuUCyMynouuYXrc X-Received: by 2002:a17:906:280a:: with SMTP id r10mr3755631ejc.45.1605299584157; Fri, 13 Nov 2020 12:33:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605299584; cv=none; d=google.com; s=arc-20160816; b=dko2w/QmXu6ocJpt7ShkIHWmxZlxGnmyISnwnaR337TpIT6UP1JerzQp6uCs7J5lyp GEKoeupLa9+5Avm7O2I6y14xdsq8k7LvYQnGmRS1awfplxw5ZwMLIDJ/VoPp9hwRKI+F nI4m3AaupkVGeMFPHHIOmT5ccEnkBKL46nDmiJrsVCTYQkk1iWKSEKzOXf+lKF8YQi26 buWHUNtlXUe9LXE0GpcMYLk2FzVEK+lwHFyIz7d/KCMXrsDwkH41uj8lymMq+XScewz+ KvCu4DEroL6CtdK40PFYEOpIdPLAqDb5uLrv45hyidhnlxxnIgltzOHDP33oU4UjzzgD bo/w== 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=wGTo69/0mWRMDWXMWSWzbSRGi0q3hDqTGf9uzqWEojg=; b=Q05SOYL4aOKX4u9JYjxkElXaImMXy1SSRu34vVP5LELg3TmmN3D/pWOvriYC9361El ShGEEDOi/VxGRaCIeEzl0WKz158+/XwlqBJUsFC7lJVjqykgHtnD+LS5PsSC57Gmk16j 19a+lR9mYLunewyjEvATRNRHmKHG/E7wox/KMhl6lXCy0NIPBegjp7ueFANvEkymPuW3 +59vN/972FfDnUMq8q2jjNn+Nhmmhd/P3fhr4g6KfuAaYJKOVMscNvgpp5wtD6D29RLL gOUNxKj2XYHULL30jFQtJB+WPz6cYgc9fvvODafntg2tx7W1PPvovmi2zyFjg9JG8UvE xkzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KB45rRZI; 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 go40si3697386ejc.141.2020.11.13.12.32.40; Fri, 13 Nov 2020 12:33:04 -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=KB45rRZI; 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 S1726107AbgKMUbP (ORCPT + 99 others); Fri, 13 Nov 2020 15:31:15 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:35584 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgKMUbP (ORCPT ); Fri, 13 Nov 2020 15:31:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605299473; 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=wGTo69/0mWRMDWXMWSWzbSRGi0q3hDqTGf9uzqWEojg=; b=KB45rRZITOvf70psGz6q0HGnlC6kariGthdRz1mqLpK9VMv5knv9jrNzAQYMsN+EWDJhB5 frnbO9v7vy66R+aotHuc0hISYmTwQprcoZMVL99/Wgvf+Udp1Q5Ip2OZN8aQRPaS0S/ZtC F9jzcB/UuSUyaY/ZvhSdCY4B8ZNK8JA= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-283-dHEd2tvlNIqbhbOcGgdKzw-1; Fri, 13 Nov 2020 15:31:12 -0500 X-MC-Unique: dHEd2tvlNIqbhbOcGgdKzw-1 Received: by mail-qt1-f199.google.com with SMTP id g12so6477788qtc.15 for ; Fri, 13 Nov 2020 12:31:12 -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=wGTo69/0mWRMDWXMWSWzbSRGi0q3hDqTGf9uzqWEojg=; b=X/focdcHS+t5hWnZwBab0xCBPXBi97A6Yscn2uAK2ZYmsgp3Qql5D4SDat8XH20OT3 2ga+3vahKDhpBhrKlnv1cjPD7aYKe5KYnxNxFHS7VoeAGe/tnNoGzzPTYgZipvwRu6GS Gl5cWlgsp0Qg8nrcTbdVq3jez8PZqjRYkjpJmU/mQW4yn2JBq70ecGC5CNAu/MZWcIXS vsmR5m8EQbf/+8YCKylKptm7rgQFH84xnv8UfdSNmjUI+kNkonSoUsOSS33Isax7keZr teAEU684WjHe9qvEDWNWnvOGc0EeG8XM93P1mpFGeqMUhq2XDVjFp9UYmhtBjUGvnM4m HcSA== X-Gm-Message-State: AOAM533nmf9mOR7ADsdqoTYctexTT2YWYrHfAXWwXlDvm8cRUdlaF/5U uid0avEB1J2y8k/WNk4xt3E2/4xCFZFAdqLlMbGVNhlRPt50CA1NUeDk244XmAfzWfsBAAMIier 3OBFSuDTqfyeGLOMRrch4DxuV X-Received: by 2002:a05:622a:28b:: with SMTP id z11mr3618348qtw.94.1605299470060; Fri, 13 Nov 2020 12:31:10 -0800 (PST) X-Received: by 2002:a05:622a:28b:: with SMTP id z11mr3618317qtw.94.1605299469765; Fri, 13 Nov 2020 12:31:09 -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 o125sm7363969qke.56.2020.11.13.12.31.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Nov 2020 12:31:09 -0800 (PST) Subject: Re: [PATCHv1 4/4] fpga: stratix10-soc: entend driver for bitstream authentication 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-5-git-send-email-richard.gong@linux.intel.com> From: Tom Rix Message-ID: <9bb29416-65fe-85e8-b960-23abc49352f2@redhat.com> Date: Fri, 13 Nov 2020 12:31:07 -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-5-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 > > 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; The change does not match the commit log. Add some comment like.. 'Cleanup setting of partial reconfig flag' to cover the change. Tom > + } 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"); > }