Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp658748pxb; Tue, 2 Feb 2021 14:38:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwO23kRq4trcCMUPmbXR8vckqddRz0Pt3pqYlt8XwEtDd8p39fjNEhLv7F3+4/X9F0lOvjT X-Received: by 2002:a50:9f4e:: with SMTP id b72mr321507edf.4.1612305531709; Tue, 02 Feb 2021 14:38:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612305531; cv=none; d=google.com; s=arc-20160816; b=Gflmnqpmh4UhZu2+cVBg5q8mdIexYnaT5BqD5LDT05AvberHB/2sXhWLaRglIu7jcM +a9zSfZCUFrclfH1fMN3hMPrd2K5D4+boPeaFoNHE0PvUmxg+ee/Ao1P4dxqwrEd7XZP Wz4fklR/FTMUuw/EAAIQaXRMrtLdOtiM1gV8eELw7K9/81j1HQQd3ELPU7oid8hk3ZNB kO9Nd1lWx9HHYXOX9OcZBi92AX6m7FBQUz2b/kczUja37NDIVmkjui/krWytyLAgeige EMhr756/JX/3C0b7/aGyZnZ2XLcViPNwOa0AQIWGsCg0KUVKjFSMUx/3pOV4OhtUaYkZ s5nA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ljne8L29+vernJyttDmeZtevElgPJSMdoXW4yDCMrls=; b=p2Y9Z1aPN20U+FVWCeM5Pl6jAnct/JDnu3No6Bav+XhdaXAP0s2L4Y+nrsVTnpksIe 0i/Eficz1Ol+H/gNUbgLN+ChrhXCj+ba2M+fkYz/SpklQGQfAEOTM7m6pMuIJ6xGo2tM lsLMbTk9ZnOc1fuKoFIjYRsZlsToXghPC3kMkSa85x5RIeWISqUdrYNL61gpE2zPFqWL wrIYc75dJgsBdJVCcAnKTDGFXFvJ5J/dAss/3kVG8swlYRhwvIwQrq7JbaCZoq+otxLu 2TLTO2aFnljgrYoXN1e536JA7GLWltNfGqNziSteL1VflyQgvtts6r8Fs/fXpwbs0XBO Xwsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eHbAAO/0"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mj22si149840ejb.115.2021.02.02.14.38.26; Tue, 02 Feb 2021 14:38:51 -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=@kernel.org header.s=k20201202 header.b="eHbAAO/0"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235499AbhBBPhg (ORCPT + 99 others); Tue, 2 Feb 2021 10:37:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:44240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235555AbhBBPe3 (ORCPT ); Tue, 2 Feb 2021 10:34:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2B7D864E92; Tue, 2 Feb 2021 15:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612280028; bh=T3DVUO/GgGfi86E/fUEjepr1D9Sby+jHPBoOfChLKkc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eHbAAO/01CxQRjzrZuDMHZUN0rn6FkGXUoJ3Qv21irQdNM94ukiy6Ohqgqfdfcpgc mIFM+ed4gFJkkH09s3XMDqUqa0x2mSDs3NcJi7tBnIAgEvHgJ5IXPhlLniK2w3RZaL mRNuU4RmTOTvnuDjo1K0DRYEZtVPuqy0VpqPr2FyfLh4eqlQUNHj488ivreNy9d6dY eA3C1+5cFVmRzllY6+3YPQiWXwZR5oIe14O8yyLaoK4ms/S9q8NV9BiybHyzwIZDs5 2DjgVa2NqWUh9TkNfYI5LK3KPWo7tgzk6Zwe2HxO4k3bZGh3fbIE/JQz1U8qofPhC1 R4FMTr+kppAoQ== Date: Tue, 2 Feb 2021 17:33:41 +0200 From: Jarkko Sakkinen To: Guenter Roeck Cc: =?utf-8?Q?=C5=81ukasz?= Majczak , Peter Huewe , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Radoslaw Biernacki , Marcin Wojtas , Alex Levin , James.Bottomley@hansenpartnership.com Subject: Re: [PATCH] tpm_tis: Add missing start/stop_tpm_chip calls Message-ID: References: <20210123014247.989368-1-lma@semihalf.com> <20210125171846.GA31929@roeck-us.net> <7a702108-ec9e-b2e2-be89-3590437c0eb5@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7a702108-ec9e-b2e2-be89-3590437c0eb5@roeck-us.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 30, 2021 at 03:49:09PM -0800, Guenter Roeck wrote: > On 1/29/21 2:59 PM, Jarkko Sakkinen wrote: > > On Tue, Jan 26, 2021 at 04:46:07PM +0100, Ɓukasz Majczak wrote: > >> Hi Jarkko, Guenter > >> > >> Yes, here are the logs when failure occurs - > >> https://gist.github.com/semihalf-majczak-lukasz/1575461f585f1e7fb1e9366b8eceaab9 > >> Look for a phrase "TPM returned invalid status" > >> > >> Guenter - good suggestion - I will try to keep it as tight as possible. > >> > >> Best regards, > >> Lukasz > > > > Is it possible for you try out with linux-next? Thanks. It's a known > > issue, which ought to be fixed by now. > > > > The log message is harmless, it'a warning not panic, and does not > > endanger system stability. WARN()'s always dump stack trace. No oops > > is happening. > > > > There is a note in the kernel documentation which states: > > Note that the WARN()-family should only be used for "expected to > be unreachable" situations. If you want to warn about "reachable > but undesirable" situations, please use the pr_warn()-family of > functions. > > It seems to me that "harmless" doesn't really fit the expected > use of WARN(). Should it possibly be converted to pr_warn() ? It should, and I agree that it was a mistake to merge the commit that added this WARN(). I'm sending a late PR to Linus containing just the James' fixes. I'll include one line change to that PR, that does just what you suggested. It also lacks useful information, i.e. the status. I just send a fixed with your "suggested-by". Can you review and ack it ASAP so that I can then go on and send PR to Linus? /Jarkko