Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp585079pxb; Wed, 27 Jan 2021 15:54:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqmXNM1Gc6m49q9cu/FRbmLCk+4oebgnA8ie0TEt7XHNHqdNTdxdbGU8sM6LDTdOuIMlER X-Received: by 2002:a17:906:110a:: with SMTP id h10mr8804869eja.190.1611791652523; Wed, 27 Jan 2021 15:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611791652; cv=none; d=google.com; s=arc-20160816; b=Vf5lD2uKJ8JHzOiXGQBmOefKVZn/AQBkyC0hl09ecEFiocDRRTXh65MNTra0MaX6FC lUzLicIrlGUIdBRtWXkm6AlmCASJZMLXXH0H9HSOFbBHbApWQK9aW3UA7yXErv9B9LBC kHUSq/h3gMCm29vUcfbXMpKayRCGi0u12d1U0kqMiJUkTS61mRE90ZG0ciIs68SylIxp zX3jeiOuoMYy998yKDAfVzxOTsASF06nk/ACaaujrSSRJyixnWp8YKdJhEYyB1OA86BX 2yQRl/dxHOjkvQvM0YSkrlWQWWpKiTJWY0xCiTcoJauVfKKLBFN7gmL5gSdxSDEJ9GkV JE3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7udFIUVUWP/jwleEzsHozzdnMDFDhjsIFnHdjmR82KI=; b=yObbeqXu0nOUys045C/acNx7BgSsRENSz/8/ZB2A9Km393IYffskS0mTPYeC/meofl +TaaFrR+MisNDsG70/U625COTdp85kOL0CnmRis8jevcutAkL0lnEZiu/J9lsnjhpmOi 8YHGRg/yZDvdAQU0fYJYr9ZMlVSiu/TCIpCWchCmxxTgsIzGM1NKTBHq2lDWrJrJqiUQ WiRo3l1/Bk7++cAAzK6Fv9ENG2nMJDnnQCL/VQW1vlZE75IJaROe8eH9m/fywDLyiUTu qqq497YA/Zr3P3It0K/NWLTN0Pqi8Lm/cEM4yEfG9SKpn+iBgFBfuTXbGn7veevEoKEl t32A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HvvVUu2q; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm28si1753264edb.528.2021.01.27.15.53.47; Wed, 27 Jan 2021 15:54:12 -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=@linuxfoundation.org header.s=korg header.b=HvvVUu2q; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237530AbhA0MHP (ORCPT + 99 others); Wed, 27 Jan 2021 07:07:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:42152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237477AbhA0MFi (ORCPT ); Wed, 27 Jan 2021 07:05:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 12BD420780; Wed, 27 Jan 2021 12:04:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611749097; bh=yTmGQ0DVnvKLau7tig8myya+Wgj/1YA3iyYkOFhac4c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HvvVUu2qRmQyYXd1/HWhxJjQMiHV7QRrST1dY4bSA+zoeWEfbDUCc7nSreQjncaWh HDoY9lJQfJ7VZSf2ut5MQTzKLnUqqlAQPeHgfZPlsLjO8UARzQhtpdvRxZlm32NKwd dJV2rFyTNEQA/mlqcx8oMSyC6owhW3NeBbJ0t8gE= Date: Wed, 27 Jan 2021 13:04:55 +0100 From: Greg KH To: richard.gong@linux.intel.com Cc: mdf@kernel.org, trix@redhat.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, dinguyen@kernel.org, sridhar.rajagopal@intel.com, Richard Gong Subject: Re: [PATCHv3 1/6] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag Message-ID: References: <1611608188-25621-1-git-send-email-richard.gong@linux.intel.com> <1611608188-25621-2-git-send-email-richard.gong@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1611608188-25621-2-git-send-email-richard.gong@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 02:56:23PM -0600, richard.gong@linux.intel.com wrote: > From: Richard Gong > > Add COMMAND_AUTHENTICATE_BITSTREAM command flag for new added bitstream > authentication feature. Authenticating a bitstream is to make sure a signed > bitstream has the valid signatures. > > Except for the actual configuration of the device, the bitstream > authentication works the same way as FPGA configuration does. If the > authentication passes, the signed bitstream will be programmed into QSPI > flash memory and will be expected to boot without issues. > > Clean up COMMAND_RECONFIG_FLAG_PARTIAL flag by resetting it to 0, which > aligns with the firmware settings. > > Signed-off-by: Richard Gong > --- > v3: no change > v2: new added > --- > include/linux/firmware/intel/stratix10-svc-client.h | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/include/linux/firmware/intel/stratix10-svc-client.h b/include/linux/firmware/intel/stratix10-svc-client.h > index ebc2956..7ada1f2 100644 > --- a/include/linux/firmware/intel/stratix10-svc-client.h > +++ b/include/linux/firmware/intel/stratix10-svc-client.h > @@ -51,12 +51,17 @@ > #define SVC_STATUS_NO_SUPPORT 6 > > /* > - * Flag bit for COMMAND_RECONFIG > + * Flag for COMMAND_RECONFIG, in bit number > * > * COMMAND_RECONFIG_FLAG_PARTIAL: > - * Set to FPGA configuration type (full or partial). > + * Set for partial FPGA configuration. > + * > + * COMMAND_AUTHENTICATE_BITSTREAM: > + * Set for bitstream authentication, which makes sure a signed bitstream > + * has valid signatures before committing it to QSPI flash memory. > */ > -#define COMMAND_RECONFIG_FLAG_PARTIAL 1 > +#define COMMAND_RECONFIG_FLAG_PARTIAL 0 So is this a bugfix, changing this value to the correct one? If so, shouldn't this be a stand-alone patch and get backported to stable kernel releases? If not, then no one uses this flag today? thanks, greg k-h