<?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: kernel BUG at drivers/crypto/caam/jr.c in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/kernel-BUG-at-drivers-crypto-caam-jr-c/m-p/1752702#M215294</link>
    <description>&lt;P&gt;I suspect there is problem with your Linux Kernel source code.&lt;/P&gt;
&lt;P&gt;Please refer to Linux SDK release from the following link&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-qoriq/yocto-sdk" target="_blank"&gt;https://github.com/nxp-qoriq/yocto-sdk&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;Yocto branch and version
========================
| Branch      | Version          |
|-------------|------------------|
| mickledore  | YP 4.2–lf-6.1.36 |
| langdale    | YP 4.1–lf-6.1.1  |
| kirkstone   | YP 4.0–lf-5.15.71|
| honister    | YP 3.4–lf-5.15.5 |
| hardknott   | YP 3.3–lf-5.10.72|&lt;/PRE&gt;
&lt;P&gt;We didn't release Linux Kernel&amp;nbsp;&lt;SPAN&gt;5.10.154* to customer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please download one formal release LSDK to do verification on your target board.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 09:34:07 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2023-11-06T09:34:07Z</dc:date>
    <item>
      <title>kernel BUG at drivers/crypto/caam/jr.c</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-BUG-at-drivers-crypto-caam-jr-c/m-p/1748194#M214865</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Check log, call trace output "irqstate: 00000103"&lt;/P&gt;&lt;P&gt;Check code: drivers/crypto/caam/jr.c&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-60px"&gt;286 if (irqstate &amp;amp; JRINT_JR_ERROR) {&lt;BR /&gt;287 dev_err(dev, "job ring error: irqstate: %08x\n", irqstate);&lt;BR /&gt;288 BUG();&lt;BR /&gt;289 }&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-60px"&gt;caam_jr_remove function&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-60px"&gt;238 if (atomic_read(&amp;amp;jrpriv-&amp;gt;tfm_count)) {&lt;BR /&gt;239 dev_err(jrdev, "Device is busy\n");&lt;BR /&gt;240 return -EBUSY;&lt;BR /&gt;241 }&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Judging from the current log, the caam_jr_remove function was called, but the check device is still busy.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I found a similar problem:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/Layerscape/Kernel-panic-with-Layerscape-17-09-kernel-4-9-35/m-p/697467" target="_blank" rel="nofollow noopener"&gt;https://community.nxp.com/t5/Layerscape/Kernel-panic-with-Layerscape-17-09-kernel-4-9-35/m-p/697467&lt;/A&gt;&lt;/P&gt;&lt;P&gt;NXP suggest:&lt;BR /&gt;"You are working with the kernel from LSDK 1709 ( 4.9.35), but your u-Boot seem to be taken from an earlier release (1709 u-Boot is 2017.07, your one is 2017.03).&lt;BR /&gt;Can you update your u-Boot and try again?"&lt;/P&gt;&lt;P&gt;Check our version:&lt;/P&gt;&lt;P&gt;nxp-ls1028 kernel: Linux version 5.10.154*&lt;BR /&gt;nxp-ls1028 kernel: efi: EFI v2.80 by Das U-Boot&lt;/P&gt;&lt;P&gt;U-Boot 2019.10+fsl+g3d542a3d22 (Dec 21 2021 - 20:21:21 +0000)&lt;/P&gt;&lt;P&gt;our uboot version is &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Higher, do you know the possible cause of this problem?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks！&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;BR/SK&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;caam_jr 8030000.jr: Device is busy
