Jesse.zhang@amd.com
574f4b5562
drm/amdgpu: optimize queue reset and stop logic for sdma_v5_0
...
This patch refactors the SDMA v5.0 queue reset and stop logic to improve
code readability, maintainability, and performance. The key changes include:
1. **Generalized `sdma_v5_0_gfx_stop` Function**:
- Added an `inst_mask` parameter to allow stopping specific SDMA instances
instead of all instances. This is useful for resetting individual queues.
2. **Simplified `sdma_v5_0_reset_queue` Function**:
- Removed redundant loops and checks by directly using the `ring->me` field
to identify the SDMA instance.
- Reused the `sdma_v5_0_gfx_stop` function to stop the queue, reducing code
duplication.
v1: The general coding style is to declare variables like "i" or "r" last. E.g. longest lines first and short lasts. (Chritian)
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2025-04-21 10:57:04 -04:00
..
2025-03-05 08:39:12 -05:00
2025-04-21 10:57:04 -04:00
2025-02-18 07:43:43 +01:00
2024-12-13 08:48:09 +10:00
2025-02-26 15:27:06 +01:00
2025-02-20 08:38:34 +01:00
2024-12-13 08:48:09 +10:00
2025-03-03 10:41:29 +01:00
2025-02-05 10:10:51 -03:00
2024-12-12 18:26:32 +01:00
2025-02-28 12:36:01 +10:00
2025-02-12 11:59:52 +01:00
2025-01-07 12:45:19 +02:00
2025-01-07 12:45:19 +02:00
2025-03-06 10:29:31 +01:00
2024-12-05 12:35:42 +02:00
2025-02-09 03:56:34 +02:00
2024-12-05 12:35:42 +02:00
2025-03-25 08:21:07 +10:00
2025-03-12 09:43:12 +10:00
2025-01-07 12:45:19 +02:00
2025-02-19 16:59:12 +01:00
2024-12-13 08:48:09 +10:00
2024-10-03 18:19:38 +02:00
2025-02-12 11:59:52 +01:00
2024-12-13 08:48:09 +10:00
2025-02-14 00:54:29 +02:00
2024-12-13 08:48:09 +10:00
2025-03-14 14:28:56 +10:00
2025-02-19 16:59:12 +01:00
2025-02-11 10:53:53 +01:00
2025-03-08 02:16:49 +02:00
2024-12-13 08:48:09 +10:00
2025-03-12 09:43:12 +10:00
2025-02-19 16:59:12 +01:00
2025-03-05 19:52:02 +01:00
2025-02-12 11:59:52 +01:00
2025-03-05 14:15:04 +00:00
2024-12-05 12:35:42 +02:00
2025-01-07 12:45:19 +02:00
2025-04-21 10:54:28 -04:00
2025-02-19 16:59:12 +01:00
2025-03-04 16:59:58 +01:00
2025-03-12 09:43:12 +10:00
2025-01-16 10:48:47 +01:00
2024-12-13 08:48:09 +10:00
2025-01-07 12:45:19 +02:00
2025-02-26 15:27:07 +01:00
2024-12-13 08:48:09 +10:00
2025-02-14 00:54:29 +02:00
2025-03-03 16:13:33 +01:00
2025-01-24 09:41:01 +02:00
2024-12-13 08:48:09 +10:00
2025-03-24 17:52:28 +10:00
2025-03-05 17:08:59 +01:00
2024-12-13 08:48:09 +10:00
2024-12-05 12:35:42 +02:00
2025-02-12 09:55:50 -03:00
2025-02-28 09:05:10 +01:00
2025-03-03 14:25:14 +01:00
2024-12-05 12:35:42 +02:00
2025-02-09 20:36:51 +03:00
2025-03-12 09:43:12 +10:00
2025-02-06 13:47:32 +01:00
2025-03-12 20:56:58 -07:00
2024-12-05 12:35:42 +02:00
2025-02-19 16:59:12 +01:00
2025-02-21 10:57:21 +01:00
2025-02-14 00:54:29 +02:00
2024-10-24 22:42:25 +03:00
2025-02-19 16:59:20 +01:00
2025-01-14 20:43:19 +05:30
2025-03-05 21:48:49 +01:00
2025-01-21 11:41:05 +01:00
2024-10-18 09:23:03 +02:00
2024-07-28 13:41:14 -07:00
2025-01-23 14:42:21 +01:00
2025-01-07 12:45:19 +02:00
2024-08-23 16:55:35 +02:00
2025-01-08 01:39:58 +02:00
2025-03-03 14:45:40 +02:00
2025-02-17 14:17:53 +01:00
2024-08-14 10:19:09 +03:00
2024-12-10 14:36:41 +01:00
2024-12-10 14:36:41 +01:00
2025-02-13 12:15:43 -05:00
2024-12-16 18:02:07 +02:00
2024-09-01 20:25:44 -07:00
2025-03-06 08:59:17 +01:00
2025-03-05 21:48:50 +01:00
2025-02-27 09:37:55 +01:00
2024-09-26 09:31:28 +02:00
2024-09-26 09:31:29 +02:00
2025-02-07 15:23:36 +01:00
2025-03-03 16:13:33 +01:00
2024-09-26 08:27:49 +02:00
2024-11-25 16:09:48 -08:00
2025-03-06 08:59:01 +01:00
2025-03-06 08:59:14 +01:00
2025-03-06 08:59:07 +01:00
2024-09-06 14:41:38 +02:00
2025-03-06 08:58:27 +01:00
2025-03-12 20:53:47 -07:00
2024-10-18 09:23:03 +02:00
2024-10-08 10:00:30 +02:00
2025-01-21 10:32:31 +01:00
2025-03-06 08:59:20 +01:00
2025-03-04 17:00:24 +02:00
2024-09-04 12:15:46 +03:00
2024-12-17 15:43:04 +02:00
2024-09-11 14:17:11 +02:00
2025-01-10 14:24:17 +10:00
2024-10-18 09:23:03 +02:00
2025-02-17 14:17:55 +01:00
2024-11-21 09:28:15 -06:00
2025-02-17 09:19:07 +01:00
2025-02-17 14:17:59 +01:00
2025-02-07 17:52:09 +01:00
2025-02-07 17:52:09 +01:00
2024-06-24 17:08:53 +03:00
2025-03-06 08:59:36 +01:00
2024-12-10 14:08:40 +02:00
2025-01-14 11:20:49 +01:00
2024-08-26 16:40:09 +02:00
2024-06-10 12:44:39 +02:00
2024-11-03 01:28:06 -05:00
2024-05-23 14:37:24 +03:00
2025-01-08 18:15:03 +01:00
2024-08-26 16:40:09 +02:00
2025-02-20 15:02:09 +01:00
2025-03-11 10:26:17 +10:00
2025-03-11 10:26:17 +10:00