Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7F122C433EF for ; Mon, 4 Jul 2022 12:41:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 1F5CA404BE; Mon, 4 Jul 2022 12:41:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1F5CA404BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1656938484; bh=yVZi2eHPuKPZkdxsT8Cavz97up21qTjYZIy1xOdsTKo=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=y3cz/6ooghcneBiw3DhqqnhvHyCWDl9Fych9iz+JR0Q+XtA4O4mLvrKcrfMIkPqAo urYgEPHsDuDgLVAWOa57WfBbGFK+MFqMiTb3MjTqKHLN0jL8pwXeu9n5QoEZkGRTax pHU9oY+bEtS35y4eqGYF5jv3Mk9n4XFOxV3npEppyP10COGY/QtNTJPn0UYkyU7XkX wq6xcWXAJ23HHrWS5fnjF0JA3k1PqD/vMSpEW+GoMEJ5Nz40uFsyw7n5a1ZriRkcYp fNVdvZ8tKhk+XPKQy8g8CsIlFJ2QeT/sTEfpJUX7JH/Q2aej8f07+D/DAvSQX/wEmQ SOcUWi5FvTRVA== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rOPkYy8r1S33; Mon, 4 Jul 2022 12:41:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id F02544157A; Mon, 4 Jul 2022 12:41:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org F02544157A Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8BF291BF368 for ; Mon, 4 Jul 2022 12:41:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 64FC04049F for ; Mon, 4 Jul 2022 12:41:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 64FC04049F X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FFAZufebkyCp for ; Mon, 4 Jul 2022 12:41:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C12E5401A2 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by smtp2.osuosl.org (Postfix) with ESMTPS id C12E5401A2 for ; Mon, 4 Jul 2022 12:41:20 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="344798277" X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="344798277" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 05:41:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="619280090" Received: from amlin-018-068.igk.intel.com (HELO localhost.igk.intel.com) ([10.102.18.68]) by orsmga008.jf.intel.com with ESMTP; 04 Jul 2022 05:41:19 -0700 From: Mateusz Palczewski To: intel-wired-lan@lists.osuosl.org Date: Mon, 4 Jul 2022 14:41:04 +0200 Message-Id: <20220704124104.1338941-1-mateusz.palczewski@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656938481; x=1688474481; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/o01ut57kxL/C2D2De4NA4cp/k93etxqD0v4R+5KVSs=; b=A1mHk7Q8D23QfSd/rTHk1lprCMLdmy3Lq6XdwcZjN5C71hXbVk3wvO8I 6shwj11WiykSGTmaHVa3ADVqV69rULIiWAhqkds3YZgxFtKC49cEbhE1p FnKRyki2bMxdoW/D2s99gsbmfnCoYD+GDv/nKBzb0B5IdKnuK7kO7wx+C dDjNbUrXfWhfFVvj+KLauI6XBB37QzHPKFY3N2CHNRqH+KQmtSPtFPSR7 0Hs1p50WCGYKhLKp1gTITNbP3/yiyg2yr6vPiUDWXnIRDAJpfvryAP071 WptMhZxadjejUTSF6dg1TIXl0Y4gPwsL6zxE0+XhVth9f60/TWu7I0CZ1 w==; X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=A1mHk7Q8 Subject: [Intel-wired-lan] [PATCH net v1 0/2] iavf: Fix close path on shutdown and remove in iavfr driver. X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Slawomir Laba Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" From: Slawomir Laba iavf_shutdown was implementing an incomplete version of iavf_remove. It misses several calls to the kernel like iavf_free_misc_irq, iavf_reset_interrupt_capability, iounmap that might break the system on reboot or hibernation. Fix a deadlock introduced by commit 974578017fc1 ("iavf: Add waiting so the port is initialized in remove") due to race condition between iavf_shutdown and iavf_remove, where iavf_remove stucks forever in while loop since iavf_shutdown already set __IAVF_REMOVE adapter state. SlawomirX Laba (2): iavf: Fix shutdown pci callback to match the remove one iavf: Fix race condition between iavf_shutdown and iavf_remove drivers/net/ethernet/intel/iavf/iavf_main.c | 58 ++++++++------------- 1 file changed, 21 insertions(+), 37 deletions(-) -- 2.27.0 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan