Return-path: Received: from ey-out-2122.google.com ([74.125.78.27]:52171 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753022AbYJ2Sto (ORCPT ); Wed, 29 Oct 2008 14:49:44 -0400 Received: by ey-out-2122.google.com with SMTP id 6so67770eyi.37 for ; Wed, 29 Oct 2008 11:49:42 -0700 (PDT) Message-ID: <4908B03C.400@gmail.com> (sfid-20081029_194949_039891_19F76BB6) Date: Wed, 29 Oct 2008 18:49:32 +0000 MIME-Version: 1.0 To: Andrey Borzenkov CC: "Rafael J. Wysocki" , orinoco-devel@lists.sourceforge.net, linux-pcmcia@lists.infradead.org, linux-wireless@vger.kernel.org, Dominik Brodowski Subject: Re: [Orinoco-devel] 2.6.28-rc2: new PCMCIA device instance after resume - orinoco can't download firmware References: <200810282219.51492.arvidjaar@mail.ru> <200810290643.54707.arvidjaar@mail.ru> <200810291318.05373.rjw@sisk.pl> <200810291819.20848.arvidjaar@mail.ru> In-Reply-To: <200810291819.20848.arvidjaar@mail.ru> Content-Type: text/plain; charset=ISO-8859-1 From: Dave Sender: linux-wireless-owner@vger.kernel.org List-ID: Andrey Borzenkov wrote: > On Wednesday 29 October 2008, Rafael J. Wysocki wrote: >>> Do you have any idea what could it be? Original message is here: >>> http://marc.info/?l=linux-wireless&m=122522165719760&w=2 >> This probably is a result of the fact that we don't include firmware blobs >> into modular drivers any more. Please try to compile your driver directly >> into the kernel and enable CONFIG_FIRMWARE_IN_KERNEL. >> >> If this helps, we'll know what the problem is. >> > > Ehh ... you miss the point. The problem is NOT missing firmware (I have > already been running with external firmware just fine in 2.6.27). The > problem is that during resume instead of simply resume *existing* > device/driver instance PCMCIA suddenly decides to re-discover the *same* > device yet another again. > > bisecting will > take ages here. I need some advice which options to turn on. I attempted to bisect, but ran into problems. As an alternative, I added a WARN_ON(err) immediately after the request_firmware call to get a stack dump: orinoco_cs 0.0: firmware: requesting agere_sta_fw.bin ------------[ cut here ]------------ WARNING: at /usr/src/linux-current/wireless-testing/drivers/net/wireless/orinoco.c:495 orinoco_dl_firmware+0xbb/0x1ce [orinoco]() Modules linked in: orinoco_cs orinoco hermes_dld hermes michael_mic aty128fb snd_maestro3 [last unloaded: hermes] Pid: 22157, comm: bash Not tainted 2.6.28-rc2-wl #41 Call Trace: [] warn_on_slowpath+0x3e/0x57 [] release_sysfs_dirent+0x50/0x60 [] sysfs_addrm_finish+0x73/0x78 [] remove_dir+0x21/0x27 [] fw_dev_release+0x15/0x1d [] kobject_release+0x0/0x5 [] kref_put+0x3f/0x4c [] _request_firmware+0x176/0x1bd [] orinoco_dl_firmware+0xbb/0x1ce [orinoco] [] orinoco_download+0x1f/0x30 [orinoco] [] orinoco_init+0x63/0x4aa [orinoco] [] __dev_get_by_name+0x18/0x72 [] __dev_alloc_name+0x110/0x128 [] netdev_init_queue_locks+0x29/0x41 [] register_netdevice+0x60/0x1d7 [] register_netdev+0x2f/0x3b [] orinoco_cs_config+0xe1/0x174 [orinoco_cs] [] pcmcia_device_probe+0xfa/0x144 [] sysfs_do_create_link+0x3c/0x10f [] __device_attach+0x0/0x5 [] really_probe+0x70/0xea [] driver_probe_device+0x34/0x3c [] bus_for_each_drv+0x38/0x59 [] device_attach+0x4b/0x5e [] __device_attach+0x0/0x5 [] bus_attach_device+0x21/0x4f [] device_add+0x147/0x272 [] pcmcia_device_add+0x1ca/0x253 [] pcmcia_card_add+0x7d/0x8a <----- ?? [] dequeue_task_fair+0xf/0x10 [] __switch_to+0x1d/0x139 [] finish_task_switch+0x22/0x66 [] __sched_text_start+0x2d3/0x2ec [] kobject_get+0xf/0x13 [] get_device+0xe/0x14 [] pcmcia_get_socket+0xe/0x7e [] ds_event+0x77/0x94 [] send_event+0x84/0x9d [] socket_resume+0xa1/0xb5 [] pcmcia_socket_dev_resume+0x49/0x70 [] pci_legacy_resume+0x13/0x1a [] pci_pm_resume+0x42/0x46 [] pm_op+0x2b/0x48 [] resume_device+0x2e/0xa8 [] dpm_resume+0x65/0xfc [] device_resume+0x8/0x10 [] suspend_devices_and_enter+0x72/0xa1 [] enter_state+0x62/0x7a [] state_store+0x9f/0xb4 [] state_store+0x0/0xb4 [] kobj_attr_store+0x18/0x1c [] flush_write_buffer+0x38/0x4c [] sysfs_write_file+0x32/0x51 [] vfs_write+0x81/0xf3 [] sys_write+0x3c/0x62 [] sysenter_do_call+0x12/0x21 ---[ end trace 596cca76ed6aae6a ]--- eth1: Cannot find firmware agere_sta_fw.bin ?? Is that supposed to happen on resume? Dave.