Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1368078imj; Thu, 7 Feb 2019 23:48:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ5bprLLhVh1TJmzq99/eM/RcRkUHPFjQZramTXuyYF5GEeuZQh8KKxpGcZUo+0wWagP96A X-Received: by 2002:a17:902:b01:: with SMTP id 1mr21566486plq.331.1549612087324; Thu, 07 Feb 2019 23:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549612087; cv=none; d=google.com; s=arc-20160816; b=MhNS4HyjVUjLcHn+T8jRj5Fg32u/X0zP3u1txSHDIsQjrvcbUwsKpc5gaqI12ozuBQ 8vNktS6or9h+P4dR8Z8Rir3JZZg5DFtKbHL3FOCtuhnyPBUXnx9sQJeYkK4IQ7ofD8n3 Q2wFD4g0gKqZCZi9ggu2p2/27JmkmlYL/nmA7VvpvQcRzci+MAXyEdoyXSh5gOW3eaZO spJEIhS9ZWt1uHVhobd3GboJLi9ExdayskJbfKr5nUz0+BsBJwcL9PIFIIUYp/gKdwiG AdHU4DsIpAIbmkXgiByd2ltvGqhzM4H4QyqBhQ5dFp5nkjzPNEWyulGYoo6LMJGRRv6g rGAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fX6P6rVvPOy51L210O0BwSypU4wZYyjk6DhHw4w4604=; b=s/hSYa0D6bQ2EwiA8EKmA2HwMcrIDfWEbkhoPoXQY9/oiosLXC897tnNNzRssF1DBR 2xGnlDE45gAY5CwFSKgWS0M2URp+SJbKb0oGxjRbAnlepPQAyWuIIDwFN9CtJBgVqaQD xPwrcfgkWGvjD9t027O9UBuj6miwJNk3TuWT+aigBlXF1Ly9zxoSVTSMdueO/g+ahChK 2pzd+pW/BSYY8wBz4EKNMyje0rPdJbHC5F0sAU9wJOxnOed/yxjX9axSu8uuoOFOPred h9zHrI7yTn+K50xNxgZvs00Enqr5+41+kEdkVx2nUSIiw8+SnUZyukhpL5U14z9+jTEz Sn2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 39si1677577plc.153.2019.02.07.23.47.52; Thu, 07 Feb 2019 23:48:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727239AbfBHHrH (ORCPT + 99 others); Fri, 8 Feb 2019 02:47:07 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:34206 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbfBHHrH (ORCPT ); Fri, 8 Feb 2019 02:47:07 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1gs0sL-0000lc-73; Fri, 08 Feb 2019 15:47:05 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1gs0sJ-0002SK-Qs; Fri, 08 Feb 2019 15:47:03 +0800 Date: Fri, 8 Feb 2019 15:47:03 +0800 From: Herbert Xu To: "Singh, Brijesh" Cc: "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Lendacky, Thomas" , "Hook, Gary" Subject: Re: [PATCH] crypto: ccp - fix the SEV probe in kexec boot path Message-ID: <20190208074703.ydqn6u75bbtkurhg@gondor.apana.org.au> References: <20190130205710.14268-1-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190130205710.14268-1-brijesh.singh@amd.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 30, 2019 at 08:57:52PM +0000, Singh, Brijesh wrote: > A kexec reboot may leave the firmware in INIT or WORKING state. > Currently, we issue PLATFORM_INIT command during the probe without > checking the current state. The PLATFORM_INIT command fails if the > FW is already in INIT state. Lets check the current state, if FW > is not in UNINIT state then transition it to UNINIT before > initializing or upgrading the FW. > > Signed-off-by: Brijesh Singh > Cc: Tom Lendacky > Cc: Gary Hook > Reviewed-by: Tom Lendacky > --- > drivers/crypto/ccp/psp-dev.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt