Date: Wed, 10 Feb 2016 10:27:42 +0000 From: miguelmclara@gmail.com To: Hans Petter Selasky <hps@selasky.org>, freebsd-current <freebsd-current@freebsd.org> Subject: Re: pwcview and cheese - Device not configured / Invalid argument erros Message-ID: <111D234E-77C1-4F5A-9568-43D0FB2A8414@gmail.com> In-Reply-To: <56BADB46.6050601@selasky.org> References: <CADGo8CWw7_=csc19QCi%2BccWV3LRE_6ghovtLFTcWm7_h35GcMg@mail.gmail.com> <56BADB46.6050601@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Running the latest ports version for webcamd and cuse4bsd kmod ATM. I haven't used it for a while and since I upgrade pkgs frequently I'm guessing yes but, I've also updated current kernel/userland a few times for the last time this worked and all I can remember it was at least in 2015 so its hard to tell what caused the regression. On 10 February 2016 06:40:06 WET, Hans Petter Selasky <hps@selasky.org> wrote: >On 02/09/16 21:22, Miguel C wrote: >> I while ago cheese was working fine but I was just playing around >with my >> webcam today and noticed that I get this error with cheese: >> >> 'libv4l2: error turning on stream: Device not configured' > >What version of webcamd are you running? > >Did you upgrade since last time? > >--HPS -- Sent from my Android device with K-9 Mail. Please excuse my brevity. From owner-freebsd-current@freebsd.org Wed Feb 10 11:07:28 2016 Return-Path: <owner-freebsd-current@freebsd.org> Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 860A8AA26D0 for <freebsd-current@mailman.ysv.freebsd.org>; Wed, 10 Feb 2016 11:07:28 +0000 (UTC) (envelope-from sreekanth.reddy@broadcom.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26F7B6A5 for <freebsd-current@freebsd.org>; Wed, 10 Feb 2016 11:07:28 +0000 (UTC) (envelope-from sreekanth.reddy@broadcom.com) Received: by mail-wm0-x22b.google.com with SMTP id 128so21805491wmz.1 for <freebsd-current@freebsd.org>; Wed, 10 Feb 2016 03:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4coW5Q9njeKK+A9EHJGEUo3mQ5Gl2X6KhY/L7yfP7ts=; b=NxhGRZDIV9Q5oX0qcfY+urxz2ao4Pr3+YF82hOr4a7lP2KXLN8UhA/vD/Js3cN28PC 3vqlwuXEPou9dEViOhMQPI3jYpD1fu5THFe4K+msjkivpi0Rlf/caQ24sN0Z0AcC2rSo +ww+fBGNbOfuADtcWNoDO4JDVnS6PP+tzTgas= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=4coW5Q9njeKK+A9EHJGEUo3mQ5Gl2X6KhY/L7yfP7ts=; b=bFzGlj5WWevBBnZkilI61w1GFdBGuj/Ye/eFzKPkwDnXH5DoHf0Y3M6V9dcxYAIbXn BiXPaave35wHYyARSZZnrFgvFdfhAz1FKKMKj8XS2xyg9kNrQyou4PQ5aZcfZWsTEFSV HP1eq4E3oL0QDxhdN7uPpV1uUOkRr0Up0o4dh1e8z7Rx/x7tfMrKilMAuLwsX7BSudkt 9qI2ne2JiXwHAA8owIdGMrqf1AZ3RgIwvj/Y3DNNqmT001KaW4CzM26tmH2mqaDw6ycV AFEovkXae5eN24794VdwqUxT6iuvM/jbbLkiSjM06vyYwV0eyZxiYtNEuGnOM/t8oWLR yuPg== X-Gm-Message-State: AG10YOTmWISN5aFWkBf6yv2Vr5//uNbj4tyjafBo/IKfNL4WnPepcM54gAnp7RqrxRP86beeXpBvd4LKutFs4qeu MIME-Version: 1.0 X-Received: by 10.28.12.9 with SMTP id 9mr10745439wmm.76.1455102445946; Wed, 10 Feb 2016 03:07:25 -0800 (PST) Received: by 10.27.133.196 with HTTP; Wed, 10 Feb 2016 03:07:25 -0800 (PST) In-Reply-To: <2227929.z5Tr1XC1Xs@ralph.baldwin.cx> References: <CAK=zhgoGwXSsD-mNF=jGov1FJFnpM7m_fZ0Jwsq4JR5yazB+ww@mail.gmail.com> <CAK=zhgpjD2aF-XNiSG6AHojJm1gxvARXTc2enrnoQzLHe=WksA@mail.gmail.com> <CAK=zhgpSH73-AJKdiipHo9UAkTaGHs8=LPnKmYRgNs7-xAYFJQ@mail.gmail.com> <2227929.z5Tr1XC1Xs@ralph.baldwin.cx> Date: Wed, 10 Feb 2016 16:37:25 +0530 Message-ID: <CAK=zhgqTVG5mDQYHrGx3eb_QRxoU8FWPFeh-1P2tjpd+g1ys0g@mail.gmail.com> Subject: Re: Panic on reloading a driver with same DEVICE_PROBE() return value From: Sreekanth Reddy <sreekanth.reddy@broadcom.com> To: John Baldwin <jhb@freebsd.org> Cc: freebsd-current@freebsd.org, ken@freebsd.org, scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current <freebsd-current.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/> List-Post: <mailto:freebsd-current@freebsd.org> List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 10 Feb 2016 11:07:28 -0000 On Wed, Feb 10, 2016 at 3:30 AM, John Baldwin <jhb@freebsd.org> wrote: > On Tuesday, February 09, 2016 05:45:38 PM Sreekanth Reddy wrote: >> Hi, >> >> While debugging more, I got one more clue, >> >> ----------------------------------------------------------------------------------------------- >> static driver_t mps_pci_driver = { >> "mpr", >> mps_methods, >> sizeof(struct mps_softc) >> }; >> >> static devclass_t mps_devclass; >> DRIVER_MODULE(mpr, pci, mps_pci_driver, mps_devclass, 0, 0); >> ------------------------------------------------------------------------------------------------- >> >> in the above code snip-set, if I changed "DRIVER_MODULE" line as >> DRIVER_MODULE(mpr3, pci, mps_pci_driver, mps_devclass, 0, 0); >> (i.e. from "mpr" to "mpr3") then I am not observing any panic and I >> can load & unload the mpr driver multiple times. > > Oh, that might be required, yes. DRIVER_MODULE uses its arguments to define > a module name (in this case as "pci/mpr") and module names are required to > be unique. I believe you should be getting a printf warning about this on > the console. Something like: > > "module_register: cannot register pci/mpr from blah.ko; already loaded from foo.ko" Yes, I am getting below messages, at OS boot time for Out-of-box driver module_register: module pci/mpr already exists! Module pci/mpr failed to register: 17 > > -- > John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?111D234E-77C1-4F5A-9568-43D0FB2A8414>