Date: Sun, 13 Dec 2009 18:01:43 +0100 From: Juergen Lock <nox@jelal.kn-bremen.de> To: Alexander Motin <mav@FreeBSD.org> Cc: Alexander Best <alexbestms@wwu.de>, freebsd-current@FreeBSD.org, Juergen Lock <nox@jelal.kn-bremen.de>, Andriy Gapon <avg@icyb.net.ua> Subject: Re: Testing CAM wrapper for ata(4) controller drivers Message-ID: <20091213170143.GA11564@triton8.kn-bremen.de> In-Reply-To: <4B24335F.7060405@FreeBSD.org> References: <alpine.BSF.2.00.0912081753490.62215@ibyngvyr.purzvxnyf.bet> <permail-20091209230748f7e55a9d00005dca-a_best01@message-id.uni-muenster.de> <4B20EA1F.5080107@icyb.net.ua> <200912130011.nBD0BNSl033498@triton8.kn-bremen.de> <4B24335F.7060405@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091213170143.GA11564>