summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-04-08don't leak the chip's hardware address during scans when a randomized addressJasper Lievisse Adriaanse
is set by the user. previously the address read from the eeprom would also be used in discovery frames, even if later data frames would contain the spoofed address. ok stsp@
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-07Use m_defrag when mbuf chains get fragmented.Stefan Fritsch
Patch by Kimberley Manning <kmanning at gmx ! com> with some additional tweaks.
2015-04-07Keep in sync with the sparc version: convert to if_input().Martin Pieuchot
2015-04-07Remove a lie, the early boot console does not need any mapping.Martin Pieuchot
In fact we even use the firmware interface for "bsd -c" and "bsd -d". So do the necessary firmware calls before calling initppc() to be able to use printf() really early in the boot sequence.
2015-04-07Convert to if_input().Martin Pieuchot
Tested with simh using a floppy image built by miod@
2015-04-07nothing uses pool_sleep, so get rid of itDavid Gwynne
2015-04-07introduce a garbage collector for (very) idle pool pages.David Gwynne
now that idle pool pages are timestamped we can tell how long theyve been idle. this adds a task that runs every second that iterates over all the pools looking for pages that have been idle for 8 seconds so it can free them. this idea probably came from a conversation with tedu@ months ago. ok tedu@ kettenis@
2015-04-07Do not pass an `ifp' argument to interface input handlers since itMartin Pieuchot
might be overwritten by pseudo-drivers. ok dlg@, henning@
2015-04-07Mark audio interrupt handlers as MPSAFE, they already grab the rightMartin Pieuchot
mutex when necessary. ok kettenis@, ratchov@
2015-04-07Use appropriate memory barriers.Martin Pieuchot
ok kettenis@, miod@
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-06Convert to if_input(); ok mpi@Miod Vallat
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-05Work-in-progress support for non-accelerated X11 on *some* sti(4) frame buffers;Miod Vallat
based upon the old HP ngle X11 driver. Currently limited to CRX (720/735/750), Timber (710, old 715), Artist (712, 715) and EG (B-series), however the colormap isn't set up correctly on Timber and EG yet. Joint work with Artem Falcon, now in good enough shape to be worked further in the tree.
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-04fchmod and lstat are standard, widen their visibilityJeremie Courreges-Anglas
ok millert@ kettenis@; input + "get it in" guenther@
2015-04-04Use config_suspend() instead of dereferencing ca_activate directly toMartin Pieuchot
support drivers that do not need any specific suspend/resume magic and do not have an activate function. config_suspend() will automagically propagate the event to the children of the driver. Needed at least by kauaiata(4/macppc). ok deraadt@, mlarkin@
2015-04-03Fix unsigned vs signed comparison in for() loop condition causing an infiniteMiod Vallat
loop for WSDISPLAYIO_PUTCMAP ioctl with idx == 0; reported by Artem Falcon. [according to my investigation, none of the other for() loops in the kernel are affected by a similar issue]
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-04-03Convert to if_input().Martin Pieuchot
Tested by jsg@ with Qemu
2015-04-02use correct capitalization of 'BlackBerry'Jasper Lievisse Adriaanse
"sure" deraadt@
2015-04-02Merge openpic_init() into openpic_attach(), no functional change.Martin Pieuchot
2015-04-02One function pointer per pic function is enough.Martin Pieuchot
2015-04-02Cleanup function definitions, use only one define for DEBUG and removeMartin Pieuchot
unused headers.
2015-04-02Call if_input() without grabbing the kernel lock first.Mark Kettenis
2015-04-02Grab the kernel lock around the bpf_mtap_ether() call in if_input(). ThisMark Kettenis
allows drivers to start calling if_input() without holding the kernel lock while others work on make the bpf code mpsafe. ok dlg@, mpi@
2015-04-01Add cpu_pae variable (which will be later used to determine if PAE mode isMike Larkin
in use) now so that libkvm can be fixed before the rest of the bulk of PAE support is committed. requested by and ok deraadt@
2015-04-01fix typo in comment; OK mpi@Gleydson Soares
2015-04-01Correct comments.Masao Uebayashi
2015-04-01Run most of the interrupt handler without holding the kernel lock.Mark Kettenis
2015-04-01Kill useless comments talking about ether_input().Martin Pieuchot