From owner-freebsd-current@FreeBSD.ORG Sun Dec 13 00:20:51 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 C3DBF106568D for ; Sun, 13 Dec 2009 00:20:51 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 3396A8FC12 for ; Sun, 13 Dec 2009 00:20:51 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 16so569914fgg.13 for ; Sat, 12 Dec 2009 16:20:50 -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=dfCxNwa61+vkghuQj4J+L9VUfIW+Iu+HKSA3UmVePRE=; b=jFsgV8AfAgbT0U8dMfdEMmTNONDKkK37UABtoR6RUjOvp8ynBxlCbEWoNBMeS7CEDC 1RMVeAja8Glng8erAkbbPzDWmIN5qonK7QTcaebFdZf7ehGE+RkQqbwcQPIkNPN02EHQ 6l111r9y5q780WbO9rLjdRfbdNahr4tXdqRuA= 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=nF/2JNZy6KqyqPYLbVoZg7fqqJtggt+IpV2LsYTdE93hCN/oYK2jpB90kHa17pC1le gBjZdO9KlsdvNj0+S+yyfYI66czPRldas94CHRekJ1JBT9GL9oU2EHWvaeE7q3SSxCwl t4cdcKLepnPhgXNI0FCzE562WLvoxEfqN18jc= Received: by 10.86.195.29 with SMTP id s29mr3771434fgf.73.1260663650180; Sat, 12 Dec 2009 16:20:50 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 13sm1103907fxm.5.2009.12.12.16.20.48 (version=SSLv3 cipher=RC4-MD5); Sat, 12 Dec 2009 16:20:49 -0800 (PST) Sender: Alexander Motin Message-ID: <4B24335F.7060405@FreeBSD.org> Date: Sun, 13 Dec 2009 02:20:47 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Juergen Lock References: <4B20EA1F.5080107@icyb.net.ua> <200912130011.nBD0BNSl033498@triton8.kn-bremen.de> In-Reply-To: <200912130011.nBD0BNSl033498@triton8.kn-bremen.de> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: Alexander Best , freebsd-current@FreeBSD.org, Andriy Gapon 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: Sun, 13 Dec 2009 00:20:51 -0000 Juergen Lock wrote: > In article <4B20EDD2.5000102@FreeBSD.org> you write: >> 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. > > Doesn't scsi have `unit attention' to notify media changes? Or does > that not work as expected with atapi? Haven't checked. Will try it tomorrow. But any way it require device polling. SATA AN same time is device-initiated real-time event. -- Alexander Motin