Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:52676 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932320AbcE0Rxs (ORCPT ); Fri, 27 May 2016 13:53:48 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Subject: Re: rtlwifi: Fix scheduling while atomic error from commit 49f86ec21c01 From: Kalle Valo In-Reply-To: <1463849435-2293-1-git-send-email-Larry.Finger@lwfinger.net> To: Larry Finger Cc: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, Larry Finger , James Feeney , Stable Message-Id: <20160527175347.500B56126B@smtp.codeaurora.org> (sfid-20160527_195350_414586_4A2652D3) Date: Fri, 27 May 2016 17:53:47 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org List-ID: Larry Finger wrote: > Commit 49f86ec21c01 ("rtlwifi: Change long delays to sleeps") was correct > for most cases; however, driver rtl8192ce calls the affected routines while > in atomic context. The kernel bug output is as follows: > > BUG: scheduling while atomic: wpa_supplicant/627/0x00000002 > [...] > [] __schedule+0x899/0xad0 > [] schedule+0x3c/0x90 > [] schedule_hrtimeout_range_clock+0xa2/0x120 > [] ? hrtimer_init+0x120/0x120 > [] ? schedule_hrtimeout_range_clock+0x96/0x120 > [] schedule_hrtimeout_range+0x13/0x20 > [] usleep_range+0x4f/0x70 > [] rtl_rfreg_delay+0x38/0x50 [rtlwifi] > [] rtl92c_phy_config_rf_with_headerfile+0xc7/0xe0 [rtl8192ce] > > To fix this bug, three of the changes from delay to sleep are reverted. > Unfortunately, one of the changes involves a delay of 50 msec. The calling > code will be modified so that this long delay can be avoided; however, > this change is being pushed now to fix the problem in kernel 4.6.0. > > Fixes: 49f86ec21c01 ("rtlwifi: Change long delays to sleeps") > Reported-by: James Feeney > Signed-off-by: Larry Finger > Cc: James Feeney > Cc: Stable [4.6+] Thanks, 1 patch applied to wireless-drivers.git: de26859dcf36 rtlwifi: Fix scheduling while atomic error from commit 49f86ec21c01 -- Sent by pwcli https://patchwork.kernel.org/patch/9130617/