All of lore.kernel.org
 help / color / mirror / Atom feed
* [tpm2] Re: TPM V2: kernel panic on linux reboot
@ 2021-01-12 13:07 florian.manoel
  0 siblings, 0 replies; 4+ messages in thread
From: florian.manoel @ 2021-01-12 13:07 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 3937 bytes --]

Hi Andreas,

thanks for the quick reply,
Good suggestion, after removing tpm2-tools /-abrmd, the kernel panic is still occurring...
Does it mean I should rather check on the driver side ? If yes, any idea where can I support on this topic ?

Mit freundlichen Grüßen
Florian Manoël

Siemens AG
Digital Industries
Process Automation
DI PA DCP R&D 2
Östliche Rheinbrückenstr. 50
76187 Karlsruhe, Deutschland
Tel.: +49 721 667-20051
mailto:florian.manoel(a)siemens.com
www.siemens.com<https://siemens.com>
[cid:image001.gif(a)01D6E8EC.3AEB66C0]
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Klaus Helmrich, Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin-Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322
Von: Fuchs, Andreas <andreas.fuchs(a)sit.fraunhofer.de>
Gesendet: Dienstag, 12. Januar 2021 11:49
An: Manoel, Florian (DI PA DCP R&D 2) <florian.manoel(a)siemens.com>; tpm2(a)lists.01.org
Betreff: RE: TPM V2: kernel panic on linux reboot

Hi Florian,

just to make sure; what happens if you don't send any commands to the TPM from Userspace ?
I.e. startup and shutdown without anything else (no tpm2-abrmd or tools installed).

I just wanna know if it is a pure kernel-driver issue or if it is a side-effect from userspace usage.

Thanks,
Andreas

________________________________
From: florian.manoel(a)siemens.com<mailto:florian.manoel(a)siemens.com> [florian.manoel(a)siemens.com]
Sent: Tuesday, January 12, 2021 11:39
To: tpm2(a)lists.01.org<mailto:tpm2(a)lists.01.org>
Subject: [tpm2] TPM V2: kernel panic on linux reboot
Hi tpm2 mailing list,

I'm new here, so I briefly introduce myself. I am Florian, working at Siemens in Germany.
I am currently on charge to implement a TPM V2 (Infineon slb9670, SPI connected) on our custom board, named 'LPE9403', equipped with an processor 64-bit ARM NXP LS1043a.
I already made some adjustment (defconfig in U-Boot and Linux, device tree, init code in U-Boot).
I have installed "tpm2-tools" using 'apt-get install'. I get to the point where the TPM is correctly detected and I can use some of the function like tpm2_getrandom().

However, when I execute the command 'reboot', it leads every time to a kernel panic. The logs seems to indicate that something went wrong with the shutdown of the TPM.
Can you provide me support to fix this issue ?


My config :
- Processor 64-bit ARM NXP LS1043a
- TPM V2 Infineon slb9670
- tpm2-tools: Version: 3.1.3-2
- linux kernel version: 4.19.144

I provide with this mail a zip archive 'debug_logs.zip' containing :
- 'linux_logs.txt' : logs from Linux startup + kernel panic on reboot
- 'uboot_logs.txt' : logs of the init commands in U-Boot
- 'lpe.dtsi' : extract of the device tree used for the TPM
- 'lpe_tfa_defconfig' : defconfig of U-boot
- 'lpe9403_defconfig' : defconfig of linux
- 'uboot_TPM_init_code.txt' : extract of the TPM init code in U-Boot
- 'tpm2-tool_version.txt' : version of the installed tpm2-tools

If needed, I can provide more information,
Thanks for your support.
Mit freundlichen Grüßen
Florian Manoël

Siemens AG
Digital Industries
Process Automation
DI PA DCP R&D 2
Östliche Rheinbrückenstr. 50
76187 Karlsruhe, Deutschland
Tel.: +49 721 667-20051
mailto:florian.manoel(a)siemens.com
www.siemens.com<https://siemens.com/>
[cid:image001.gif(a)01D6E8EC.3AEB66C0]
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Klaus Helmrich, Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin-Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 10524 bytes --]

