Zheyu Ma
14bae84c4a
ata: pata_marvell: Check the 'bmdma_addr' beforing reading
...
commit aafa9f9583 upstream.
Before detecting the cable type on the dma bar, the driver should check
whether the 'bmdma_addr' is zero, which means the adapter does not
support DMA, otherwise we will get the following error:
[ 5.146634] Bad IO access at port 0x1 (return inb(port))
[ 5.147206] WARNING: CPU: 2 PID: 303 at lib/iomap.c:44 ioread8+0x4a/0x60
[ 5.150856] RIP: 0010:ioread8+0x4a/0x60
[ 5.160238] Call Trace:
[ 5.160470] <TASK>
[ 5.160674] marvell_cable_detect+0x6e/0xc0 [pata_marvell]
[ 5.161728] ata_eh_recover+0x3520/0x6cc0
[ 5.168075] ata_do_eh+0x49/0x3c0
Signed-off-by: Zheyu Ma <zheyuma97@gmail.com >
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2023-06-29 09:26:10 +09:00
..
2023-05-16 09:17:09 +09:00
2023-05-16 10:37:22 +09:00
2015-06-10 11:15:17 +09:00
2017-04-12 12:41:20 +02:00
2015-01-28 18:45:23 -05:00
2016-02-18 12:41:17 -05:00
2016-02-11 10:12:04 -05:00
2016-04-01 10:30:30 -04:00
2016-09-30 10:28:51 +02:00
2016-06-15 14:26:41 -04:00
2016-08-10 12:16:49 -04:00
2023-05-16 11:26:03 +09:00
2015-01-28 18:45:23 -05:00
2016-03-11 12:40:34 -05:00
2023-05-15 17:00:57 +09:00
2016-09-06 12:38:17 -04:00
2014-05-09 22:37:49 -04:00
2014-08-28 08:53:40 -04:00
2023-05-15 15:11:25 +09:00
2023-05-16 11:02:35 +09:00
2023-05-16 09:17:09 +09:00
2014-04-01 12:48:54 -07:00
2023-05-16 12:43:24 +09:00
2023-05-16 12:08:57 +09:00
2023-05-15 17:15:00 +09:00
2023-05-16 09:04:59 +09:00
2023-05-16 09:17:09 +09:00
2016-05-09 12:36:46 -04:00
2017-10-08 10:26:11 +02:00
2010-10-21 20:21:03 -04:00
2023-05-15 14:18:58 +09:00
2016-04-04 12:07:41 -04:00
2016-06-16 16:24:55 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2017-09-09 17:39:41 +02:00
2023-05-16 11:02:31 +09:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2016-09-22 11:48:46 -04:00
2016-05-27 11:22:46 -04:00
2015-04-08 10:55:05 -04:00
2016-02-16 00:20:03 +01:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2015-02-03 07:04:44 -05:00
2014-05-09 22:37:49 -04:00
2017-09-09 17:39:41 +02:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2023-05-16 11:23:41 +09:00
2014-02-13 16:40:56 -05:00
2015-04-08 10:55:05 -04:00
2023-05-16 12:44:23 +09:00
2016-07-12 11:02:05 -04:00
2016-04-15 16:53:14 -04:00
2014-10-20 16:20:17 +02:00
2015-03-18 22:39:17 +01:00
2015-10-15 10:58:53 -04:00
2014-05-09 22:37:49 -04:00
2023-05-16 11:02:32 +09:00
2015-08-24 15:27:11 -05:00
2023-05-16 12:01:07 +09:00
2023-05-16 09:17:09 +09:00
2023-06-29 09:26:10 +09:00
2014-10-20 16:20:17 +02:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2016-08-30 11:59:47 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2023-05-16 11:23:40 +09:00
2015-01-28 18:45:23 -05:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2014-02-13 16:40:56 -05:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2014-05-09 22:37:49 -04:00
2015-01-28 18:45:23 -05:00
2023-05-16 09:17:09 +09:00
2014-05-09 22:37:49 -04:00
2023-05-16 11:23:37 +09:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-09-25 11:50:15 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-07 17:10:14 -04:00
2015-04-08 10:55:05 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2023-05-16 09:17:09 +09:00
2023-05-16 11:46:00 +09:00
2023-05-16 12:21:35 +09:00
2023-05-16 11:23:36 +09:00
2023-05-16 09:17:09 +09:00
2023-05-16 12:01:53 +09:00
2023-05-16 09:17:09 +09:00
2023-05-16 09:17:09 +09:00
2008-01-23 05:24:15 -05:00
2023-05-16 09:17:09 +09:00
2023-05-16 09:44:24 +09:00
2023-05-16 09:17:09 +09:00
2023-05-16 09:17:09 +09:00
2014-05-09 22:37:49 -04:00
2015-04-16 13:53:32 -05:00
2023-05-16 09:17:09 +09:00
2014-02-13 16:40:56 -05:00
2017-10-08 10:26:09 +02:00
2015-04-08 10:55:05 -04:00
2007-07-02 10:17:42 -04:00