Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757268Ab0HKU37 (ORCPT ); Wed, 11 Aug 2010 16:29:59 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:32974 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756438Ab0HKU35 (ORCPT ); Wed, 11 Aug 2010 16:29:57 -0400 Date: Wed, 11 Aug 2010 16:22:23 -0400 From: "John W. Linville" To: Christoph Fritz Cc: James Bottomley , Zhu Yi , "David S. Miller" , Joe Perches , "Rafael J. Wysocki" , linux-wireless , netdev@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/2] ipw2100: register pm_qos request on hardware activation Message-ID: <20100811202223.GA30437@tuxdriver.com> References: <1281555063.4367.1.camel@lovely.krouter> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1281555063.4367.1.camel@lovely.krouter> User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2742 Lines: 61 On Wed, Aug 11, 2010 at 09:31:03PM +0200, Christoph Fritz wrote: > Function pm_qos_add_request() has to be called before first > pm_qos_update_request(). This was found out due to a change in pm_qos > (commit 82f682514a5df89ffb3890627eebf0897b7a84ec "pm_qos: Get rid of > the allocation in pm_qos_add_request()"). The warning call trace is below. > > This patch is similar to c128ec29208d410568469bd8bb373b4cdc10912a "e1000e: > register pm_qos request on hardware activation". > > WARNING: at kernel/pm_qos_params.c:264 pm_qos_update_request+0x5e/0x70() > pm_qos_update_request() called for unknown object > Call Trace: > [] ? warn_slowpath_common+0x78/0xb0 > [] ? pm_qos_update_request+0x5e/0x70 > [] ? pm_qos_update_request+0x5e/0x70 > [] ? warn_slowpath_fmt+0x33/0x40 > [] ? pm_qos_update_request+0x5e/0x70 > [] ? ipw2100_up+0x3f/0xf10 [ipw2100] > [] ? vsnprintf+0xc9/0x530 > [] ? ipw2100_net_init+0x2c/0x1c0 [ipw2100] > [] ? register_netdevice+0x7d/0x3c0 > [] ? ipw2100_irq_tasklet+0x910/0x9a0 [ipw2100] > [] ? register_netdev+0x2f/0x40 > [] ? ipw2100_pci_init_one+0xd21/0x1060 [ipw2100] > [] ? local_pci_probe+0xb/0x10 > [] ? pci_device_probe+0x69/0x90 > [] ? driver_probe_device+0x74/0x180 > [] ? sysfs_create_dir+0x6a/0xb0 > [] ? __driver_attach+0x79/0x80 > [] ? __driver_attach+0x0/0x80 > [] ? bus_for_each_dev+0x52/0x80 > [] ? driver_attach+0x16/0x20 > [] ? __driver_attach+0x0/0x80 > [] ? bus_add_driver+0x17f/0x250 > [] ? pci_device_shutdown+0x0/0x20 > [] ? pci_device_remove+0x0/0x40 > [] ? driver_register+0x63/0x120 > [] ? __pci_register_driver+0x36/0xa0 > [] ? ipw2100_init+0x48/0x67 [ipw2100] > [] ? do_one_initcall+0x32/0x170 > [] ? __vunmap+0xb8/0xf0 > [] ? ipw2100_init+0x0/0x67 [ipw2100] > [] ? sys_init_module+0x161/0x1000 > [] ? sys_close+0x67/0xe0 > [] ? syscall_call+0x7/0xb > > Signed-off-by: Christoph Fritz Thanks for identifying this problem! However, I think there is a simpler fix. I'll include it in a follow-up email. Could you verify that it also addresses this issue? John -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready. -- 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/