Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp727811pxb; Tue, 2 Feb 2021 16:53:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGMZUDXNQUyg/koJWyUQifwe61YLomHa3TNiyH2c1Y55F77pA5iL+XsG9C6sEuNEuGJk40 X-Received: by 2002:aa7:de19:: with SMTP id h25mr647748edv.145.1612313600839; Tue, 02 Feb 2021 16:53:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612313600; cv=none; d=google.com; s=arc-20160816; b=AD8VXfRXN9tgej+O1JzHJgrJhI7e7UAiFvAipRvsoEE4HWhrr438YCQGD0HNd2NWTw /gU4vfnudMfeUs6zPkNP7WrYubpq5ednO9oR8kroW/upZ9WBJWmhepPy37uCevs8kXH5 9wkVNPublNTXXUJqVILFZrhixQoBQ6/hayFusPvJfYSa18lQFOrqx/Oq2FVrCOGhp8M2 3/4rPPytrH9H1JU99fSo98ni625l+JbZmKkkwAs+ClmsT4HuKCJ+BS0yQ9URsJProQIR gsZvhznwQ1BmFup+EoThdxUVp+oZoCzCR+3hG2RUlkWb9OWaEcxThJhwilawtkFdNHS7 Q86Q== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gthtiNOLBtbazSEYCkP7aYkQY117x3/WDHZK8yVZtYE=; b=0VlwyTzQFQGIBGqJaEi0GY7154JZ75m/rNytJqtlGg5xYdK9hVhRenyBoL/1X0fvnQ rqEm0OEHOCZjCWz4DpbDxE/N2ArdH3YAeNXVvfNNlP7FomI8eqgnuW9eM6Qhp/p2ErG6 L0J7J3hge52y9ycEJNEL+XVks9EdKtt08bC1yiBSdWOXptMClZ1GbHON+4Zu7vTbyrKg aDTZZa7OLLMADDVsW4PCOVgeUjGzIOoTUFaXQ966JU+bTTLsWH1YH+crke8vG2I4tV/m 7TZvH5uXWofbrTQAdu5TS3bvmYuNgsgV4r/n2COyYF9FyShFFE4R7l9Wmt2FwyhlTGKH dUnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ab8h2Gsu; 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 go43si297183ejc.565.2021.02.02.16.52.56; Tue, 02 Feb 2021 16:53:20 -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=ab8h2Gsu; 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 S233273AbhBBVuk (ORCPT + 99 others); Tue, 2 Feb 2021 16:50:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:55178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbhBBVui (ORCPT ); Tue, 2 Feb 2021 16:50:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3499064F84; Tue, 2 Feb 2021 21:49:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612302597; bh=gthtiNOLBtbazSEYCkP7aYkQY117x3/WDHZK8yVZtYE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ab8h2GsuCnh8bjO5sUPlkGseNfLS7qZMFeCq3eXh/NlyP5WWVJB110UW4rAnd26v8 5DnVwf/SxpnEcDfp6/Lj1SBuWQRb18tTIsG6lJs2MkLKMJYkLFc6ffgABSVhQ4j/eX WjfcPf28Sut0+C/YkAp5h8ZRGgYXjJ8DNwRSLMcJA4iWm2nUvs2Zz+ht1SwO1r466e Abfmi6uasEhFikKN+LnsYBpdrE144m26k9i8np9G+GnPa2D7qB3LhEY8yoBbpypiSl n6OLUQa5SufDbgMkKWCNqczwRbr+6p+mqd1WWn/0qr+sqVP1n3idkUvkMIpTjn90BB IeDtYsch45YHg== Date: Tue, 2 Feb 2021 23:49:50 +0200 From: Jarkko Sakkinen To: Lukasz Majczak Cc: Guenter Roeck , James Bottomley , Dirk Gouders , Tj , Peter Huewe , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Radoslaw Biernacki , Marcin Wojtas , Alex Levin Subject: Re: [PATCH v4] tpm_tis: Add missing tpm_request/relinquish_locality calls Message-ID: References: <20210202155139.521421-1-lma@semihalf.com> <20210202195724.628468-1-lma@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210202195724.628468-1-lma@semihalf.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2021 at 08:57:24PM +0100, Lukasz Majczak wrote: > There are missing calls to tpm_request_locality before the calls to > the tpm_get_timeouts() and tpm_tis_probe_irq_single() - both functions > internally send commands to the tpm. 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 acquired locality fails and in turn causes tpm_tis_core_init() > to fail, it can be observed in the log with the following warning > trace: Ignoring this version. /Jarkko