Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: trng set puf mode enable failure #391

Closed
wangjianxin-canaan opened this issue Nov 18, 2022 · 0 comments · Fixed by #392
Closed

[Bug]: trng set puf mode enable failure #391

wangjianxin-canaan opened this issue Nov 18, 2022 · 0 comments · Fixed by #392
Assignees
Labels
bug Something isn't working
Milestone

Comments

@wangjianxin-canaan
Copy link
Contributor

What happened

随机数模块很低概率初始化失败,打印如下栈:
[ 0.786791] 96010000.serial: ttyS1 at MMIO 0x96010000 (irq = 2, base_baud = 1562500) is a 16550A
[ 0.802224] k510-rng 9102c200.trng: set puf mode enable failure
[ 0.808255] k510-rng 9102c200.trng: failed to register hwrng
[ 0.814000] [K510_POWER]:power off sec_domain
[ 0.818416] k510-rng: probe of 9102c200.trng failed with error -16
[ 0.826089] start kendryte_dsi_probe
[ 0.829901] SYSCTL_CLK_DISPLAY_PIXEL is 107

......

Sysinit starting
/dev/mmcblk2p2 was not cleanly unmounted, check forced.
/dev/mmcblk2p2: 3103/32768 files (0.1% non-contiguous), 47805/131072 blocks
Wed Dec 1 10:00:00 CST 2010
Starting rngd: OK
[ 6.383696] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[ 6.393082] Oops 1
[ 6.395389] Modules linked in:
[ 6.398488] CPU: 1 PID: 97 Comm: rngd Not tainted 4.17.0 #1
[ 6.404120] sepc: ffffffe0005a4fe0 ra : ffffffe0002c19ac sp : ffffffe0030f3c40
[ 6.411372] gp : ffffffe0008b1688 tp : ffffffe0059ba500 t0 : ffffffe00435f000
[ 6.418610] t1 : 000000200003b93c t2 : 000000200002dbd4 s0 : ffffffe0030f3c60
[ 6.425844] s1 : ffffffffffffffc0 a0 : 0000000000000011 a1 : 0000000000000000
[ 6.433084] a2 : 0000000000001000 a3 : ffffffe000784a69 a4 : 0000000000000000
[ 6.440324] a5 : ffffffe00435e011 a6 : ffffffe00435f000 a7 : 0000000000000000
[ 6.447564] s2 : ffffffe00435e000 s3 : ffffffe000854d98 s4 : ffffffe000784a68
[ 6.454794] s5 : ffffffe0006110b8 s6 : ffffffe0030f3e98 s7 : ffffffe000032800
[ 6.462024] s8 : ffffffe000034040 s9 : 0000000000001000 s10: 000000000001ab40
[ 6.467858] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.469264] s11: fffffffffffff000 t3 : 000000000000e93c t4 : 0000000000000002
[ 6.482324] t5 : 0000000000000002 t6 : ffffffe00435e011
[ 6.487662] sstatus: 0000000200000120 sbadaddr: 0000000000000000 scause: 000000000000000d
[ 6.495872] CPU: 1 PID: 97 Comm: rngd Not tainted 4.17.0 #1
[ 6.501468] Call Trace:
[ 6.503987] [] walk_stackframe+0x0/0xa4
[ 6.509441] [] show_stack+0x2c/0x38
[ 6.514527] [] dump_stack+0x64/0x80
[ 6.519609] [] die+0x70/0xf8
[ 6.524131] [] do_page_fault+0x24c/0x358
[ 6.529669] [] ret_from_exception+0x0/0xc
[ 6.539576] --[ end trace a1fbc175e0eeefc1 ]--
[ 6.544380] Kernel panic - not syncing: Fatal exception

Reproduction steps

正常启动

Hardware board

k510 crb kit

Software version

No response

Bug frequency

1/1000000

Anything else

No response

@wangjianxin-canaan wangjianxin-canaan added the bug Something isn't working label Nov 18, 2022
@wangjianxin-canaan wangjianxin-canaan changed the title [Bug]: rng随机数模块寄存器定义错误 [Bug]: trng set puf mode enable failure Nov 18, 2022
@wangjianxin-canaan wangjianxin-canaan added this to the v1.9 milestone Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants