Commit b809ca9
drm/amdgpu: Merge amdgpu_vm_set_pasid into amdgpu_vm_init
As KFD no longer uses a separate PASID, the global amdgpu_vm_set_pasid()function is no longer necessary.
Merge its functionality directly intoamdgpu_vm_init() to simplify code flow and eliminate redundant locking.
v2: remove superflous check
adjust amdgpu_vm_fin and remove amdgpu_vm_set_pasid (Chritian)
v3: drop amdgpu_vm_assert_locked (Chritian)
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4614
Fixes: 59e4405 ("drm/amdgpu: revert to old status lock handling v3")
Reviewed-by: Christian König <christian.koenig@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 8dbac5c commit b809ca9
File tree
3 files changed
+24
-56
lines changed- drivers/gpu/drm/amd/amdgpu
3 files changed
+24
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1421 | 1421 | | |
1422 | 1422 | | |
1423 | 1423 | | |
1424 | | - | |
| 1424 | + | |
1425 | 1425 | | |
1426 | 1426 | | |
1427 | 1427 | | |
1428 | | - | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
1432 | 1428 | | |
1433 | 1429 | | |
1434 | 1430 | | |
| |||
1468 | 1464 | | |
1469 | 1465 | | |
1470 | 1466 | | |
1471 | | - | |
| 1467 | + | |
1472 | 1468 | | |
1473 | | - | |
1474 | | - | |
1475 | 1469 | | |
1476 | 1470 | | |
1477 | 1471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 141 | | |
184 | 142 | | |
185 | 143 | | |
| |||
2554 | 2512 | | |
2555 | 2513 | | |
2556 | 2514 | | |
| 2515 | + | |
2557 | 2516 | | |
2558 | 2517 | | |
2559 | 2518 | | |
2560 | 2519 | | |
2561 | 2520 | | |
2562 | 2521 | | |
2563 | 2522 | | |
2564 | | - | |
| 2523 | + | |
2565 | 2524 | | |
2566 | 2525 | | |
2567 | 2526 | | |
| |||
2638 | 2597 | | |
2639 | 2598 | | |
2640 | 2599 | | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
2641 | 2609 | | |
2642 | 2610 | | |
2643 | 2611 | | |
2644 | 2612 | | |
2645 | 2613 | | |
2646 | 2614 | | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
2647 | 2620 | | |
2648 | 2621 | | |
2649 | 2622 | | |
| |||
2749 | 2722 | | |
2750 | 2723 | | |
2751 | 2724 | | |
2752 | | - | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
2753 | 2730 | | |
2754 | 2731 | | |
2755 | 2732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | 506 | | |
510 | | - | |
| 507 | + | |
511 | 508 | | |
512 | 509 | | |
513 | 510 | | |
| |||
0 commit comments