The NetBSD Project

CVS log for src/sys/dev/ieee1394/firewire.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / ieee1394

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.42 / (download) - annotate - [select for diffs], Sun Aug 5 02:47:52 2012 UTC (9 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, khorben-n900, agc-symver-base, agc-symver, HEAD
Changes since 1.41: +5 -3 lines
Diff to previous 1.41 (colored)

...and be sure to config_pending_decr if kthread_create fails.

This error branch looks suspect, though.  Shouldn't we bail at this
point rather than blithely try to proceed?

Revision 1.41 / (download) - annotate - [select for diffs], Sun Aug 5 02:36:16 2012 UTC (9 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.40: +21 -2 lines
Diff to previous 1.40 (colored)

Restore config pending stuff, adjusted to avoid the race.

Leave a note about what this code probably should look like for
anyone who comes rummaging around with the intent to really fix it.
I would do that myself if I had time and resources to test this at
the moment, and more comfort with our firewire stack, but I don't.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Aug 4 03:55:43 2012 UTC (9 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.39: +11 -5 lines
Diff to previous 1.39 (colored)

Fix error branches and config pending races in firewire init.

This way, if anything fails, it just fails; you don't panic.  This can
happen if suspending and resuming of firewire is broken (e.g., as I
encountered in PR kern/44581).

Revision 1.39 / (download) - annotate - [select for diffs], Sun Apr 29 18:31:40 2012 UTC (12 months, 3 weeks ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.38: +5 -6 lines
Diff to previous 1.38 (colored)

Change to consistently use M_FW for all malloc/free.
It probably doesn't matter any more, but the code doesn't appear to
have matched its mallocs and frees - so the stats would have been awol.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Sep 7 07:26:54 2010 UTC (2 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.37: +45 -5 lines
Diff to previous 1.37 (colored)

do not assume all fw devices speak sbp.
teach the fw attach code to deal with different fw device classes.
this allows other fw drivers than sbp to attach

Revision 1.37 / (download) - annotate - [select for diffs], Thu Aug 26 08:56:15 2010 UTC (2 years, 8 months ago) by cegger
Branch: MAIN
Changes since 1.36: +6 -2 lines
Diff to previous 1.36 (colored)

fix crash when detaching/re-attaching a cable where three firewire devices are on the bus.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Aug 14 18:28:59 2010 UTC (2 years, 9 months ago) by jym
Branch: MAIN
CVS Tags: uebayasi-xip-base2
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

Fix some code paths where pointers are dereferenced after checking that
they are NULL (oops?)

XXX pull-ups for NetBSD-4 and NetBSD-5.

Revision 1.35 / (download) - annotate - [select for diffs], Sun May 23 18:56:58 2010 UTC (3 years ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10
Changes since 1.34: +49 -41 lines
Diff to previous 1.34 (colored)

Revert all previous kmem_ commits. This needs to be done in a different way
because we cannot call kmem_ from an interrupt context. I opened PR/43341 for
it.

Revision 1.34 / (download) - annotate - [select for diffs], Sun May 23 02:24:40 2010 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.33: +5 -8 lines
Diff to previous 1.33 (colored)

don't allocate rom scratch memory from an interrupt context:

fwohci0: BUS reset
panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file "../../../../ker
n/subr_kmem.c", line 195
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff8022db1d cs 8 rflags 246 cr2  0 cpl 6 rsp fffffff
f80fafb08
breakpoint() at netbsd:breakpoint+0x5
panic() at netbsd:panic+0x2ba
kern_assert() at netbsd:kern_assert+0x2d
kmem_alloc() at netbsd:kmem_alloc+0x18a
kmem_zalloc() at netbsd:kmem_zalloc+0xf
fw_busreset() at netbsd:fw_busreset+0x23b
fwohci_intr() at netbsd:fwohci_intr+0xa56
...

Revision 1.33 / (download) - annotate - [select for diffs], Sat May 15 10:42:51 2010 UTC (3 years ago) by kiyohara
Branch: MAIN
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)

Add mutex.h.

Revision 1.32 / (download) - annotate - [select for diffs], Fri May 14 12:25:19 2010 UTC (3 years ago) by kiyohara
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

May be easy to understand 'pay_len > 0' more than 'paylaod != NULL'.

Revision 1.31 / (download) - annotate - [select for diffs], Mon May 10 12:17:32 2010 UTC (3 years ago) by kiyohara
Branch: MAIN
Changes since 1.30: +39 -45 lines
Diff to previous 1.30 (colored)

Use kmem(9) instead of malloc(9).

Revision 1.30 / (download) - annotate - [select for diffs], Tue Apr 6 10:45:15 2010 UTC (3 years, 1 month ago) by reinoud
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

KASSERT(FALSE) to enter the debugger on this check. When DDB is not defined
but KGDB is, this would result in cpu_Debugger() dont being defined! Please be
kind to developers that use KGDB instead of DDB! :)

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 29 07:34:02 2010 UTC (3 years, 1 month ago) by kiyohara
Branch: MAIN
Changes since 1.28: +2 -8 lines
Diff to previous 1.28 (colored)

Remove more my debugging code.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 29 03:42:15 2010 UTC (3 years, 1 month ago) by kiyohara
Branch: MAIN
Changes since 1.27: +2 -13 lines
Diff to previous 1.27 (colored)

Remove debugging process.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Mar 29 03:05:27 2010 UTC (3 years, 1 month ago) by kiyohara
Branch: MAIN
Changes since 1.26: +1352 -1476 lines
Diff to previous 1.26 (colored)

Bye-bye fw_port.h.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Mar 11 04:00:36 2010 UTC (3 years, 2 months ago) by mrg
Branch: MAIN
Branch point for: rmind-uvmplock
Changes since 1.25: +6 -2 lines
Diff to previous 1.25 (colored)

various aprint_* fixes.

Revision 1.25 / (download) - annotate - [select for diffs], Tue May 12 12:16:55 2009 UTC (4 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, uebayasi-xip-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Branch point for: uebayasi-xip
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Mar 18 16:00:18 2009 UTC (4 years, 2 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored)

bzero -> memset

Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 18 15:14:30 2009 UTC (4 years, 2 months ago) by cegger
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

bcmp -> memcmp

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 12 12:36:11 2008 UTC (4 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.

Revision 1.21 / (download) - annotate - [select for diffs], Sat May 10 13:56:54 2008 UTC (5 years ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: nick-hppapmap, haad-dm
Changes since 1.20: +9 -9 lines
Diff to previous 1.20 (colored)

Use aprint

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 29 16:22:53 2008 UTC (5 years, 1 month ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.19: +8 -9 lines
Diff to previous 1.19 (colored)

Split device_t/softc.
And cosmetic change.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 15 00:39:28 2007 UTC (5 years, 5 months ago) by perry
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.18: +6 -6 lines
Diff to previous 1.18 (colored)

__FUNCTION__ -> __func__

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 11 11:34:08 2007 UTC (5 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored)

use __KERNEL_RCSID()

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:01 2007 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
Branch point for: bouyer-xeni386
Changes since 1.16: +6 -1 lines
Diff to previous 1.16 (colored)

Merge jmcneill-pm branch.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 5 19:08:56 2007 UTC (5 years, 6 months ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, mjf-devfs, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.15: +284 -139 lines
Diff to previous 1.15 (colored)

+ Sync to FreeBSD.
    firewire.c Rev.1.101
    firewire.h Rev.1.21
    firewirereg.h Rev.1.50
    fwdev.c Rev.1.52
    fwdma.c Rev.1.9
    fwmem.c Rev.1.34
    fwohci.c Rev.1.93
    fwohcireg.h Rev.1.23
    fwohcivar.h Rev.1.16
    if_fwip.c Rev.1.16
    if_fwipvar.h Rev.1.5
    sbp.c Rev.1.92
+ Cleanup macros in fw_port.h.
+ Fix the occurrence of the error at the resume.  Don't set the buffer again.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:12 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:41 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.13 / (download) - annotate - [select for diffs], Sat Apr 21 15:27:43 2007 UTC (6 years, 1 month ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

firewire.c sync to Rev.1.86 for FreeBSD.
firewirereg.h sync to Rev.1.41 for FreeBSD.
fwcrom.c sync to Rev.1.14 for FreeBSD.
fwdev.c sync to Rev.1.49 for FreeBSD.
fwmem.c sync to Rev.1.32 for FreeBSD.
fwohci.c sync to Rev.1.86 for FreeBSD.
fwohcivar.h sync to Rev.1.15 for FreeBSD.
if_fwip.c sync to Rev.1.14 for FreeBSD.
if_fwipvar.h sync to Rev.1.4 for FreeBSD.
sbp.c sync to Rev.1.89 for FreeBSD.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:05 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:59 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

__unused removal on arguments; approved by core.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:15 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.9: +4 -3 lines
Diff to previous 1.9 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 26 02:50:42 2006 UTC (6 years, 7 months ago) by kiyohara
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Fix device name in {fwohci,firewire}_print().  valiable aux is not string
pointer.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 13 02:39:11 2006 UTC (6 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, yamt-lazymbuf, newlock2
Changes since 1.7: +12 -8 lines
Diff to previous 1.7 (colored)

Don't allocate > 1K on the stack

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 14 21:22:26 2006 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base, elad-kernelauth-base
Branch point for: chap-midi
Changes since 1.6: +5 -3 lines
Diff to previous 1.6 (colored)

Coverity CID 1118: Protect NULL deref.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 21 23:29:04 2006 UTC (7 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

fw_bus_probe_thread: change wmesg from "-" to "fwprobe".

Revision 1.5 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:02 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

merge ktrace-lwp.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 26 11:20:33 2005 UTC (7 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: ktrace-lwp
Changes since 1.3: +1 -17 lines
Diff to previous 1.3 (colored)

kill some more simple submatch() functions, use config_stdsubmatch()

Revision 1.3 / (download) - annotate - [select for diffs], Thu Aug 25 18:35:39 2005 UTC (7 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 20 15:11:57 2005 UTC (7 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.1: +7 -7 lines
Diff to previous 1.1 (colored)

minor cleanup: some "const", global namespace sanity and fix a maclo name

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jul 11 15:29:05 2005 UTC (7 years, 10 months ago) by kiyohara
Branch: MAIN

ieee1394 import from FreeBSD.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>