summaryrefslogtreecommitdiff
path: root/sys/external/bsd/drm2/dist/include
AgeCommit message (Collapse)Author
2022-10-15drm: New mechanism to suspend ioctls during system suspend.riastradh
drm drivers must opt into this by calling drm_suspend_ioctl in their driver suspend routine, and drm_resume_ioctl in their driver resume routine. This is a stop-gap measure -- it would be better to fill in the pm_runtime_* API with new pmf(9) hooks to acquire/release references to devices for coordinating with suspend/resume, but getting the details right is tricky, and this stop-gap is enough to get i915 suspend/resume to work reliably on my Kaby Lake laptop. Rather than wait until I've got all the details right, let's just go with this stop-gap for now.
2022-07-19drm: Nix drm_agp_borrow.riastradh
This horrible kludge dates from before I understood the relation of genfb_pci and pci drm drivers in the old and new worlds of drm. The only user of it, in i915, was changed to use agp_i810_borrow directly in the last drm update, so this hack can die.
2022-05-21drm_cache.h: fix a merge errortnn
this reverts revision 1.3 which should have been reverted when it got introduced by upstream through revision 1.5.
2021-12-22drm: Omit local diff -- vmem is entirely a NetBSDism.riastradh
Use struct vmem rather than vmem_t to obviate need for header file dependency.
2021-12-21drm_device.h: don't redefine vmem_ttnn
2021-12-20drm: Apply the Intel pipe_drmhack in more places.riastradh
See sys/external/bsd/drm2/dist/drm/i915/intel/intel_display.h for details. Should reduce ctf type duplication a fair bit, maybe even enough to get us under the 2^15 type limit.
2021-12-19drm: Restore local patch for struct drm_connector::physical_address.riastradh
2021-12-19drm: add drm_dp_aux_fini; use it in i915 to fix missing mutex destroy.riastradh
Author: chuq <chs@NetBSD.org> Committer: Taylor R Campbell <riastradh@NetBSD.org>
2021-12-19drm: Switch sense of #if __linux__ conditionals to use __NetBSD__.riastradh
Keep it consistent with the rest of drm.
2021-12-19drm/ttm: Fix ttm_tt pages and DMA map allocation.riastradh
2021-12-19amdgpu: Make amdgpu_file_to_fpriv work.riastradh
2021-12-19amdgpu: Stub out irq domain stuff with a finer grain.riastradh
2021-12-19drm: Merge vbl_lock into event_lock.riastradh
These aren't functionally very different, and most uses of vbl_lock were inserted as local changes to make proper condition variables anyway. Requiring both locks made cv_wait difficult because it only unlocks and relocks one at a time, and this also led to annoying lock order reversal.
2021-12-19drm: Omit needless pci_attach_args from our drm_pci_attach.riastradh
Can already get it from the struct pci_dev, and this way we can more easily call it from patched upstream code as i915 will need to do.
2021-12-19drm: Simplify condvar conditionals in drm_vblankriastradh
2021-12-19drm: Restore drm_crtc_vblank_put_lockedriastradh
2021-12-19drm: Another pass over i915 and some supporting logic.riastradh
This makes a shim around sg_table, which essentially represents two things: 1. an array of pages (roughly corresponding to bus_dma_segment_t[]) 2. an array of DMA addresses stored in a bus_dmamap_t Both parts are optional; different parts of i915 use sg_tables to pass around one or both of the two parts. This helps to reduce the ifdefs by quite a bit, although it's not always clear which part of an sg_table any particular interface is actually using which is why I was reluctant to do this before.
2021-12-19drm: Nix use of uvm pglist. Just use arrays of page pointers.riastradh
2021-12-19drm: Remove local diffs for drm_pci_set_busid.riastradh
Instead, move it to its own file that can be safely used without bringing in a link/run-time dependency on pci.
2021-12-19Split drm_dev_alloc/register out of drm_pci_attach.riastradh
Needed by nouveau which needs to do drm_dev_alloc drm_pci_attach nouveau_drm_device_init drm_dev_register
2021-12-19Get drm_mm.c building.riastradh
Just replace the interval tree lookup by a linear search for now.
2021-12-19First whack at amdgpu. Long way to go.riastradh
2021-12-19Restore set_busid callback.riastradh
This local change is intentional to keep pci tentacles out of the main drm.
2021-12-19Forward declaration for struct seq_file.riastradh
No idea what side-loading will provide this.
2021-12-19drm_os_netbsd.h is no moreriastradh
2021-12-19Narrow scope of exclusions in drm_fb_helper.c; reduce diffs.riastradh
2021-12-19Fix up drm_prime.c.riastradh
2021-12-19Revert "Give up on finding how linux side-loads these"riastradh
Found it.
2021-12-19Give up on finding how linux side-loads theseriastradh
linux/ktime.h for ktime_t linux/seq_file.h for seq_file Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Empty out drm_os_netbsd.h.riastradh
2021-12-19Fix up includes of <sys/vmem.h>.riastradh
2021-12-19Give some more declarations a new home.riastradh
2021-12-19Move files which are gone upstream out of dist/.riastradh
2021-12-19Re-introduce lost local diff.riastradh
We want declarations for ttm_tt_{,un}wire, and some different members on struct ttm_tt Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Avoid the set_pages_array_wc/wb paths in TTM for nowriastradh
we did this before. maybe we'll eventually want to stop for performance reasons? Author: Maya Rashish <maya@NetBSD.org>
2021-12-19constifyriastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Restore local diffriastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Reset after #undef free. This will surely come to bite us later, too.riastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19ifdef out things using vm_fault_triastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Constifyriastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Move some drm PCI stuff off drmP.hriastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Avoid declarations that appear in drm_debugfs.hriastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19We need these struct members for a couple of local drm files.riastradh
XXX: We might want to enable config legacy drm or adapt the local drm files. Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Move drm_cdevsw out of drmP.h which should eventually be removedriastradh
drm_device.h seems like an OK spot. Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Restore drm_fb_helper_debug_{enter,leave}_fbriastradh
the non-fbinfo versions of the same function now that I see why they exist, and that they are not a mangled diff Author: Maya Rashish <maya@NetBSD.org>
2021-12-19Make ourselves less dependent on drmP.h, removed upstream.riastradh
This causes some trouble as CONFIG_* lines might not be appropriately defined. A few declarations remain in drmP.h so it's not gone. Author: Maya Rashish <maya@NetBSD.org>
2021-12-19remove declarations now in drm_irq.hriastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19delete defines now in drm_pci.h and drm_internal.hriastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19remove unused definitionsriastradh
Author: Maya Rashish <maya@NetBSD.org>
2021-12-19DRM_IRQ_ARGSriastradh
Author: Maya Rashish <maya@NetBSD.org>