Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3132701ybc; Mon, 18 Nov 2019 10:02:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyoIKc9Cv6AuulibmIOkvtulMEprQIY/iL7Kl8gcBFHxbLAu6i8tm7onBTSjFUeBUibZhIw X-Received: by 2002:ac2:46f3:: with SMTP id q19mr489829lfo.65.1574100152446; Mon, 18 Nov 2019 10:02:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574100152; cv=none; d=google.com; s=arc-20160816; b=sLgkfm7OfHg8SiMC4o2cbBk8phwxK2uEiOPErIQUqJbT9Ao/WHtASXT8bCfFcfOrcn CaqKXJRZVU7QyasiUCHBpZoJID4W8yvPeLFMxbNdLLqopAQWCUHIfB5tTxBvutSTyFza aQdQAoC82EByLZvF4V9z+fXMglPzPmF8oRuu1on80wFdAK+l7KFyPJQUK090vslF3f7t Tb/Hnn8l5CJUPfrkSKLfoTspRvdyjaXLtf9QCNrBuAmm4XmsnM9AD3RuueXMKcXs6gEK XEz0kBhH63/OkxD0rDD2czYGNVabapz1jg5UEE1/HRiYzzBYzpqrbls1rxfOYOT5VEb/ iY4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DlNmEZ/rZ2/39jfbFDSCuDxDtr2o3mTAVTPD7pwfZ1o=; b=qUL9W+sgsEL7NeVPt+U9HPeKzwvQ/dRr2JUJX/p51MkCPH59CLWJnigah1m/IGjULm 4BYdE4oUbhCg6YBXap5CuXgHw287s9n5wvMfzLiXSoLHmt2F4tOObuvonfcr5WpXr+f8 DuVbBK0LVJpJOibsXNoskbQ2nKMwT/vrxgmm4hpK5t8JK7jT//ah9M15SS0H8I5dpfsp dYt76LXdA/A99wkiW4dG5DlRdNT/lBTlpDlQQ23VePK2fPhwcGiGH32+8KHbebFqN0Wn KKhKAsEgZRQqWKLm1Bx143s2Pg3K6BzGtGB5I85mA+mkrSbNa0NhKKwXig6OvcxMnRn4 SE2g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si14161313edl.442.2019.11.18.10.02.06; Mon, 18 Nov 2019 10:02:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726967AbfKRR72 (ORCPT + 99 others); Mon, 18 Nov 2019 12:59:28 -0500 Received: from mga02.intel.com ([134.134.136.20]:53198 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfKRR72 (ORCPT ); Mon, 18 Nov 2019 12:59:28 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Nov 2019 09:59:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,321,1569308400"; d="scan'208";a="208926876" Received: from cooperwu-mobl.gar.corp.intel.com (HELO localhost) ([10.252.3.195]) by orsmga003.jf.intel.com with ESMTP; 18 Nov 2019 09:59:25 -0800 Date: Mon, 18 Nov 2019 19:59:24 +0200 From: Jarkko Sakkinen To: Stefan Berger Cc: Stefan Berger , linux-integrity@vger.kernel.org, jsnitsel@redhat.com, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH] tpm_tis: Move setting of TPM_CHIP_FLAG_IRQ into tpm_tis_probe_irq_single Message-ID: <20191118175924.GA5984@linux.intel.com> References: <20191112202725.3009814-1-stefanb@linux.vnet.ibm.com> <20191114164151.GB9528@linux.intel.com> <20191114164426.GC9528@linux.intel.com> <185664a9-58f2-2a4b-4e6b-8d7750a35690@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <185664a9-58f2-2a4b-4e6b-8d7750a35690@linux.ibm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 16, 2019 at 09:32:06AM -0500, Stefan Berger wrote: > On 11/14/19 11:44 AM, Jarkko Sakkinen wrote: > > On Thu, Nov 14, 2019 at 06:41:51PM +0200, Jarkko Sakkinen wrote: > > > On Tue, Nov 12, 2019 at 03:27:25PM -0500, Stefan Berger wrote: > > > > From: Stefan Berger > > > > > > > > Move the setting of the TPM_CHIP_FLAG_IRQ for irq probing into > > > > tpm_tis_probe_irq_single before calling tpm_tis_gen_interrupt. > > > > This move handles error conditions better that may arise if anything > > > > before fails in tpm_tis_probe_irq_single. > > > > > > > > Signed-off-by: Stefan Berger > > > > Suggested-by: Jerry Snitselaar > > > What about just changing the condition? > > Also cannot take this since it is not a bug (no fixes tag). > > I'll repost but will wait until Jerry has tested it on that machine. OK, great, thank you. This is really needs some reasoning on why this was the right way to fix the issue. In addition, a source code comment might make sense. /Jarkko