Christian Lamparter
9b78d69054
watchdog: qcom: fix kernel panic due to external abort on non-linefetch
commit f06f35c66f upstream.
This patch fixes a off-by-one in the "watchdog: qcom: add option for
standalone watchdog not in timer block" patch that causes the
following panic on boot:
> Unhandled fault: external abort on non-linefetch (0x1008) at 0xc8874002
> pgd = c0204000
> [c8874002] *pgd=87806811, *pte=0b017653, *ppte=0b017453
> Internal error: : 1008 [#1] SMP ARM
> CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.8.6 #0
> Hardware name: Generic DT based system
> PC is at 0xc02222f4
> LR is at 0x1
> pc : [<c02222f4>] lr : [<00000001>] psr: 00000113
> sp : c782fc98 ip : 00000003 fp : 00000000
> r10: 00000004 r9 : c782e000 r8 : c04ab98c
> r7 : 00000001 r6 : c8874002 r5 : c782fe00 r4 : 00000002
> r3 : 00000000 r2 : c782fe00 r1 : 00100000 r0 : c8874002
> Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
> Control: 10c5387d Table: 8020406a DAC: 00000051
> Process swapper/0 (pid: 1, stack limit = 0xc782e210)
> Stack: (0xc782fc98 to 0xc7830000)
> [...]
The WDT_STS (status) needs to be translated via wdt_addr as well.
fixes: f0d9d0f4b4 ("watchdog: qcom: add option for standalone watchdog not in timer block")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-06 10:40:16 +01:00
..
2016-09-23 22:35:45 +02:00
2016-07-17 20:59:10 +02:00
2015-09-11 15:12:59 -07:00
2015-09-09 21:38:52 +02:00
2015-09-09 21:38:29 +02:00
2016-10-05 18:36:18 -04:00
2016-03-16 21:09:08 +01:00
2016-03-01 15:36:35 +01:00
2016-07-17 21:03:50 +02:00
2016-09-24 08:50:10 +02:00
2015-09-09 21:39:22 +02:00
2016-09-24 08:50:10 +02:00
2015-09-09 21:39:22 +02:00
2016-05-14 18:25:49 +02:00
2015-12-29 20:36:03 +01:00
2015-12-29 20:36:04 +01:00
2015-09-09 21:39:22 +02:00
2016-07-17 21:02:42 +02:00
2015-09-09 21:39:22 +02:00
2015-12-29 20:36:02 +01:00
2016-03-01 15:36:35 +01:00
2016-09-23 08:40:55 +02:00
2016-05-02 09:32:04 -07:00
2015-09-09 21:39:22 +02:00
2016-07-17 21:00:55 +02:00
2015-09-28 10:56:01 +02:00
2016-07-27 10:47:43 +02:00
2016-10-03 08:37:41 +02:00
2015-09-09 21:39:22 +02:00
2016-03-01 15:36:35 +01:00
2016-10-08 10:27:30 +02:00
2015-10-28 22:58:32 +01:00
2016-09-24 08:49:51 +02:00
2016-05-14 16:24:43 +02:00
2016-11-25 22:24:07 +01:00
2016-09-24 08:50:10 +02:00
2016-03-01 15:36:35 +01:00
2016-10-13 16:44:20 -07:00
2016-01-31 16:51:56 +01:00
2016-07-17 21:01:07 +02:00
2017-01-06 10:40:16 +01:00
2015-12-28 23:04:06 +01:00
2015-09-09 21:39:22 +02:00
2016-07-17 21:03:25 +02:00
2016-03-01 15:36:35 +01:00
2016-03-01 15:36:35 +01:00
2016-09-24 08:59:31 +02:00
2016-03-01 15:36:35 +01:00
2016-03-01 16:25:39 +01:00
2016-07-17 21:04:13 +02:00
2016-05-14 09:22:21 +02:00
2016-09-23 22:04:09 +02:00
2015-12-27 21:09:40 +01:00
2015-09-09 21:39:22 +02:00
2016-09-23 08:43:06 +02:00
2016-07-17 20:59:23 +02:00
2016-07-25 12:02:32 +02:00
2016-07-25 12:02:43 +02:00
2016-03-16 21:09:42 +01:00
2016-10-08 10:27:13 +02:00
2016-10-08 10:27:17 +02:00
2017-01-06 10:40:16 +01:00
2016-03-01 15:29:42 +01:00
2016-05-14 18:15:40 +02:00
2015-09-09 21:39:22 +02:00
2016-09-24 08:50:10 +02:00
2016-09-24 08:59:23 +02:00
2016-03-16 21:08:09 +01:00
2015-09-09 21:38:29 +02:00
2016-07-19 10:09:12 +02:00
2016-05-14 18:25:56 +02:00
2016-07-17 21:00:44 +02:00
2016-10-08 10:27:27 +02:00
2016-01-31 16:52:08 +01:00
2016-05-14 16:16:04 +02:00
2016-09-24 08:59:49 +02:00
2016-01-11 21:51:28 +01:00
2016-01-31 11:06:24 -08:00
2016-03-01 15:36:35 +01:00
2016-07-18 12:10:21 +02:00
2016-09-24 08:50:03 +02:00
2015-12-28 22:29:35 +01:00
2015-09-09 21:39:22 +02:00
2016-09-23 22:36:32 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2016-09-24 08:50:10 +02:00
2015-11-23 08:59:30 +01:00
2016-09-23 08:37:14 +02:00
2015-12-29 20:36:01 +01:00
2016-10-08 10:27:24 +02:00
2016-10-08 10:27:24 +02:00
2016-10-08 10:27:24 +02:00
2016-10-21 01:28:33 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2016-09-23 22:34:24 +02:00