Displaying 1 result from an estimated 1 matches for "dump_single_bo".
2014 Apr 17
0
[PATCH] drm/nouveau: add some basic debugfs dumping for nouveau's clients and vm mappings
...ng mapping)
+{
+ switch (mapping) {
+ case NOUVEAU_MAP_UNMAPPED: return "unmapped";
+ case NOUVEAU_MAP_SG: return "sgt ";
+ case NOUVEAU_MAP_GART: return "gart";
+ case NOUVEAU_MAP_VRAM: return "vram";
+ default: return "????";
+ }
+}
+
+static void dump_single_bo(struct seq_file *m, struct nouveau_bo *nvbo, int handle, struct nouveau_vma *vma)
+{
+ char ba[5];
+ u64 offset = vma->offset, len = 0, end = vma->offset;
+ const char *map = nouveau_get_mapping(vma->mapping);
+
+ nouveau_get_access(ba, vma->access);
+
+ if (vma->node) {
+ len = vma...