Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3710911pxb; Tue, 26 Jan 2021 02:46:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzn7hf3b+Jj4OXsiIJGen6pOMtgjKvGW7xoHRFGKHqy7dUKwrH9BVHxz2eN5k2Rxq/FpIZa X-Received: by 2002:a05:6402:22a8:: with SMTP id cx8mr4217071edb.32.1611657994348; Tue, 26 Jan 2021 02:46:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611657994; cv=none; d=google.com; s=arc-20160816; b=JYlqLGh3HPRgKaHFIzWrHAooq/ZEHiAI0574zJJE5LrkZNTppv+tZ5EwdEsIiTFqVY V3FVE9A0tAgqk1F1DziD3xMdiz3zZjQ/sUOBlvkcjX+Gia3wn9CZYaO0AbTmTf4Mc/At DdRPrpHzt+bjgWxlwKeqFcGzxNBl1aAkqCPqMjdA6irzYrLNCHlG9yPdDOTJNzCkI8b2 EmmUPcZUEexXTaAm1q69SamqcfSLmJ10HG2wAKoV3r/tme5iMfWcaalhEtWz8fgpK/gp YA3SsYsiVaxxpyIAteTwvJvCLT2Pw4EODFvvuwA4RyKN7hX5MNBjC/p/krS4XPZVHBJ5 X9BA== 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=WpxnbwZh8re7iEdGwSnHt+vW+KIGHv3pKtp3kGfTPAI=; b=p1FDruQFmH6xeGjbXHYawWD4Zt3gQE1JMU7jtlgv4yPv1ScCtEGpYVaoOTitgHufO6 B26b85QuIJrfPGEmAiK0X0c2nFhZGvwBhkUUp2y0lG2Vt8R0iJFXWgw1/WbmsjzNCxG6 Z9wbOxx2MaGYV6CBlHLnBj77/Kquob8FaXvg+PBYwqdfW8zzm1jvan3BIQwkNbog0IpA aEMucwWRYwsDEKqkp/J2r0c09IBpvPwk+92OOepWWDqr1jxa6TgEWFqdJ2ZTj8enep7g uP/DXUs7+JttPnQ2VHN4MY2bCtjLY/65PqdLFl9f7jAS5rtXhD8UsyhF9eD+iJMfZVbU 43yA== 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 hp6si6958588ejc.532.2021.01.26.02.46.10; Tue, 26 Jan 2021 02:46:34 -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 S1731347AbhAZKlz (ORCPT + 99 others); Tue, 26 Jan 2021 05:41:55 -0500 Received: from mga02.intel.com ([134.134.136.20]:47497 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729149AbhAZCDd (ORCPT ); Mon, 25 Jan 2021 21:03:33 -0500 IronPort-SDR: 2FL3CYhY3uEP/JmRw9FbXnJX5h/W6USOqlvL6CtltOpWqG0ZtE26sPsUFPkyW020rx2+C3kHI8 gRk+aX04hmxw== X-IronPort-AV: E=McAfee;i="6000,8403,9875"; a="166933633" X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="166933633" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2021 17:55:57 -0800 IronPort-SDR: ZHgMOGhms3lDsGr039E0x4fU1thOqihYdvFLU1PrBvdWAhTdipQqJxInTFCzDdZPiiOYQiJ2xo PWvH24BnMadw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="356565382" Received: from marshy.an.intel.com (HELO [10.122.105.143]) ([10.122.105.143]) by orsmga006.jf.intel.com with ESMTP; 25 Jan 2021 17:55:56 -0800 Subject: Re: [PATCHv3 1/6] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag To: Tom Rix , mdf@kernel.org, gregkh@linuxfoundation.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dinguyen@kernel.org, sridhar.rajagopal@intel.com, Richard Gong References: <1611608188-25621-1-git-send-email-richard.gong@linux.intel.com> <1611608188-25621-2-git-send-email-richard.gong@linux.intel.com> <4e1c60e6-8e6e-d0c6-970f-674958ffe91d@redhat.com> From: Richard Gong Message-ID: Date: Mon, 25 Jan 2021 20:16:43 -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: <4e1c60e6-8e6e-d0c6-970f-674958ffe91d@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 1/25/21 4:56 PM, Tom Rix wrote: > > On 1/25/21 12:56 PM, 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 >> >> /* > > This patch fails to apply, i believe the conflict is because in mainline this is '/**' not '/*' > > Please check or point me at the branch/tag you are using. > I am using next-20210125 tag. > I am using char-misc-next. > > Tom > > Tom > Regards, Richard