Commit 5e3f50f
drm/amdgpu: Extend psp_skip_tmr for bare-metal and sriov
In SRIOV, guest drivers no longer setup/destory
VMR starting from mp0 v11_0_7.
In bare-metal, if boot-time TMR is enabled, some
generation (e.g., mp0 v13_0_x) don’t need runtime
TMR allocation but still require SETUP_TMR command
with tmr address 0 for backward compatibility.
some newer generations require neither SETUP_TMR nor
DESTROY_TMR and will return errors if they are sent.
Driver relies on boot_time_tmr and autoload_supported
to handle these cases correctly.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 698fa62 commit 5e3f50f
1 file changed
Lines changed: 12 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
919 | 911 | | |
920 | 912 | | |
921 | 913 | | |
922 | 914 | | |
923 | 915 | | |
924 | 916 | | |
925 | 917 | | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
| 918 | + | |
930 | 919 | | |
931 | 920 | | |
932 | 921 | | |
| |||
958 | 947 | | |
959 | 948 | | |
960 | 949 | | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
| 950 | + | |
965 | 951 | | |
966 | 952 | | |
967 | 953 | | |
| |||
2632 | 2618 | | |
2633 | 2619 | | |
2634 | 2620 | | |
2635 | | - | |
2636 | | - | |
2637 | | - | |
2638 | | - | |
2639 | | - | |
2640 | | - | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
2641 | 2625 | | |
2642 | 2626 | | |
2643 | 2627 | | |
| |||
0 commit comments