Stanimir Varbanov
f139f97878
dmaengine: qcom: bam_dma: fix dma free memory on remove
...
Building the driver as a module and when removing the already
inserted module gives below:
[ 1389.392788] Unable to handle kernel paging request at virtual address ffffffbdc000001c
[ 1389.421321] pgd = ffffffc02fa87000
[ 1389.447899] [ffffffbdc000001c] *pgd=0000000000000000, *pud=0000000000000000
[ 1389.460142] Internal error: Oops: 96000006 [#1 ] PREEMPT SMP
[ 1389.466963] Modules linked in: qcom_bam_dma(-)
[ 1389.486608] CPU: 2 PID: 2442 Comm: rmmod Not tainted 4.2.0+ #407
[ 1389.493885] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 1389.501196] task: ffffffc035bae2c0 ti: ffffffc0368a8000 task.ti: ffffffc0368a8000
[ 1389.508566] PC is at __free_pages+0xc/0x40
[ 1389.515893] LR is at free_pages.part.93+0x30/0x38
[ 1389.523141] pc : [<ffffffc00016180c>] lr : [<ffffffc00016197c>] pstate: 80000145
[ 1389.530602] sp : ffffffc0368abc20
[ 1389.537931] x29: ffffffc0368abc20 x28: ffffffc0368a8000
[ 1389.549153] x27: 0000000000000000 x26: 0000000000000000
[ 1389.560412] x25: ffffffc000cb2000 x24: 0000000000000170
[ 1389.571530] x23: 0000000000000004 x22: ffffffc036bc5010
[ 1389.582721] x21: ffffffc036bc5010 x20: 0000000000000000
[ 1389.593981] x19: 0000000000000002 x18: 0000007fcbc8e8b0
[ 1389.605301] x17: 0000007f9b8226ec x16: ffffffc0002089e8
[ 1389.616647] x15: 0000007f9b8a0588 x14: 0ffffffffffffffc
[ 1389.628039] x13: 0000000000000030 x12: 0000000000000000
[ 1389.639436] x11: 0000000000000008 x10: ffffffc000ecc000
[ 1389.650872] x9 : ffffffc035bae2c0 x8 : ffffffc035bae9a8
[ 1389.662367] x7 : ffffffc035bae9a0 x6 : 0000000000000000
[ 1389.673906] x5 : ffffffbdc000001c x4 : 0000000080000000
[ 1389.685475] x3 : ffffffbdc0000000 x2 : 0000004080000000
[ 1389.697049] x1 : 0000000000000003 x0 : ffffffbdc0000000
The memory has been already freed by bam_free_chan() so fix this
by skiping already freed memory.
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2016-04-19 21:11:31 +05:30
..
2015-03-18 22:13:14 +05:30
2016-03-17 12:34:54 -07:00
2015-12-05 14:00:34 +05:30
2016-03-17 12:34:54 -07:00
2015-09-16 15:47:51 +02:00
2015-03-16 22:28:15 +05:30
2016-04-19 21:11:31 +05:30
2016-03-03 21:51:14 +05:30
2016-03-04 20:33:13 +05:30
2016-02-22 09:06:09 +05:30
2015-08-18 22:12:14 +05:30
2015-11-16 09:21:05 +05:30
2015-11-16 09:21:05 +05:30
2016-03-10 16:32:36 +05:30
2015-12-05 15:36:32 +05:30
2015-08-05 10:53:52 +05:30
2015-04-11 21:12:58 +05:30
2015-11-16 08:28:52 +05:30
2015-04-24 09:49:37 -07:00
2015-08-18 22:28:50 +05:30
2016-02-09 09:01:41 +05:30
2015-05-28 11:32:10 +09:30
2016-03-17 12:34:54 -07:00
2016-01-25 09:49:55 +05:30
2015-04-02 16:11:35 +05:30
2015-04-02 16:10:27 +05:30
2015-12-05 15:52:13 +05:30
2016-03-09 12:15:22 +05:30
2015-01-13 23:58:08 +05:30
2016-02-15 22:06:45 +05:30
2016-03-24 23:13:48 -07:00
2015-12-18 11:12:29 +05:30
2015-08-05 10:53:52 +05:30
2015-11-16 09:14:25 +05:30
2016-03-09 14:57:51 +01:00
2015-08-05 10:53:52 +05:30
2016-03-14 11:18:22 +05:30
2015-08-18 22:12:14 +05:30
2016-03-11 07:42:06 +05:30
2016-03-03 21:13:01 +05:30
2015-08-05 10:53:52 +05:30
2015-08-05 10:53:52 +05:30
2015-08-05 10:53:52 +05:30
2015-10-01 07:34:31 +05:30
2015-10-01 07:34:31 +05:30
2016-03-09 14:57:51 +01:00
2016-01-06 15:42:27 +05:30
2015-05-04 16:38:55 +05:30
2015-05-04 16:38:55 +05:30
2015-05-09 17:11:25 +05:30
2016-02-22 08:19:02 +05:30
2015-07-06 19:18:53 +05:30
2016-03-01 09:11:25 +05:30
2016-03-20 14:57:08 -07:00
2015-05-04 16:38:55 +05:30
2015-04-17 23:24:35 +05:30
2016-03-04 20:31:35 +05:30
2013-06-04 11:12:10 +02:00
2015-12-10 09:17:10 +05:30
2015-12-10 09:45:22 +05:30
2016-03-03 21:16:35 +05:30
2015-10-01 07:35:26 +05:30
2016-03-04 20:36:01 +05:30
2015-11-30 15:09:16 +05:30
2015-07-06 19:18:53 +05:30
2014-07-15 22:14:30 +05:30
2014-12-22 12:33:22 +05:30
2014-11-24 22:46:44 +01:00
2015-11-16 08:32:16 +05:30
2016-01-06 15:17:47 +05:30
2016-01-07 11:09:36 +05:30
2015-11-10 10:05:17 -08:00