Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp665637ybc; Sat, 16 Nov 2019 06:34:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxLzFcWoCqtJxH6ZauN53cQMggbtxLUnbYIe/g7tX8+4aqBO7jMg6zEjVwa44JcI3MZXZWA X-Received: by 2002:a17:906:57d7:: with SMTP id u23mr10335051ejr.130.1573914879968; Sat, 16 Nov 2019 06:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573914879; cv=none; d=google.com; s=arc-20160816; b=cjTdkqq5o5t/7ha/XLL0ccLq7PtA9nbK+X3Ns3s2TXAMAm37+q1LoZY790ME/sH3tx gAMgcnuhTS+qGr72o+nwpOg1lm2ij8xq88Ck1j/ITCmwGTWbmRnKHyzJzJVXBEk8fgL1 0t7X6ALcFod9JqKLOjW0VgMgUIT7zSXBmdWwjlRg9IHU5kHjrjJ4okOncDpfGbqZ87Kj WRenUvjtM3iezE15Gt6XchLIwRGgt4QG9K8wFC937m1dH5Bne7cBP9ztr3dKTF0Yrkue CmUVoVU9n/9sNcoT9YiVSEtv+hRitmK3UBC5nRN5s99HymDwdMZ1LX71zyl3t8uxlHK3 3oIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hDasbCc/6R5KgJ1p8dw8Bm7/VDKQf/hYUTc8X52Mo8Y=; b=KfHqFk94UOFXzALl712W2l7cPmPtYpAOeYWBfhGLpmTNIP+TwigM8DEjwI84r9mgiV m2MEGqgEK62wOc4EgnJ9e1Engnrfu3cjhqJSmgBaO88bCgNSxODlk71hS8rQe093EbcO rHEJVKuANtRQ40JIre2V9umcfL5CsKjZog6pYlrfPeV6DfqsmvbiZ672Shx7tLUzqVCU K5yXzspyLxrH0i497xHilHknle90PYatoFTQw5maF203ORLGIPayD7tpC7k77IXZxukS GJMSKBwDMA1x+jV2Clmywy1dGA3q0DC09Nc+Gv/C5CdRBYXlnp4yGtSvSwzQlE2JvxEZ FclA== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x26si8771518eda.404.2019.11.16.06.34.12; Sat, 16 Nov 2019 06:34:39 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727672AbfKPOdK (ORCPT + 99 others); Sat, 16 Nov 2019 09:33:10 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:9586 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727617AbfKPOdK (ORCPT ); Sat, 16 Nov 2019 09:33:10 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xAGEVnjn098442; Sat, 16 Nov 2019 09:32:08 -0500 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wacaj952r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 16 Nov 2019 09:32:08 -0500 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id xAGEVlKx098072; Sat, 16 Nov 2019 09:32:08 -0500 Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wacaj952h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 16 Nov 2019 09:32:07 -0500 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id xAGETgQn002017; Sat, 16 Nov 2019 14:32:11 GMT Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by ppma01wdc.us.ibm.com with ESMTP id 2wa8r5bk3s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 16 Nov 2019 14:32:11 +0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xAGEW6nD33227092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 16 Nov 2019 14:32:06 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 538DBB205F; Sat, 16 Nov 2019 14:32:06 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 433FBB2067; Sat, 16 Nov 2019 14:32:06 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Sat, 16 Nov 2019 14:32:06 +0000 (GMT) Subject: Re: [PATCH] tpm_tis: Move setting of TPM_CHIP_FLAG_IRQ into tpm_tis_probe_irq_single To: Jarkko Sakkinen , Stefan Berger Cc: linux-integrity@vger.kernel.org, jsnitsel@redhat.com, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org References: <20191112202725.3009814-1-stefanb@linux.vnet.ibm.com> <20191114164151.GB9528@linux.intel.com> <20191114164426.GC9528@linux.intel.com> From: Stefan Berger Message-ID: <185664a9-58f2-2a4b-4e6b-8d7750a35690@linux.ibm.com> Date: Sat, 16 Nov 2019 09:32:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191114164426.GC9528@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-16_04:2019-11-15,2019-11-16 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxscore=0 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=857 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911160137 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.    Stefan > > /Jarkko