summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
AgeCommit message (Collapse)Author
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.
2015-04-06add and use macros for wake_up/wake_up_all/wake_up_all_lockedJonathan Gray
2015-04-06Convert some udelay() calls back to DRM_UDELAY() whereJonathan Gray
the wrapper is still used in the original linux code.
2015-04-05Consistently use #if 0/#endif to handle our lack of DRM_MINOR_CONTROL.Mark Kettenis
Change an #ifdef notyet into #ifdef __linux__ as we'll never have sysfs. Remove #ifdef notyet around WARN macro since we have it now.
2015-04-05whitespaceMark Kettenis
2015-04-05Another round of reducing diffs with Linux. This one moves the variousMark Kettenis
copy_to_user and copy_from_user functions into drm_linux.h and uses them instead of copyin/copyout and DRM_COPY_*. Also move the timespec functions, and put i915_gem_object_is_purgable() where it belongs. Uncovered a bug where the arguments to copyout() were in the wrong order. ok jsg@
2015-04-03resync i915_drv.h to make it diffable to linuxJonathan Gray
ok kettenis@
2015-04-03change types/macros to reduce the diff to linuxJonathan Gray
2015-04-03Translate PAGE_MASK usage for the way it is defined in our kernel.Jonathan Gray
This code is not called.
2015-03-26additional params from libdrm 2.4.60Jonathan Gray