summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2010-09-29The attach function can return 1 now because there is no more priorityTheo de Raadt
scheme relating to pmsi. from alexandr.shadchin@gmail.com
2010-09-29Radeon HD4200 Mobility; from brynet. Some flags tweaks from me.Owain Ainsworth
2010-09-29syncOwain Ainsworth
2010-09-29Radeon HD4200 Mobility from BrynetOwain Ainsworth
2010-09-29back out support for variable sized processing unit controls untilJacob Meuser
I can figure out why it causes boot hangs with some Sonix camera
2010-09-28do not assume PR_NOWAIT is 0; it is not anymoreTheo de Raadt
2010-09-27A few M_ZEROs without any M_WAITOK/M_NOWAITs.Thordur I. Bjornsson
2010-09-27Make sure the SEND_DEV_ID command is sent synchronously, so the response bufferMiod Vallat
is valid when we look at it. Repairs intellimouse (former pmsi) operation.
2010-09-27tedu's shiny new pool_get kassert found an instance of PR_NOWAIT orMarco Peereboom
PR_WAITOK not being set. While here add a diagnostic check for malloc.
2010-09-26support variable sized (bControlSize != 2) processing unit bmControls,Jacob Meuser
and add support for more processing unit controls. from Martin Pieuchot, thanks!
2010-09-26Merge pmsi(4) into pms(4). From Alexandr Shadchin on tech@.Miod Vallat
2010-09-25ppb(4) should respect pci_dopm, like pci(4) does, and not try to poweroffMike Larkin
the bridge if pci_dopm=0. Fixes Gateway LT3103u and Lenovo Thinkpad 100e netbooks, allowing them to suspend again (if pci_dopm is set to 0 in acpi.c). Tested by myself and deraadt on a variety of hardware. ok deraadt@
2010-09-25when vscsi is closed, deactivate all child devices so when we kill theDavid Gwynne
commands still on the queues the child device wont retry it cos its been deactivated.
2010-09-24- missing semicolon from r@undefined.chJasper Lievisse Adriaanse
2010-09-24remove dying flag in detach() function.Yojiro Uo
The dying flag will be set in activate()/DEACTIVATE. ok deraadt@
2010-09-24try to print the attach dmesg line in one unit, rather than intermixingTheo de Raadt
it with slow operations. ok jsg yuo
2010-09-24remove useless storeDavid Gwynne
2010-09-24no use setting cmd in mfi_ioctl_setstate if you never use it.David Gwynne
2010-09-24vol_list in mpi_get_raid is never used.David Gwynne
2010-09-24tsleep on a static and private handle, since our goal is to not beTheo de Raadt
woken up by a wakeup, but only by the actual timeout expiry. On architectures which share a kva upage area between processes, we would not want an accidental wakeup (too short). discussed with various
2010-09-23The only sensible argument for VOP_* calls that take a struct proc pointer isOwain Ainsworth
curproc. A bunch of callers were passing in 0 (not even NULL, 0) as this pointer, which was fine until the called vnode function tried to do something with it. Typically, this code was then copy/pasted to various parts of the tree. Accept the facts of life and switch all of these over to passing curproc for now until the argument can be removed. Discovered by stsp trying to create a softraid on top of a vnd, which crashed with a NULL deref in vndioctl. softraid bits tested by mikeb and jsing. raidframe bits tested by pea, matthieu and naddy. The rest tested by at least thib, jsing and myself. ok thib@, jsing@.
2010-09-23remove dying flag in the detach() function.Yojiro Uo
the device driver which has DEACTIVATE processing seems to no need to set dying flag in the detach() function because the flag will be set in the DEACTIVATE process before detach(). ok jsg@, ok for experiment deraadt@
2010-09-23rename uyurex(4) to utwitch(4)Yojiro Uo
ok deraadt@
2010-09-23Introduce a DKF_NOLABELREAD flag, which is used by a device to preventJoel Sing
automatic reading of disklabel on attach. ok deraadt@ miod@ krw@
2010-09-23translate WRITE SAME 16 into DSM TRIM.David Gwynne
2010-09-23commands and bits for data set management.David Gwynne
2010-09-23returning here can cause the usb task thread to go to sleep forever,Jacob Meuser
becaue it skips a wakeup() later on. this is the only error condition that returns before the wakeup. not sure why this particular case is handled differently, and not certain what the error code should be, but this is better than breaking all of usb because of a problem on one port. dicussed with deraadt
2010-09-23add two members to struct usb_taskJacob Meuser
* usbd_device_handle dev - the device responsible for the task. use this to not run the task if the device's hub is dying. * int running - a flag to be set when the task is running. add usb_rem_wait_task(), a wrapper for usb_rem_task() that waits for the task to complete if the task is already running. s/usb_rem_task/usb_rem_wait_task/ in usb_detach(). probably most drivers using usb_tasks should do this as well. although device attach/detach is serialized in normal cases, in the special case where the usb bus is hotpluggable (like cardbus/pcmcia), devices are not detached in the task thread.
2010-09-23add a 'dying' flag to struct usbd_bus. use this to signify the busJacob Meuser
is dying, instead of setting a flag in struct usb_softc. as usbd_device_handle has a pointer to the usbd_bus it's attached to, usb devices, and functions they run or functions run on their behalf, can now easily check if their bus is dying. use this to stop usbd_do_request* from running and the usb task thread from adding new tasks when a device's bus is dying.
2010-09-23instead of waiting the full power-up-to-power-steady time for rootJacob Meuser
hubs before their first port explore, check how long it's actually been since power up and only wait as necessary. saves a little time on boot, especially now that explore tasks are serialized. ok yuo@
2010-09-23instead of running usb_explore() from individual kthreads for eachJacob Meuser
USB bus, make usb_explore() a usb_task. reduces races during normal USB device detach, since now usb_tasks and detach happen in the same process. ok yuo@, matthew@ helped with the task thread loop
2010-09-23rename usb_discover to usb_explore for consistency.Jacob Meuser
OK krw
2010-09-22use audio(4)'s quiesce/resume for data i/o, and ac97_resume() for mixerJacob Meuser
suspend/resume support
2010-09-22autoconf activate, suspend/resume supportJacob Meuser
2010-09-22as dying flag didn't set in aue_detach(), set it.Yojiro Uo
ok jsg@
2010-09-22Revert previous and let drivers register counterless interrupts;Miod Vallat
tc_intr_disestablish() prototype is changed to carry information whether the counter needs to be detached or not. This does not matter much since no driver ever calls tc_intr_disestablish().
2010-09-22Call bus_dmamap_sync() of a dma descriptor before checking the ownershipClaudio Jeker
of the descriptor. Diff created and tested by Loganaden Velvindron. Looks good dlg@ and myself
2010-09-22Add DIOCGPDINFO to drivers that were lacking it. Where thereKenneth R Westerback
is no easily available physical information outside of the stored disklabel just make it a synonym for DIOCGDINFO. Commit on the theory it is unlikely to harm, and fallout can be addressed in the mass re-compile that will follow j2k10. Should allow auto-allocation of disks to work with all devices. ok deraadt@
2010-09-22Call config_deactivate() on SCSI links in vscsiclose().Matthew Dempsky
ok dlg@
2010-09-22when vscsi is closed request a detach of its children devices fromDavid Gwynne
the same thread theyre attached in (syswq) rather than in teh vscsi process context. this serialises attach and detach so we can avoid weird races with autoconf. also, count the devices on the bus rather than the outstanding commands. fixes some stuff for matthew@ ok matthew@
2010-09-22remove unused offset argument to rbus functionsJonathan Gray
ok krw@ kettenis@
2010-09-22All users of physio(9) now pass NULL as the buf pointer argument, soMatthew Dempsky
no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@
2010-09-22remove a leftover debug printfJonathan Gray
ok krw@ marco@
2010-09-21In i915_gem_idle, don't fail if we have a wedged chipset (this onlyOwain Ainsworth
happens when waiting for the gpu), the reset function will at the very least clean out all of our unwanted buffers, which is all we wanted to do here ourselves. so we can continue with disabling the hardware and cleaning up then return success. Fixes a QUIESCE crash for krw when he had a wedged gpu (``it works, ok krw@''). matthew@ hit a similar thing and this should fix it.
2010-09-21Use RING_WAIT state for the ringbuffer and the instdone debug registerOwain Ainsworth
when we check for gpu hangs. This makes catching some situations a bit more reliable so that large gpu programs don't trigger hangcheck, and also the ring_wait can unhang the chip for us without needin to do a reset. Merge of two patches from Chris Wilson ``upstream''. Running this here for a few days.
2010-09-21On gen3 hardware always unconditionally set the C3_LP_WRITE_ENABLE bitOwain Ainsworth
in ARB_STATE. Without this bit, C{2,3,4} power states can't complete render writes this has been known to cause painful hangs on some 945s where the bios doesn't set this bit for us. Code from Dave Airlie ``upstream''.
2010-09-21Enable error interrupts on ironlake, as we do on all other chips.Owain Ainsworth
The sodding bits moved again *sigh*.
2010-09-21Fix a couple of typos and remove some if 0ed code that is not coming back.Owain Ainsworth
2010-09-21reorder the busy ioctl order of operations to be nicer and a little moreOwain Ainsworth
efficient in the case where we are idle. Idea taken from a commit to the linux kernel by chris wilson.
2010-09-21When we reset the chip, no need to clear the active list, theOwain Ainsworth
retire_requests() called just prior will do that for us.