Re: [PATCH v18 6/7] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

From: Fabio Estevam
Date: Tue Jul 03 2018 - 19:56:06 EST


On Tue, Jul 3, 2018 at 5:40 PM, Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:

> And here just a wild guess, if you comment out a BUG() in IRQ handler,
> does it boot?

Not really. It fails a bit later:

[ 3.863231] caam 2100000.caam: Entropy delay = 3200
[ 3.929028] caam 2100000.caam: Instantiated RNG4 SH0
[ 3.989789] caam 2100000.caam: Instantiated RNG4 SH1
[ 3.994809] caam 2100000.caam: device ID = 0x0a16010000000000 (Era 4)
[ 4.001313] caam 2100000.caam: job rings = 2, qi = 0
[ 4.019569] mmcblk1: p1 p2
[ 4.021007] caam algorithms registered in /proc/crypto
[ 4.030633] caam_jr 2101000.jr0: job ring error: irqstate: 00000103
[ 4.037036] Internal error: Oops - undefined instruction: 0 [#1] SMP ARM
[ 4.043751] Modules linked in:
[ 4.046829] CPU: 0 PID: 0 Comm: swapper/0 Not tainted
4.18.0-rc3-next-20180703-00001-g62a05d4-dirty #498
[ 4.056317] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 4.062869] PC is at caam_jr_dequeue+0x240/0x2bc
[ 4.067499] LR is at 0x1
[ 4.070042] pc : [<c075e6bc>] lr : [<00000001>] psr: 60000113
[ 4.076317] sp : c1001d58 ip : ec85c000 fp : c1001da4
[ 4.081549] r10: ec858010 r9 : ec85c000 r8 : 00000000
[ 4.086783] r7 : 000001ff r6 : 00000001 r5 : 00000000 r4 : 00000000
[ 4.093318] r3 : ffffffff r2 : 00000000 r1 : 00000000 r0 : 00000001
[ 4.099856] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 4.106999] Control: 10c5387d Table: 1000404a DAC: 00000051
[ 4.112754] Process swapper/0 (pid: 0, stack limit = 0x(ptrval))
[ 4.118771] Stack: (0xc1001d58 to 0xc1002000)