Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269294AbUJKWaR (ORCPT ); Mon, 11 Oct 2004 18:30:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269292AbUJKWaR (ORCPT ); Mon, 11 Oct 2004 18:30:17 -0400 Received: from gate.crashing.org ([63.228.1.57]:58050 "EHLO gate.crashing.org") by vger.kernel.org with ESMTP id S269294AbUJKW2j (ORCPT ); Mon, 11 Oct 2004 18:28:39 -0400 Subject: Re: Totally broken PCI PM calls From: Benjamin Herrenschmidt To: David Brownell Cc: Paul Mackerras , Linus Torvalds , Linux Kernel list , Andrew Morton , Pavel Machek In-Reply-To: <200410110947.38730.david-b@pacbell.net> References: <1097455528.25489.9.camel@gaston> <16746.2820.352047.970214@cargo.ozlabs.ibm.com> <200410110947.38730.david-b@pacbell.net> Content-Type: text/plain Message-Id: <1097533687.13642.30.camel@gaston> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 12 Oct 2004 08:28:07 +1000 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1463 Lines: 35 > A "hang" sounds like the pmcore bug I reported about a year ago... > > It's rather foolish of the PM core to use the same semaphore to > protect system-wide suspend/resume operations that it uses to > for mutual exclusion on the device add/remove (which suspend > and resume callbacks did happily in 2.4) ... since it's routine to > unplug peripherals on suspended systems! Definitely. One thing is: how to do it instead ? I've been thinking about it for a while and am still wondering... do we want a list mecanism with add/remove notifiers so the PM walk can keep in sync with devices added/removed ? or should addition/removal be simply postponed until the end of the sleep/wakeup process (I tend to vote for that). > Alternatively, if you're combininging USB_SUSPEND with any > system-wide suspend operation, you're asking for trouble; > the PM core is just not ready for that. (In fact I've wondered > if maybe 2.6.9 shouldn't discourage that combination more > actively...) > > But a keyboard-specific issue might be improved with the > HID patch I posted last week, teaching that driver how to > handle suspend() and resume() callbacks. > > - Dave -- Benjamin Herrenschmidt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/