From owner-freebsd-current@FreeBSD.ORG Sun Dec 13 17:03:39 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 1864D1065672; Sun, 13 Dec 2009 17:03:39 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id C664F8FC0A; Sun, 13 Dec 2009 17:03:38 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 051DF1E0075B; Sun, 13 Dec 2009 18:03:37 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id nBDH1icr011733; Sun, 13 Dec 2009 18:01:44 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id nBDH1imL011732; Sun, 13 Dec 2009 18:01:44 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sun, 13 Dec 2009 18:01:43 +0100 To: Alexander Motin Message-ID: <20091213170143.GA11564@triton8.kn-bremen.de> References: <4B20EA1F.5080107@icyb.net.ua> <200912130011.nBD0BNSl033498@triton8.kn-bremen.de> <4B24335F.7060405@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B24335F.7060405@FreeBSD.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Alexander Best , freebsd-current@FreeBSD.org, Juergen Lock , 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 17:03:39 -0000 On Sun, Dec 13, 2009 at 02:20:47AM +0200, Alexander Motin wrote: > 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. Ah ok. Cheers, Juergen