From owner-freebsd-current@FreeBSD.ORG Sat Feb 5 20:32:51 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2759E16A4CE for ; Sat, 5 Feb 2005 20:32:51 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC89543D39 for ; Sat, 5 Feb 2005 20:32:49 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id j15KWguc057885; Sat, 5 Feb 2005 23:32:42 +0300 (MSK) (envelope-from maxim@macomnet.ru) Date: Sat, 5 Feb 2005 23:32:42 +0300 (MSK) From: Maxim Konovalov To: =?ISO-8859-1?Q?S=F8ren_Schmidt?= In-Reply-To: <42052747.7000102@DeepCore.dk> Message-ID: <20050205233053.I57868@mp2.macomnet.net> References: <42028F29.1030801@DeepCore.dk> <20050205192139.P54165@mp2.macomnet.net> <42052747.7000102@DeepCore.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamTest-Info: Profile: Formal (208/050203) X-SpamTest-Info: Profile: Detect Hard (4/030526) X-SpamTest-Info: Profile: SysLog X-SpamTest-Info: Profile: Marking - Keywords (2/030321) X-SpamTest-Status: Not detected X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0124], SpamtestISP/Release cc: 'FreeBSD Current' Subject: Re: ATA mkIII first official patches - please test! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 05 Feb 2005 20:32:51 -0000 On Sat, 5 Feb 2005, 21:06+0100, S?ren Schmidt wrote: > Maxim Konovalov wrote: > > On Thu, 3 Feb 2005, 21:52+0100, S?ren Schmidt wrote: > > > > > > > ATA-mkIII first official snapshot. > > > > > > On my Sony VAIO PCG-505BX ioctl(CDIOEJECT) (cdcontrol eject) returns > > EOPNOTSUPP. > > Thanks! I accidentally removed a line in atapi-cd.c, please try > below patch it should fic the problem. > > --- atapi-cd.c 2005/02/03 15:23:35 1.15 > +++ atapi-cd.c 2005/02/05 19:59:54 > @@ -134,6 +134,7 @@ > cdp->block_size = 2048; > device_set_ivars(dev, cdp); > ATA_SETMODE(GRANDPARENT(dev), dev); > + acd_get_cap(dev); > g_post_event(acd_geom_attach, dev, M_WAITOK, NULL); > > /* announce we are here */ # make unload load && cdcontrol eject && echo 'It works, thanks' /sbin/kldunload -v atapicd.ko Unloading atapicd.ko, id=25 /sbin/kldload -v /usr/src/sys/modules/ata/atapicd/atapicd.ko Loaded /usr/src/sys/modules/ata/atapicd/atapicd.ko, id=25 It works, thanks -- Maxim Konovalov