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 08AE3ECAAD3 for ; Wed, 31 Aug 2022 07:05:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7154441833; Wed, 31 Aug 2022 07:05:54 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7154441833 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1661929554; bh=BL8ZXcpatqp/kp4eYlStgt4znpAgAkaOoNg9o3mfApU=; h=Date:From:To:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=ppv9gALQcbYbAH2ADMiZG0wciY3xTr4JjojdQT1AZMU6WcSCKCXbY3ENHUN4Jsmob QzOcYe9TRUPEVskb7TMl7V1Nh+j+v945GQjkNgTA1MwM+7WmXDgquAuGiChWn7Jl6v BoOoapC/QHbwTbsiKn+3atqdF2mRdo/dvdERoyOJ2rxmgfIE5fQ4g8epFeXJaXtJKB uQsHgcRIFOUhi5eyYK5DxZIS0jVAdTQTohYU7OyBu7nBOQaGXvolxM1onMtczpExEe 9bonmQdXYv3AX/xIVBCmhCI2vSRvA0w5OtN0K3/YDNsC7fymFkSlp5Bqwhpy2L+VZU 9ZM3Qgc71LEeA== 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 V4WZfTGRkvpC; Wed, 31 Aug 2022 07:05:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 15B7F4182E; Wed, 31 Aug 2022 07:05:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 15B7F4182E Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 4EA2E1BF405 for ; Wed, 31 Aug 2022 07:05:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 2196E40354 for ; Wed, 31 Aug 2022 07:05:51 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 2196E40354 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 YnQ-fntuWI8e for ; Wed, 31 Aug 2022 07:05:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 623D4400AF Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id 623D4400AF for ; Wed, 31 Aug 2022 07:05:50 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-201-dFBVqmFwO4yY4rhIp3n_XA-1; Wed, 31 Aug 2022 03:05:45 -0400 X-MC-Unique: dFBVqmFwO4yY4rhIp3n_XA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1D6063800C30; Wed, 31 Aug 2022 07:05:45 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.40.195.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id E5091C15BB3; Wed, 31 Aug 2022 07:05:41 +0000 (UTC) Date: Wed, 31 Aug 2022 09:05:40 +0200 From: Ivan Vecera To: "Laba, SlawomirX" Message-ID: <20220831090540.53e324af@p1.luc.cera.cz> In-Reply-To: References: <20220830081627.1205872-1-ivecera@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661929549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mg8FDivTjK0Fno47rCTZSDZ/G71sgK45gh5D1Ko2fqs=; b=A+ukfoAf+0xKVelM1nOZ81FQaOW4bfdudAzE6j3jpK6gdxEQH3kFBn34KayU6+XSMuA/bL lYgjhUANw4EgI4ho4IJvtttSFLmTsvKxadBFwUIO2ZDC1OEuEUyUelRBeaFEal90kDsTme m9LLEaurH4iQ9c8D16qu7kWUZgCItdk= X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=A+ukfoAf Subject: Re: [Intel-wired-lan] [PATCH net v2] iavf: Detach device during reset task 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: Paolo Abeni , Eric Dumazet , "netdev@vger.kernel.org" , open list , "Piotrowski, Patryk" , Jeff Kirsher , "moderated list:INTEL ETHERNET DRIVERS" , Jakub Kicinski , Vitaly Grinberg , "David S. Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Tue, 30 Aug 2022 20:49:54 +0000 "Laba, SlawomirX" wrote: > Ivan, what do you think about this flow [1]? Shouldn't it also goto reset_finish label? > > if (i == IAVF_RESET_WAIT_COMPLETE_COUNT) { > dev_err(&adapter->pdev->dev, "Reset never finished (%x)\n", > reg_val); > iavf_disable_vf(adapter); > mutex_unlock(&adapter->client_lock); > mutex_unlock(&adapter->crit_lock); > return; /* Do not attempt to reinit. It's dead, Jim. */ > } > > I am concerned that if the reset never finishes and iavf goes into disabled state, and then for example if driver reload operation is performed, bad things can happen. I think we should not re-attach device back as the VF is disabled. Detached device causes that userspace (user) won't be able to configure associated interface that is correct. Driver reload won't cause anything special in this situation because during module removal the interface is unregistered. Thanks, Ivan _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan