Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp452719lqp; Wed, 22 May 2024 09:12:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjNnKrNSdZQO/mSLyh7jVhJq7KAlpDT3bFLCk4FI0OT1eMoXMDH3TOtzuwb7iQ0dkq2ApNFfOVK/PznVoD55wzxw/R794eyDUOioc2SA== X-Google-Smtp-Source: AGHT+IGDBCgAGTyJdNiz/EGtuUl3jhmqIdQOxezy+l3isQ7aXpKK7AcDfnwI+DKd9OTunQkTNQUi X-Received: by 2002:a05:6a20:7fa9:b0:1ad:7e4d:2ea6 with SMTP id adf61e73a8af0-1b1f88450a5mr2448960637.20.1716394371094; Wed, 22 May 2024 09:12:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716394371; cv=pass; d=google.com; s=arc-20160816; b=aT/rwOd5vXy7RUxjfIh6h4oyeULsmDwW5dahJk9vim7KdFLGvAWWtjFvZyuKvWfHMI sbcNp8H6N4jj6Z39hQpALDlfgw1pgqJWif3Iyce6xQ4m3spbSg7JQJjokus7PjWkibGG 2HQ/zK4ddAX6XDOHUV4Bm/nCCf5wXL6up2JV4Vjj+A4EEL2A06zRFRlqeauUFZWrVNpT 8msGHeluAF8jQ9M+EOYVfTuj7D+trhJHaSmtIbhLVqZOhXuViQzKN5c2td+ndtvNZfGy +r8lrVtm3zDs9aQfmhX2b2tQnU3jCOqY5GC7Fd1mnMJEG7vpd+Dj+gNPs7dmrZFZg7qb ApAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=5YTfYf+67/AAZUhMZXIJvqJfc8CnSVu8eqCJOaGSWgE=; fh=h6bC3MtUEaY4clnjFy2LqCccvvK8VCX0j8W7q2IHNps=; b=wFxcsaHqguhs7SFr9dJ0fdzZP6TsFVMpVNfLNggapqNvoIrsp9+CY4omzLCzX1kMBy Vf3ZGRxxZ+9uPK31jWb9Us3kYZWPz+6cjBK1iGSgZytWh0ihfp35m/Sb593tXDCltZWY Pl56bJDvwAehPTHCUp32rNKsb4rEQK/NBw/SvAhN24j1O0FWpqBBxvn/GTyNddetNSWS El4+KtoWfqJXvcNqoCPw26dG4/sAgzcQv71kcXWYEz6TccKQDysxdKAAuKgXXqAdFReP Z2g1tr2GBTtKdjWv67GMDfNay4KXKkmPEJfmD9Wop3yIHyb0qWJXjkjS0Z4zrA6qGvRm xTbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H6R5kMkQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-654eeca3ce6si412049a12.323.2024.05.22.09.12.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 09:12:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H6R5kMkQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 86A64B22890 for ; Wed, 22 May 2024 16:11:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78981140E2E; Wed, 22 May 2024 16:11:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H6R5kMkQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 919D01F17B; Wed, 22 May 2024 16:11:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716394288; cv=none; b=dnXRJdvwczvZ0+lBEqdA870po4h1AqSYS3GOPIKNKzJXvN/ANbPEaORsqhNUtGst9/Ae6RplNhx7W4b0VMS8ZmH7ffT61p3W1lvfTmYAB205pZ8BCp/sSDzplF0f11S1FcDwJY2wPlpdc6SJqirh3//ld6Rit2IbXwQvTWbepJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716394288; c=relaxed/simple; bh=l7EGjRfKBfRmrw53XUGC/wZrWAByRXWig4B6SkEmGf4=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=gd98QGbqwQ7QSe46kznAYNDadGL1UQpYYldgDElCGoCbVKoUiUtSaDH9xtTRLV2+ozfnSQyP+MedLZp2iFSCdkCpnP74svW+Z6TOsofBybp6RSSvuoqnHUikj8GNdA3BDb6hPdRm2+99cRqSiwC0+u8zhXmPBVg3O5ZyqXwYbbg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H6R5kMkQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8ED71C2BBFC; Wed, 22 May 2024 16:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716394288; bh=l7EGjRfKBfRmrw53XUGC/wZrWAByRXWig4B6SkEmGf4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H6R5kMkQSiswrusbh5WtXMWujeSVB6+fuCe+VE/7f9IlC7/GncDlvpEIC8xnnHge/ MoZrdhubeOJYvkXfk+vefdHg/evft/qMQ4yrEMldcG/28MEfLQsPqu1M1XXckoRfmj gGsaluwrvu6YLqBQoj3+xCwi/dMIPvFRHF306OtpSU9LUqoACTRuY2YkUjRNH1gfNu 29BdDO3kn9QmLtEmTJ4SwOQYxhKmhUeEHDRq+N1BzGwJg+aBiYGE0uhP8If33XuJEI zg9qQxpvcfGubd+vFX7l4r7E2fFDRy2LMLwMwpK6ynxPK/fWGkzi88wXD+nLI0kLJa EggLsxXQWV6bg== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 22 May 2024 19:11:23 +0300 Message-Id: From: "Jarkko Sakkinen" To: "Vitor Soares" , "James Bottomley" , Cc: , "Peter Huewe" , "Jason Gunthorpe" , "Mimi Zohar" , "David Howells" , "Paul Moore" , "James Morris" , "Serge E. Hallyn" , , Subject: Re: [PATCH 1/3] tpm: Disable TCG_TPM2_HMAC by default X-Mailer: aerc 0.17.0 References: <20240519235122.3380-1-jarkko@kernel.org> <20240519235122.3380-2-jarkko@kernel.org> <850862655008f84ef0b6ecd99750e8dc395304d1.camel@gmail.com> <17dc838120b56ce342c34611596c7b46dcd9ab5a.camel@HansenPartnership.com> <2dd8d49516ec9c7cb8c1182b5b8537b1e82d7067.camel@gmail.com> <17a5dcd7aceb356587ef7c8f45b0f6359b2d2a91.camel@HansenPartnership.com> <0c12c9ea10aa97e246230fc33e6b35c571102b48.camel@gmail.com> In-Reply-To: <0c12c9ea10aa97e246230fc33e6b35c571102b48.camel@gmail.com> On Wed May 22, 2024 at 5:58 PM EEST, Vitor Soares wrote: > I did run with ftrace, but need some more time to go through it. > > Here the step I did: > kernel config: > CONFIG_FUNCTION_TRACER > CONFIG_FUNCTION_GRAPH_TRACER > > ftrace: > # set filters > echo tpm* > set_ftrace_filter > > # set tracer > echo function_graph > current_tracer > > # take the sample > echo 1 > tracing_on; time modprobe tpm_tis_spi; echo 0 > tracing_on > > regards, > Vitor Soares I'm now compiling distro kernel (OpenSUSE) for NUC7 with v6.10 contents. After I have that setup, I'll develop a perf test either with perf or bpftrace. I'll come back with the possible CONFIG_* that should be in place in your kernel. Might take up until next week as I have some conference stuff to prepare but I try to have stuff ready early next week. No need to rush with this as long as possible patches go to rc2 or rc3. Let's do a proper analysis instead. In the meantime you could check if you get perf and/or bpftrace to=20 your image that use to boot up your device. Preferably both but please inform about this. Fair enough? BR, Jarkko