Age | Commit message (Collapse) | Author |
|
scheme relating to pmsi.
from alexandr.shadchin@gmail.com
|
|
|
|
|
|
|
|
I can figure out why it causes boot hangs with some Sonix camera
|
|
|
|
|
|
is valid when we look at it. Repairs intellimouse (former pmsi) operation.
|
|
PR_WAITOK not being set. While here add a diagnostic check for malloc.
|
|
and add support for more processing unit controls.
from Martin Pieuchot, thanks!
|
|
|
|
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@
|
|
commands still on the queues the child device wont retry it cos its been
deactivated.
|
|
|
|
The dying flag will be set in activate()/DEACTIVATE.
ok deraadt@
|
|
it with slow operations.
ok jsg yuo
|
|
|
|
|
|
|
|
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
|
|
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@.
|
|
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@
|
|
ok deraadt@
|
|
automatic reading of disklabel on attach.
ok deraadt@ miod@ krw@
|
|
|
|
|
|
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
|
|
* 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.
|
|
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.
|
|
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@
|
|
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
|
|
OK krw
|
|
suspend/resume support
|
|
|
|
ok jsg@
|
|
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().
|
|
of the descriptor. Diff created and tested by Loganaden Velvindron.
Looks good dlg@ and myself
|
|
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@
|
|
ok dlg@
|
|
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@
|
|
ok krw@ kettenis@
|
|
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@
|
|
ok krw@ marco@
|
|
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.
|
|
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.
|
|
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''.
|
|
The sodding bits moved again *sigh*.
|
|
|
|
efficient in the case where we are idle.
Idea taken from a commit to the linux kernel by chris wilson.
|
|
retire_requests() called just prior will do that for us.
|