[-- Attachment #3: image001.gif --]
[-- Type: image/gif, Size: 2730 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [tpm2] Re: TPM V2: kernel panic on linux reboot
@ 2021-01-13 14:39 Peter.Huewe
  0 siblings, 0 replies; 4+ messages in thread
From: Peter.Huewe @ 2021-01-13 14:39 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 950 bytes --]

Hi,
I had a short look at your logs and yes, this definitely looks like a driver issue and not related to the tpm2 software stack or the tpm itself.
However, during the development of the drivers and my daily work I did not see this happening on my rpi platforms.


I would suggest taking this discussion to the tpm driver mailing list which is located at
   linux-integrity(a)vger.kernel.org
it usually makes sense to subscribe to the mailing list first, before posting the first message to avoid moderation of the message.
See  http://vger.kernel.org/vger-lists.html#linux-integrity

For the Linux Kernel related mailing lists it is important to post *plaintext* emails *without* attachments. 
Just paste the contents of your logs below your email, especially the dmesg output.

The (first) question is of course if you can reproduce it using the latest stable 4.19.167 and the lastest master/mainline  5.11-rc3

Thanks,
Peter



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [tpm2] Re: TPM V2: kernel panic on linux reboot
@ 2021-01-12 15:47 Fuchs, Andreas
  0 siblings, 0 replies; 4+ messages in thread
From: Fuchs, Andreas @ 2021-01-12 15:47 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 4434 bytes --]

So yes, this would be a driver-issue.
Probably post at the tpmdd-devel mailinglist directly at the linux kernel.
Don't mind taking my into CC, since I'd love to know the outcome.

Viele Grüsse,
Andreas Fuchs
________________________________
From: florian.manoel(a)siemens.com [florian.manoel(a)siemens.com]
Sent: Tuesday, January 12, 2021 14:07
To: Fuchs, Andreas; tpm2(a)lists.01.org
Subject: AW: TPM V2: kernel panic on linux reboot

Hi Andreas,

thanks for the quick reply,
Good suggestion, after removing tpm2-tools /-abrmd, the kernel panic is still occurring…
Does it mean I should rather check on the driver side ? If yes, any idea where can I support on this topic ?

Mit freundlichen Grüßen
Florian Manoël

Siemens AG
Digital Industries
Process Automation
DI PA DCP R&D 2
Östliche Rheinbrückenstr. 50
76187 Karlsruhe, Deutschland
Tel.: +49 721 667-20051
mailto:florian.manoel(a)siemens.com
www.siemens.com<https://siemens.com>
[cid:image001.gif(a)01D6E8EC.3AEB66C0]
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Klaus Helmrich, Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin-Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322
Von: Fuchs, Andreas <andreas.fuchs(a)sit.fraunhofer.de>
Gesendet: Dienstag, 12. Januar 2021 11:49
An: Manoel, Florian (DI PA DCP R&D 2) <florian.manoel(a)siemens.com>; tpm2(a)lists.01.org
Betreff: RE: TPM V2: kernel panic on linux reboot

Hi Florian,

just to make sure; what happens if you don't send any commands to the TPM from Userspace ?
I.e. startup and shutdown without anything else (no tpm2-abrmd or tools installed).

I just wanna know if it is a pure kernel-driver issue or if it is a side-effect from userspace usage.

Thanks,
Andreas

________________________________
From: florian.manoel(a)siemens.com<mailto:florian.manoel(a)siemens.com> [florian.manoel(a)siemens.com]
Sent: Tuesday, January 12, 2021 11:39
To: tpm2(a)lists.01.org<mailto:tpm2(a)lists.01.org>
Subject: [tpm2] TPM V2: kernel panic on linux reboot
Hi tpm2 mailing list,

I’m new here, so I briefly introduce myself. I am Florian, working at Siemens in Germany.
I am currently on charge to implement a TPM V2 (Infineon slb9670, SPI connected) on our custom board, named ‘LPE9403’, equipped with an processor 64-bit ARM NXP LS1043a.
I already made some adjustment (defconfig in U-Boot and Linux, device tree, init code in U-Boot).
I have installed “tpm2-tools” using ‘apt-get install’. I get to the point where the TPM is correctly detected and I can use some of the function like tpm2_getrandom().

However, when I execute the command ‘reboot’, it leads every time to a kernel panic. The logs seems to indicate that something went wrong with the shutdown of the TPM.
Can you provide me support to fix this issue ?


My config :
- Processor 64-bit ARM NXP LS1043a
- TPM V2 Infineon slb9670
- tpm2-tools: Version: 3.1.3-2
- linux kernel version: 4.19.144

