Commit b03f38b
drm/amdgpu: Enable doorbell selfring after resize FB BAR
[Why]
The selfring doorbell aperture will change when resize FB
BAR successfully during gmc sw init, we should reorder
the sequence of enabling doorbell selfring aperture.
[How]
Move enable_doorbell_selfring_aperture from *_common_hw_init
to *_common_late_init.
This fixes the potential issue that GPU ring its own
doorbell when this device is in translated mode when
iommu is on.
v2: Remove *_enable_doorbell_aperture functions (Christian)
v3: Add comments to note that why we need enable doorbell
selfring late (Christian)
Signed-off-by: Shane Xiao <shane.xiao@amd.com>
Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Tested-by: Xiaomeng Hou <Xiaomeng.Hou@amd.com>
Reviewed-by: Christian K�nig <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 4eea7fb commit b03f38b
3 files changed
Lines changed: 41 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | 534 | | |
542 | 535 | | |
543 | 536 | | |
| |||
999 | 992 | | |
1000 | 993 | | |
1001 | 994 | | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
1002 | 1000 | | |
1003 | 1001 | | |
1004 | 1002 | | |
| |||
1038 | 1036 | | |
1039 | 1037 | | |
1040 | 1038 | | |
1041 | | - | |
| 1039 | + | |
1042 | 1040 | | |
1043 | 1041 | | |
1044 | 1042 | | |
| |||
1047 | 1045 | | |
1048 | 1046 | | |
1049 | 1047 | | |
1050 | | - | |
1051 | | - | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1052 | 1055 | | |
1053 | 1056 | | |
1054 | 1057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | 622 | | |
630 | 623 | | |
631 | 624 | | |
| |||
1125 | 1118 | | |
1126 | 1119 | | |
1127 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1128 | 1126 | | |
1129 | 1127 | | |
1130 | 1128 | | |
| |||
1182 | 1180 | | |
1183 | 1181 | | |
1184 | 1182 | | |
1185 | | - | |
| 1183 | + | |
| 1184 | + | |
1186 | 1185 | | |
1187 | 1186 | | |
1188 | 1187 | | |
| |||
1198 | 1197 | | |
1199 | 1198 | | |
1200 | 1199 | | |
1201 | | - | |
1202 | | - | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
1203 | 1208 | | |
1204 | 1209 | | |
1205 | 1210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | 453 | | |
461 | 454 | | |
462 | 455 | | |
| |||
764 | 757 | | |
765 | 758 | | |
766 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
767 | 765 | | |
768 | 766 | | |
769 | 767 | | |
| |||
797 | 795 | | |
798 | 796 | | |
799 | 797 | | |
800 | | - | |
| 798 | + | |
801 | 799 | | |
802 | 800 | | |
803 | 801 | | |
| |||
806 | 804 | | |
807 | 805 | | |
808 | 806 | | |
809 | | - | |
810 | | - | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
811 | 814 | | |
812 | 815 | | |
813 | 816 | | |
| |||
0 commit comments