From owner-freebsd-current@FreeBSD.ORG Thu Dec 10 12:47:19 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 EF575106566C for ; Thu, 10 Dec 2009 12:47:19 +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 79C808FC0C for ; Thu, 10 Dec 2009 12:47:19 +0000 (UTC) Received: by fxm2 with SMTP id 2so1435888fxm.13 for ; Thu, 10 Dec 2009 04:47:18 -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=3/lUwN1q5k7eYDV73Q+P3CSA9dNgC7WN7UkkcOXBiJk=; b=mz1fphWjR48jk/KCXpQiSXPHflSNeWgZH9B4m6hnqKtygA6rbiD49Za46IhURjzI3k 4QNPEylxePJEgKitPnEWD8bZ+C8sa174pjcNSMPqUiz888iTXCcgGDAjvLOwAP6oJ9kD b42Gsw3lpogOCrKRq0jsVCEbsm9cj/kyAdgKI= 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=vYtzd2mtoojPp3UpPyeiltU9Us8FXOnoRh2v9maesNOxbtwmkN6EDcM4gGYt1hdIbX TtpAZbMFsWgXWAkh6NbLW6kaH/2ytsNPS/fcn0SJ6o+rTk6qX2KU67gbJKgRbzSEajm2 0L7WRsx7V1fbHEfAF8FeCY2qsxhSBxpufNZh4= Received: by 10.223.144.81 with SMTP id y17mr3193171fau.68.1260449238395; Thu, 10 Dec 2009 04:47:18 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm309076fxm.10.2009.12.10.04.47.17 (version=SSLv3 cipher=RC4-MD5); Thu, 10 Dec 2009 04:47:17 -0800 (PST) Sender: Alexander Motin Message-ID: <4B20EDD2.5000102@FreeBSD.org> Date: Thu, 10 Dec 2009 14:47:14 +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> In-Reply-To: <4B20EA1F.5080107@icyb.net.ua> 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:47:20 -0000 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. -- Alexander Motin