Thomas Petazzoni
239a3b6636
net: mvpp2: fix DMA address calculation in mvpp2_txq_inc_put()
...
When TX descriptors are filled in, the buffer DMA address is split
between the tx_desc->buf_phys_addr field (high-order bits) and
tx_desc->packet_offset field (5 low-order bits).
However, when we re-calculate the DMA address from the TX descriptor in
mvpp2_txq_inc_put(), we do not take tx_desc->packet_offset into
account. This means that when the DMA address is not aligned on a 32
bytes boundary, we end up calling dma_unmap_single() with a DMA address
that was not the one returned by dma_map_single().
This inconsistency is detected by the kernel when DMA_API_DEBUG is
enabled. We fix this problem by properly calculating the DMA address in
mvpp2_txq_inc_put().
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-21 13:16:14 -05:00
..
2017-02-06 19:36:04 -08:00
2017-01-06 15:45:32 -05:00
2017-02-15 13:24:53 -05:00
2017-01-11 09:27:30 +01:00
2017-02-06 14:52:10 +01:00
2017-02-02 16:54:00 -05:00
2017-01-23 13:27:42 -05:00
2017-02-19 00:26:37 +01:00
2016-12-25 10:47:44 +01:00
2016-12-24 11:46:01 -08:00
2017-02-08 18:06:03 -08:00
2017-01-21 18:46:45 -08:00
2017-01-17 10:08:38 +01:00
2017-02-06 14:52:10 +01:00
2016-12-24 11:46:01 -08:00
2017-02-06 14:16:23 -08:00
2016-12-18 15:49:10 -08:00
2017-01-03 00:21:45 +01:00
2016-12-24 11:46:01 -08:00
2017-01-25 15:35:11 +05:30
2016-11-18 10:35:58 +01:00
2016-12-24 11:46:01 -08:00
2017-01-11 09:11:39 +01:00
2016-11-15 10:54:36 -05:00
2017-02-01 21:17:49 +01:00
2016-11-29 15:51:49 -06:00
2017-01-19 09:57:20 +01:00
2017-02-17 11:13:17 +10:00
2017-01-31 12:59:33 +01:00
2017-01-31 10:59:48 +01:00
2017-01-02 10:15:28 -08:00
2016-12-25 10:47:44 +01:00
2017-02-14 22:10:26 +01:00
2016-12-24 11:46:01 -08:00
2016-12-13 10:41:53 -08:00
2017-01-22 13:35:40 +00:00
2017-02-11 02:31:11 -05:00
2017-02-12 18:36:49 -08:00
2017-01-06 10:49:36 -08:00
2016-12-31 19:06:44 +00:00
2017-01-28 10:33:06 -05:00
2016-12-25 10:47:44 +01:00
2016-12-24 11:46:01 -08:00
2016-12-13 12:11:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2016-11-15 10:52:37 +01:00
2017-02-03 10:26:14 -05:00
2017-02-16 10:22:41 -08:00
2016-11-30 14:58:00 +01:00
2017-01-24 16:26:14 -08:00
2016-12-24 11:46:01 -08:00
2016-12-19 08:16:26 -08:00
2017-01-11 07:43:57 +01:00
2017-02-14 08:50:10 +01:00
2017-01-04 20:50:18 +01:00
2017-02-21 13:16:14 -05:00
2016-11-17 16:37:49 +01:00
2017-02-16 23:11:26 -05:00
2016-12-24 11:46:01 -08:00
2017-02-04 14:47:31 -08:00
2017-01-26 17:49:14 +02:00
2017-01-04 18:22:47 +01:00
2017-02-19 18:19:37 -05:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2017-01-28 21:54:21 +01:00
2017-02-16 19:34:01 -05:00
2016-12-12 18:55:06 -08:00
2016-12-25 10:47:44 +01:00
2016-12-14 10:49:33 -08:00
2017-01-30 15:53:57 +01:00
2017-01-22 12:47:06 +02:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2016-11-30 23:41:33 +01:00
2017-02-17 11:03:06 -05:00
2016-12-15 11:45:13 -08:00
2017-02-03 13:46:38 -08:00
2016-12-30 03:26:31 -08:00
2017-02-17 08:11:47 +01:00
2016-12-30 03:12:11 -08:00
2017-01-26 23:03:21 +01:00
2017-02-16 19:34:01 -05:00
2016-12-24 11:46:01 -08:00
2017-02-16 19:34:01 -05:00
2016-12-12 18:55:08 -08:00
2017-01-12 13:37:49 -08:00
2017-01-20 12:25:11 -08:00
2016-11-17 08:49:04 +02:00
2017-02-11 02:31:11 -05:00
2017-02-11 02:31:11 -05:00
2017-01-25 09:51:08 +08:00
2016-12-13 12:11:01 -08:00
2017-01-11 09:22:54 +01:00
2016-12-10 14:57:58 +01:00
2017-02-03 22:19:15 +01:00
2017-02-07 11:48:16 -07:00
2017-02-11 20:59:41 -05:00
2017-01-24 16:26:14 -08:00
2017-02-07 16:29:30 -05:00
2017-01-11 10:42:16 +01:00
2016-12-24 11:27:45 -08:00
2017-01-27 12:17:07 -08:00
2016-12-24 11:46:01 -08:00
2016-11-16 09:26:34 +01:00