From owner-freebsd-drivers@FreeBSD.ORG Wed Aug 27 00:02:38 2008 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 6C4DC1065682 for ; Wed, 27 Aug 2008 00:02:38 +0000 (UTC) (envelope-from lsantagostini@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id D316E8FC0A for ; Wed, 27 Aug 2008 00:02:37 +0000 (UTC) (envelope-from lsantagostini@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so1927887fkk.11 for ; Tue, 26 Aug 2008 17:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ELaOnI8dwM7uguXiOvilFPPOP6vhcFF0IgPLrK4bPuw=; b=I2IJryCbGCpWgoTat6WDtGl/u3vkiapVNXQYbXtF16sJXJWqx+j2/lAvVmRyJJeIUi sHBjl4aQNQL8wcmRTtoMFZOJ7zBBZAVzD1tyA2HooaPLpRiTNApEAR6L3Nogb8kH2b+C kR/idIaQzgwHFtdw2TnltUgJcTXXCQujyg7u0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=QpvUWgM6qHFjQExYI9EpPp63avFsFiUxxk7DCGAUVJKHBt7YG/4iEEQOax/UIWxIGX edGfLRXdKe1GOPZstUAiEQR6IdrYHO8KFe5RqNtyUDKu0o4WUvV6tI8mE52bv0TpArhr TN3l109S0MtREpVzxEwrxSUE3pP45Y+gLUR7E= Received: by 10.180.211.5 with SMTP id j5mr3443814bkg.38.1219795356369; Tue, 26 Aug 2008 17:02:36 -0700 (PDT) Received: by 10.181.1.17 with HTTP; Tue, 26 Aug 2008 17:02:36 -0700 (PDT) Message-ID: <9ab7eeeb0808261702j3a1aed4bmab23fb7c971d54dc@mail.gmail.com> Date: Tue, 26 Aug 2008 21:02:36 -0300 From: "Leonardo Santagostini" To: "Stanislav Sedov" In-Reply-To: <9ab7eeeb0808202007k2a8b74a3y3b9fb8b8c185effa@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9ab7eeeb0808021304k399c42ddj9c79e1d5a7b7d933@mail.gmail.com> <20080802.144150.-1398321414.imp@bsdimp.com> <4894E936.1050106@freebsd.org> <9ab7eeeb0808172254l30a3bb84kd4e27c616e2c1fcc@mail.gmail.com> <20080819215055.97a184d9.stas@FreeBSD.org> <9ab7eeeb0808191948r2835c817yd248b18e5795be76@mail.gmail.com> <9ab7eeeb0808202007k2a8b74a3y3b9fb8b8c185effa@mail.gmail.com> Cc: Sam Leffler , freebsd-drivers@freebsd.org Subject: Re: Ralink Technology RT2561 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, 27 Aug 2008 00:02:38 -0000 Well well well Im here again, sorry. But i can't mount a home AP. I think the problem is in hostapd becouse i must restart it to get the AP work again. Any clue, any mailing list, any forum ? Thanks Leonardo 2008/8/21 Leonardo Santagostini : > Well list, im running a 7-STABLE version. > > Results: > > so far, so god. > > Things are going perfect by now. > > The entire process of doing an upgrade to STABLE was very clear and > clean according to the handbook. > > By now im very excited !!!!! Becouse im using mi wifi phone on the bed > using FreeBSD as my home AP instead my desktop. > > Well, i do really apreciate your help, for my was really helpfull !!!!! > > Thanks a lot !!! > > Yours > Leonardo > > 2008/8/19 Leonardo Santagostini : >> Thank you Stanislav ! >> >> Im givin it a try !!!! >> >> Your >> Leonardo >> >> 2008/8/19 Stanislav Sedov : >>> On Mon, 18 Aug 2008 02:54:43 -0300 >>> "Leonardo Santagostini" mentioned: >>> >>>> Sorry, but where i can download it ??? >>>> >>>> Or maybe the fix ?? >>>> >>>> Please i need a guidance from you. >>>> >>> >>> You need to update your FreeBSD installation to -STABLE >>> (via CVSUP or other available ways). See Handbook >>> for additional information on how to do this. >>> >>> -- >>> Stanislav Sedov >>> ST4096-RIPE >>> >> >> >> >> -- >> Saludos.- >> Leonardo Santagostini >> > > > > -- > Saludos.- > Leonardo Santagostini > -- Saludos.- Leonardo Santagostini From owner-freebsd-drivers@FreeBSD.ORG Wed Aug 27 16:42:21 2008 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 A69161065673 for ; Wed, 27 Aug 2008 16:42:21 +0000 (UTC) (envelope-from marauder@pi.avalonnetworks.us) Received: from pi.avalonnetworks.us (pi.avalonnetworks.us [76.164.27.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8E7348FC26 for ; Wed, 27 Aug 2008 16:42:21 +0000 (UTC) (envelope-from marauder@pi.avalonnetworks.us) Received: from Project_Infinity-MTA by pi.avalonnetworks.us with Novell_GroupWise; Wed, 27 Aug 2008 10:21:41 -0600 Message-Id: <48B52A34.5689.0089.0@pi.avalonnetworks.us> X-Mailer: Novell GroupWise Internet Agent 7.0 Date: Wed, 27 Aug 2008 10:21:21 -0600 From: "Marauder" To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: DMA to SATA drive failure 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, 27 Aug 2008 16:42:21 -0000 Hi, I have a system that needs to directly access the local storage device in = are machine (In this case it is a ATA hard disk). To do that we are use = code similar to this storageFD =3D open("/dev/ad4", O_RDWR); if (write(storageFD, configBlock, 512) =3D=3D -1) { cout << "Error" << endl; } We currently make sure we are writing to the disk in full sector sizes = (512 in this case) and im sure we have the disk open for write. But for some reason on some machines that we do this on we get the = following error displayed from the kernel. "Aligned DMA transfer attempted.= ad4: Setting up DMA failed" We have tried adding "SET hw.ata.ata_dma=3D0" = in are loader.rc file with no luck. Any help would be greatly appreciated Thanx M From owner-freebsd-drivers@FreeBSD.ORG Wed Aug 27 20:07:09 2008 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 DC3AA1065671 for ; Wed, 27 Aug 2008 20:07:09 +0000 (UTC) (envelope-from spamtrap@tczyhatczsche.eu) Received: from ange.vhost.lt (ange.vhost.lt [77.79.12.20]) by mx1.freebsd.org (Postfix) with ESMTP id 8E7428FC21 for ; Wed, 27 Aug 2008 20:07:09 +0000 (UTC) (envelope-from spamtrap@tczyhatczsche.eu) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=tczyhatczsche.eu; h=Received:Received:Date:From:To:Subject:Message-ID:Mime-Version:Content-Type:Content-Disposition:User-Agent:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-Source:X-Source-Args:X-Source-Dir; b=RIdNNyvH0PESIwRTQii3Bpf8kLZwNToZ4iTnq8i4FJ6gxue09fzXXq9Bon31zx4xofjcjij5DKHxb5NrlSonzuRBItp4Qm390elG3ELh0yD44CjdXGTAEetkXrBXTM/E; Received: from [78.59.147.157] (helo=johnny.mnemoni.ca) by ange.vhost.lt with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KYRIK-0008K1-7g for freebsd-drivers@freebsd.org; Wed, 27 Aug 2008 23:07:08 +0300 Received: by johnny.mnemoni.ca (Postfix, from userid 1001) id 7074F5D39; Wed, 27 Aug 2008 23:07:04 +0300 (EEST) Date: Wed, 27 Aug 2008 23:07:04 +0300 From: Jonathan Lee To: freebsd-drivers@freebsd.org Message-ID: <20080827200704.GA1109@johnny.mnemoni.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ange.vhost.lt X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tczyhatczsche.eu X-Source: X-Source-Args: X-Source-Dir: Subject: Re: Ralink Technology RT2561 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, 27 Aug 2008 20:07:09 -0000 AFAIK Ralinks don't support Host AP mode properly. At least yet. Check the driver's man page to make sure. It's probably at the very bottom. From owner-freebsd-drivers@FreeBSD.ORG Wed Aug 27 20:11:50 2008 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 C13F9106564A for ; Wed, 27 Aug 2008 20:11:50 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 8D62C8FC1A for ; Wed, 27 Aug 2008 20:11:50 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m7RKBnJb041865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Aug 2008 13:11:50 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <48B5B504.7070709@freebsd.org> Date: Wed, 27 Aug 2008 13:11:48 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Jonathan Lee References: <20080827200704.GA1109@johnny.mnemoni.ca> In-Reply-To: <20080827200704.GA1109@johnny.mnemoni.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: freebsd-drivers@freebsd.org Subject: Re: Ralink Technology RT2561 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, 27 Aug 2008 20:11:50 -0000 Jonathan Lee wrote: > AFAIK Ralinks don't support Host AP mode properly. At least yet. > > Check the driver's man page to make sure. It's probably at the very > bottom. > They mostly work fine (no power save support and some other stuff). On HEAD they even support WDS. Sam From owner-freebsd-drivers@FreeBSD.ORG Thu Aug 28 17:06:31 2008 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 D74851065672 for ; Thu, 28 Aug 2008 17:06:31 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id AF2978FC19 for ; Thu, 28 Aug 2008 17:06:31 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KYkam-0004am-3H for freebsd-drivers@freebsd.org; Thu, 28 Aug 2008 09:43:28 -0700 Message-ID: <19204481.post@talk.nabble.com> Date: Thu, 28 Aug 2008 09:43:28 -0700 (PDT) From: yong rao To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: yrao@force10networks.com Subject: Use count in open/close device driver 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, 28 Aug 2008 17:06:32 -0000 We want to have use count in the dev_open(), dev_close() functions. Just like in Linux, in open_dev() function we counld have #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) MOD_INC_USE_COUNT; #endif #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) try_module_get(THIS_MODULE); /* increment the usage counter */ #endif to increment the use count. In close_dev(), we could decrement the use count. So, when the device driver is unloaded, we would be able to know if there is any other application processes is still using the driver. Is there anybody having any clues? Thanks a lot, Yong Rao -- View this message in context: http://www.nabble.com/Use-count-in-open-close-device-driver-tp19204481p19204481.html Sent from the freebsd-drivers mailing list archive at Nabble.com.