From owner-freebsd-current@freebsd.org Wed Feb 10 10:28:04 2016 Return-Path: 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 05BABAA459A for ; Wed, 10 Feb 2016 10:28:04 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 8EC361DFE for ; Wed, 10 Feb 2016 10:28:03 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id 128so20412728wmz.1 for ; Wed, 10 Feb 2016 02:28:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:from:date:to:message-id; bh=jSNKAEVbl7gtkWACEmemmPSekPZDxvxRg564rLxwi1Y=; b=OHcpi5RrTn7FSYAzjfKTQRSiUxZHm9T5XyCl6dDwmab2uZ9eWx+ejVk39r3vHqU/LP LoeVmDgN5aXgbS+D7ADjhMD/bEw68ReRdVAdhZ0AbRYlkuI4Q+st2V3WsHV/T/teTKKj ogagbyFtMjyBbBHfkBBGwfXZQkRxFRAY9/Qu1rpJj3BII0Vs+zurAgx/ix3PeGPGp4fP at60y/kXJ6X2SU7RLcPpr87Xiqi9bEPrUVxnkSbgrn37E1v1FydCgw2VJ46VWZjhBMkD njI63nMpN1B79tXICzxrBEhQr5gG8CDNBWyWKGGyOsY3i7C9wqxdeSRdtpPx2UvehhdF hVDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:user-agent:in-reply-to:references:mime-version :content-type:content-transfer-encoding:subject:from:date:to :message-id; bh=jSNKAEVbl7gtkWACEmemmPSekPZDxvxRg564rLxwi1Y=; b=F+nSry7EWr6ZqwbSy0au0kz5zEQJEcB1i7kAWqYiTnitqAoNMx8K+FfPiXzUBJ82ju XtlytpvtFYjsss0i4MSdlvn/dNWGAHmjntUI/W8QQiMjBprUAWArl11D0aT/CK8Xh0Fb c2/AQkf91+oxAN8WqKOJTlkI9FJTWT4kVghHAqY9OLCuOiUKe5asHBLAVRRf+tVfhypR fKlgxvPCIUYRYVxnd3tCVFWYAUXznhL4/dZdUi3iD1K1/L6W1fuvUgSteVSF5STNZTv0 yDmkm0K+VCWQTPbcSgRYJuHbdae/7nw5Ya+bmjQZ0w9qs5UYnh947jUBBTqZCuxxhpFG eCEA== X-Gm-Message-State: AG10YOQ/pM6ve3UN2BFPGHatoneaAPTSQzQdtjNcxhSzsd5VTqRmlrN6Cnqbm32MRhSsIg== X-Received: by 10.28.97.135 with SMTP id v129mr10367592wmb.90.1455100082077; Wed, 10 Feb 2016 02:28:02 -0800 (PST) Received: from android-d90384ae40cf6dc0.geek.local (119.76.37.188.rev.vodafone.pt. [188.37.76.119]) by smtp.gmail.com with ESMTPSA id v22sm2740806wmv.12.2016.02.10.02.28.00 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Feb 2016 02:28:01 -0800 (PST) User-Agent: K-9 Mail for Android In-Reply-To: <56BADB46.6050601@selasky.org> References: <56BADB46.6050601@selasky.org> MIME-Version: 1.0 Subject: Re: pwcview and cheese - Device not configured / Invalid argument erros From: miguelmclara@gmail.com Date: Wed, 10 Feb 2016 10:27:42 +0000 To: Hans Petter Selasky , freebsd-current Message-ID: <111D234E-77C1-4F5A-9568-43D0FB2A8414@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2016 10:28:04 -0000 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 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: 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 ; 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 ; 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 ; 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: <2227929.z5Tr1XC1Xs@ralph.baldwin.cx> Date: Wed, 10 Feb 2016 16:37:25 +0530 Message-ID: Subject: Re: Panic on reloading a driver with same DEVICE_PROBE() return value From: Sreekanth Reddy To: John Baldwin 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2016 11:07:28 -0000 On Wed, Feb 10, 2016 at 3:30 AM, John Baldwin 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