Panic Kernel Dump to umass device?

Nate Nielsen nielsen-list at memberwebs.com
Tue Feb 21 20:12:27 PST 2006


Ian Dowse wrote:
> In message <43ED8E81.2060907 at samsco.org>, Scott Long writes:
> 
>>You're correct that dumping is meant to be done with interrupts and task
>>switching disabled.  The first thing that the umass driver is missing is
>>a working CAM poll handler.  Without this, there is no way for command
>>completions to be seen when interrupts are disabled.  Beyond that, I
>>somewhat suspect that the USB stack expects to be able to push command
>>completion work off to worker threads, at least for some situations, and
>>that also will not work in the kernel dump environment.  So, there is a
>>lot of work needed to make this happen.
> 
> 
> The USB stack supports polled operations, so it's actually not to
> hard to make this work. Below is a patch I had in one of my local
> trees that adds a CAM poll handler to the umass driver. I've just
> tested this and it does seem to make kernel dumping work, but I
> guess it might not be as reliable as dumping to other devices.

As noted earlier the umass polling patch you posted works for dumping to
a umass device via a uhci controller.

After a little more fiddling I've managed to get it working on an ohci
controller. Attached is a patch. This patch includes your patch above.

Cheers,
Nate
-------------- next part --------------
A non-text attachment was scrubbed...
Name: umass-ohci-dump.patch
Type: text/x-patch
Size: 1253 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060222/e63fbfdc/umass-ohci-dump.bin


More information about the freebsd-hackers mailing list