Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1208304 > unrolled thread
| Started by | "Fu, Zhonghui" <zhonghui.fu@linux.intel.com> |
|---|---|
| First post | 2015-08-17 03:50 +0200 |
| Last post | 2015-08-17 10:50 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] net/wireless: enable wiphy device to suspend/resume asynchronously "Fu, Zhonghui" <zhonghui.fu@linux.intel.com> - 2015-08-17 03:50 +0200
Re: [PATCH] net/wireless: enable wiphy device to suspend/resume asynchronously Johannes Berg <johannes@sipsolutions.net> - 2015-08-17 09:30 +0200
Re: [PATCH] net/wireless: enable wiphy device to suspend/resume asynchronously Arend van Spriel <arend@broadcom.com> - 2015-08-17 10:50 +0200
| From | "Fu, Zhonghui" <zhonghui.fu@linux.intel.com> |
|---|---|
| Date | 2015-08-17 03:50 +0200 |
| Subject | Re: [PATCH] net/wireless: enable wiphy device to suspend/resume asynchronously |
| Message-ID | <pYhIJ-YX-11@gated-at.bofh.it> |
On 2015/7/30 13:55, Emmanuel Grumbach wrote: > On Thu, Jul 30, 2015 at 8:18 AM, Fu, Zhonghui > <zhonghui.fu@linux.intel.com> wrote: >> Enable wiphy device to suspend/resume asynchronously. This can improve >> system suspend/resume speed. >> > How will that impact the timing with respect to the suspend call > coming from the bus? > I think that a few drivers rely on the suspend call of the wiphy > device happening before the suspend call to the bus device. > Not sure though. Sorry for late reply. The suspend/resume timing of wiphy device and related devices will be ensured by their parent/child relationship. So, enabling wiphy device to suspend/resume asynchronously does not change any dependency. It can only take advantage of multicore and improve system suspend/resume speed. Thanks, Zhonghui > >> Signed-off-by: Zhonghui Fu <zhonghui.fu@linux.intel.com> >> --- >> net/wireless/core.c | 1 + >> 1 files changed, 1 insertions(+), 0 deletions(-) >> >> diff --git a/net/wireless/core.c b/net/wireless/core.c >> index 2a0bbd2..bc5e68f 100644 >> --- a/net/wireless/core.c >> +++ b/net/wireless/core.c >> @@ -416,6 +416,7 @@ use_default_name: >> device_initialize(&rdev->wiphy.dev); >> rdev->wiphy.dev.class = &ieee80211_class; >> rdev->wiphy.dev.platform_data = rdev; >> + device_enable_async_suspend(&rdev->wiphy.dev); >> >> INIT_LIST_HEAD(&rdev->destroy_list); >> spin_lock_init(&rdev->destroy_list_lock); >> -- 1.7.1 >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- 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/
[toc] | [next] | [standalone]
| From | Johannes Berg <johannes@sipsolutions.net> |
|---|---|
| Date | 2015-08-17 09:30 +0200 |
| Subject | Re: [PATCH] net/wireless: enable wiphy device to suspend/resume asynchronously |
| Message-ID | <pYn1L-tt-9@gated-at.bofh.it> |
| In reply to | #1208304 |
On Mon, 2015-08-17 at 09:48 +0800, Fu, Zhonghui wrote: > > The suspend/resume timing of wiphy device and related devices will be > ensured by their parent/child relationship. So, enabling wiphy device > to suspend/resume asynchronously does not change any dependency. It > can only take advantage of multicore and improve system > suspend/resume speed. > You're going to have to explain that to me, because I don't see that. All I see is that when looking at a device, if async is possible, it gets added to an async work, and if async is not possible then it gets done immediately. Even putting aside the question of whether or not async is ordered or not (I don't know), if the wiphy is async and the PCI (or other bus) device isn't, then it seems they could get handled out of order, no? Or is there some magic code somewhere that I'm missing that explicitly waits for the async of the parent/child relationship? johannes -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Arend van Spriel <arend@broadcom.com> |
|---|---|
| Date | 2015-08-17 10:50 +0200 |
| Message-ID | <pYohd-2c4-27@gated-at.bofh.it> |
| In reply to | #1208425 |
+ Rafael On 08/17/2015 09:29 AM, Johannes Berg wrote: > On Mon, 2015-08-17 at 09:48 +0800, Fu, Zhonghui wrote: >> >> The suspend/resume timing of wiphy device and related devices will be >> ensured by their parent/child relationship. So, enabling wiphy device >> to suspend/resume asynchronously does not change any dependency. It >> can only take advantage of multicore and improve system >> suspend/resume speed. >> > > You're going to have to explain that to me, because I don't see that. > All I see is that when looking at a device, if async is possible, it > gets added to an async work, and if async is not possible then it gets > done immediately. Even putting aside the question of whether or not > async is ordered or not (I don't know), if the wiphy is async and the > PCI (or other bus) device isn't, then it seems they could get handled > out of order, no? Or is there some magic code somewhere that I'm > missing that explicitly waits for the async of the parent/child > relationship? This patch got me worried as well. Can't find the magic either. Maybe Rafael can give some hints here. Regards, Arend > johannes > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- 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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web