Serge Semin
12d6f9f737
dma-direct: take dma-ranges/offsets into account in resource mapping
...
A basic device-specific linear memory mapping was introduced back in
commit ("dma: Take into account dma_pfn_offset") as a single-valued offset
preserved in the device.dma_pfn_offset field, which was initialized for
instance by means of the "dma-ranges" DT property. Afterwards the
functionality was extended to support more than one device-specific region
defined in the device.dma_range_map list of maps. But all of these
improvements concerned a single pointer, page or sg DMA-mapping methods,
while the system resource mapping function turned to miss the
corresponding modification. Thus the dma_direct_map_resource() method now
just casts the CPU physical address to the device DMA address with no
dma-ranges-based mapping taking into account, which is obviously wrong.
Let's fix it by using the phys_to_dma_direct() method to get the
device-specific bus address from the passed memory resource for the case
of the directly mapped DMA.
Fixes: 25f1e18870 ("dma: Take into account dma_pfn_offset")
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru >
2025-10-14 13:36:18 +01:00
..
2025-10-02 13:48:29 +02:00
2025-10-14 13:36:17 +01:00
2025-06-07 10:05:35 -07:00
2025-04-02 18:17:33 -07:00
2025-10-14 13:36:18 +01:00
2025-04-29 08:27:10 +02:00
2025-09-19 16:37:26 +02:00
2025-10-02 13:48:33 +02:00
2025-04-30 21:53:35 +02:00
2025-06-13 15:36:35 +02:00
2025-08-15 16:38:50 +02:00
2025-05-14 13:16:24 +02:00
2025-06-02 12:24:58 -07:00
2025-08-20 18:41:28 +02:00
2025-09-19 16:37:30 +02:00
2025-08-20 18:41:30 +02:00
2025-08-20 18:41:43 +02:00
2025-10-02 13:48:39 +02:00
2025-09-19 16:37:34 +02:00
2025-10-12 13:01:04 +02:00
2025-08-20 18:41:31 +02:00
2025-02-12 12:24:16 +01:00
2025-06-23 14:01:49 -04:00
2025-04-15 11:32:34 +02:00
2025-04-11 14:14:41 -04:00
2025-08-15 16:38:20 +02:00
2025-09-09 19:02:34 +02:00
2025-08-15 16:38:20 +02:00
2024-06-24 22:24:55 -07:00
2024-04-29 08:29:29 -07:00
2025-03-07 22:03:09 -06:00
2025-03-30 15:44:36 -07:00
2025-03-04 18:44:29 -08:00
2025-05-08 21:50:19 +02:00
2025-02-10 16:56:58 -08:00
2025-05-21 10:48:21 -07:00
2025-05-11 17:54:10 -07:00
2024-12-02 11:25:09 +01:00
2025-05-27 19:40:33 -07:00
2025-06-22 10:11:45 -07:00
2025-10-02 13:48:33 +02:00
2025-07-17 07:56:50 -10:00
2025-08-20 18:41:31 +02:00
2023-09-29 11:28:39 -07:00
2025-05-11 17:54:08 -07:00
2025-02-21 15:05:38 +01:00
2025-01-13 22:40:36 -08:00
2025-03-10 11:54:46 +01:00
2024-07-20 16:33:21 +09:00
2025-01-02 22:12:12 +01:00
2025-02-18 10:16:04 +01:00
2025-02-21 10:25:33 +01:00
2025-02-21 09:20:30 +01:00
2025-08-28 16:34:34 +02:00
2024-11-07 15:25:05 +01:00
2024-12-30 17:59:08 -08:00
2025-08-15 16:38:34 +02:00
2025-03-16 22:30:47 -07:00
2025-05-31 19:12:53 -07:00
2025-08-28 16:34:35 +02:00
2025-05-12 23:50:40 -07:00
2024-04-23 14:59:01 +10:00
2024-12-24 09:46:49 +01:00
2025-03-10 11:54:46 +01:00
2025-01-07 16:59:15 +01:00
2025-08-20 18:40:52 +02:00
2025-01-28 13:48:37 +01:00
2025-08-20 18:41:31 +02:00
2021-01-19 10:24:45 +01:00
2024-11-05 17:12:31 -08:00
2025-05-09 13:13:54 +02:00
2025-08-15 16:38:58 +02:00
2025-05-31 19:12:53 -07:00
2025-05-07 20:24:59 +02:00
2025-03-06 10:18:36 +01:00
2025-01-28 13:48:37 +01:00
2025-05-06 13:59:00 +02:00
2024-08-04 13:36:28 -07:00
2025-05-11 17:48:15 -07:00
2025-04-01 10:06:52 -07:00
2024-04-25 21:07:03 -07:00
2025-05-11 17:54:09 -07:00
2024-10-09 12:47:19 -07:00
2025-10-14 13:35:37 +01:00
2025-03-06 22:26:49 +01:00
2024-11-14 16:09:51 -08:00
2022-11-09 18:06:35 +00:00
2025-02-24 11:17:10 -08:00
2025-08-28 16:34:38 +02:00
2025-01-28 11:34:03 -08:00
2025-03-25 10:46:44 +01:00
2025-01-28 13:48:37 +01:00
2025-03-30 15:44:36 -07:00
2025-07-01 15:02:03 +02:00
2024-07-18 12:19:20 -07:00
2025-05-03 12:02:07 +02:00
2025-04-14 14:13:41 +02:00
2025-04-09 13:32:16 +02:00
2025-01-13 22:40:36 -08:00
2024-11-03 01:28:06 -05:00
2025-02-05 07:14:24 -08:00
2025-03-21 15:30:10 -04:00
2024-07-12 16:39:53 -07:00
2025-08-15 16:39:17 +02:00
2025-01-28 13:48:37 +01:00
2025-02-12 12:12:27 +01:00
2024-09-12 12:16:09 +02:00
2025-01-28 13:48:37 +01:00
2025-10-02 13:48:31 +02:00
2025-05-11 17:54:04 -07:00
2025-03-24 09:52:37 -07:00
2025-04-01 10:06:52 -07:00
2025-05-21 10:48:22 -07:00
2023-08-07 15:57:22 -10:00
2025-06-17 08:58:29 -10:00