Commit 2d6c8cf
drm/xe: Move ASID allocation and user PT BO tracking into xe_vm_create
[ Upstream commit 8a30114 ]
Currently, ASID assignment for user VMs and page-table BO accounting for
client memory tracking are performed in xe_vm_create_ioctl.
To consolidate VM object initialization, move this logic to
xe_vm_create.
v2:
- removed unnecessary duplicate BO tracking code
- using the local variable xef to verify whether the VM is being created
by userspace
Fixes: 658a1c8 ("drm/xe: Assign ioctl xe file handler to vm in xe_vm_create")
Suggested-by: Matthew Auld <[email protected]>
Signed-off-by: Piotr Piórkowski <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michał Winiarski <[email protected]>
(cherry picked from commit 30e0c3f43a414616e0b6ca76cf7f7b2cd387e1d4)
Signed-off-by: Rodrigo Vivi <[email protected]>
[Rodrigo: Added fixes tag]
Signed-off-by: Sasha Levin <[email protected]>1 parent b32e159 commit 2d6c8cf
1 file changed
Lines changed: 15 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1767 | 1767 | | |
1768 | 1768 | | |
1769 | 1769 | | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
1770 | 1784 | | |
1771 | 1785 | | |
1772 | 1786 | | |
| |||
2034 | 2048 | | |
2035 | 2049 | | |
2036 | 2050 | | |
2037 | | - | |
2038 | 2051 | | |
2039 | | - | |
| 2052 | + | |
2040 | 2053 | | |
2041 | 2054 | | |
2042 | 2055 | | |
| |||
2076 | 2089 | | |
2077 | 2090 | | |
2078 | 2091 | | |
2079 | | - | |
2080 | | - | |
2081 | | - | |
2082 | | - | |
2083 | | - | |
2084 | | - | |
2085 | | - | |
2086 | | - | |
2087 | | - | |
2088 | | - | |
2089 | | - | |
2090 | | - | |
2091 | | - | |
2092 | | - | |
2093 | | - | |
2094 | | - | |
2095 | | - | |
2096 | 2092 | | |
2097 | 2093 | | |
2098 | 2094 | | |
| |||
0 commit comments