Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2741922pxb; Sat, 30 Jan 2021 12:50:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7/Ex3ETuj87+bPXqNE6AqwhNF6OvN3J4nWR7ZvJaC3dbqC+FJu7z+G5wnC9hZD8srn3E4 X-Received: by 2002:a17:906:5618:: with SMTP id f24mr10464948ejq.517.1612039844490; Sat, 30 Jan 2021 12:50:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612039844; cv=none; d=google.com; s=arc-20160816; b=PmhSZzUrQDc9OOcgY7FNk7fmoU6S7PRtPwHIvAt2F/reStpmRDnni7o1sbR3VkTZBz BEQfVgU0ApNDcidZ6EKr0s4QERJQA84mEihExRXxSAbPhOQ4dYs28L+8e/oQPIerss6h 2qn/p9mRWtzOflUuvcFJgM4rNI+cb06CpF9DBNwCgOuo5TsHpj3Al2cPMQhK2gzgZlyi ECYHKIlLeD3CSoUMqmChqXnmduNEiW6Lr/tEI/4F6FdIOTARlySgu2P7/TcsrBsuvGCL vFZ90ERtl3PuIsPNF4razfHk++pwyY8E77RsXV7QVLRPZQ0uqABzf6Smm9bif7ucTYXS 1R8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=bLI+ZNwZ/Px1wCi6hAgk4/4culKMpmswS9uXcxraxYg=; b=AgmYI3x22hMWv/xGJi+nRXMHiJVwu1XOwutUc3W4LrPmjjGNmYer1YMkWENilsC6mI J0wQAL6aoPNnel+qQF0/8UzkbM4/otwCU7nBWbqM8kXFjYk3/f0WMk2cJC83se28f835 waalITD5c31W5nOGniXkXJ0h2j/yUic6Jbof8DhKw25P7SDWKeOEUPDWKe4AwQISLB8V Tjdl2n9Xbu1NLCo1W3pYLUPriy/PhXd5lsXtcW4JySv2ux1ybo1iWvEIRPujGph5WR9s eLnktfK4qYtMp4QM8UzshQYOIHDrpwr4C59lccf0FzJH59G56i3vmcT/bqUuN4xuq2WZ e5Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CLiYs4ye; 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 w22si7161407ejn.107.2021.01.30.12.50.19; Sat, 30 Jan 2021 12:50:44 -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=CLiYs4ye; 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 S232181AbhA3Us3 (ORCPT + 99 others); Sat, 30 Jan 2021 15:48:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:52628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbhA3Us2 (ORCPT ); Sat, 30 Jan 2021 15:48:28 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE19464E0E; Sat, 30 Jan 2021 20:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612039668; bh=bLI+ZNwZ/Px1wCi6hAgk4/4culKMpmswS9uXcxraxYg=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=CLiYs4yeKmz/ahstkrgtQsBiQkWseA6roT+zDTfPndAuKeoJRdfdF7/edA1Xtb2Qx Rn5U5twSSATBFNMN4vtcJKtYewLbabTYWv30YnQlMDZuZ8bZHtyIhM7rqPFeiRJaPG YKSHpNAHMhcZ2JeoRfNV4EkHZxLv500f4QSBbheqvShnmOc8TReBm2MvjPJoGusQxx GhwI2jAx5mhBR+tJw5oqzxh5mhJdZo6ZJiDvAHhZ4eWM9sNglWHERrgLZOCxdrjzVp xRn+DhNwduxNUp2e2uJU+EI01mvU1PrD7byhVpsPuC0pG7R7WZJugxdSyzYloLP13u mulDXXspf9PNg== Message-ID: Subject: Re: [PATCH v2] tpm_tis: Add missing tpm_request/relinquish_locality calls From: Jarkko Sakkinen To: Lukasz Majczak , Guenter Roeck , James Bottomley Cc: Tj , Dirk Gouders , Peter Huewe , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Radoslaw Biernacki , Marcin Wojtas , Alex Levin Date: Sat, 30 Jan 2021 22:47:43 +0200 In-Reply-To: <464454f440df67d3470e67ff0386bbc306d07dac.camel@kernel.org> References: <20210123014247.989368-1-lma@semihalf.com> <20210128130753.1283534-1-lma@semihalf.com> <464454f440df67d3470e67ff0386bbc306d07dac.camel@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.38.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2021-01-30 at 22:40 +0200, Jarkko Sakkinen wrote: > On Thu, 2021-01-28 at 14:07 +0100, Lukasz Majczak wrote: > > There is a missing call to tpm_request_locality before the call to > > the tpm_get_timeouts() and tpm_tis_probe_irq_single(). As the current > > approach might work for tpm2, it fails for tpm1.x - in that case > > call to tpm_get_timeouts() or tpm_tis_probe_irq_single() > > without locality fails and in turn causes tpm_tis_core_init() to fail. > > Tested on Samsung Chromebook Pro (Caroline). > >=20 > > Signed-off-by: Lukasz Majczak >=20 > Is it possible that you test against linux-next and see if any > problems still arise? I've applied the locality fixes from James. Also one nit: if any problems still persist, please add a snippet from klog to your commit message. /Jarkko