summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
AgeCommit message (Collapse)Author
2015-07-16Introduce a Linux compatible wait_event API and use it in the inteldrm code.Mark Kettenis
ok jsg@, guenther@
2015-07-15add some definitions from libdrm 2.4.62Jonathan Gray
2015-07-11Make use of recent drm_linux.h additions to further reduce theJonathan Gray
diff to linux. ok kettenis@
2015-06-28Read the lower 16-bits of the GCFGC "double word". Potentially fixes issuesMark Kettenis
with some modes on machines with the 915GM chipset. discussed with jsg@
2015-06-26Add Linux completion API and use it.Mark Kettenis
ok jsg@
2015-06-24#undef HZ before defining it such that compiling a kernel with -DHZ=xxx works.Mark Kettenis
2015-06-24Linux jiffies and OpenBSD ticks are the same thing.Mark Kettenis
ok jsg@
2015-06-24Introduce Linux work queue APIs and use them. As a side-effect, this willMark Kettenis
move some of the work from the system task queue to the driver-specific task queue. ok jsg@
2015-06-22Flush out another small diff to reduce the diffs with Linux.Mark Kettenis
2015-06-04Switch intel_gmbus_is_port_valid and intel_gmbus_is_forced_bit fromJonathan Gray
extern inline back to static inline so the kernel will build on compilers that default to c99 inline semantics.
2015-06-04use mallocarray instead of malloc in drm_callocJonathan Gray
2015-05-30DRMDEBUG not DRM_DEBUG. From frantisek holop.Jonathan Gray
2015-05-05fix a return path that lacked a rw_exit_write() callJonathan Gray
ok kettenis@
2015-04-19Enable the REG_READ ioctl. A whitelist is used to allowJonathan Gray
reading a timestamp off the render ring for the Mesa i965 driver. ok kettenis@
2015-04-18another round of reducing the diff to linuxJonathan Gray
2015-04-18define and use trace macrosJonathan Gray
discussed with kettenis
2015-04-18Remove some unused debug functions. If we're interested inJonathan Gray
these in future we should add i915_debugfs.c
2015-04-18add and use module param macrosJonathan Gray
2015-04-17Make drm ioctls table driven. Further reduces the diff to linux.Jonathan Gray
ok kettenis@
2015-04-15Convert remaining drm ioctl implementation functions to return Linux-styleMark Kettenis
negative errno values. ok jsg@
2015-04-12Add a few missing trace functions, and "use" them. Add back the WATCH_GTTMark Kettenis
code (that isn't actually compiled in). Use dev_priv->dev in one more place now that we have it, and add set_normalized_timespec() and use it.
2015-04-12change back to linux style pci vendor/device definesJonathan Gray
2015-04-12change back to wait_for/wait_for_atomic_usJonathan Gray
2015-04-12Switch back to ioread32 and iowrite32 for cases where bus_space_vaddr isJonathan Gray
used instead of bus_space_read/bus_space_write.
2015-04-12make wait_queue_head a struct with a mutexJonathan Gray
better matches linux behaviour
2015-04-11rename i915 interrupt handlers from *_intr back to *_irq_handlerJonathan Gray
2015-04-11change back to spinlock_t/DEFINE_SPINLOCKJonathan Gray
2015-04-11change back to drm_free_large/drm_malloc_abJonathan Gray
2015-04-11add/use max_t()Jonathan Gray
2015-04-11Rename i915_gem_chipset_flush() to intel_gtt_chipset_flush()Jonathan Gray
so we can use the inline definition of i915_gem_chipset_flush() that avoids the flush entirely on gen >= 6.
2015-04-10Move irqs_disabled() and in_dbg_master() out of the i386/amd64 ifdef blockJonathan Gray
and change drm_can_sleep() to only use in_atomic() on i386/amd64 as it isn't defined for other archs currently. Unbreaks the sparc64 build. Found the hard way by benoit@
2015-04-10Use mdelay(x) instead of delay(x * 1000) for drm_msleep() to betterJonathan Gray
deal with long delays.
2015-04-10Make drm_can_sleep() match linux. No change in behaviour as it'sJonathan Gray
only ever used to decide between mdelay and drm_msleep and our drm_msleep delays instead of sleeping.
2015-04-10add irqs_disabled() and in_dbg_master() using cold and db_is_activeJonathan Gray
2015-04-08Move vmap back to kernel_map/uvm_km_valloc as it's allowed to fail.Jonathan Gray
This should help dlg's dell 2950 that gets stuck during boot with vmap in the trace. ok kettenis@
2015-04-08change back to udelay/mdelayJonathan Gray
2015-04-08change back to memcpy_toio/memcpy_fromio/memset_ioJonathan Gray
2015-04-08change back to using min_tJonathan Gray
2015-04-08ttm has it's own version of kmap/kunmap that usesJonathan Gray
kernel_map/uvm_km_valloc and i915 has a version that uses phys_map/uvm_km_valloc_wait as calling code assumes kmap would sleep if no memory is available. Move these and ttm's vmap/vunmap into the linux compat files and make them all use phys_map/uvm_km_valloc_wait. looks good kettenis@
2015-04-06Move almost all of the linux compat from drmP.h to drm_linux.h.Jonathan Gray
The exception being the barrier defines that are implemented in terms of DRM_* defines. ok kettenis@
2015-04-06switch back from roundup2() and roundup() to round_up()Jonathan Gray
2015-04-06switch back from howmany() to DIV_ROUND_UP()Jonathan Gray
2015-04-06move some inline linux compat into the dedicated filesJonathan Gray
2015-04-06drm_calloc -> kcallocJonathan Gray
2015-04-06add/use some more errno remappingJonathan Gray
2015-04-06Now we have dev_priv->mm.gtt_base_addr we can set fb_base and removeJonathan Gray
an ifdef. The code that uses fb_base itself remains #if 0'd out.
2015-04-06Add an empty drm_sysfs_hotplug_event() function and use itJonathan Gray
and the existing drm_sysfs* functions to remove some ifdefs.
2015-04-06Add get_user() and put_user() compatibility interfaces and use them.Mark Kettenis
ok jsg@
2015-04-06add back some more static use to reduce the diff to linuxJonathan Gray
2015-04-06No need to use a temporary pointer variable after the drm struct nameJonathan Gray
in the softc changed a while back.