Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1914399pxb; Sat, 14 Nov 2020 06:38:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1KbC00a3TVaTIrj7XGJaOdfDSsDGPcFRowzRSXNttl9GfE89synV8pYRQEDmH14mGkw4O X-Received: by 2002:aa7:d890:: with SMTP id u16mr7704325edq.159.1605364732607; Sat, 14 Nov 2020 06:38:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605364732; cv=none; d=google.com; s=arc-20160816; b=Zy1arRSfvM5zsCi4UOEnmf0ChpL7MP8XG2vVf41v/rffMX+PrXywC5QvUo2EsHDIlS 6a+XKS8/bQP4aBf7aDTERxZyD1tlCEegQlTwiLMXObiBsaRnLeeUbk2J7xnxYs/d+DlS xWNkcNpPLFC69CetHkbXp2ghxKdedj+LwhffK8F2kESSlTIvsUfzJVqPfFkzkBB2pmId NrRrP61Abq5kQojHdL4F0G3DEaq1qs8rlp/GwfaNGkhTaIGmd+iVcjZ/0Jbko1wVl9KW WQxW4WapFAUAM4bhyuKhBa5ti8g2FWHjf/aUxmK/we6gmL4mlGW3NfIjH6pcxIquYPEc oDfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=G9WVbGLPLXuwl5h7uKflf9pNupQk2n+jxfCBJR6ZDgw=; b=Gi4pIncwyRIb6jEIQPUVcle3KFVOQwEX+kgemAKYaWNbnXfZt9QuuKuRJW/n1m6BBH 5JottGMzCgHALlwa7clRXYcZrO/Tb16njrB5/zURu/Jc0X36Sfeg2utzZ7jWp2s7brNu oT7s9cPXGPP6eeSXeMEfk9p/PIxVQL26LzMHacZfvC2oaVx/hL9kuFeujQ6jOT8bkt3y A/Fc3Z2hXjx9JFXC7F5KPSYJCFVVDdZsy6kwlv8nZQGXsCAFgtasrOFj4K7kcKg/2wkK NASXuCIrq0wX9E/Nl6T75pNWwpwfZgojMPUJ3lDmEHhVunuejQ8gsYCdnsY1te2KU4U+ nXdg== 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 b6si8958070edq.479.2020.11.14.06.38.29; Sat, 14 Nov 2020 06:38:52 -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 S1726844AbgKNOes (ORCPT + 99 others); Sat, 14 Nov 2020 09:34:48 -0500 Received: from mga02.intel.com ([134.134.136.20]:64967 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbgKNOer (ORCPT ); Sat, 14 Nov 2020 09:34:47 -0500 IronPort-SDR: t9hiBMKz+9PTl9Dqf/UpMIHkdhnmVWj14h0pN4XSDmJ94bCdQU+inmKlHvHtBbjg0k/TpdDdbD WxIMiTPKipMw== X-IronPort-AV: E=McAfee;i="6000,8403,9804"; a="157602708" X-IronPort-AV: E=Sophos;i="5.77,478,1596524400"; d="scan'208";a="157602708" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2020 06:34:47 -0800 IronPort-SDR: yJ7JU88zcYyAw1ufi+xlJsgMY/2IZwCz24IAgY+/GfJBynjZxcYDJ95BRa687+q1at2G+Y4MrC L8tQsbIkZ6fA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,478,1596524400"; d="scan'208";a="324307226" Received: from marshy.an.intel.com (HELO [10.122.105.143]) ([10.122.105.143]) by orsmga003.jf.intel.com with ESMTP; 14 Nov 2020 06:34:46 -0800 Subject: Re: [PATCHv1 4/4] fpga: stratix10-soc: entend driver for bitstream authentication To: Tom Rix , 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> <9bb29416-65fe-85e8-b960-23abc49352f2@redhat.com> From: Richard Gong Message-ID: <6ec8b5ee-9505-7863-fcb6-7e5bbe2aa963@linux.intel.com> Date: Sat, 14 Nov 2020 08:55:50 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <9bb29416-65fe-85e8-b960-23abc49352f2@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tom. On 11/13/20 2:31 PM, Tom Rix wrote: > > 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. I will make the cleanup change separately in a different patch. Regards, Richard > > 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"); >> } >