Lines Matching defs:drm

10 #include <drm/drm_managed.h>
11 #include <drm/xe_drm.h>
34 struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
43 drm_info(&xe->drm, "Failed to resize BAR%d to %dM (%pe). Consider enabling 'Resizable BAR' support in your BIOS\n",
48 drm_info(&xe->drm, "BAR%d resized to %dM\n", resno, 1 << bar_size);
58 struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
83 drm_info(&xe->drm,
101 drm_info(&xe->drm, "Attempting to resize bar from %lluMiB -> %lluMiB\n",
114 drm_info(&xe->drm, "Can't resize VRAM BAR - platform support is missing. Consider enabling 'Resizable BAR' support in your BIOS\n");
143 struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
146 drm_err(&xe->drm, "pci resource is not valid\n");
236 *tile_size = pci_resource_len(to_pci_dev(xe->drm.dev), LMEM_BAR);
282 drm_info(&xe->drm, "VISIBLE VRAM: %pa, %pa\n", &xe->mem.vram.io_start,
298 drm_err(&xe->drm, "Tile without any CPU visible VRAM. Aborting.\n");
307 drm_info(&xe->drm, "Small BAR device\n");
308 drm_info(&xe->drm, "VRAM[%u, %u]: Actual physical size %pa, usable size exclude stolen %pa, CPU accessible size %pa\n", id,
310 drm_info(&xe->drm, "VRAM[%u, %u]: DPA range: [%pa-%llx], io range: [%pa-%llx]\n", id, tile->id,
319 drm_info(&xe->drm, "VRAM: %pa is larger than resource %pa\n",
328 drm_info(&xe->drm, "Total VRAM: %pa, %pa\n", &xe->mem.vram.io_start,
330 drm_info(&xe->drm, "Available VRAM: %pa, %pa\n", &xe->mem.vram.io_start,
352 drm_info(&xe->drm, "tile_count: %d, reduced_tile_count %d\n",
389 static void mmio_fini(struct drm_device *drm, void *arg)
393 pci_iounmap(to_pci_dev(xe->drm.dev), xe->mmio.regs);
401 struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
412 drm_err(&xe->drm, "failed to map registers\n");
420 return drmm_add_action_or_reset(&xe->drm, mmio_fini, xe);