Zheyu Ma
aafa9f9583
ata: pata_marvell: Check the 'bmdma_addr' beforing reading
...
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>
2022-04-22 08:45:06 +09:00
..
2022-02-20 09:06:05 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-28 12:27:35 -07:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2019-06-19 17:09:07 +02:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2021-04-11 20:35:08 -06:00
2022-03-07 11:49:10 +09:00
2022-04-06 11:08:04 +09:00
2022-04-06 11:08:04 +09:00
2021-03-30 20:21:26 -06:00
2022-02-19 11:18:35 +09:00
2022-04-06 11:08:04 +09:00
2022-03-28 12:27:35 -07:00
2022-02-20 09:06:05 +09:00
2022-02-20 09:06:05 +09:00
2022-04-04 09:56:37 +09:00
2022-02-20 09:06:05 +09:00
2020-03-26 10:28:19 -06:00
2022-01-05 19:33:01 +09:00
2022-02-20 09:06:05 +09:00
2022-03-24 19:37:53 -07:00
2022-04-04 09:49:42 +09:00
2022-01-05 19:33:01 +09:00
2022-01-04 20:00:45 +09:00
2017-11-02 11:10:55 +01:00
2019-07-29 16:00:14 -06:00
2022-02-02 16:56:49 +09:00
2020-03-26 10:28:19 -06:00
2021-03-30 20:21:26 -06:00
2022-01-14 15:17:17 +09:00
2021-10-12 17:46:55 +09:00
2022-02-19 11:18:35 +09:00
2022-02-19 11:18:42 +09:00
2022-01-31 09:58:32 +09:00
2022-01-05 19:33:02 +09:00
2018-03-01 13:59:03 -08:00
2019-08-23 06:58:50 -06:00
2022-01-05 19:33:03 +09:00
2022-01-05 19:33:02 +09:00
2022-02-19 11:18:35 +09:00
2021-06-16 06:50:25 -06:00
2019-06-05 17:37:06 +02:00
2022-01-05 19:33:03 +09:00
2022-01-05 19:33:03 +09:00
2019-05-21 10:50:45 +02:00
2022-02-20 09:06:05 +09:00
2021-11-29 20:28:13 +09:00
2022-03-07 11:49:10 +09:00
2018-03-19 07:41:36 -07:00
2022-02-19 11:18:49 +09:00
2019-08-26 13:58:59 -06:00
2022-03-23 14:35:59 -07:00
2022-02-19 11:18:49 +09:00
2021-01-31 08:05:46 -07:00
2022-02-19 11:18:35 +09:00
2019-05-21 10:50:45 +02:00
2022-01-14 15:17:16 +09:00
2019-05-21 10:50:45 +02:00
2022-03-07 11:49:10 +09:00
2021-03-12 07:28:31 -07:00
2021-10-12 09:52:35 +09:00
2022-03-07 11:49:10 +09:00
2022-04-22 08:45:06 +09:00
2022-03-07 11:49:10 +09:00
2019-05-21 10:50:45 +02:00
2022-01-14 15:17:16 +09:00
2019-08-26 13:58:59 -06:00
2019-05-21 11:28:46 +02:00
2022-02-20 09:06:05 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2019-05-21 10:50:45 +02:00
2021-03-30 20:21:26 -06:00
2021-10-12 17:46:59 +09:00
2019-06-19 17:09:55 +02:00
2020-01-29 20:54:51 -07:00
2022-01-31 09:58:32 +09:00
2022-01-05 19:33:01 +09:00
2021-03-30 20:21:25 -06:00
2022-01-31 09:58:31 +09:00
2022-03-10 11:17:59 +09:00
2021-10-12 17:47:02 +09:00
2021-06-24 18:49:01 -06:00
2019-05-21 11:28:46 +02:00
2022-01-05 19:33:03 +09:00
2022-02-20 09:06:05 +09:00
2021-06-16 06:50:25 -06:00
2019-06-05 17:37:00 +02:00
2022-01-05 19:33:03 +09:00
2022-01-05 19:33:03 +09:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2022-02-19 11:18:35 +09:00
2022-01-05 19:33:01 +09:00
2022-01-05 19:33:01 +09:00
2022-04-04 09:56:34 +09:00
2022-03-23 14:35:59 -07:00
2022-03-07 11:49:10 +09:00
2017-11-02 11:10:55 +01:00
2022-03-07 11:49:10 +09:00
2022-02-20 09:06:05 +09:00
2022-03-07 11:49:10 +09:00
2022-01-05 19:33:02 +09:00
2022-01-05 19:33:01 +09:00
2019-05-21 11:28:46 +02:00
2022-01-05 19:33:02 +09:00
2022-03-07 11:49:10 +09:00
2022-01-04 20:00:57 +09:00
2022-01-05 19:33:02 +09:00
2019-05-21 11:28:46 +02:00
2022-02-20 09:06:05 +09:00
2022-01-05 19:33:03 +09:00
2019-05-21 11:28:46 +02:00
2019-08-26 13:58:59 -06:00
2022-02-20 09:06:05 +09:00
2017-11-02 11:10:55 +01:00