Linux-Integrity Archive mirror
 help / color / mirror / Atom feed
From: Alexander Steffen <Alexander.Steffen@infineon.com>
To: Lukas Wunner <lukas@wunner.de>, Francesco Dolcini <francesco@dolcini.it>
Cc: Lino Sanfilippo <l.sanfilippo@kunbus.com>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Rob Herring <robh+dt@kernel.org>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	<linux-integrity@vger.kernel.org>, <devicetree@vger.kernel.org>
Subject: Re: [PATCH 2/2] reset: Add Infineon SLB9670 TPM reset driver
Date: Thu, 21 Dec 2023 11:09:57 +0100	[thread overview]
Message-ID: <d21fdf8b-571b-4783-8a20-7290b4b3f46b@infineon.com> (raw)
In-Reply-To: <20231218175137.GA12115@wunner.de>

On 18.12.2023 18:51, Lukas Wunner wrote:
> Hi Francesco,
> 
> On Mon, Dec 18, 2023 at 06:34:00PM +0100, Francesco Dolcini wrote:
>> On Thu, Nov 23, 2023 at 09:59:43AM +0100, Lukas Wunner wrote:
>>> On Wed, Nov 22, 2023 at 04:15:18PM +0100, Francesco Dolcini wrote:
>>>> On Wed, Nov 22, 2023 at 12:29:49PM +0100, Lukas Wunner wrote:
>>>>> On Wed, Nov 22, 2023 at 12:33:58AM +0100, Francesco Dolcini wrote:
>>>>>> Not to mention that I was able to see the driver probe succeed in a
>>>>>> similar setup to the one you are describing in the commit message
>>>>>> (different board, arm64, but nothing done by the platform firmware).
>>>>>
>>>>> Hm, is the RST# pin even connected on that board?
>>>>
>>>> Yes, it's connected and it is asserted/de-asserted (aka toggled) during
>>>> startup from the HW reset circuit. However this is not implementing the
>>>> reset sequence you are implementing here.
>>>
>>> Section 4.5 of the datasheet seems to indicate that unless the sequence
>>> in Figure 3 is observed, the TPM may enter a defense mode against
>>> dictionary attacks "from which a recovery is very complex or even not
>>> possible."
>>>
>>> Simply toggling the RST# pin might therefore not be sufficient to ensure
>>> the TPM is operable.
>>
>> I am trying to follow-up with infineon on this regard, do you already
>> have any insight from them maybe?
>>
>> Maybe this procedure is relevant only when the device is in "security
>> defense state"?
> 
> Sorry, I honestly don't know.  A colleague has talked to an FAE at an
> Infineon reseller but they couldn't give a definitive answer either.
> I'm very interested to hear whatever you learn from Infineon.

Infineon is here :)

I'm sorry, the document is a little confusing, we'll fix that in the 
future. What the document wants to say is this: Any time you assert 
RST#, the TPM will reset. But if you reset the TPM at certain points in 
time, you will trigger some security functions. In general, as long as 
it only happens occasionally, this is not a problem (you can't avoid all 
power outages). Only if you happen to frequently issue resets (e.g. if 
your reset pin is not a dedicated TPM reset pin but is also used for 
other things), then you should make sure to wait at least t_RSTIN 
between those resets (and avoid interrupting TPM command execution).

So in your case, you probably don't need to do anything special: Just 
assert RST# once and the TPM will reset. This should work with basically 
any TPM, so there is no need for a dedicated SLB9670 reset driver.

Alexander

  reply	other threads:[~2023-12-21 10:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 19:09 [PATCH 1/2] dt-bindings: reset: Add Infineon SLB9670 TPM reset driver Lukas Wunner
2023-09-26 19:09 ` [PATCH 2/2] " Lukas Wunner
2023-11-21 23:33   ` Francesco Dolcini
2023-11-22  7:36     ` Francesco Dolcini
2023-11-22 11:29     ` Lukas Wunner
2023-11-22 15:15       ` Francesco Dolcini
2023-11-23  8:59         ` Lukas Wunner
2023-12-18 17:34           ` Francesco Dolcini
2023-12-18 17:51             ` Lukas Wunner
2023-12-21 10:09               ` Alexander Steffen [this message]
2023-09-26 20:37 ` [PATCH 1/2] dt-bindings: " Rob Herring
2023-09-27  6:31   ` Lukas Wunner
2023-09-27 11:53     ` Rob Herring
2023-09-27  7:48 ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d21fdf8b-571b-4783-8a20-7290b4b3f46b@infineon.com \
    --to=alexander.steffen@infineon.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=francesco@dolcini.it \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=l.sanfilippo@kunbus.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=p.zabel@pengutronix.de \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).