Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbdF2Wxb (ORCPT ); Thu, 29 Jun 2017 18:53:31 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:33864 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782AbdF2Wx1 (ORCPT ); Thu, 29 Jun 2017 18:53:27 -0400 Date: Thu, 29 Jun 2017 15:53:23 -0700 From: Jakub Kicinski To: "Luis R. Rodriguez" Cc: nbroeking@me.com, Linus Torvalds , Davidlohr Bueso , Thomas Gleixner , Greg KH , mfuzzey@parkeon.com, "Eric W. Biederman" , Dmitry Torokhov , Daniel Wagner , David Woodhouse , jewalt@lgsinnovations.com, rafal@milecki.pl, Arend Van Spriel , "Rafael J. Wysocki" , "Li, Yi" , atull@kernel.org, Moritz Fischer , Petr Mladek , Johannes Berg , Emmanuel Grumbach , "Coelho, Luciano" , Kalle Valo , Andrew Lutomirski , Kees Cook , "AKASHI, Takahiro" , David Howells , Peter Jones , Hans de Goede , Alan Cox , "Theodore Ts'o" , Michael Kerrisk , Paul Gortmaker , Marcelo Tosatti , Matthew Wilcox , Linux API , linux-fsdevel , Linux Kernel Mailing List , "stable # 4 . 6" Subject: Re: [PATCH 2/4] swait: add the missing killable swaits Message-ID: <20170629155323.06445ddf@cakuba.netronome.com> In-Reply-To: <20170629225003.GU21846@wotan.suse.de> References: <20170629133530.GA14747@kroah.com> <20170629174046.GC3954@linux-80c1.suse> <20170629183339.GD3954@linux-80c1.suse> <20170629194015.GQ21846@wotan.suse.de> <20170629194455.GR21846@wotan.suse.de> <20170629135822.366fd67a@cakuba.netronome.com> <20170629225003.GU21846@wotan.suse.de> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1494 Lines: 31 On Fri, 30 Jun 2017 00:50:03 +0200, Luis R. Rodriguez wrote: > On Thu, Jun 29, 2017 at 01:58:22PM -0700, Jakub Kicinski wrote: > > On Thu, 29 Jun 2017 21:44:55 +0200, Luis R. Rodriguez wrote: > > > > Since this swake_up() --> swake_up_all() reportedly *fixed* the one wake up > > > > issue it would seem this does queue [0]. That said, I don't see any simple tests > > > > tools/testing/selftests/swait but then again we don't have test for regular > > > > waits either... > > > > > > > > [0] https://bugzilla.kernel.org/show_bug.cgi?id=195477 > > > > > > I should also note that the swake_up_all() should have only helped in cases where > > > 3 cards were used, as if only 2 were used that should have been covered by just > > > the swake_up(). Unless of course I hear otherwise by the reporter, Nicolas or > > > from Jakub. > > > > I was hitting this with 2 cards. > > Thanks! > > Thing is I'm not convinced the issue with 2 cards was the swake_up() Vs > swake_up_all() in this case though. Let's recall also the missing wake up on > errors! And the fact that netronome has optional firmware, which naturally can > fail. > > So could the issue with 2 cards instead of the miss of a wake up on error due > to batched requests ? If so then that still would not put blame on the > swake_up()! Sorry, that was during manual tests. I had the driver request the firmware with _nowait() without an uevent, and then after I manually wrote -1 to loading only one would get woken up.