From owner-freebsd-current@FreeBSD.ORG Fri Aug 12 07:15:31 2005 Return-Path: X-Original-To: current@freebsd.org 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 E053816A41F for ; Fri, 12 Aug 2005 07:15:31 +0000 (GMT) (envelope-from vchekan@cox.net) Received: from fed1rmmtao07.cox.net (fed1rmmtao07.cox.net [68.230.241.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8601143D48 for ; Fri, 12 Aug 2005 07:15:31 +0000 (GMT) (envelope-from vchekan@cox.net) Received: from [192.168.0.10] (really [68.111.218.37]) by fed1rmmtao07.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050812071531.UQHT1367.fed1rmmtao07.cox.net@[192.168.0.10]> for ; Fri, 12 Aug 2005 03:15:31 -0400 Message-ID: <42FBEA3A.5090809@cox.net> Date: Fri, 12 Aug 2005 00:15:54 +0000 From: Vadim Chekan User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050808) X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [Patch] Serial ATAPI is not recognized 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: Fri, 12 Aug 2005 07:15:32 -0000 Hi all! I've bought a SATA dvd burner, Plextor PX-712-SA and found that FreeBSD 6 does not recognize it. But freebsd-5 does. After some time spent on investigation I found that it needs reset commad be issued before get ATAPI_MAGIC_LSB and ATAPI_MAGIC_MSB. In ata-chipset.c:ata_sata_connect() I put ATA_IDX_OUTB(ch, ATA_ALTSTAT, ATA_A_IDS | ATA_A_RESET); ata_udelay(10000); before if ((ATA_IDX_INB(ch, ATA_CYL_LSB) == ATAPI_MAGIC_LSB) && and it works now. At least I checked burncd in CDRW mode. It hungs or gives error at the end but produces valid CD. Thanks, Vadim Chekan.