Re: ide pmac breakage

2008-08-01 Thread Benjamin Herrenschmidt
On Fri, 2008-08-01 at 12:54 +0200, Bartlomiej Zolnierkiewicz wrote: > On Thursday 31 July 2008, Bartlomiej Zolnierkiewicz wrote: > > [...] > > Sorry if my mails were a bit harsh but nobody likes to be pushed around. > > [ It is not like I don't want to add proper hot-plugging support or do test

Re: ide pmac breakage

2008-08-01 Thread Bartlomiej Zolnierkiewicz
On Thursday 31 July 2008, Bartlomiej Zolnierkiewicz wrote: [...] Sorry if my mails were a bit harsh but nobody likes to be pushed around. [ It is not like I don't want to add proper hot-plugging support or do test on more hardware but my time schedule is already tight enough and there are s

Re: ide pmac breakage

2008-07-31 Thread Bartlomiej Zolnierkiewicz
On Thursday 31 July 2008, Benjamin Herrenschmidt wrote: > > > Is it actually caused by additional reference counting on drive->gendev? > > IOW if you reverse the patch below instead of applying the previous fix > > do things work OK again? > > > > > Note that there shouldn't be anything fundament

Re: ide pmac breakage

2008-07-31 Thread Benjamin Herrenschmidt
On Thu, 2008-07-31 at 10:13 +0100, Alan Cox wrote: > > I could make the media-bay look like a controller hotplug if it was > > going to make things easier... > > I'm not sure it will. It may do nowdays, but the older IDE code > historically was fairly broken for both cases except in 2.4. Also faki

Re: ide pmac breakage

2008-07-31 Thread Alan Cox
> I could make the media-bay look like a controller hotplug if it was > going to make things easier... I'm not sure it will. It may do nowdays, but the older IDE code historically was fairly broken for both cases except in 2.4. Also faking it as controller hotplug is the wrong path for libata whic

Re: ide pmac breakage

2008-07-31 Thread Benjamin Herrenschmidt
On Thu, 2008-07-31 at 09:49 +0100, Alan Cox wrote: > > There seems to be some confusion between warm-plugging of IDE devices > > and hot-plugging of IDE devices. > > > > > not a single piece of HW to exercise those code path ? I don't ask you > > > to get a powermac with a media-bay, but ide_cs se

Re: ide pmac breakage

2008-07-31 Thread Alan Cox
> There seems to be some confusion between warm-plugging of IDE devices > and hot-plugging of IDE devices. > > > not a single piece of HW to exercise those code path ? I don't ask you > > to get a powermac with a media-bay, but ide_cs seems to be a pretty > > important one that's part of what the

Re: ide pmac breakage

2008-07-30 Thread Benjamin Herrenschmidt
> Is it actually caused by additional reference counting on drive->gendev? > IOW if you reverse the patch below instead of applying the previous fix > do things work OK again? > > > Note that there shouldn't be anything fundamentally different from > > ide-pmac here vs. something like pcmcia IDE

Re: ide pmac breakage

2008-07-30 Thread Bartlomiej Zolnierkiewicz
On Thursday 31 July 2008, Benjamin Herrenschmidt wrote: > On Thu, 2008-07-31 at 02:48 +0200, Bartlomiej Zolnierkiewicz wrote: > > There seems to be some confusion between warm-plugging of IDE devices > > and hot-plugging of IDE devices. > > > > > not a single piece of HW to exercise those code pat

Re: ide pmac breakage

2008-07-30 Thread Benjamin Herrenschmidt
On Thu, 2008-07-31 at 02:48 +0200, Bartlomiej Zolnierkiewicz wrote: > There seems to be some confusion between warm-plugging of IDE devices > and hot-plugging of IDE devices. > > > not a single piece of HW to exercise those code path ? I don't ask you > > to get a powermac with a media-bay, but id

Re: ide pmac breakage

2008-07-30 Thread Bartlomiej Zolnierkiewicz
On Thursday 31 July 2008, Benjamin Herrenschmidt wrote: > On Wed, 2008-07-30 at 21:11 +0200, Bartlomiej Zolnierkiewicz wrote: > > > > > Note that there shouldn't be anything fundamentally different from > > > ide-pmac here vs. something like pcmcia IDE cards... do you have one > > of > > > these t

Re: ide pmac breakage

2008-07-30 Thread Benjamin Herrenschmidt
On Wed, 2008-07-30 at 21:11 +0200, Bartlomiej Zolnierkiewicz wrote: > > > Note that there shouldn't be anything fundamentally different from > > ide-pmac here vs. something like pcmcia IDE cards... do you have one > of > > these to test with ? > > Nope and I really don't intend to have one. I co

Re: ide pmac breakage

2008-07-30 Thread Bartlomiej Zolnierkiewicz
On Wednesday 30 July 2008, Benjamin Herrenschmidt wrote: > On Tue, 2008-07-29 at 21:26 +0200, Bartlomiej Zolnierkiewicz wrote: > > > I WON!!! > > Only half... Heh, I wasn't talking about fixing the issue... (hint: look up the author of the bad commit). > It goes further and then blows up again.

Re: ide pmac breakage

2008-07-29 Thread Benjamin Herrenschmidt
On Tue, 2008-07-29 at 21:26 +0200, Bartlomiej Zolnierkiewicz wrote: > I WON!!! Only half... It goes further and then blows up again. First problem is, this unregister interface doesn't quite convey the fact that the HW is gone and the IDE code seems to take it's sweet time figuring it out after

Re: ide pmac breakage

2008-07-29 Thread FUJITA Tomonori
On Tue, 29 Jul 2008 21:26:11 +0200 Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]> wrote: > On Tuesday 29 July 2008, Bartlomiej Zolnierkiewicz wrote: > > On Tuesday 29 July 2008, Bartlomiej Zolnierkiewicz wrote: > > > On Tuesday 29 July 2008, Benjamin Herrenschmidt wrote: > > > > On Tue, 2008-07-29

Re: ide pmac breakage

2008-07-29 Thread Benjamin Herrenschmidt
> I WON!!! Heh, great :-) I'll give you patch a try, thanks ! Cheers, Ben. > From: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]> > Subject: [PATCH] ide: fix regression caused by ide_device_{get,put}() addition > > On Monday 28 July 2008, Benjamin Herrenschmidt wrote: > > [...] > > > Vector:

