Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp161086ybl; Wed, 11 Dec 2019 15:50:35 -0800 (PST) X-Google-Smtp-Source: APXvYqz2nZMbWGW28TA+3EAsz2mT946XtMLglhuQhyArPd5U95nOFCTITbsxGhYnJRhdaElWlBcF X-Received: by 2002:a9d:7a4b:: with SMTP id z11mr4784947otm.46.1576108235537; Wed, 11 Dec 2019 15:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576108235; cv=none; d=google.com; s=arc-20160816; b=Su1EYdLLB61q82eMq/fA/4IiiTk4V2lCbl9waNK97Cu6GqGbnB1mr4cMyBZNPfXGAT w+EijFQ6CC+IMGArM9akAMw8fveeMtwuXbO3Ii+M2cddcx63BoiLbOBEYhvPfbU6yan+ 7Jz05cBoFpqS/4snjWx6V/OKk17syZBPT0Hq6wqVNIBvC8LSEyKxmNsUIHh22yG0aNmK Gw57APRsKRbOtZ2qKyX0y8jcJjYCMeicK1mKuhCrl+00+0Dnamehm9qcWxGiepSJf0Jx WfrR10hF6FDYsa7mPMhwZTWibVk083AhwzqhcPReToRpF8zAt66yr8bl7RRX686OHO1L mn8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=eZ6Qbamhyp6RLhy20TpwKVCBIKcGB4S+juUY4aaY00E=; b=0BYMEhnv8z8We0S7dql9CHsMqTwxLofn6znpEsuU8E2ejRGLcK+MIA86vJRszjfYwN t2C3jYqMjmA5cUXcrAVDd3hLGSGu7UM8PvSOLsnnAnXn2OiK560s2j/OP9MkU+KgJKfa C6ZKyTQsJzi09MbTh7en+Ykv9ynsi6tCoDP7mUArjopgSqVpMYI7aDaHNoM93tjutvVp Fjl+ITjLyfaJCTPdULGaFE+/AaDMh0kvVi6YQZEK+qCLo0gHmVDPl2hbMhoc3WlZ5mfB vP000wfpDB1KPE87ME3B2Mw4b+UjXd+sypJma4KBXK/sORFllF8cYxSOCMH8WqMaroTl mUbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RzZxNYP3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d187si2140405oif.33.2019.12.11.15.50.22; Wed, 11 Dec 2019 15:50:35 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RzZxNYP3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727145AbfLKXtu (ORCPT + 99 others); Wed, 11 Dec 2019 18:49:50 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:24083 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726989AbfLKXtu (ORCPT ); Wed, 11 Dec 2019 18:49:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576108188; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=eZ6Qbamhyp6RLhy20TpwKVCBIKcGB4S+juUY4aaY00E=; b=RzZxNYP374suPIvn1VvvPJJvBXLnvXgLBHsO3TQMV4uJSFD+FnCrG158WKyEfTqTS71ktH tDRUKyotfb4yAjFmOFSmaGSpkbO+F1C8Nwmg8RPRJd+BNF6nEqKBiObUq7/WyPNkRcz3jT AYV5estexCTN1IlPuCiOZRp/BqRk+zk= Received: from mail-yb1-f199.google.com (mail-yb1-f199.google.com [209.85.219.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-40-_EbgTpBhNKW__YKbENIfnA-1; Wed, 11 Dec 2019 18:49:47 -0500 X-MC-Unique: _EbgTpBhNKW__YKbENIfnA-1 Received: by mail-yb1-f199.google.com with SMTP id e11so386592ybn.12 for ; Wed, 11 Dec 2019 15:49:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=eZ6Qbamhyp6RLhy20TpwKVCBIKcGB4S+juUY4aaY00E=; b=B9M7//ZZzBovHtj1Vz+D2bi4xH/ysu8QCBHbWKP3FM4Da/T/AX80rgkbEEacppROKG Mb6a9DCaqKRQUiuXpsxoyh1SbKoO/WkGjtzLNnHMJv7XcKnev49ls+W20lrg5eVGG15g RT7EYHa+mGPAKsVL+EqQDGdvfPeGIqHvMksWc8mj3N9Yy9Sz+T35nol3P+5nZoT66gFT 8nnwWCpc3CtjK5nMiKCIsszMGaOemoDA957rFaxbNgetLIpIXcQUaj3YxchlXnk+RiwZ IRqgzoXnyh9Hv14pfiN9HwwJ09o4wCOTxbReP3OsWNzl4EucVSrq8y/IH6dhqsoo69Gg ZGJA== X-Gm-Message-State: APjAAAXCEUMYumK2oYllmkd30emiyBLC0wA767dMgZ/4tAxoTSFN5QLT MHlLhDDkMzZ4vu6cwf9QoboutYAKr3eXWw1owlAYTNkDl17/ASjmGdeZfZPWnySZqtO7i2x5mn9 VQkSskw9HFHepHI6ZPMY3G8s4 X-Received: by 2002:a25:4192:: with SMTP id o140mr2186054yba.70.1576108187112; Wed, 11 Dec 2019 15:49:47 -0800 (PST) X-Received: by 2002:a25:4192:: with SMTP id o140mr2186040yba.70.1576108186854; Wed, 11 Dec 2019 15:49:46 -0800 (PST) Received: from localhost (ip70-163-223-149.ph.ph.cox.net. [70.163.223.149]) by smtp.gmail.com with ESMTPSA id x184sm1816777ywg.4.2019.12.11.15.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 15:49:46 -0800 (PST) Date: Wed, 11 Dec 2019 16:49:29 -0700 From: Jerry Snitselaar To: Dan Williams Cc: Linux Kernel Mailing List , Christian Bundy , Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Stefan Berger , stable , linux-integrity@vger.kernel.org Subject: Re: [PATCH] tpm_tis: reserve chip for duration of tpm_tis_core_init Message-ID: <20191211234929.in7mrh3wq4pkhvsm@cantor> Reply-To: Jerry Snitselaar Mail-Followup-To: Dan Williams , Linux Kernel Mailing List , Christian Bundy , Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Stefan Berger , stable , linux-integrity@vger.kernel.org References: <20191211231758.22263-1-jsnitsel@redhat.com> <20191211232612.miaizaxxikhlgvfj@cantor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed Dec 11 19, Dan Williams wrote: >On Wed, Dec 11, 2019 at 3:27 PM Jerry Snitselaar wrote: >> >> On Wed Dec 11 19, Jerry Snitselaar wrote: >> >Instead of repeatedly calling tpm_chip_start/tpm_chip_stop when >> >issuing commands to the tpm during initialization, just reserve the >> >chip after wait_startup, and release it when we are ready to call >> >tpm_chip_register. >> > >> >Cc: Christian Bundy >> >Cc: Dan Williams >> >Cc: Peter Huewe >> >Cc: Jarkko Sakkinen >> >Cc: Jason Gunthorpe >> >Cc: Stefan Berger >> >Cc: stable@vger.kernel.org >> >Cc: linux-intergrity@vger.kernel.org >> >> Typo on the list address, do you want me to resend Jarkko? >> >> >Fixes: a3fbfae82b4c ("tpm: take TPM chip power gating out of tpm_transmit()") >> >Signed-off-by: Jerry Snitselaar >> >--- >> >> I did some initial testing with both a 1.2 device and a 2.0 device here. >> Christian, can you verify that this still solves your timeouts problem >> you were seeing? Dan, can you try this on the internal system with >> the interrupt issues? I will see if I can get the t490s owner to run >> it as well. > >Will do. I assume you'd also want to add 'Fixes: 5b359c7c4372 >("tpm_tis_core: Turn on the TPM before probing IRQ's")' if it works? > Yes. I'm not certain this deals with the interrupt issue though, so didn't want to stick it on there yet. I guess it should go on there anyways since it is replacing that code. I'll post a v2.