From owner-freebsd-current@FreeBSD.ORG Thu Dec 10 12:49:58 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D6851065694 for ; Thu, 10 Dec 2009 12:49:58 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mx1.freebsd.org (Postfix) with ESMTP id DD3FF8FC17 for ; Thu, 10 Dec 2009 12:49:57 +0000 (UTC) Received: by fxm2 with SMTP id 2so1438223fxm.13 for ; Thu, 10 Dec 2009 04:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=pghzH/XhOUNcbbASVFlW+ZjNx/R+7ElRd4OP6vx4q6c=; b=Kx651OMAAPbuUbRBMKvBAV2mJF39hHVDASvemkS/aHPZouSkjqMYY1FJlyhNukp8dr YWcwpdkkbUaIjesd6SXB7Mn8z3IVBQyj0tHMrcgm9hPMVYYpiEFVGCk1YAf9vefUP3R4 lfLfrV7czPhq5Er/dLRKxezGBdFltI4dnCKxA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=ajI7wDMjrPHQjJg/Ltk+mYn+b4teEy99r+Oft7tSnQQlCzAX7tItvJNFDryN7ECmUp WpHWZc10vCWJF/+zG06Rsi56K1uNOxo1+Wb+zBu9jEWnlZAMXzr2IunjH7WFpbr4mZyR +qW35WqoPSr4xruCovtkTMApSbTmaY392y37w= Received: by 10.223.103.25 with SMTP id i25mr1624918fao.64.1260449396143; Thu, 10 Dec 2009 04:49:56 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm312204fxm.2.2009.12.10.04.49.55 (version=SSLv3 cipher=RC4-MD5); Thu, 10 Dec 2009 04:49:55 -0800 (PST) Sender: Alexander Motin Message-ID: <4B20EE70.1070202@FreeBSD.org> Date: Thu, 10 Dec 2009 14:49:52 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: Andriy Gapon References: <4B20EA1F.5080107@icyb.net.ua> <4B20EDD2.5000102@FreeBSD.org> In-Reply-To: <4B20EDD2.5000102@FreeBSD.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Best , freebsd-current@freebsd.org Subject: Re: Testing CAM wrapper for ata(4) controller drivers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 10 Dec 2009 12:49:58 -0000 Alexander Motin wrote: > Andriy Gapon wrote: >> on 10/12/2009 01:07 Alexander Best said the following: >>> ah. i see. thanks for the hint. sorry mav for blaming ATA_CAM. ;) would be >>> nice if this would be fixed at some point. i believe the problem also applies >>> to tape drives, usb memory card readers, etc.? so generally speaking: any >>> devices which allow new media insertion, but don't disconnect/re-attach >>> from/to CAM. >> Yes, we need to get some notification that media is changed and then trigger geom >> action. Right now there is no notification from hardware in most cases and there >> is no support for handling that in drivers, AFAIK. Maybe ahci driver starts to >> add support for that. So either something needs to poll media for changes or a >> user has to trigger some action explicitly. No magic. > > Both ahci and siis drivers already have SATA Asynchronous Notifications > support, that was especially made to do that. Now AN used to receive > messages from PMP about fan-out ports physical events and working fine. > > What is needed: SATA ATAPI device with AN support (haven't checked if > there are ones on the market), enable these messages, improve cd driver > to make some useful activity (have no idea how) on such events. With "how" I've meant "how to properly report it to GEOM". -- Alexander Motin