NetBSD Problem Report #36029
From svs@grep.ru Sun Mar 18 13:50:12 2007
Return-Path: <svs@grep.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id EA86763B8C3
for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Mar 2007 13:50:11 +0000 (UTC)
Message-Id: <E1HSvlR-0005U9-Mb@mononoke.nyo>
Date: Sun, 18 Mar 2007 16:49:37 +0300
From: svs+pr@grep.ru
To: gnats-bugs@NetBSD.org
Subject: dvd+rw-booktype from dvd+rw-tools causes Pioneer DVR-107D to lock up
X-Send-Pr-Version: 3.95
>Number: 36029
>Category: pkg
>Synopsis: dvd+rw-booktype from dvd+rw-tools causes Pioneer DVR-107D to lock up
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 18 13:55:00 +0000 2007
>Closed-Date: Sun Apr 14 19:51:54 +0000 2013
>Last-Modified: Sun Apr 14 19:51:54 +0000 2013
>Originator: "Sergey Svishchev" <svs+pr@grep.ru>
>Release: NetBSD 4.0_BETA2
>Organization:
>Environment:
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801EB IDE Controller (ICH5) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus2 at piixide0 channel 0
atapibus0 at atabus2: 2 targets
cd1 at atapibus0 drive 1: <PIONEER DVD-RW DVR-107D, DCDL321903WL, 1.16> cdrom removable
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd1(piixide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
>Description:
Pioneer drives do not support bitsetting (which dvd+rw-booktype is all
about), but at least one of them locks up itself (and takes thes bus
with it) when dvd+rw-booktype sends it a Benq-specific command. Machine
is nearly unusable for minutes after this -- kernel tries to reset ATAPI
bus and times out every time.
>How-To-Repeat:
>Fix:
--- dvd+rw-booktype.cpp.orig 2006-06-24 09:21:48.000000000 +0000
+++ dvd+rw-booktype.cpp
@@ -669,7 +669,7 @@ int main(int argc,char *argv[])
unsigned char buf[128];
int book=0,action=0;
int plusgeneration=0,dashcapable=0,ramcapable=0;
- int i,err,hp=0,plx=0;
+ int i,err,hp=0,plx=0,pioneer=0;
for(dev=NULL,i=1;i<argc;i++)
{ if (!strncmp (argv[i],"-dvd-rom",7)) book=0x01;
@@ -719,6 +719,7 @@ int main(int argc,char *argv[])
hp = !memcmp (buf+8,"HP ",8);
hp = hp || !memcmp (buf+8,"_NEC ",8);
plx = !memcmp (buf+8,"PLEXTOR ",8);
+ pioneer = !memcmp (buf+8,"PIONEER ",8);
cmd[0]=0x46; // GET CONFIGURATION
cmd[1]=2;
@@ -811,6 +812,8 @@ int main(int argc,char *argv[])
benq:
// See if it's BENQ design...
+ // Pioneer DVR-107D locks up itself and ATAPI bus too
+ if (!pioneer) {
cmd[0]=0xFD;
cmd[1]=0xF1;
cmd[2]='B';
@@ -820,6 +823,7 @@ int main(int argc,char *argv[])
cmd[11]=0;
if (!(err=cmd.transport()))
return benq (cmd,action,book,plusgeneration);
+ }
}
fprintf (stderr,"This program targets units of "
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->dan
Responsible-Changed-By: snj@netbsd.org
Responsible-Changed-When: Mon, 19 Mar 2007 03:41:06 +0000
Responsible-Changed-Why:
Over to maintainer.
From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/36029
Date: Thu, 12 Feb 2009 23:12:18 +0300
I don't have this hardware any more (and it could have been broken, anyway), but
vendor-specific commands should not be sent to another vendor's hardware, IMO.
--
Sergey Svishchev
Responsible-Changed-From-To: dan->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 15 Apr 2012 21:37:44 +0000
Responsible-Changed-Why:
Back to role account, dan left
State-Changed-From-To: open->closed
State-Changed-By: shattered@NetBSD.org
State-Changed-When: Sun, 14 Apr 2013 19:51:54 +0000
State-Changed-Why:
I don't care about this bug enough.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.