|
40 | 40 | #include <drm/drm_file.h>
|
41 | 41 | #include <drm/drm_gem.h>
|
42 | 42 | #include <drm/drm_managed.h>
|
43 |
| -#include <drm/drm_gpuva_mgr.h> |
| 43 | +#include <drm/drm_gpuvm.h> |
44 | 44 |
|
45 | 45 | #include "drm_crtc_internal.h"
|
46 | 46 | #include "drm_internal.h"
|
@@ -189,31 +189,31 @@ static const struct file_operations drm_debugfs_fops = {
|
189 | 189 | /**
|
190 | 190 | * drm_debugfs_gpuva_info - dump the given DRM GPU VA space
|
191 | 191 | * @m: pointer to the &seq_file to write
|
192 |
| - * @mgr: the &drm_gpuva_manager representing the GPU VA space |
| 192 | + * @gpuvm: the &drm_gpuvm representing the GPU VA space |
193 | 193 | *
|
194 | 194 | * Dumps the GPU VA mappings of a given DRM GPU VA manager.
|
195 | 195 | *
|
196 | 196 | * For each DRM GPU VA space drivers should call this function from their
|
197 | 197 | * &drm_info_list's show callback.
|
198 | 198 | *
|
199 |
| - * Returns: 0 on success, -ENODEV if the &mgr is not initialized |
| 199 | + * Returns: 0 on success, -ENODEV if the &gpuvm is not initialized |
200 | 200 | */
|
201 | 201 | int drm_debugfs_gpuva_info(struct seq_file *m,
|
202 |
| - struct drm_gpuva_manager *mgr) |
| 202 | + struct drm_gpuvm *gpuvm) |
203 | 203 | {
|
204 |
| - struct drm_gpuva *va, *kva = &mgr->kernel_alloc_node; |
| 204 | + struct drm_gpuva *va, *kva = &gpuvm->kernel_alloc_node; |
205 | 205 |
|
206 |
| - if (!mgr->name) |
| 206 | + if (!gpuvm->name) |
207 | 207 | return -ENODEV;
|
208 | 208 |
|
209 | 209 | seq_printf(m, "DRM GPU VA space (%s) [0x%016llx;0x%016llx]\n",
|
210 |
| - mgr->name, mgr->mm_start, mgr->mm_start + mgr->mm_range); |
| 210 | + gpuvm->name, gpuvm->mm_start, gpuvm->mm_start + gpuvm->mm_range); |
211 | 211 | seq_printf(m, "Kernel reserved node [0x%016llx;0x%016llx]\n",
|
212 | 212 | kva->va.addr, kva->va.addr + kva->va.range);
|
213 | 213 | seq_puts(m, "\n");
|
214 | 214 | seq_puts(m, " VAs | start | range | end | object | object offset\n");
|
215 | 215 | seq_puts(m, "-------------------------------------------------------------------------------------------------------------\n");
|
216 |
| - drm_gpuva_for_each_va(va, mgr) { |
| 216 | + drm_gpuvm_for_each_va(va, gpuvm) { |
217 | 217 | if (unlikely(va == kva))
|
218 | 218 | continue;
|
219 | 219 |
|
|
0 commit comments