summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-03-31More runtime value initialisation functions.jsing2-8/+18
2013-03-31Unbreak the build on amd64 by making sure that inteldrm pulls in the generickettenis2-4/+4
i2c bit-banging code. Requires us to move around the i2c_bitbang define. Also move the onewire_bitbang define to be close to i2c_bitbang since they are similar. ok jsing@
2013-03-31Add bit banging support.kettenis3-62/+162
2013-03-31The return value of sd_free_resources() is never checked and all of thejsing4-29/+18
implementations only ever returned zero. Change the return value from int to void instead of pretending it might mean something.
2013-03-31Fix compilation with debug.jsing1-3/+3
2013-03-31Provide default resource allocation and free functions. Convert alljsing6-193/+34
disciplines except for AOE and CRYPTO, which require custom handlers.
2013-03-31Pull the initialisation of runtime values out into a separate initjsing3-35/+51
function, rather than having it spread across create/assemble/alloc. Also handle strip size errors appropriately, rather than failing silently. ok krw@
2013-03-31Let the DDC "proxy" functions call the high-level I2C functions insteadkettenis1-6/+5
of calling the controller functions pointers directly. The upcoming bit banging implementation will not provide the (*ic_exec)() function. Also return a proper (positive) error code if bus switching fails
2013-03-30Fix i2c_algo_dp_aux_exec() such that it handles all transactions needed bykettenis1-16/+27
our i2c framework. Unbreaks EDID fetching over displayport. ok jsg@
2013-03-30Two fixes to intel_sdvo_write_cmd():kettenis1-3/+6
- Allocate a large enugh buffer to store messages. - Make sure we return true if we sucessfully transferred the command. Makes it possible to actually talk to the SDVO chip on the other end.
2013-03-30Provide wrappers for scsi_io_get() and scsi_io_put(), that also includejsing4-27/+35
the sd_sync check/wakeup. Remove some unnecessary NULL checks whilst here. ok krw@
2013-03-30If the ws_{get|set}_param hooks are set, use those for brightness controlkettenis1-1/+10
instead of poking the hardware directly. Prevents some funny interaction between using the brightness keys and wsconsctl(8) on the Dell XPS M1330. Changing the brightness behind ACPI's back is apparently not such a good idea.
2013-03-30Fix intel gmbus i2c code. Not all transactions were handled correctly, andkettenis9-91/+84
on top of that, various iic_exec(9) calls were incorrect. Doesn't seem to handle SDVO yet though.
2013-03-30Remove debug printf that causes problems with framebuffer acceleration whenkettenis1-3/+1
turned on. Linux doesn't have it anyway. ok jsg@
2013-03-30go back to the old method of execbuffer pinningjsg3-9/+28
should fix problems noticed by Ralf Horstmann and bluhm@
2013-03-30Provide a default discipline interrupt handling function and migrate all ofjsing5-71/+27
the disciplines that now have the same interrupt code. ok krw@
2013-03-29Properly release ccbs when restarting a work unit.jsing3-9/+6
2013-03-29Convert RAID 4/5/6 to new ccb completion code.jsing2-64/+25
2013-03-29Decouple wakeups on work unit completion from the type of I/O beingjsing5-29/+24
performed. ok krw@
2013-03-29sd_wu_pending is only decremented when scsi_done() or scsi_io_put() arejsing5-33/+27
called. As a result, factor out the the sd_sync check/wakeup code and move it to after the scsi_done() call in sr_scsi_done(). Perform the same sd_sync check/wakeup after scsi_io_put() calls (including the addition of some that were previously missed). ok krw@
2013-03-29Fix building on the RAMDISK media. This was exposed by SMALL_KERNEL.brad1-2/+3
ok deraadt@
2013-03-29reduce the diff to linux in i915_gem_get/set_tilingjsg1-55/+56
2013-03-29release the i2c bus in the error paths of fetching an edidjsg1-7/+6
2013-03-29remove some of the unused fields from rndstats and stop printing zeroes.tedu1-6/+1
print labels before stats so people can tell what's what.
2013-03-28as DRM_LOG_KMS is called with partial lines make it a simple printfjsg1-2/+10
2013-03-28add support for relaxed deltasjsg2-8/+5
2013-03-28Add missing locking in i915_gem_retire_work_handler() and callkettenis1-4/+21
intel_mark_idle() when idle.
2013-03-28Reduce diffs with Linux now that we have i915_enable_hangcheck.kettenis1-11/+3
2013-03-28Prevent a panic during rtsx(4) attachment. If a card is inserted while bootingstsp1-9/+9
the interrupt handler can be triggered before sdmmc(4) is attached. In which case the interrupt handler's futile attempt to handle the newly inserted card would crash the kernel. ok miod@
2013-03-28Call intel_mark_busy() in the right place, and call intel_mark_fb_busy()kettenis2-8/+12
where we used to call intel_mark_busy().
2013-03-28Add i915_enable_hangcheck parameter.kettenis2-2/+10
2013-03-28Let mii_attach() know where the PHY is located instead of scanningbrad1-16/+2
for it since we know where it will be anyway and remove the code from the MII bus read/write functions to force reading/writing from the predetermined location. Copied from bge(4) and this is what the upstream FreeBSD bce(4) driver has done once FreBSD gained a mii_attach(). ok dlg@ sthen@
2013-03-28add i915_gem_execbuffer_reserve_object and friends and movejsg3-31/+211
the execbuffer pinning closer to linux
2013-03-28add the ioctls to get/set the caching level of a buffer objectjsg4-8/+98
2013-03-28removed unneccessary .h filederaadt2-4/+2
2013-03-28proc.h is way too much header for usb to handle.tedu51-104/+55
2013-03-28you probably don't need to include vnode.h or reboot.h. you most definitelytedu14-39/+25
absolutely do not need to include vnode.h because it includes uvm_extern.h and you want the idiotic TRUE FALSE defines from uvm.
2013-03-27Rewrite the work unit handling code in the RAID 1/4/5/6 interrupt handlers.jsing3-208/+155
This simplifies the code and will allow for easier conversion to the workq based work unit completion routines. It also ensures that work units are always removed from the pending queue and that colliders are started, even in the event of an I/O failure. ok krw@
2013-03-27match recent linux and return whether the ring is initialisedjsg1-3/+3
for the has bsd/blt ring params instead of whether the hardware has the ring.
2013-03-27claim support for secure and pinned batch buffersjsg1-1/+7
we already have the code to handle these
2013-03-27Claim to support I915_PARAM_HAS_COHERENT_RINGS.jsg1-1/+4
While seemingly unused by userspace at the moment this was apparently added to resolve an abi problem with libva and the BSD ring.
2013-03-26Short-circuit screen switching if we're switching to the screen that'skettenis1-1/+5
currently active.
2013-03-26Stop rePOSTing devices supported by inteldrm(4). The driver now properlykettenis1-13/+1
restores the graphics mode and we should avoid running BIOS code whenever possible as it isn't guaranteed to work and might actually hurt. ok jsg@, deraadt@
2013-03-25Use the new rasops multiple screen support to provide proper virtualkettenis2-27/+28
terminals.
2013-03-25Add basic support for multiple screens.kettenis2-2/+298
ok mpi@, miod@
2013-03-25these will not be built for palm since it went awayderaadt8-16/+16
2013-03-25Factor out the code that is used to recreate work units - one copy of thejsing5-74/+31
code is sufficient. ok krw@
2013-03-25reseed the random pool with 'dmesg' when more devices are attachedmarkus2-3/+20
from hshoexer@; ok tedu@, "looks good" deraadt@
2013-03-25move the message announcing overlay init to debugjsg1-2/+2
2013-03-25add the missing parts of the upstream linux commit tojsg1-1/+6
enable occlusion queries. ok mpi@