From owner-freebsd-stable@FreeBSD.ORG Thu Jul 23 05:32:58 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 518381065676 for ; Thu, 23 Jul 2009 05:32:58 +0000 (UTC) (envelope-from sagara@tomahawk.com.sg) Received: from us1.tomahawkonline.net (us1.tomahawkonline.net [66.98.178.56]) by mx1.freebsd.org (Postfix) with SMTP id 141BD8FC08 for ; Thu, 23 Jul 2009 05:32:57 +0000 (UTC) (envelope-from sagara@tomahawk.com.sg) Received: (qmail 29044 invoked by alias); 23 Jul 2009 02:14:18 -0000 Message-ID: <20090723021418.29042.qmail@us1.tomahawkonline.net> References: <20090722022027.12059.qmail@us1.tomahawkonline.net> <20090722142033.GA13316@svzserv.kemerovo.su> <20090723001338.27858.qmail@us1.tomahawkonline.net> <20090723035900.GA67095@svzserv.kemerovo.su> In-Reply-To: <20090723035900.GA67095@svzserv.kemerovo.su> From: "Sagara Wijetunga" To: Eugene Grosbein Date: Thu, 23 Jul 2009 10:14:18 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: SCSI device not created upon a CF card plug in X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2009 05:32:58 -0000 Eugene Grosbein writes: > On Thu, Jul 23, 2009 at 08:13:38AM +0800, Sagara Wijetunga wrote: > >> Hi Eugene, thanks for the reply. The issue we discussed is about internal >> multi-card readers. For internal multi-card readers, the umassX created at >> boot time. If there is media inside at boot time, the device node for >> slices are also created. There is no issue about it. But the issue is after >> boot up, later some time, if you plug in a media card, FreeBSD does not >> generate any devd event. This needs to be fixed at the FreeBSD end, >> appreciate if the FreeBSD community actively fix it soon. > > If there is no devd event really, you can setup cron job to poll > your reader as a workaround. Or feel free to hack driver so it would > generate events for devd :-) > cat /dev/devctl shows nothing get to devd on media insertion. Poll via cron is not a solution. How often to poll? People expect immediate access to the card once plug in. At boot umassX, passX, daX are already setup for the reader. Once a card (media) is plug in, we expect a devd notification as follows: !system=DEVFS subsystem=CDEV type=CREATE cdev=daXs1 Once the media is taken out, we expect a devd notification as follows: !system=DEVFS subsystem=CDEV type=DESTROY cdev=daXs1 Where above X depends on which slot a card is plug in. If you conversant in this area, could you help us to identify what is/are the exact function/s in which program/s to look into identify the media insertion activity, so that we can generate relevant devd event. Regards Sagara