Re: ide pmac breakage

2008-07-29 Thread Bartlomiej Zolnierkiewicz
On Tuesday 29 July 2008, Bartlomiej Zolnierkiewicz wrote: > On Tuesday 29 July 2008, Bartlomiej Zolnierkiewicz wrote: > > On Tuesday 29 July 2008, Benjamin Herrenschmidt wrote: > > > On Tue, 2008-07-29 at 13:41 +0200, Bartlomiej Zolnierkiewicz wrote: > > > > > Well, all I do is call into Bart's new

Re: ide pmac breakage

2008-07-29 Thread Bartlomiej Zolnierkiewicz
On Tuesday 29 July 2008, Bartlomiej Zolnierkiewicz wrote: > On Tuesday 29 July 2008, Benjamin Herrenschmidt wrote: > > On Tue, 2008-07-29 at 13:41 +0200, Bartlomiej Zolnierkiewicz wrote: > > > > Well, all I do is call into Bart's new helpers to scan for or > > > unregister > > > > devices ... > > >

Re: ide pmac breakage

2008-07-29 Thread Bartlomiej Zolnierkiewicz
On Tuesday 29 July 2008, Benjamin Herrenschmidt wrote: > On Tue, 2008-07-29 at 13:41 +0200, Bartlomiej Zolnierkiewicz wrote: > > > Well, all I do is call into Bart's new helpers to scan for or > > unregister > > > devices ... > > > > The switch to these helpers happened _before_ 2.6.26 and it shou

Re: ide pmac breakage

2008-07-29 Thread Benjamin Herrenschmidt
On Tue, 2008-07-29 at 13:41 +0200, Bartlomiej Zolnierkiewicz wrote: > > Well, all I do is call into Bart's new helpers to scan for or > unregister > > devices ... > > The switch to these helpers happened _before_ 2.6.26 and it shouldn't > bring > such behavior change (ditto for new IDE host additi

Re: ide pmac breakage

2008-07-29 Thread Bartlomiej Zolnierkiewicz
On Tuesday 29 July 2008, Benjamin Herrenschmidt wrote: > On Tue, 2008-07-29 at 14:17 +0900, FUJITA Tomonori wrote: > > If q->elevator is NULL, the media-bay code might mess up the ref > > counting of the request queue... > > Well, all I do is call into Bart's new helpers to scan for or unregister

Re: ide pmac breakage

2008-07-28 Thread FUJITA Tomonori
On Mon, 28 Jul 2008 16:31:56 +0200 Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]> wrote: > > > However, the machine crashes when removing the media-bay CD-ROM drive. > > > > > > Crash appears to be a NULL deref, possibly in elv_may_queue() though > > > I don't have a clean backtrace yet, working o

Re: ide pmac breakage

2008-07-28 Thread Benjamin Herrenschmidt
On Tue, 2008-07-29 at 14:17 +0900, FUJITA Tomonori wrote: > If q->elevator is NULL, the media-bay code might mess up the ref > counting of the request queue... Well, all I do is call into Bart's new helpers to scan for or unregister devices ... Ben. _

Re: ide pmac breakage

2008-07-28 Thread Bartlomiej Zolnierkiewicz
On Monday 28 July 2008, Benjamin Herrenschmidt wrote: > On Mon, 2008-07-28 at 11:29 +1000, Benjamin Herrenschmidt wrote: > > The current ide-pmac upstream is broken. It calls > > media_bay_set_ide_infos() with an uninitialized "hwif" argument. > > > > It's not a trivial mistake, there's a chicken-

Re: ide pmac breakage

2008-07-27 Thread Benjamin Herrenschmidt
On Mon, 2008-07-28 at 11:29 +1000, Benjamin Herrenschmidt wrote: > The current ide-pmac upstream is broken. It calls > media_bay_set_ide_infos() with an uninitialized "hwif" argument. > > It's not a trivial mistake, there's a chicken-and-egg problem in the > init code in there. > > I've locally f