<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LS1043a and TPM 2.0 , kernel panic on reboot in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1043a-and-TPM-2-0-kernel-panic-on-reboot/m-p/1221593#M7397</link>
    <description>&lt;P&gt;Please refer to the following patches.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://patchwork.kernel.org/project/tpmdd-devel/patch/CAHSjozDmqAbMzJuQDv9ATKf0=X=iRPK83WHWu6Ehoj8023DBtQ@mail.gmail.com/" target="_blank"&gt;https://patchwork.kernel.org/project/tpmdd-devel/patch/CAHSjozDmqAbMzJuQDv9ATKf0=X=iRPK83WHWu6Ehoj8023DBtQ@mail.gmail.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://patchwork.ozlabs.org/project/tpmdd/patch/20170516000852.28400-1-joshz@google.com/" target="_blank"&gt;https://patchwork.ozlabs.org/project/tpmdd/patch/20170516000852.28400-1-joshz@google.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 02:53:32 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2021-01-27T02:53:32Z</dc:date>
    <item>
      <title>LS1043a and TPM 2.0 , kernel panic on reboot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043a-and-TPM-2-0-kernel-panic-on-reboot/m-p/1221057#M7392</link>
      <description>&lt;P&gt;Hi NXP community,&lt;/P&gt;&lt;P&gt;I am trying to start up a Trusted Platform Module (TPM) 2.0 on our custom board based on the Layerscape LS1043a.&lt;BR /&gt;I am currently to the point where the TPM is functional, I can use it in U-Boot and in Linux using the 'tpm2-tools'.&lt;BR /&gt;&lt;BR /&gt;However, evey time I execute the command 'reboot', it ends into a 'kernel panic'.&lt;BR /&gt;&lt;BR /&gt;The logs of the kernel panic :&lt;BR /&gt;"&lt;BR /&gt;root@lpe9403-VPM7001303:/home/admin# reboot&lt;BR /&gt;[ OK ] Stopped Syncronise system …ardware clock every 5 minutes.&lt;BR /&gt;[ OK ] Stopped Daily Cleanup of Temporary Directories.&lt;BR /&gt;Stopping OpenBSD Secure Shell server...&lt;BR /&gt;[ OK ] Stopped target Login Prompts.&lt;BR /&gt;Stopping Serial Getty on ttyS0...&lt;BR /&gt;Stopping Getty on tty1...&lt;BR /&gt;Stopping SFP daemon...&lt;BR /&gt;Stopping Link Layer Discovery Protocol Agent Daemon....&lt;BR /&gt;Stopping Event Manager service...&lt;BR /&gt;Stopping Temperature Monitor service...&lt;BR /&gt;Stopping Simple Network Ma…ent Protocol (SNMP) Daemon....&lt;BR /&gt;Stopping Fail2Ban Service...&lt;BR /&gt;Stopping DCP daemon...&lt;BR /&gt;[ OK ] Stopped Firmware Update Confirmation.&lt;BR /&gt;Stopping containerd container runtime...&lt;BR /&gt;[ OK ] Stopped Temperature Monitor service.&lt;BR /&gt;[ OK ] Stopped Event Manager service.&lt;BR /&gt;[ OK ] Stopped SFP daemon.&lt;BR /&gt;[ OK ] Stopped Wait for Network to be Configured.&lt;BR /&gt;[ OK ] Stopped DCP daemon.&lt;BR /&gt;[ OK ] Stopped Link Layer Discovery Protocol Agent Daemon..&lt;BR /&gt;[ OK ] Stopped Simple Network Man…ement Protocol (SNMP) Daemon..&lt;BR /&gt;[ OK ] Stopped containerd container runtime.&lt;BR /&gt;[ OK ] Stopped Serial Getty on ttyS0.&lt;BR /&gt;[ OK ] Stopped Getty on tty1.&lt;BR /&gt;[ OK ] Stopped Wait for ntpd to synchronize system clock.&lt;BR /&gt;[ OK ] Stopped OpenBSD Secure Shell server.&lt;BR /&gt;Stopping Network Time Service...&lt;BR /&gt;[ OK ] Removed slice system-getty.slice.&lt;BR /&gt;[ OK ] Removed slice system-serial\x2dgetty.slice.&lt;BR /&gt;[ OK ] Stopped Network Time Service.&lt;BR /&gt;[ OK ] Stopped target Host and Network Name Lookups.&lt;BR /&gt;[ OK ] Stopped Fail2Ban Service.&lt;BR /&gt;[ OK ] Stopped Session 1 of user admin.&lt;BR /&gt;Stopping User Manager for UID 1000...&lt;BR /&gt;Stopping Login Service...&lt;BR /&gt;[ OK ] Stopped User Manager for UID 1000.&lt;BR /&gt;Stopping User Runtime Directory /run/user/1000...&lt;BR /&gt;[ OK ] Stopped Login Service.&lt;BR /&gt;[ OK ] Unmounted /run/user/1000.&lt;BR /&gt;[ OK ] Stopped User Runtime Directory /run/user/1000.&lt;BR /&gt;[ OK ] Removed slice User Slice of UID 1000.&lt;BR /&gt;Stopping Permit User Sessions...&lt;BR /&gt;[ OK ] Stopped Permit User Sessions.&lt;BR /&gt;[ OK ] Stopped target Network.&lt;BR /&gt;Stopping Network Name Resolution...&lt;BR /&gt;[ OK ] Stopped target Remote File Systems.&lt;BR /&gt;[ OK ] Stopped Network Name Resolution.&lt;BR /&gt;Stopping Network Service...&lt;BR /&gt;[ OK ] Stopped Network Service.&lt;BR /&gt;[ OK ] Stopped target Network (Pre).&lt;BR /&gt;Stopping firewalld - dynamic firewall daemon...&lt;BR /&gt;[ OK ] Stopped firewalld - dynamic firewall daemon.&lt;BR /&gt;Stopping D-Bus System Message Bus...&lt;BR /&gt;[ OK ] Stopped D-Bus System Message Bus.&lt;BR /&gt;[ OK ] Stopped target Basic System.&lt;BR /&gt;[ OK ] Stopped target Slices.&lt;BR /&gt;[ OK ] Removed slice User and Session Slice.&lt;BR /&gt;[ OK ] Stopped target Paths.&lt;BR /&gt;[ OK ] Stopped target Sockets.&lt;BR /&gt;[ OK ] Closed Docker Socket for the API.&lt;BR /&gt;[ OK ] Closed lldpad.socket.&lt;BR /&gt;[ OK ] Closed SWUpdate socket listener.&lt;BR /&gt;[ OK ] Closed sfw_manager socket listener.&lt;BR /&gt;[ OK ] Closed D-Bus System Message Bus Socket.&lt;BR /&gt;[ OK ] Stopped target System Initialization.&lt;BR /&gt;Stopping Update UTMP about System Boot/Shutdown...&lt;BR /&gt;[ OK ] Stopped Apply Kernel Variables.&lt;BR /&gt;Stopping Load/Save Random Seed...&lt;BR /&gt;[ OK ] Stopped target Swap.&lt;BR /&gt;[ OK ] Stopped Load Kernel Modules.&lt;BR /&gt;[ OK ] Stopped target Local Encrypted Volumes.&lt;BR /&gt;[ OK ] Stopped Dispatch Password …ts to Console Directory Watch.&lt;BR /&gt;[ OK ] Stopped Forward Password R…uests to Wall Directory Watch.&lt;BR /&gt;[ OK ] Stopped Load/Save Random Seed.&lt;BR /&gt;[ OK ] Stopped Update UTMP about System Boot/Shutdown.&lt;BR /&gt;[ OK ] Stopped Create Volatile Files and Directories.&lt;BR /&gt;[ OK ] Stopped target Local File Systems.&lt;BR /&gt;Unmounting /etc...&lt;BR /&gt;Unmounting /var/log...&lt;BR /&gt;Unmounting Home mount userdata...&lt;BR /&gt;[ OK ] Unmounted /etc.&lt;BR /&gt;[ OK ] Unmounted /var/log.&lt;BR /&gt;[ OK ] Unmounted Home mount userdata.&lt;BR /&gt;Unmounting /userdata...&lt;BR /&gt;[ OK ] Unmounted /userdata.&lt;BR /&gt;[ OK ] Reached target Unmount All Filesystems.&lt;BR /&gt;[ OK ] Stopped target Local File Systems (Pre).&lt;BR /&gt;[ OK ] Stopped Create Static Device Nodes in /dev.&lt;BR /&gt;[ OK ] Stopped Create System Users.&lt;BR /&gt;[ OK ] Stopped Remount Root and Kernel File Systems.&lt;BR /&gt;[ OK ] Reached target Shutdown.&lt;BR /&gt;[ OK ] Reached target Final Step.&lt;BR /&gt;[ OK ] Started Reboot.&lt;BR /&gt;[ OK ] Reached target Reboot.&lt;BR /&gt;[ 90.381101] watchdog: watchdog0: watchdog did not stop!&lt;BR /&gt;[ 90.390289] systemd-shutdow: 24 output lines suppressed due to ratelimiting&lt;BR /&gt;[ 90.433801] systemd-shutdown[1]: Syncing filesystems and block devices.&lt;BR /&gt;[ 90.441698] systemd-shutdown[1]: Sending SIGTERM to remaining processes...&lt;BR /&gt;[ 90.457027] systemd-journald[240]: Received SIGTERM from PID 1 (systemd-shutdow).&lt;BR /&gt;[ 90.489771] systemd-shutdown[1]: Sending SIGKILL to remaining processes...&lt;BR /&gt;[ 90.503171] systemd-shutdown[1]: Hardware watchdog 'GPIO Watchdog', version 0&lt;BR /&gt;[ 90.512557] systemd-shutdown[1]: Unmounting file systems.&lt;BR /&gt;[ 90.521022] [559]: Remounting '/' read-only in with options '(null)'.&lt;BR /&gt;[ 90.542076] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)&lt;BR /&gt;[ 90.553954] systemd-shutdown[1]: All filesystems unmounted.&lt;BR /&gt;[ 90.559561] systemd-shutdown[1]: Deactivating swaps.&lt;BR /&gt;[ 90.564687] systemd-shutdown[1]: All swaps deactivated.&lt;BR /&gt;[ 90.569934] systemd-shutdown[1]: Detaching loop devices.&lt;BR /&gt;[ 90.578780] systemd-shutdown[1]: All loop devices detached.&lt;BR /&gt;[ 90.703456] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000058&lt;BR /&gt;[ 90.712252] Mem abort info:&lt;BR /&gt;[ 90.715055] ESR = 0x96000005&lt;BR /&gt;[ 90.718117] Exception class = DABT (current EL), IL = 32 bits&lt;BR /&gt;[ 90.724045] SET = 0, FnV = 0&lt;BR /&gt;[ 90.727107] EA = 0, S1PTW = 0&lt;BR /&gt;[ 90.730256] Data abort info:&lt;BR /&gt;[ 90.733143] ISV = 0, ISS = 0x00000005&lt;BR /&gt;[ 90.736987] CM = 0, WnR = 0&lt;BR /&gt;[ 90.739949] user pgtable: 4k pages, 39-bit VAs, pgdp = 00000000e614ca82&lt;BR /&gt;[ 90.746571] [0000000000000058] pgd=0000000000000000, pud=0000000000000000&lt;BR /&gt;[ 90.753371] Internal error: Oops: 96000005 [#1] PREEMPT SMP&lt;BR /&gt;[ 90.758935] Modules linked in: xt_tcpudp(E) ip6t_rpfilter(E) ip6t_REJECT(E) nf_reject_ipv6(E) ipt_REJECT(E) nf_reject_ipv4(E) xt_conntrack(E) nft_counter(E) nft_chain_nat_ipv6(E) nf_nat_ipv6(E) nft_chain_route_ipv6(E) nft_chain_nat_ipv4(E) nf_nat_ipv4(E) nf_nat(E) nft_chain_route_ipv4(E) nf_conntrack(E) nf_defrag_ipv6(E) nf_defrag_ipv4(E) ip6_tables(E) nft_compat(E) nf_tables(E) nfnetlink(E) audis_info(OE) ip_tables(E) x_tables(E)&lt;BR /&gt;[ 90.797087] Process systemd-shutdow (pid: 1, stack limit = 0x00000000b81cffbb)&lt;BR /&gt;[ 90.804302] CPU: 0 PID: 1 Comm: systemd-shutdow Tainted: G OE 4.19.165-audis-std #1&lt;BR /&gt;[ 90.813163] Hardware name: Siemens LPE9403 (DT)&lt;BR /&gt;[ 90.817686] pstate: 40000005 (nZcv daif -PAN -UAO)&lt;BR /&gt;[ 90.822475] pc : tpm_transmit+0x1b0/0x738&lt;BR /&gt;[ 90.826475] lr : tpm_transmit+0x440/0x738&lt;BR /&gt;[ 90.830473] sp : ffffff800803b830&lt;BR /&gt;[ 90.833778] x29: ffffff800803b830 x28: 0000000000000000&lt;BR /&gt;[ 90.839082] x27: 0000000000000000 x26: 000000000000000c&lt;BR /&gt;[ 90.844385] x25: ffffff8008d1ca10 x24: 0000000000000014&lt;BR /&gt;[ 90.849689] x23: 0000000000001000 x22: 0000000000001000&lt;BR /&gt;[ 90.854993] x21: 0000000000000145 x20: ffffffc877f68000&lt;BR /&gt;[ 90.860297] x19: ffffffc874d81000 x18: 0000000000000010&lt;BR /&gt;[ 90.865600] x17: 0000000000000000 x16: 0000000000000000&lt;BR /&gt;[ 90.870903] x15: ffffffffffffffff x14: ffffff8008f09848&lt;BR /&gt;[ 90.876207] x13: ffffff8089052d7f x12: ffffff8009052d87&lt;BR /&gt;[ 90.881510] x11: ffffff8008f2d000 x10: ffffff800803b430&lt;BR /&gt;[ 90.886813] x9 : 00000000ffffffd0 x8 : ffffff8008626d00&lt;BR /&gt;[ 90.892116] x7 : 7972745f6d707420 x6 : 0000000000000003&lt;BR /&gt;[ 90.897418] x5 : 0000000000000000 x4 : ffffff800811a0e4&lt;BR /&gt;[ 90.902721] x3 : 0000000000000001 x2 : ffffffc83f794040&lt;BR /&gt;[ 90.908024] x1 : 0000000000000000 x0 : 0000000000000000&lt;BR /&gt;[ 90.913327] Call trace:&lt;BR /&gt;[ 90.915765] tpm_transmit+0x1b0/0x738&lt;BR /&gt;[ 90.919419] tpm_transmit_cmd+0x64/0xf8&lt;BR /&gt;[ 90.923247] tpm2_shutdown+0x88/0xa8&lt;BR /&gt;[ 90.926814] tpm_chip_unregister+0xc4/0xe0&lt;BR /&gt;[ 90.930902] tpm_tis_spi_remove+0x24/0x40&lt;BR /&gt;[ 90.934905] spi_drv_remove+0x3c/0x60&lt;BR /&gt;[ 90.938559] device_release_driver_internal+0x1b0/0x248&lt;BR /&gt;[ 90.943775] device_release_driver+0x28/0x38&lt;BR /&gt;[ 90.948038] bus_remove_device+0xd4/0x148&lt;BR /&gt;[ 90.952039] device_del+0x158/0x388&lt;BR /&gt;[ 90.955519] device_unregister+0x24/0x78&lt;BR /&gt;[ 90.959433] spi_unregister_device+0x38/0x48&lt;BR /&gt;[ 90.963694] __unregister+0x20/0x30&lt;BR /&gt;[ 90.967174] device_for_each_child+0x58/0x88&lt;BR /&gt;[ 90.971436] spi_unregister_controller+0x44/0x160&lt;BR /&gt;[ 90.976131] dspi_remove+0x28/0x170&lt;BR /&gt;[ 90.979610] dspi_shutdown+0x20/0x30&lt;BR /&gt;[ 90.983178] platform_drv_shutdown+0x2c/0x38&lt;BR /&gt;[ 90.987439] device_shutdown+0x114/0x1f0&lt;BR /&gt;[ 90.991356] kernel_restart_prepare+0x44/0x50&lt;BR /&gt;[ 90.995704] kernel_restart+0x20/0x68&lt;BR /&gt;[ 90.999358] __se_sys_reboot+0x220/0x248&lt;BR /&gt;[ 91.003272] __arm64_sys_reboot+0x24/0x30&lt;BR /&gt;[ 91.007275] el0_svc_common+0xa4/0x198&lt;BR /&gt;[ 91.011016] el0_svc_handler+0x38/0x78&lt;BR /&gt;[ 91.014758] el0_svc+0x8/0xe8&lt;BR /&gt;[ 91.017719] Code: 72000400 b9008be0 54001480 f9435e60 (f9402c02)&lt;BR /&gt;[ 91.023809] ---[ end trace 2799224cad4a013c ]---&lt;BR /&gt;[ 91.028487] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b&lt;BR /&gt;[ 91.028487]&lt;BR /&gt;[ 91.037616] Kernel Offset: disabled&lt;BR /&gt;[ 91.041095] CPU features: 0x0,20002004&lt;BR /&gt;[ 91.044834] Memory Limit: none&lt;BR /&gt;[ 91.047882] Rebooting in 90 seconds..&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;config:&lt;BR /&gt;-&amp;nbsp;TPM Infineon SLB9670, SPI connected&lt;BR /&gt;- Kernel V4.19.165 (LTS)&lt;BR /&gt;&lt;BR /&gt;Additional information:&lt;BR /&gt;- device tree modified to add the TPM&lt;BR /&gt;- U-Boot and linux defconfig modified&lt;BR /&gt;- TPM initialised in U-Boot&lt;BR /&gt;- I can install the toolsuit 'tpm2-tools' and use the functionalities of the TPM / read the internal registers.&lt;BR /&gt;- In linux "/dev/tpm0" and "/dev/tpmrm0" are present.&lt;BR /&gt;&lt;BR /&gt;Do you already experienced such a problem ?&lt;BR /&gt;What is going wrong ?&lt;BR /&gt;How to fix it ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Florian&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 07:20:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043a-and-TPM-2-0-kernel-panic-on-reboot/m-p/1221057#M7392</guid>
      <dc:creator>florian_manoel</dc:creator>
      <dc:date>2021-01-26T07:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: LS1043a and TPM 2.0 , kernel panic on reboot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043a-and-TPM-2-0-kernel-panic-on-reboot/m-p/1221593#M7397</link>
      <description>&lt;P&gt;Please refer to the following patches.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://patchwork.kernel.org/project/tpmdd-devel/patch/CAHSjozDmqAbMzJuQDv9ATKf0=X=iRPK83WHWu6Ehoj8023DBtQ@mail.gmail.com/" target="_blank"&gt;https://patchwork.kernel.org/project/tpmdd-devel/patch/CAHSjozDmqAbMzJuQDv9ATKf0=X=iRPK83WHWu6Ehoj8023DBtQ@mail.gmail.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://patchwork.ozlabs.org/project/tpmdd/patch/20170516000852.28400-1-joshz@google.com/" target="_blank"&gt;https://patchwork.ozlabs.org/project/tpmdd/patch/20170516000852.28400-1-joshz@google.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 02:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043a-and-TPM-2-0-kernel-panic-on-reboot/m-p/1221593#M7397</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-01-27T02:53:32Z</dc:date>
    </item>
  </channel>
</rss>

