Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2173514pxb; Fri, 29 Jan 2021 15:35:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxB6M9k6goNJ7m7GNM8SBLSljqJTxhJU/ZvpW0sjhOHsKY9Zbijce3wJc0ps0n/qsuGz/vR X-Received: by 2002:a50:fc8c:: with SMTP id f12mr7887997edq.225.1611963349767; Fri, 29 Jan 2021 15:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611963349; cv=none; d=google.com; s=arc-20160816; b=j/F3/vsKyg1QqhhQCEJBw2EeedT203zHzya4HPjZzNW+V/ZweVdmTr0FqDEgXHGtTE qn/ESsUE8LL92CaiaUrLrb/7/TclErZDkYDcKklmdM6WpL3RlZVCqV19rR0YN1SX/eDe WoBCM7QjDo4dXc8NZC/r+HDCToixAov/M2FUakQP6TMXIE7tKve1v0bwOv+HouOI3obx 3iM6kUtGtkCyNSKM8Jfir9UwwRdY12xTkQnBML7K3Kq/V3nHJPLMm49sVm0IlZSIBIx8 Mx2qJd4Du4lk2Ckj0n+Odmy8Y4+QVhrPUmR4hELrkoKpsUOfvP7dDdzf/0p4t1rhoJqy CqYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:sender:dkim-signature; bh=zzcM2qUSkaqmQatz4yzSydth0oX/gZ+zfajHOGWvhjk=; b=HlgFQM7jJ8R9HdjIZsWF6+eR/g8ugKY7g/ponRBIS99HR05SsnEIHeLtXt06317vAK iIX9K/jWHweV7YImHiSk1sWfYnD04sVjs6VyUbph17d+byW4bcGNLkoNdTSU4N1QUKVe j4Gz3163xboIanieGvIvqFfpI+5KiPvyGR7nbZmZMlPpYyf84Ggkm5cKdcopvYfNbSgu +FsiL/X6ch11P+/p1D4/WMItBgi5qcSoVRxFwerpSLr+Osxfn/LD0knDLTBeVgMQ6Ha0 kF2fvEVO9SPazE9+suwQs+OhHfKhDIBuYIRciby5ra0LV0WH3Ys1HCzG+rHsvw/Xen25 BJ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ofBpm/Q2"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si5377189ejf.618.2021.01.29.15.35.25; Fri, 29 Jan 2021 15:35:49 -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=@gmail.com header.s=20161025 header.b="ofBpm/Q2"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231614AbhA2XdY (ORCPT + 99 others); Fri, 29 Jan 2021 18:33:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231705AbhA2XdW (ORCPT ); Fri, 29 Jan 2021 18:33:22 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4913EC061573; Fri, 29 Jan 2021 15:32:42 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id n42so10267415ota.12; Fri, 29 Jan 2021 15:32:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zzcM2qUSkaqmQatz4yzSydth0oX/gZ+zfajHOGWvhjk=; b=ofBpm/Q2w3Om2A539T564qNWYq7LP7QQQRmO/LHEPWQEw5eoqeRgo2PLbzFpzj3fHE dbo4EGLLr5R+PbBMHgzU6CQ6J2ZPROfhzmRc/RCFy5EK8cxrUEJAdnovCmjgslML2Ogq EstiXSKTRkYebco2IsYwT2Rw9h5HWK4HhpCqvqiGQPVNl+4rFD0KlZ6sEFoNn+mc9l0G WoPxfD8B1ZflOqmGpTyH5C2SmAQwowW46fcI0c8K0nR5D4zmJX7cO70HcSLNEf/usPKT kvv2UM4AYQcMtS1N/WDHB8bEO7cDn5SXywbb8DFlfbfSWh7EoxR0CAm8d7KHxS7MPnR9 Fu8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=zzcM2qUSkaqmQatz4yzSydth0oX/gZ+zfajHOGWvhjk=; b=qJRmBJHPjkRhSWCXQgKJiIcHawPvIJ1u864iNsc9tpaBYsui0WPgTNdqrowJ4EHj0L z40lY57NHm8cqwuMuzGRdJiaNmwo01m20FkY4ST3IjO1gpIbwUtaWhqR7dYWTtcdWV6h 6GRZDM1nNDal7jIsOrWTmabSangv7tl78KOY+eVPzy3YHFXswSY/yYB1oFjaPMrFiken +1xqf8Fc0xKu74fuOHrFycXEfcTz+aj+4FYQcq9DTx7+gQXB2cHRAYOk4/RNeZFTkuzA /jQT9jO8YFaMj8R4anjubdAUqfKdeOVLNZJbwWIKOsY18CpPeuizUWp4+DTfW6uc/5+0 /y6Q== X-Gm-Message-State: AOAM532tM+o1a3hZEubum7ZRoj5NCFTu8dEQkSC1PgH3apVoQ9mU7eeD l0XJ4WS5/qmJbEnuHmW25qo= X-Received: by 2002:a05:6830:2414:: with SMTP id j20mr4374824ots.326.1611963161688; Fri, 29 Jan 2021 15:32:41 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id y10sm2705326ooy.11.2021.01.29.15.32.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Jan 2021 15:32:40 -0800 (PST) Sender: Guenter Roeck Subject: Re: [PATCH] tpm_tis: Add missing start/stop_tpm_chip calls To: Jarkko Sakkinen Cc: Lukasz Majczak , Peter Huewe , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Radoslaw Biernacki , Marcin Wojtas , Alex Levin References: <20210123014247.989368-1-lma@semihalf.com> <20210125171846.GA31929@roeck-us.net> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9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k1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Fri, 29 Jan 2021 15:32:38 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/29/21 2:49 PM, Jarkko Sakkinen wrote: > On Mon, Jan 25, 2021 at 09:18:46AM -0800, Guenter Roeck wrote: >> Hi Lukasz, >> >> On Sat, Jan 23, 2021 at 02:42:47AM +0100, Lukasz Majczak wrote: >>> There is a missing call to start_tpm_chip before the call to >>> the tpm_get_timeouts() and tpm_tis_probe_irq_single(). As the current >>> approach maight work for tpm2, it fails for tpm1.x - in that case >>> call to tpm_get_timeouts() or tpm_tis_probe_irq_single() tries to >>> transmit TPM commands on a disabled chip what what doesn't succeed >> >> s/what what/what/ > > s/maight/might/ > > Also, would be nice to have the capatalization of acronyms correct > and consistent. E.g. tpm1.x should be rather written as "TPM 1.x > chips". > > It's also incorrect to state that something fails for TPM 1.x chips, > unless you can somehow make a sense that every single TPM 1.x at wild > fails, which probably is not true. > >>> and in turn causes tpm_tis_core_init() to fail. >>> Tested on Samsung Chromebook Pro (Caroline). > > Anyone can tell me what does Caroline mean anyway? > "Caroline" is the code name for Samsung Chromebook Pro. The term "Samsung Chromebook Pro (Caroline)" is quite widely used for this system. Or, alternatively, "Caroline (Samsung Chromebook Pro)". Guenter