Date: Sat, 17 May 2008 12:23:59 +0200 From: Lars Engels <lme@FreeBSD.org> To: Norikatsu Shigemura <nork@FreeBSD.org> Cc: freebsd-mobile@FreeBSD.org Subject: Re: SD/MMC (ricoh) reader on Thinkpad T61 Message-ID: <20080517102358.GT43121@e.0x20.net> In-Reply-To: <20080517023129.b1999f1c.nork@FreeBSD.org> References: <20070913153308.M2541@swaggi.com> <yger6l2c6vg.wl%ume@mahoroba.org> <20080516165822.6e2c2d6c.torfinn.ingolfsen@broadpark.no> <20080517023129.b1999f1c.nork@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--mR8QP4gmHujQHb1c Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 17, 2008 at 02:31:29AM +0900, Norikatsu Shigemura wrote: > On Fri, 16 May 2008 16:58:22 +0200 > Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> wrote: > > Does anyone know if the driver has been updated for 7.0-stable somehwer= e? >=20 > The newest one is here: > http://www.agt.ne.jp/~a-gota/programs/driver/FBSD6.2R/memcard/sdmmc-2008= 0208.tar.gz >=20 > And, takawata@ fixed its panic issue (lock issue): > http://www.init-main.com/sdmmc.patch > NOTE: This patch provides for old version. So ignore .rej files. > .rej files have many already fixed codes. >=20 > I'm using on 8-current, and sdmmc(4) quite good works. With yesterday's sources and having applied takawata's patch (with one =2Erej as you predicted) I still get this panic: Sleeping on "sdshcbus_event_card_insertion" with the following non-sleepable locks held: exclusive sleep mutex sdshc0 r =3D 0 (0xc4214588) locked @ /usr/home/lars/local-patches/sdmmc/modules/sdmmc/../../dev/sdmmc/sdshc.c:450 KDB: stack backtrace: db_trace_self_wrapper(c08c147c,c3e92c10,c061dcb7,c08c1914,c3e92c24,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c08c1914,c3e92c24,4,1,0,...) at kdb_backtrace+0x29 witness_warn(5,0,c08bf06c,c0c47740,c1472978,...) at witness_warn+0x1d7 _sleep(c4203100,0,68,c0c47740,3e8,...) at _sleep+0x5f sdshcbus_intr(c4214480,c41891f4,c0c48b88,1c2,c4214588,...) at sdshcbus_intr+0x2fe sdshc_intr(c4214580,0,c08bac35,4d4,c40eb06c,...) at sdshc_intr+0xe6 ithread_loop(c41d5000,c3e92d38,c08ba9a4,30d,c40ab7c8,...) at ithread_loop+0x1b5 fork_exit(c05c58c0,c41d5000,c3e92d38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 the .rej file reads: *************** *** 42,47 **** #include <sys/systm.h> #include <sys/conf.h> #include <sys/malloc.h> #include <dev/pci/pcireg.h> #include <dev/pci/pcivar.h> --- 42,50 ---- #include <sys/systm.h> #include <sys/conf.h> #include <sys/malloc.h> + #include <machine/bus.h> + #include <sys/bus.h> + #include <dev/pci/pcireg.h> #include <dev/pci/pcivar.h> *************** *** 343,349 **** */ LOG(0x10, (dev, "Setup Intr\n")); error =3D bus_setup_intr(dev, sc->irq, INTR_TYPE_NET|INTR_MPSAFE , - sdshc_intr, sc, &sc->ih); if (error !=3D 0) { MSG((dev, "could not set up interrupt\n")); goto cleanup; --- 346,352 ---- */ LOG(0x10, (dev, "Setup Intr\n")); error =3D bus_setup_intr(dev, sc->irq, INTR_TYPE_NET|INTR_MPSAFE , + NULL, sdshc_intr, sc, &sc->ih); if (error !=3D 0) { MSG((dev, "could not set up interrupt\n")); goto cleanup; pciconf: sdshc0@pci0:5:9:2: class=3D0x080500 card=3D0xc024144d chip=3D0x08221180 rev=3D0x18 hdr=3D0x00 vendor =3D 'Ricoh Company, Ltd.' device =3D 'R5C832, R5C843 SDA Standard Compliant SD Host Controller' class =3D base peripheral --mR8QP4gmHujQHb1c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkgusj4ACgkQKc512sD3afgcngCeMvOSHe/DSvxbHavk614CAIeU xlEAn1jsV1Izhcp7OqGaH9nH/y1K9olD =1OMW -----END PGP SIGNATURE----- --mR8QP4gmHujQHb1c--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080517102358.GT43121>