[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Something broke :-( Re: fwcontrol update
- To: Dieter <freebsd_(_at_)_sopwith_(_dot_)_solgatos_(_dot_)_com>
- Subject: Re: Something broke :-( Re: fwcontrol update
- From: Sean Bruno <sbruno_(_at_)_miralink_(_dot_)_com>
- Date: Mon, 18 Aug 2008 15:27:01 -0700
- Cc: Scott Long <scottl_(_at_)_samsco_(_dot_)_org>, freebsd-firewire_(_at_)_freebsd_(_dot_)_org
Dieter wrote:
Am I correct in assuming that none of this stuff that
fwcontrol sets should carry across a reboot? And that
the firewire controller should get completely reset
by a reboot?
My assumption is that no settings should survive a reboot.
I'm getting some bad results. Attempt to recover:
Changed symlink from current fwcontrol to known working fwcontrol_prev.
Powered off camcorder.
Rebooted FreeBSD.
Powered on camcorder.
Ran fix_dv script to get FreeBSD into "non CYCLEMASTER mode".
fwcontrol -u 1 -f 0
fwcontrol -u 1 -r
Start playing a tape (so I can run fwcontrol -R)
Hrm ... the old code closed "fd" and then re-opened it. I have
duplicated that behavior in the attached patch.
Needless to say, fwcontrol -R no longer works.
I ran the fixit script again, and fwcontrol -S does work.
I notice that it doesn't print every generation.
I notice that the node_id changes.
This alarms me quite a bit. I didn't think there was anyway for the
generation to change
without the log message being spit out. Interesting.
I have been suspicious of a race condition for some time in the firewire
stack, I see it across multiple
devices(sbp, sbp_targ) and now fwcontrol is acting weird. Very interesting.
FreeBSD 7.0
AMD64
fw controller: NEC uPD72871/2
Ideas?
Yes. Try the attached patch. Let me know.
--
Sean Bruno
MiraLink Corporation
6015 NE 80th Ave, Ste 100
Portland, OR 97218
Phone 503-621-5143
Fax 503-621-5199
MSN: sbruno_(_at_)_miralink_(_dot_)_com
Google: seanwbruno_(_at_)_gmail_(_dot_)_com
Yahoo: sean_bruno_(_at_)_yahoo_(_dot_)_com
_______________________________________________
freebsd-firewire_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-firewire
To unsubscribe, send any mail to "freebsd-firewire-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org