Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752708AbdHIVAv (ORCPT ); Wed, 9 Aug 2017 17:00:51 -0400 Received: from mout.gmx.net ([212.227.17.21]:59956 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752428AbdHIVAs (ORCPT ); Wed, 9 Aug 2017 17:00:48 -0400 MIME-Version: 1.0 Message-ID: From: "Peter Huewe" To: "Ken Goldman" Cc: linux-ima-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Aw: Re: [tpmdd-devel] [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount Content-Type: text/plain; charset=UTF-8 Date: Wed, 9 Aug 2017 23:00:36 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: <20170807114632.1339-1-nayna@linux.vnet.ibm.com> <20170808191145.kggmoczd5laiccrn@linux.intel.com> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:4SfQp9/11yv/tXL5U4FeTgb5RRC1YCtHH0RXyjmK/84 FUIdQkehNk9BkndEJvHixYpSsKDKY8cvcRsy4hhJPv6IpyFup6 i6nnXfwrUHEw7IQuhPSzZKcBQj6LJ9qLp3XCf85+xS6hXmUnAj 0zXjFO/13dUdX9p/h8eTMvnUuJd8t11YCXGP3pTHCe4XmqwOD4 valzXCkZeWFuGrE0MJr8WEed48oH/hREc9JNSRhhv6fuW8AYEo mEs7fHbTsOGIdq78vsGKxN0XhnGswpK9OHNB9Fh4SXPHOgIaxC 3ZXhGs= X-UI-Out-Filterresults: notjunk:1;V01:K0:Mr6jYmvnmmc=:sDLvJ9t5R8RrQbFSpZd46+ pIFMf8PeoF+toh0u7vqOb0fS9PK8yzFiBy5csfz+/HiHXBfCjmT8F+3je1gtIEIobT6vGuVsS r2Zg30YnOlyoDLYK75Q1qxCk0qQKi9GBQ1fmn443CaKQPAAlQEfVXg2NFaG/VD1PWbrjFIr+q do/lOCz9oVGYjSh6ed+XaP0NN/Bke2y3rWlwXBWmutc4LJrM0uB+UcqwA8bfKy9Fpo+Gt5/9v h6iguoc9egEwo+Bea4OAGFp8O/YYufgVe0+PRypfeOFMH67JpxZzoj/ucRqFz2lW+C9eKoSPy R0OccqV3ZNGIHiUhFAYFHzmNYw9iogaCXK5ytcotgXBB+bbf3lyJHAjnhN05Ah2SAwn1A7PSn Gi9behzKQzrknfsagH1dlHVWt5eIxt/YdGMXiHHY84bQHfPRBMurfQF664h4fxY8Mv9Ju8vih JnflbvFm7kwZ5wnUT03iX0OBCYg63qA/8wsazwHcHfFd8Aq6nvpe Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1791 Lines: 42 Hi Ken, (again speaking only on my behalf, not my employer) > Does anyone know of platforms where this occurs? > I suspect (but not sure) that the days of SuperIO connecting floppy > drives, printer ports, and PS/2 mouse ports on the LPC bus are over, and > such legacy systems will not have a TPM. Would SuperIO even support the > special TPM LPC bus cycles? Since we are the linux kernel, we do have to care for legacy devices. And a system with LPC, PS2Mouse on SuperIO and a TPM are not that uncommon. And heck, we even have support for 1.1b TPM devices.... >> One more viewpoint: TCG must added the burst count for a reason (might >> be very well related what Peter said). Is ignoring it something that TCG >> recommends? Not following standard exactly in the driver code sometimes >> makes sense on *small details* but I would not say that this a small >> detail... > I checked with the TCG's device driver work group (DDWG). Both the spec > editor and 3 TPM vendors - Infineon, Nuvoton, and ST Micro - agreed that > ignoring burst count may incur wait states but nothing more. Operations > will still be successful. Interesting - let me check with Georg tomorrow. Unfortunately I do not have access to my tcg mails from home (since I'm not working :), but did you _explicitly_ talk about LPC and the system? I'm sure the TPM does not care about the waitstates... If my memory does not betray me, it is actually possible to "freeze up" a system completly by flooding the lpc bus. Let me double check tomorrow... In anycase - I really would like to see a much more performant tpm subsystem - however it will be quite an effort with a lot of legacy testing. (which I unfortunately cannot spend on my private time ... and also of course lacking test systems). Thanks, Peter