I provide with this mail a zip archive ‘debug_logs.zip’ containing :
- ‘linux_logs.txt' : logs from Linux startup + kernel panic on reboot
- ‘uboot_logs.txt’ : logs of the init commands in U-Boot
- ‘lpe.dtsi’ : extract of the device tree used for the TPM
- ‘lpe_tfa_defconfig’ : defconfig of U-boot
- ‘lpe9403_defconfig’ : defconfig of linux
- ‘uboot_TPM_init_code.txt’ : extract of the TPM init code in U-Boot
- ‘tpm2-tool_version.txt’ : version of the installed tpm2-tools

If needed, I can provide more information,
Thanks for your support.
Mit freundlichen Grüßen
Florian Manoël

Siemens AG
Digital Industries
Process Automation
DI PA DCP R&D 2
Östliche Rheinbrückenstr. 50
76187 Karlsruhe, Deutschland
Tel.: +49 721 667-20051
mailto:florian.manoel(a)siemens.com
www.siemens.com<https://siemens.com/>
[cid:image001.gif(a)01D6E8EC.3AEB66C0]
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Klaus Helmrich, Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin-Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 10463 bytes --]

[-- Attachment #3: image001.gif --]
[-- Type: image/gif, Size: 2730 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [tpm2] Re: TPM V2: kernel panic on linux reboot
@ 2021-01-12 10:48 Fuchs, Andreas
  0 siblings, 0 replies; 4+ messages in thread
From: Fuchs, Andreas @ 2021-01-12 10:48 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 2751 bytes --]

Hi Florian,

just to make sure; what happens if you don't send any commands to the TPM from Userspace ?
I.e. startup and shutdown without anything else (no tpm2-abrmd or tools installed).

I just wanna know if it is a pure kernel-driver issue or if it is a side-effect from userspace usage.

Thanks,
Andreas

________________________________
From: florian.manoel(a)siemens.com [florian.manoel(a)siemens.com]
Sent: Tuesday, January 12, 2021 11:39
To: tpm2(a)lists.01.org
Subject: [tpm2] TPM V2: kernel panic on linux reboot

Hi tpm2 mailing list,

I’m new here, so I briefly introduce myself. I am Florian, working at Siemens in Germany.
I am currently on charge to implement a TPM V2 (Infineon slb9670, SPI connected) on our custom board, named ‘LPE9403’, equipped with an processor 64-bit ARM NXP LS1043a.

I already made some adjustment (defconfig in U-Boot and Linux, device tree, init code in U-Boot).
I have installed “tpm2-tools” using ‘apt-get install’. I get to the point where the TPM is correctly detected and I can use some of the function like tpm2_getrandom().

However, when I execute the command ‘reboot’, it leads every time to a kernel panic. The logs seems to indicate that something went wrong with the shutdown of the TPM.

Can you provide me support to fix this issue ?


My config :
- Processor 64-bit ARM NXP LS1043a
- TPM V2 Infineon slb9670
- tpm2-tools: Version: 3.1.3-2
- linux kernel version: 4.19.144

I provide with this mail a zip archive ‘debug_logs.zip’ containing :
- ‘linux_logs.txt' : logs from Linux startup + kernel panic on reboot
- ‘uboot_logs.txt’ : logs of the init commands in U-Boot
- ‘lpe.dtsi’ : extract of the device tree used for the TPM
- ‘lpe_tfa_defconfig’ : defconfig of U-boot
- ‘lpe9403_defconfig’ : defconfig of linux
- ‘uboot_TPM_init_code.txt’ : extract of the TPM init code in U-Boot
- ‘tpm2-tool_version.txt’ : version of the installed tpm2-tools

If needed, I can provide more information,
Thanks for your support.
Mit freundlichen Grüßen
Florian Manoël

Siemens AG
Digital Industries
Process Automation
DI PA DCP R&D 2
Östliche Rheinbrückenstr. 50
76187 Karlsruhe, Deutschland
Tel.: +49 721 667-20051
mailto:florian.manoel(a)siemens.com
www.siemens.com<https://siemens.com>
[cid:image001.gif(a)01D6E8D7.9D974EC0]
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Klaus Helmrich, Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin-Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 5235 bytes --]

[-- Attachment #3: image001.gif --]
[-- Type: image/gif, Size: 2730 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-13 14:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 13:07 [tpm2] Re: TPM V2: kernel panic on linux reboot florian.manoel
  -- strict thread matches above, loose matches on Subject: below --
2021-01-13 14:39 Peter.Huewe
2021-01-12 15:47 Fuchs, Andreas
2021-01-12 10:48 Fuchs, Andreas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.