From owner-freebsd-drivers@freebsd.org Mon Oct 23 02:35:29 2017 Return-Path: Delivered-To: freebsd-drivers@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 66FCEE3E1F1 for ; Mon, 23 Oct 2017 02:35:29 +0000 (UTC) (envelope-from fire@firecrow.com) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (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 1D49F82446 for ; Mon, 23 Oct 2017 02:35:29 +0000 (UTC) (envelope-from fire@firecrow.com) Received: by mail-qk0-x22d.google.com with SMTP id l194so20271398qke.13 for ; Sun, 22 Oct 2017 19:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=firecrow-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+4OCoDt/T10SHBjF9eaGN0v+lRJs42IMS3vGxBJrROE=; b=0R/nYgNy/z3mj2vVj9h+ZdERn3PrDcgsq1dWomp8MDXqOP7uQC2JxmVOWUwLQkvM4c gBcYPHbDr4RGbKMT9hhqEUOeApPMJGXgvwdj8QUYMnfsvr5tcJZzaOPOudNbxpv0tYrw pJL0oNekR9tMWzFzZnMGiCDtZ28zeboLKCtulT7Y+Fpybdx1He9SVbd1TD9wthxGdiaL 3M1OWR7O17gy5HTMSsOQyQX8I0C+U6ji8vBkiJesXA0D/fBrxlmrPkuU4c4wqIa458kv BpY1CXPOpkUzQikvUfBxQJNmZAjuGXwYg+JdP/pGpvKMdQGV0Bc7OR0zt83zKPhdzN1N Ag5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+4OCoDt/T10SHBjF9eaGN0v+lRJs42IMS3vGxBJrROE=; b=ZpACsofKR3huJ/0KgHpUy1hEAW08VRbNddHBB5uOIUnjB8J6BjynTil3IEKSXttvS0 DsrgCFmoio6SnUd8t/fL+fox2jJuEUKAGYmaop+PEoo+IJzS6s6XYMapQC1uLF0UoFc1 4k6V2cPTi8hBRejwlkUEFCSrmpDyZnX82l7NRzkaDEleoH0THrIMo56Eine5S/3UBWJz nFHx3MmZl5ZqNxHla63iWEL/0bYBUE+4J1juHVCr5bEQoE9PqMiHyg9ocEED7sp4QErQ MyPfiRmjTkRjB/YMPbWCclrvDjl9QKjW8ram0TH+PpTSf2HpbczmfY5/swRwFOnC2Weh 0zTQ== X-Gm-Message-State: AMCzsaVmt50lp3c/s9HuRSOs/W0sN4aRKE6LRtdE1duCB8D/zTRQHeNG uCrQrYnfGvhkXsUlbf3dysr8aibO16khy/uyvQVQgA== X-Google-Smtp-Source: ABhQp+TVzC3RGNI+TBZmCsYYKUas5r05bwHJN94VwLq2GAkC0KUlydO7z8oHNM1zlsGg0qW/0Td7FOQKF+2AjhzJpuQ= X-Received: by 10.55.103.15 with SMTP id b15mr10405111qkc.224.1508726128005; Sun, 22 Oct 2017 19:35:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.216.238 with HTTP; Sun, 22 Oct 2017 19:35:27 -0700 (PDT) Received: by 10.12.216.238 with HTTP; Sun, 22 Oct 2017 19:35:27 -0700 (PDT) In-Reply-To: References: From: fire crow Date: Mon, 23 Oct 2017 02:35:27 +0000 Message-ID: Subject: Logging information from inside fb/fb.c To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2017 02:35:29 -0000 Hi, I'm trying to log infirmation about video devices in the `vid_register` function in `sys/dev/fb/fb.c` and it appears that using `uprintf` is causing a kernel panic. Is there another logging facility I can use? Thanks ~fire From owner-freebsd-drivers@freebsd.org Mon Oct 23 03:23:33 2017 Return-Path: Delivered-To: freebsd-drivers@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 EDAFFE3EE73 for ; Mon, 23 Oct 2017 03:23:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::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 B637E837EE for ; Mon, 23 Oct 2017 03:23:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22b.google.com with SMTP id y15so4361184ita.4 for ; Sun, 22 Oct 2017 20:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=U74sVcDUaexeynsHCgWfU2LV348QllgAX57iW7HmfBQ=; b=TcjhnkLSrMQFpGJLIofmjNl+7oVKWZLeTdtDO0wVU45uQX1vejk9PyHUpoTKqMUTwM OJVdsPtMr3sKClq3vtCDZKxRFFXQHoiLsARgnvl/CBP8j7rluUA7Yva/BIorKMK5/Y5D JNSri7+YvXwhJfgV86nWLxV4Fg9XZvy55MfdsLVx42lzjUSpb7bw3lQGmBZXqMJTuKvO OG6Naxl890e4K2D4wWBiIBKCVshAP5pFUHtxkqes32BaWMbQurTK2P1Ph6axEPLyIL0x z4tzX3ahL3mc+vVPULUjEjA/Q1kroEHOkIc1JtODDku7MQr6K1tnYylFlHO4cWiQeRiU UbFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=U74sVcDUaexeynsHCgWfU2LV348QllgAX57iW7HmfBQ=; b=UJhVKkchebPRfR65fC15wqHboeKM/m3aMVnCH2nAsHBrVd+UQSSE37pl05zUoH1miT V/EwzHeaVhwEWYFAhNdL1Wo69GwEnLgnsrEsGgbujHz0jaOkrdOSicffHqzaOu+o2tu/ U+Un5mnTn1w2buZVnmNM1sOxz96ApEAFRgdBWBOzlNmvZcAhi4oFoJdWg6438iVrrj5B 8ESivp75zFkwSvN8TDoKt9AxvbZwp7ZwIkiCZqCfSbNlexRk6SZPsZoDdH9Xz3u4qZhw kiwT2HXDJcoBGZ0M6bD2HxvjVNJEolJmLTf0lW2LY06ApxSmKW2ajnkgkO7pXQXPluFN 40rA== X-Gm-Message-State: AMCzsaWuwfHO3HV3Vm3g9LZSDox+VieUvVFZIxJGDyavO5jI/fp6PLew Fzukil6afLPMpAunq28lK4nxBYn3JjU2jvRG8C/8YA== X-Google-Smtp-Source: ABhQp+Q5wEkAQnW0oYmCZVYFHRQvbs3PUUQBFLe//mGX2Q+PMV91rxxEmb+pRZmdG7TaSrwoXVgMTlh6nmvPqPEAXds= X-Received: by 10.36.184.5 with SMTP id m5mr8089806ite.69.1508729012714; Sun, 22 Oct 2017 20:23:32 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.57.22 with HTTP; Sun, 22 Oct 2017 20:23:31 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:4cab:eabf:5164:1d5] Received: by 10.79.57.22 with HTTP; Sun, 22 Oct 2017 20:23:31 -0700 (PDT) In-Reply-To: References: From: Warner Losh Date: Sun, 22 Oct 2017 21:23:31 -0600 X-Google-Sender-Auth: E61lkwtguWYiyuzXBbU9JU7yvH8 Message-ID: Subject: Re: Logging information from inside fb/fb.c To: fire crow Cc: freebsd-drivers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2017 03:23:34 -0000 On Oct 22, 2017 8:35 PM, "fire crow" wrote: Hi, I'm trying to log infirmation about video devices in the `vid_register` function in `sys/dev/fb/fb.c` and it appears that using `uprintf` is causing a kernel panic. Is there another logging facility I can use? Dtrace? Printf may also work better if there is no controlling terminal... But the panic may be due to recursion into the driver. Try a serial or null console. Warner Thanks ~fire _______________________________________________ freebsd-drivers@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-drivers To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" From owner-freebsd-drivers@freebsd.org Thu Oct 26 11:21:59 2017 Return-Path: Delivered-To: freebsd-drivers@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 A166AE46356 for ; Thu, 26 Oct 2017 11:21:59 +0000 (UTC) (envelope-from return+0-0-16p0r-11jb4d5-4l2@nl2go.com) Received: from s142.nl2go.com (s142.nl2go.com [78.46.94.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F1A8676492 for ; Thu, 26 Oct 2017 11:21:58 +0000 (UTC) (envelope-from return+0-0-16p0r-11jb4d5-4l2@nl2go.com) Subject: Sale 10 Prozent Rabatt auf alles From: "citydisc.ch" To: freebsd-drivers@freebsd.org Reply-To: Date: Thu, 26 Oct 2017 12:06:02 +0200 Message-Id: <18293022212906712@s142.nl2go.com> X-AntiAbuse: Please report spam to abuse@newsletter2go.com and refer to this ID: 0-16p0r-11jb4d5-8hl X-rpcampaign: RP1991979 X-IPM-Campaign: nl2go.1991979 DKIM-Signature: a=rsa-sha256; b=i/LsnQqycGgKMsjxRh1mkyRmCUW8rySM7UtNh+wyvC2ums8PXoSorF3aW+YmYbgWpTpHOCXJlXOC1sX7lej3NYD/PPc2bFNf9rMglJhMff0Zv2JJaqomaDmCG9l+9PFDbhfM4lMIwdXNkepKBoJbSJC0yDv9sYK1ORoK6of5C50=; s=newsletter2go; d=citydisc.ch; v=1; bh=Bi1aF5ejyko8x/wzlJ3fZ26AKJQi5/gGT/Kahk+h8TI=; h=Reply-To:List-Unsubscribe:List-Id:From:To:Message-Id:Subject:MIME-Version:Date; MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 11:21:59 -0000 Klicken Sie bitte [hier,](http://p.n2g04.com/l/343064603/c/0-16p0r-11jb4d5-= 8hl)um zur Webversion zu gelangen. (https://www.facebook.com/citydisc) (https://twitter.com/citydiscch) (http://www.citydisc.ch/) [FILME](http://www.citydisc.ch/filme/) [MUSIK](http://www.citydisc.ch/musik/) [GAMES](http://www.citydisc.ch/games/) [SPIELWAREN](http://www.citydisc.ch/spielwaren/) [SOFTWARE](http://www.citydisc.ch/software/) [HARDWARE & CE](http://www.citydisc.ch/hardware-und-ce/) [OFFICE & TINTE](http://www.citydisc.ch/office-und-tinte/) [MERCHANDISING](http://www.citydisc.ch/merchandising/) [B=C3=9CCHER](http://www.citydisc.ch/buecher/) [GUTSCHEINE](http://www.citydisc.ch/gutscheine/) (http://www.citydisc.ch/) Liebe Kundinnen, liebe Kunden =C2=A010=C2=A0% Rabatt auf das ganze Sortiment=C2=A0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Rabattcode=C2=A010CD241017 in=C2=A0das Gutscheincode-Feld eintragen (vom Rabatt ausgeschlossen sind bereits reduzierte Artikel=C2=A0 sowie Spielkonsolen & Playstation VR/ Rabatt g=C3=BCltig bis Montag, 30. Ok= tober 2017) Viel Spass beim Entdecken w=C3=BCnscht Ihnen Ihr Citydisc-Team Ch=C3=A8re cliente, cher client 10% de rabais sur l=E2=80=99ensemble de l'assortiment =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Nous vous prions de bien vouloir noter le=C2=A0Code=C2=A010CD241017=C2=A0 dans le champ =E2=80=9Enum=C3=A9ro du bon=E2=80=9C Exclus du rabais accord=C3=A9 sont les articles d=C3=A9j=C3=A0 en solde,=C2= =A0les consoles et Playstation VR=C2=A0 (bon valable jusqu=E2=80=99=C3=A0 30.10.2017) Nous vous souhaitons bien du plaisir sur notre site. Votre =C3=A9quipe citydisc.ch (http://www.citydisc.ch/detail/index/sArticle/1084841?number=3D492689) SUNRISE AVENUE - HEARTBREAK CENTURY CHF 24,90 (http://www.citydisc.ch/detail/index/sArticle/1065367?number=3D474608) FIFA 18 (+Preorder FUT Bonus) CHF 74,90 (http://www.citydisc.ch/detail/index/sArticle/850895?number=3D297304) Game of Thrones - Staffel 7 CHF 39,90 (http://www.citydisc.ch/detail/index/sArticle/1099628?number=3D503336) LEGO=C2=A9 75184 Star Wars - Adventskalender/Calendrier de l'Avent CHF 39,90 (http://www.citydisc.ch/detail/index/sArticle/1099632?number=3D503332) LEGO=C2=A9 41326 FRIENDS - Adventskalender/Calendrier de l'Avent CHF 34,90 (http://www.citydisc.ch/detail/index/sArticle/1047278?number=3D457826) Call of Duty: WWII (PS4) CHF 74,90 [Kontakt](https://www.citydisc.ch/kontaktformular)| [AGBs](http://www.cityd= isc.ch/agb)| [Impressum](http://www.citydisc.ch/impressum)| [Newsletter abm= elden](http://www.citydisc.n2g04.com/l/343064602/c/0-16p0r-11jb4d5-8hl) Preis=C3=A4nderungen und Fehler vorbehalten. Bilder k=C3=B6nnen vom Origina= lprodukt abweichen. Copyright 2017 =C2=A9 - Alle Rechte vorbehalten. Wemeo GmbH | Industriestr. 20 | 8117 F=C3=A4llanden From owner-freebsd-drivers@freebsd.org Fri Oct 27 02:18:55 2017 Return-Path: Delivered-To: freebsd-drivers@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 0CDF9E58F76 for ; Fri, 27 Oct 2017 02:18:55 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (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 F419D72796 for ; Fri, 27 Oct 2017 02:18:53 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x22f.google.com with SMTP id p186so9582637ioe.12 for ; Thu, 26 Oct 2017 19:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=B+qM1q2mEAiPpAfwg4IiUn5RON3UkBY1LNuMHltcgEE=; b=eS+OCbQ2QMCX6Hrbw27b3CGHipWzczOwb1b/zl6Ju6vDyiQJDvX/ycc2IbCF0Ii0Ga fPCLdVg1p7r88+Xzart+l5iy7Hn4YMbMsVS6C/+XUEjPv6Vq3I2EEeCoOsVO4YjsgKxZ LIyhd+VRyx9coLjZPjbHBESF/FK/cWv0FZN5hLGqnKoPKZDNN/hydT2KOHXsI05PAzfT yTX3k3nyRoj2xcy/cqeKyDsIxc74cToa8q9cg4s4Zw5d3tDrgbZYe1/hbnK+qkJCMRax shczeoURwFkw+Kxwb1XnKQmAfXVGsnsEDTq5e7+j6C4Fa5oMGgRaeuJZNRvjVAL7ZENM CWOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=B+qM1q2mEAiPpAfwg4IiUn5RON3UkBY1LNuMHltcgEE=; b=FCulbtRH62cRF14jPYqT4ANg0py4KoTMG/7DOk63dk/hTx+KilZwPlBqTyr+UIzkaH O3ruZr+PLWpFn63Yq9xYRFHxGvVpJHIYhD2HLlwQdLvP6VMyypmrqlIMHPTmxn0hbAws x86qseHfNL/cvO4UfMU6HpGcfCTtmw/AFphX48z8dkxJAVwL+KqcdQSlqhPxaA37PlxZ X6ti75uaj8PF/wrBtVzNDrn0LuYfQvEMl1gC+EyxoTEsgJxhNq82t7b7FEIIix6hCan4 9UpUpKJZGNj+sjlqCr18ZDNYcX33f6HpUCPFkDtcJSMb4YQEdLt4410Jgiw3fUGZyvp4 nTFA== X-Gm-Message-State: AMCzsaVXthc9X6ylrkj4KDdNLK+EnwAqc37poFi5BaEQle1bWrXT1E/q cDOE0RwL/EA6lGPy/RuV5G7iJKSq6hhG1RFulmSSQg== X-Google-Smtp-Source: ABhQp+TFTM66ftB/Ty+4BAqcvgGXu8/RKYCoiHUNJJi2vKOWjGgetzFtWGPijd4ZZ85RGZOYBuJ0uQ9CGoObfxb128k= X-Received: by 10.36.64.19 with SMTP id n19mr1154875ita.119.1509070732362; Thu, 26 Oct 2017 19:18:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.66 with HTTP; Thu, 26 Oct 2017 19:18:51 -0700 (PDT) From: blubee blubeeme Date: Fri, 27 Oct 2017 10:18:51 +0800 Message-ID: Subject: Getting into USB drivers To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2017 02:18:55 -0000 I have a USB webcam that I would like to get into writing drivers for as a practical introduction to writing drivers for FreeBSD. I am not sure if this one already has a driver but here's the usb dump of the device. Anyone here willing to give me some pointers on writing drivers? me@blubee:~ % sudo usbconfig -d 0.5 dump_all_config_desc Password: ugen0.5: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x03a9 bNumInterfaces = 0x0002 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0080 bMaxPower = 0x00fa Additional Descriptor bLength = 0x08 bDescriptorType = 0x0b bDescriptorSubType = 0x00 RAW dump: 0x00 | 0x08, 0x0b, 0x00, 0x02, 0x0e, 0x03, 0x00, 0x04 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x000e