liyeshan
3721fc6489
amdgpu,radeon: Add workarounds for the Spacemit K1-X RISC-V platform
...
1. In various GMC versions (v6-v11), the DMA address mask is
reduced to 34 bits. This is necessary because PCIe devices on the
Spacemit K1-X platform support a maximum of 34-bit physical addressing.
2. In amdgpu_ttm.c, force the use of the `ttm_write_combined` cache mode.
This is required because the K1-X platform lacks PCIe cache coherency.
3. In radeon_ttm.c and amdgpu_vram_mgr.c, switch the caching for
IO memory to `ttm_uncached`.This is done to guarantee data correctness
during VRAM access on this platform.
Signed-off-by: liyeshan <yeshan.li@spacemit.com >
Change-Id: I294b741d1cc7923bfe535299c304f9f443673d92
2025-07-24 14:17:52 +08:00
..
2022-06-21 17:54:53 -04:00
2023-08-15 17:43:48 -04:00
2023-01-18 09:25:31 +01:00
2022-04-25 11:17:45 +02:00
2023-03-01 22:37:25 -05:00
2022-12-15 12:18:19 -05:00
2022-04-11 13:50:35 -04:00
2023-04-18 16:28:54 -04:00
2022-04-26 11:43:51 -04:00
2023-08-30 20:23:07 -07:00
2023-07-27 14:47:29 -04:00
2023-06-09 10:44:47 -04:00
2022-04-19 13:58:32 -04:00
2024-10-04 16:29:09 +02:00
2023-11-20 11:59:09 +01:00
2021-05-25 23:47:24 -04:00
2023-07-31 20:06:52 +02:00
2023-03-31 11:18:42 -04:00
2023-06-09 10:44:47 -04:00
2024-03-26 18:19:47 -04:00
2021-05-13 10:45:15 -04:00
2024-08-14 13:59:01 +02:00
2024-10-10 11:57:37 +02:00
2022-06-23 17:21:49 -04:00
2023-07-27 14:59:29 -04:00
2023-06-09 10:40:55 -04:00
2021-06-22 16:51:45 -04:00
2024-01-25 15:35:32 -08:00
2021-09-23 15:17:28 -04:00
2023-07-29 21:05:10 +02:00
2023-08-15 18:08:29 -04:00
2023-06-15 11:06:58 -04:00
2023-08-15 18:08:27 -04:00
2023-01-18 09:25:31 +01:00
2021-05-25 23:47:30 -04:00
2024-10-04 16:29:09 +02:00
2023-08-07 17:12:49 -04:00
2022-11-10 15:29:00 -05:00
2022-11-29 11:03:38 -05:00
2023-08-15 18:08:27 -04:00
2023-11-28 17:19:41 +00:00
2023-04-21 08:50:21 -04:00
2024-11-28 19:02:21 +08:00
2024-07-05 09:33:52 +02:00
2023-01-18 10:00:03 +01:00
2023-11-20 11:59:09 +01:00
2023-07-25 13:36:47 -04:00
2024-10-22 15:46:28 +02:00
2023-07-31 20:06:52 +02:00
2023-06-09 10:40:55 -04:00
2023-07-25 13:37:05 -04:00
2024-07-25 09:50:54 +02:00
2023-06-09 10:40:55 -04:00
2024-11-28 19:01:20 +08:00
2023-07-12 11:12:09 -04:00
2021-08-10 20:13:49 +02:00
2023-01-18 09:25:31 +01:00
2023-08-15 18:08:27 -04:00
2023-07-27 14:47:34 -04:00
2022-04-07 12:53:54 +02:00
2023-03-31 11:18:42 -04:00
2022-10-27 11:42:58 +02:00
2023-03-01 17:18:19 +01:00
2023-06-09 10:40:55 -04:00
2022-12-06 12:54:14 +01:00
2023-06-09 10:40:55 -04:00
2023-09-07 17:45:34 +02:00
2023-03-01 17:18:19 +01:00
2022-05-03 16:08:48 +10:00
2023-07-12 11:12:09 -04:00
2022-10-27 11:42:58 +02:00
2025-07-24 14:17:52 +08:00
2021-05-26 20:56:29 +02:00
2022-04-07 12:53:54 +02:00
2023-07-25 13:47:27 -04:00
2024-01-25 15:35:36 -08:00
2024-07-05 09:33:52 +02:00
2023-06-09 10:40:55 -04:00
2022-06-20 23:53:55 +03:00
2021-06-22 16:51:45 -04:00
2023-06-09 10:40:55 -04:00
2023-06-09 10:44:47 -04:00
2023-07-27 14:47:31 -04:00
2023-07-12 11:12:09 -04:00
2022-04-06 10:20:25 -04:00
2022-04-26 11:43:57 -04:00
2024-01-25 15:35:32 -08:00
2023-07-25 13:47:27 -04:00
2024-06-27 13:49:12 +02:00
2024-01-25 15:35:34 -08:00