From owner-freebsd-drivers@FreeBSD.ORG Wed Sep 19 17:13:22 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEB9216A41A; Wed, 19 Sep 2007 17:13:22 +0000 (UTC) (envelope-from solarux@hotmail.com) Received: from bay0-omc2-s15.bay0.hotmail.com (bay0-omc2-s15.bay0.hotmail.com [65.54.246.151]) by mx1.freebsd.org (Postfix) with ESMTP id EAC0713C465; Wed, 19 Sep 2007 17:13:22 +0000 (UTC) (envelope-from solarux@hotmail.com) Received: from hotmail.com ([65.55.139.117]) by bay0-omc2-s15.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 19 Sep 2007 10:01:22 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 19 Sep 2007 10:01:22 -0700 Message-ID: Received: from 65.55.139.123 by by134fd.bay134.hotmail.msn.com with HTTP; Wed, 19 Sep 2007 17:01:21 GMT X-Originating-IP: [74.101.147.246] X-Originating-Email: [solarux@hotmail.com] X-Sender: solarux@hotmail.com In-Reply-To: From: "Rick Nekus" To: mogcon3@gmail.com, freebsd@sopwith.solgatos.com Date: Wed, 19 Sep 2007 17:01:21 +0000 X-OriginalArrivalTime: 19 Sep 2007 17:01:22.0235 (UTC) FILETIME=[B48FB8B0:01C7FADE] MIME-Version: 1.0 Content-Type: text/plain; format="flowed" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, freebsd-drivers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Documentation for AMD/ATI GPUs is now available. X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2007 17:13:23 -0000 "ditto" Intel/nVidia are beating the crap out of them, so they better be good to us now. :) ______________________________________________________________ From: "Christopher Mogni" To: freebsd@sopwith.solgatos.com CC: freebsd-multimedia@freebsd.org, freebsd-drivers@freebsd.org,freebsd-hardware@freebsd.org Subject: Re: Documentation for AMD/ATI GPUs is now available. Date: Fri, 14 Sep 2007 22:26:25 -0400 >It is about time. > >On 9/12/07, Dieter wrote: > > > > AMD/ATI has released the first of the documentation for their GPUs. > > > > http://www.x.org/docs/AMD/42589_rv630_rrg_1.01o.pdf 6404655 bytes > > http://www.x.org/docs/AMD/RRG-216M56-03oOEM.pdf 7013853 bytes > > _______________________________________________ > > freebsd-drivers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" > > >_______________________________________________ >freebsd-multimedia@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia >To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" _________________________________________________________________ Windows Live Hotmail. Even hotter than before [1]Get a better look now. References 1. http://g.msn.com/8HMAENCA/2737??PS=47575 From owner-freebsd-drivers@FreeBSD.ORG Wed Sep 19 22:39:43 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 972B016A419; Wed, 19 Sep 2007 22:39:43 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 624ED13C49D; Wed, 19 Sep 2007 22:39:43 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 0C1C761A431; Wed, 19 Sep 2007 15:22:21 -0700 (PDT) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30624-06; Wed, 19 Sep 2007 15:22:20 -0700 (PDT) Received: from [10.0.0.40] (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id 499AF61A1D2; Wed, 19 Sep 2007 15:22:20 -0700 (PDT) Message-ID: <46F1A11C.6000402@miralink.com> Date: Wed, 19 Sep 2007 15:22:20 -0700 From: Sean Bruno User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Wed Sep 19 15:22:20 2007 X-DSPAM-Confidence: 0.5561 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 46f1a11c173821873812410 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.499 X-Spam-Level: Cc: sos@FreeBSD.org Subject: ATAREINIT doesn't? X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2007 22:39:43 -0000 Is the intention of the IOCATAREINIT->ata_reinit() from ata-all.c to rediscover new disks? The atacontrol man page seems to indicate that it should: reinit Reinitialize an ATA channel. Both devices on the channel are reset and initialized to the parameters the ATA driver has stored internally. Devices that have gone bad and no longer respond to the probe, or devices that have physically been removed, are removed from the kernel. Likewise are devices that show up during a reset, probed and attached. Looking at ata_reinit() however shows no indication of being able to find or discover new disks. So is this a mis-read on my part or something else? Sean From owner-freebsd-drivers@FreeBSD.ORG Thu Sep 20 22:47:57 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93F1D16A469 for ; Thu, 20 Sep 2007 22:47:57 +0000 (UTC) (envelope-from kiran.patil@intel.com) Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by mx1.freebsd.org (Postfix) with ESMTP id 6E91B13C4A7 for ; Thu, 20 Sep 2007 22:47:57 +0000 (UTC) (envelope-from kiran.patil@intel.com) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 20 Sep 2007 15:19:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.20,280,1186383600"; d="scan'208,217";a="283199157" Received: from orsmsx335.jf.intel.com ([10.22.226.40]) by azsmga001.ch.intel.com with ESMTP; 20 Sep 2007 15:19:23 -0700 Received: from orsmsx420.amr.corp.intel.com ([10.22.226.89]) by orsmsx335.jf.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Sep 2007 15:19:22 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Thu, 20 Sep 2007 15:19:18 -0700 Message-ID: <4AFE4AEEFA305C4BB82F73F4D819506002B93F19@orsmsx420.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Help with statically compiling and linking simple hello worlds kind of driver with FreeBSD kernel thread-index: Acf71EkQDpTj0NydSbym7/ZQjZmwmw== From: "Patil, Kiran" To: X-OriginalArrivalTime: 20 Sep 2007 22:19:22.0953 (UTC) FILETIME=[4BF7FB90:01C7FBD4] Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Help with statically compiling and linking simple hello worlds kind of driver with FreeBSD kernel X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2007 22:47:57 -0000 Hi, =20 I am newbie FreeBSD driver developer. =20 I developed dynamically loaded module for simple hello world kind of driver. I can successfully dynamic load and unload the module (hello.ko). There are other supporting files such as hello_1.c, hello_2.c and hello.h which hets compiled when I compile hello driver. =20 I want to statically compile this driver into FreeBSD kernel and I want it to get loaded when FreeBSD kernel is booted. =20 I am looking for BKM, how to do this? Any help is appreciated. If there is any example exist for this, can you please point me to it. =20 Thanks in advance. =20 -- Kiran P. From owner-freebsd-drivers@FreeBSD.ORG Fri Sep 21 05:15:28 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D431A16A417 for ; Fri, 21 Sep 2007 05:15:28 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp2.yandex.ru (smtp2.yandex.ru [213.180.200.18]) by mx1.freebsd.org (Postfix) with ESMTP id 1464A13C448 for ; Fri, 21 Sep 2007 05:15:27 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:28142 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4395713AbXIUFCr (ORCPT ); Fri, 21 Sep 2007 09:02:47 +0400 X-Comment: RFC 2476 MSA function at smtp2.yandex.ru logged sender identity as: bu7cher Message-ID: <46F35074.4020901@yandex.ru> Date: Fri, 21 Sep 2007 09:02:44 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: "Patil, Kiran" References: <4AFE4AEEFA305C4BB82F73F4D819506002B93F19@orsmsx420.amr.corp.intel.com> In-Reply-To: <4AFE4AEEFA305C4BB82F73F4D819506002B93F19@orsmsx420.amr.corp.intel.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: Help with statically compiling and linking simple hello worlds kind of driver with FreeBSD kernel X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 05:15:28 -0000 Patil, Kiran wrote: > I want to statically compile this driver into FreeBSD kernel and I want > it to get loaded when FreeBSD kernel is booted. > > I am looking for BKM, how to do this? Any help is appreciated. If there > is any example exist for this, can you please point me to it. Hi, you can look into src/sys/conf directory. Here is lots of examples. See into files.* and options.*. -- WBR, Andrey V. Elsukov From owner-freebsd-drivers@FreeBSD.ORG Fri Sep 21 13:56:08 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3D1816A418 for ; Fri, 21 Sep 2007 13:56:08 +0000 (UTC) (envelope-from michael@askozia.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 6253713C468 for ; Fri, 21 Sep 2007 13:56:07 +0000 (UTC) (envelope-from michael@askozia.com) Received: by ug-out-1314.google.com with SMTP id a2so642197ugf for ; Fri, 21 Sep 2007 06:56:06 -0700 (PDT) Received: by 10.78.160.2 with SMTP id i2mr19006hue.1190381223652; Fri, 21 Sep 2007 06:27:03 -0700 (PDT) Received: by 10.78.72.1 with HTTP; Fri, 21 Sep 2007 06:27:03 -0700 (PDT) Message-ID: Date: Fri, 21 Sep 2007 15:27:03 +0200 From: "Michael Iedema" To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: first time module dev question: undefined reference to 'memset' X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 13:56:08 -0000 Greetings everyone, I'm undertaking the seemingly simple task of porting a Linux kernel module to FreeBSD. I say simple because it is merely a wrapper used to expose some functions to another module. The code I'm porting is OSLEC[1] a line echo canceller module that is used by Zaptel and Asterisk. My current problem is an undefined reference to 'memset' when I attempt to load the cleanly compiled module. There is a lengthy discussion about this error here[2] but I could find no conclusive remedy. My wrapper module links with code from another library and it is causing the problems in kernel land. Here is my module so far: http://pastebin.ca/705865 ...and my broken Makefile: http://pastebin.ca/705871 If anyone could point me in the right direction it would be very appreciated. I realize that I am out of my league dealing with kernel modules but the porting process looked easy enough. As with most new adventures, this has proved untrue. Thanks for your time, -Michael I. [1] - http://www.rowetel.com/ucasterisk/oslec.html [2] - http://lists.freebsd.org/pipermail/freebsd-stable/2005-March/013132.html From owner-freebsd-drivers@FreeBSD.ORG Fri Sep 21 21:40:27 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D04C16A41A for ; Fri, 21 Sep 2007 21:40:27 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 0BE6113C4C5 for ; Fri, 21 Sep 2007 21:40:26 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8p) with ESMTP id 210673075-1834499 for multiple; Fri, 21 Sep 2007 17:22:42 -0400 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l8LLOATf064127; Fri, 21 Sep 2007 17:24:10 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-drivers@freebsd.org Date: Fri, 21 Sep 2007 15:37:21 -0400 User-Agent: KMail/1.9.6 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709211537.21584.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 21 Sep 2007 17:24:10 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/4357/Fri Sep 21 05:55:46 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Re: first time module dev question: undefined reference to 'memset' X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 21:40:27 -0000 On Friday 21 September 2007 09:27:03 am Michael Iedema wrote: > Greetings everyone, > > I'm undertaking the seemingly simple task of porting a Linux kernel > module to FreeBSD. I say simple because it is merely a wrapper used to > expose some functions to another module. > > The code I'm porting is OSLEC[1] a line echo canceller module that is > used by Zaptel and Asterisk. My current problem is an undefined > reference to 'memset' when I attempt to load the cleanly compiled > module. > > There is a lengthy discussion about this error here[2] but I could > find no conclusive remedy. My wrapper module links with code from > another library and it is causing the problems in kernel land. > > Here is my module so far: http://pastebin.ca/705865 > ...and my broken Makefile: http://pastebin.ca/705871 > > If anyone could point me in the right direction it would be very > appreciated. I realize that I am out of my league dealing with kernel > modules but the porting process looked easy enough. As with most new > adventures, this has proved untrue. I think you need to add a memset() function in your module. The kernel doesn't include memset() in 6.x. You can backport the one in 7.x (look in sys/libkern) if you want. -- John Baldwin