caam_jr 8020000.jr: Device is busy
caam_jr 8010000.jr: Device is busy
arm-smmu 5000000.iommu: disabling translation
caam_jr 8010000.jr: job ring error: irqstate: 00000103
------------[ cut here ]------------
kernel BUG at drivers/crypto/caam/jr.c:288!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in: lttng_ring_buffer_client_discard(O) lttng_ring_buffer_client_overwrite(O) lttng_ring_buffer_metadata_client(O) lttng_ring_buffer_client_mmap_discard(O) lttng_ring_buffer_client_mmap_overwrite(O) lttng_ring_buffer_metadata_mmap_client(O) lttng_probe_printk(O) lttng_probe_signal(O) lttng_probe_irq(O) lttng_probe_sched(O) lttng_tracer(O) lttng_statedump(O) lttng_wrapper(O) lttng_uprobes(O) lttng_clock(O) lttng_kprobes(O) lttng_lib_ring_buffer(O) lttng_kretprobes(O) binfmt_misc [last unloaded: tpm_ftpm_tee]
CPU: 0 PID: 163 Comm: hwrng Tainted: G        W  O      5.10.154-wrl21.15-wrprime-1-yocto-standard-custom-rcs #1
Hardware name: freescale ls1028a/ls1028a, BIOS 2019.10+fsl+g3d542a3d22 12/21/2021
pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
pc : caam_jr_interrupt+0x128/0x130
lr : caam_jr_interrupt+0x128/0x130
sp : ffff80001144be50
x29: ffff80001144be50 x28: ffff800010f61008
x27: ffff800011228000 x26: ffff800010f61008
x25: ffff000027904800 x24: 0000000000000072
x23: ffff8000113ba140 x22: 0000000000000001
x21: ffff800011433000 x20: ffff000027904e80
x19: 0000000000000103 x18: 0000000000000030
x17: 0000000000000000 x16: 0000000000000000
x15: ffffffffffffffff x14: ffff8000113ebcb8
x13: 0000000000000008 x12: fffffffffffcac8f
x11: ffff00000038bb00 x10: ffff8000112a1e90
x9 : ffff8000100a99c0 x8 : ffff800011249e90
x7 : ffff8000112a1e90 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000
x3 : 0000000000000000 x2 : 0000000000000000
x1 : 0000000000000000 x0 : ffff0000279ac600
Call trace:
 caam_jr_interrupt+0x128/0x130
 __handle_irq_event_percpu+0x84/0x2b0
 handle_irq_event+0x6c/0xfc
 handle_fasteoi_irq+0xc8/0x230
 __handle_domain_irq+0xb8/0x130
 gic_handle_irq+0x90/0x158
 el1_irq+0xcc/0x180
 _raw_spin_lock_irq+0x0/0x90
 caam_rng_read_one.constprop.0+0x248/0x370
 caam_read+0x8c/0xb0
 hwrng_fillfn+0xfc/0x1cc
 kthread+0x14c/0x160
 ret_from_fork+0x10/0x30
Code: 2a1303e2 d00029a1 910ee021 940b2b1d (d4210000)
---[ end trace f04d90f3ad0da5f4 ]---
Kernel panic - not syncing: Oops - BUG: Fatal exception in interrupt
Kernel Offset: disabled
CPU features: 0x28040022,21002008
Memory Limit: none&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 02:19:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-BUG-at-drivers-crypto-caam-jr-c/m-p/1748194#M214865</guid>
      <dc:creator>kunsong</dc:creator>
      <dc:date>2023-10-30T02:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: kernel BUG at drivers/crypto/caam/jr.c</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-BUG-at-drivers-crypto-caam-jr-c/m-p/1749100#M214951</link>
      <description>&lt;P&gt;hi, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/43353"&gt;@bpe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Can you give some advice?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Do you know what this value means?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; irqstate: 00000103&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;BR/SK&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 03:07:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-BUG-at-drivers-crypto-caam-jr-c/m-p/1749100#M214951</guid>
      <dc:creator>kunsong</dc:creator>
      <dc:date>2023-10-31T03:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: kernel BUG at drivers/crypto/caam/jr.c</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-BUG-at-drivers-crypto-caam-jr-c/m-p/1752702#M215294</link>
      <description>&lt;P&gt;I suspect there is problem with your Linux Kernel source code.&lt;/P&gt;
&lt;P&gt;Please refer to Linux SDK release from the following link&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-qoriq/yocto-sdk" target="_blank"&gt;https://github.com/nxp-qoriq/yocto-sdk&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;Yocto branch and version
========================
| Branch      | Version          |
|-------------|------------------|
| mickledore  | YP 4.2–lf-6.1.36 |
| langdale    | YP 4.1–lf-6.1.1  |
| kirkstone   | YP 4.0–lf-5.15.71|
| honister    | YP 3.4–lf-5.15.5 |
| hardknott   | YP 3.3–lf-5.10.72|&lt;/PRE&gt;
&lt;P&gt;We didn't release Linux Kernel&amp;nbsp;&lt;SPAN&gt;5.10.154* to customer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please download one formal release LSDK to do verification on your target board.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 09:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-BUG-at-drivers-crypto-caam-jr-c/m-p/1752702#M215294</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-11-06T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: kernel BUG at drivers/crypto/caam/jr.c</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-BUG-at-drivers-crypto-caam-jr-c/m-p/1755250#M215532</link>
      <description>&lt;P&gt;yes, &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;We have a customized kernel system, and this problem is difficult to reproduce.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Do you know what&amp;nbsp;"irqstate: 00000103 " means ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I didn't find any definition in the manual&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 01:57:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-BUG-at-drivers-crypto-caam-jr-c/m-p/1755250#M215532</guid>
      <dc:creator>kunsong</dc:creator>
      <dc:date>2023-11-10T01:57:46Z</dc:date>
    </item>
  </channel>
</rss>

