From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 38643679FF for ; Mon, 22 May 2006 07:46:53 +1000 (EST) Subject: Re: [PATCH] powerpc: Fix ide-pmac sysfs entry From: Benjamin Herrenschmidt To: Gabriel Paubert In-Reply-To: <20060521213056.GA25721@iram.es> References: <1147676318.21291.105.camel@localhost.localdomain> <20060515000810.487b834e.akpm@osdl.org> <1147677830.21291.114.camel@localhost.localdomain> <20060515083847.GA5229@iram.es> <1147683156.21291.118.camel@localhost.localdomain> <20060521213056.GA25721@iram.es> Content-Type: text/plain Date: Mon, 22 May 2006 07:46:27 +1000 Message-Id: <1148247988.13249.64.camel@localhost.localdomain> Mime-Version: 1.0 Cc: Andrew Morton , Pete Popov , B.Zolnierkiewicz@elka.pw.edu.pl, linuxppc-dev@ozlabs.org, paulus@samba.org, Alan Cox List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2006-05-21 at 23:30 +0200, Gabriel Paubert wrote: > On Mon, May 15, 2006 at 06:52:36PM +1000, Benjamin Herrenschmidt wrote: > > > > > Actually I have one of these, and regularly use it and update > > > the kernel to the latest git once or twice per month, but I > > > typically have two batteries and have not swapped in the > > > media bay under Linux for a long time. > > > > > > If you are interested, I could test the patch when I find > > > some time (not today: my 8 year old son went to the hospital > > > for an emergency last Thursday, he is cured now and should > > > come out today). > > > > Any test is welcome, glad to know your son is well ! > > The one liner works here, I can no more solidly hang > the machine. There is still a bunch of error messages > on drive removal though: Yes, I noticed those. Looks like the IDE driver is trying to much around with the drive when unregistered. In our case, it's not a very good idea as we unregister it after we detect it's been physically removed :) Seems harmless so far though. Ben. > mediabay0: switching to 7 > mediabay0: powering down > media bay 0 is empty > Unregistering mb 0 ide, index:2 > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: DMA disabled > hde: ATAPI reset complete > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: ATAPI reset complete > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: ATAPI reset complete > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > hde: ATAPI reset complete > hde: status error: status=0x00 { } > ide: failed opcode was: unknown > mediabay0: end of power down > > On insertion there are also a few messages > but they seem normal: > > mediabay0: switching to 3 > mediabay0: powering up > mediabay0: enabling (kind:3) > mediabay0: waiting reset (kind:3) > mediabay0: waiting IDE reset (kind:3) > mediabay0: waiting IDE ready (kind:3) > mediabay 0, registering IDE... > Probing IDE interface ide2... > hde: LG DVD-ROM DRN-8080B, ATAPI CD/DVD-ROM drive > hde: Enabling MultiWord DMA 2 > ide2 at 0xf1022000-0xf1022007,0xf1022160 on irq 20 > hde: ATAPI 24X DVD-ROM drive, 512kB Cache, DMA > media-bay 0 is ide2 > mediabay 0 IDE ready > > Regards, > Gabriel