hwclock -w causes kernel panic and reboot in rtc pcf2129

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hwclock -w causes kernel panic and reboot in rtc pcf2129

2,516 Views
anushan
Contributor III

Hello Everyone,

I am using pcf2129 rtc ic for rtc clock as well as tamper detection. and I am using the driver file from the link linux/rtc-pcf2127.c at master · torvalds/linux · GitHub  but I am getting following log when I write to the rtc.

[   72.329580] Unable to handle kernel paging request at virtual address 00008080
[   72.336815] Mem abort info:
[   72.339609]   Exception class = IABT (current EL), IL = 32 bits
[   72.345541]   SET = 0, FnV = 0
[   72.348602]   EA = 0, S1PTW = 0
[   72.351746] user pgtable: 4k pages, 48-bit VAs, pgd = ffff80000f277000
[   72.358287] [0000000000008080] *pgd=0000000000000000
[   72.363262] Internal error: Oops: 86000004 [#1] PREEMPT SMP
[   72.368836] Modules linked in: brcmfmac brcmutil wlan
[   72.373896] CPU: 3 PID: 56 Comm: kworker/3:1 Not tainted 4.14.98-07190-gbcdaf61-dirty #242
[   72.382155] Hardware name: FSL i.MX8MM EVK board (DT)
[   72.387216] Workqueue: events rtc_timer_do_work
[   72.391746] task: ffff80007a691c00 task.stack: ffff00000a438000
[   72.397666] PC is at 0x8080
[   72.400460] LR is at rtc_timer_do_work+0xe8/0x1c8
[   72.405164] pc : [<0000000000008080>] lr : [<ffff000008a44234>] pstate: 80000145
[   72.412558] sp : ffff00000a43bcb0
[   72.415870] x29: ffff00000a43bcb0 x28: 0000000000000000
[   72.421183] x27: 0000000000000001 x26: ffff0000095a3810
[   72.426496] x25: ffff80007b231308 x24: ffff00000a43bd58
[   72.431808] x23: ffff80007b231000 x22: ffff80007b2313e8
[   72.437121] x21: ffff80007b2314c0 x20: 1618c74f9b75c200
[   72.442433] x19: ffff80007a611000 x18: 000000000000005a
[   72.447746] x17: 000000000000005a x16: 000000000000005a
[   72.453058] x15: 000000000000005c x14: 535f5449425f4643
[   72.458371] x13: 50203931203a2033 x12: c5c7920f1d4f9f00
[   72.463683] x11: ffff00000a43b900 x10: ffff00000a43b900
[   72.468996] x9 : 0000000000000006 x8 : 00000000aaaaaaab
[   72.474308] x7 : 0000000000000014 x6 : 0000000000000273
[   72.479621] x5 : 000000000000000d x4 : 000000000194ed90
[   72.484933] x3 : 0000000000000011 x2 : 0000000000008080
[   72.490243] x1 : 0000000000000000 x0 : ffff80007aa81820
[   72.495559]
[   72.495559] X0: 0xffff80007aa817a0:
[   72.500520] 17a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.508703] 17c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.516887] 17e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.525071] 1800  00510000 32666370 00393231 00000000 00000000 00000000 7ab51018 ffff8000
[   72.533256] 1820  7ab51088 ffff8000 7a7ab000 ffff8000 7a515800 ffff8000 7aa81c38 ffff8000
[   72.541441] 1840  7aa81438 ffff8000 7ab51098 ffff8000 7a4dbb00 ffff8000 09d5e9e8 ffff0000
[   72.549626] 1860  7a511440 ffff8000 00000009 00000007 00000000 00000000 09d91500 ffff0000
[   72.557810] 1880  00000000 00000000 00000000 00000000 7aa81890 ffff8000 7aa81890 ffff8000
[   72.566000]
[   72.566000] X19: 0xffff80007a610f80:
[   72.571051] 0f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.579237] 0fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.587420] 0fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.595606] 0fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.603789] 1000  00000000 00000000 7ffab198 ffff8000 7b2314c0 ffff8000 08a4414c ffff0000
[   72.611974] 1020  7ffaef00 ffff8000 00000000 00000000 7a611030 ffff8000 7a611030 ffff8000
[   72.620157] 1040  7a691c00 ffff8000 7ffab000 ffff8000 7ffab2d0 ffff8000 7a4a8250 ffff8000
[   72.628342] 1060  ffff2178 00000000 00000000 00000001 00000000 00000000 00000000 00000000
[   72.636526]
[   72.636526] X21: 0xffff80007b231440:
[   72.641575] 1440  7b231000 ffff8000 7b231448 ffff8000 00000000 00000000 00000000 00000000
[   72.649760] 1460  00000000 00000000 00000000 00000000 00000000 00000000 7b231478 ffff8000
[   72.657944] 1480  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.666130] 14a0  08a440e8 ffff0000 7ff5ab40 ffff8000 00000000 00000000 00000000 00000000
[   72.674314] 14c0  000000c0 00000000 7b2314c8 ffff8000 7b2314c8 ffff8000 08a4414c ffff0000
[   72.682497] 14e0  00000000 00000001 00000000 00000000 386d4380 00000000 f48656ff 00000000
[   72.690681] 1500  00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000
[   72.698867] 1520  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.707053]
[   72.707053] X22: 0xffff80007b231368:
[   72.712102] 1368  00000002 00000001 00000000 00000000 091929b0 ffff0000 423323e8 ffff8000
[   72.720287] 1388  423323e8 ffff8000 0fb00000 00000001 00000001 00000000 00000000 00000000
[   72.728471] 13a8  00010001 00000000 00000000 00000000 7b2313b8 ffff8000 7b2313b8 ffff8000
[   72.736654] 13c8  00000000 00000000 00000000 00000000 00000000 00000001 00000040 00000000
[   72.744837] 13e8  00000000 00000000 00000000 00000000 08a440b0 ffff0000 7b231000 ffff8000
[   72.753021] 1408  7b231408 ffff8000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.761205] 1428  00000000 00000000 00000000 00000000 08a440cc ffff0000 7b231000 ffff8000
[   72.769388] 1448  7b231448 ffff8000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.777573]
[   72.777573] X23: 0xffff80007b230f80:
[   72.782623] 0f80  00000000 00000000 00+-----------------------------+00 00000000 00000000
[   72.790809] 0fa0  00000000 00000000 00|                             |00 00000000 00000000
[   72.798993] 0fc0  00000000 00000000 00|  Cannot open /dev/ttyUSB1!  |00 00000000 00000000
[   72.807178] 0fe0  00000000 00000000 00|                             |00 00000000 00000000
[   72.815361] 1000  7aa81820 ffff8000 7b+-----------------------------+00 7b222818 ffff8000
[   72.823545] 1020  7b222418 ffff8000 7a606380 ffff8000 7a4dbb00 ffff8000 09d5e9e8 ffff0000
[   72.831729] 1040  7a6d9550 ffff8000 00000004 00000007 00000000 00000000 00000000 00000000
[   72.839915] 1060  00000000 00000000 00000000 00000000 7b231070 ffff8000 7b231070 ffff8000
[   72.848100]
[   72.848100] X25: 0xffff80007b231288:
[   72.853148] 1288  0fb00000 00000000 00010001 00000000 7a606f80 ffff8000 7a606f80 ffff8000
[   72.861334] 12a8  7aa5aea0 ffff8000 7aa5aea8 ffff8000 7aa5aea8 ffff8000 00000001 00000000
[   72.869517] 12c8  7a8ce600 ffff8000 7a606f98 ffff8000 08a4248c ffff0000 00000000 00000000
[   72.877701] 12e8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   72.885884] 1308  09193918 ffff0000 7a691c01 ffff8000 00010001 00000000 1ecb3d68 ffff0000
[   72.894068] 1328  1ecb3d68 ffff0000 00000000 00000000 7b231338 ffff8000 7b231338 ffff8000
[   72.902252] 1348  7b231010 ffff8000 00000000 00000000 09c71cf8 ffff0000 00000000 00000000
[   72.910435] 1368  00000002 00000001 00000000 00000000 091929b0 ffff0000 423323e8 ffff8000
[   72.918622]
[   72.920114] Process kworker/3:1 (pid: 56, stack limit = 0xffff00000a438000)
[   72.927074] Call trace:
[   72.929522] Exception stack(0xffff00000a43bb70 to 0xffff00000a43bcb0)
[   72.935963] bb60:                                   ffff80007aa81820 0000000000000000
[   72.943791] bb80: 0000000000008080 0000000000000011 000000000194ed90 000000000000000d
[   72.951620] bba0: 0000000000000273 0000000000000014 00000000aaaaaaab 0000000000000006
[   72.959447] bbc0: ffff00000a43b900 ffff00000a43b900 c5c7920f1d4f9f00 50203931203a2033
[   72.967278] bbe0: 535f5449425f4643 000000000000005c 000000000000005a 000000000000005a
[   72.975106] bc00: 000000000000005a ffff80007a611000 1618c74f9b75c200 ffff80007b2314c0
[   72.982934] bc20: ffff80007b2313e8 ffff80007b231000 ffff00000a43bd58 ffff80007b231308
[   72.990763] bc40: ffff0000095a3810 0000000000000001 0000000000000000 ffff00000a43bcb0
[   72.998592] bc60: ffff000008a44234 ffff00000a43bcb0 0000000000008080 0000000080000145
[   73.006420] bc80: 0000000000002006 c5c7920f1d4f9f00 ffffffffffffffff ffff000008a441b0
[   73.014249] bca0: ffff00000a43bcb0 0000000000008080
[   73.019128] [<0000000000008080>] 0x8080
[   73.022967] [<ffff0000080f8518>] process_one_work+0x140/0x3f8
[   73.028714] [<ffff0000080f8908>] worker_thread+0x138/0x3e4
[   73.034200] [<ffff0000080fed70>] kthread+0x104/0x130
[   73.039166] [<ffff000008085064>] ret_from_fork+0x10/0x18
[   73.044482] Code: bad PC value
[   73.047541] ---[ end trace f27a4cb9cd62b062 ]---
[   73.052157] Kernel panic - not syncing: Fatal exception
[   73.057381] SMP: stopping secondary CPUs
[   73.061823] Kernel Offset: disabled
[   73.065312] CPU features: 0x080200c
[   73.068799] Memory Limit: none
[   73.071855] Rebooting in 5 seconds..

I request you to suggest a working driver for time and tamper detection.

Regards,

Anusha

Labels (1)
0 Kudos
Reply
1 Reply

2,450 Views
igorpadykov
NXP Employee
NXP Employee

Hi Anusha

error "Unable to handle kernel paging request at virtual address"

may be due to memory errors, one can try to run ddr test on board.

Also recommended to rebuild all image from scratch with rtc driver

sources, follow

https://community.nxp.com/docs/DOC-95003 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply