Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4372934imw; Tue, 19 Jul 2022 05:33:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vNe7+aySJnc6cL2WAA6t2SjJ2LNg4IAal8gO04VaS37h+7r8ztwzysCZ8Gh08PxTm/tBII X-Received: by 2002:a05:6830:638d:b0:616:d898:cb14 with SMTP id ch13-20020a056830638d00b00616d898cb14mr12877898otb.193.1658234018081; Tue, 19 Jul 2022 05:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658234018; cv=none; d=google.com; s=arc-20160816; b=AuCK1FEDcbk42Mz1LpE6AzZM4IdlFaRGw67gnyks/9+I/zhfY1Jr2+4h3GEWcwL4s1 X1DO8KDYtk+tBZnD4ZK+PpM0YlkQ/+9LmTGb1IrDnm6mJ8kOFQd0lSXcsmf5A5IdG5os 92nFpz+AmgJY52/Pl58X+dlqSZhgZdfbneJZzhMc0Xd411ybwdDAcX4JLArxFCCq5FPj Qr2Gb8ebwSs19B6uY8iog2lj1ZTViy9/+325/dcZepYzefWkruzpkbCG0kgBm3IklHhB pc6n4uQFnGsm2qXS2AMs3ZEA4uqnl+cBw5BlBaQuJ8KvKDgCiNMiDiRidEYsZW6hzYg+ PDLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=betvTp2P9Rsm4z8UYg26oe/MG3S0MAVgwKJSKGMonQc=; b=l/UZiqEab6eLmRdLfpPHOFEBRLMR3enfS+8QfICNE5VqVzTC13k1jCppWRoFJAcO9U mzVrh9ugJ4F2eFtheFVnRAoWq66NxsVHkMNPxdtDLKP5rLGTEoyXRJyYIZcRF/VnkP6T RiH5H5dGFLFaXexXxSMBeRIDb2TC4AiH/blHVHZ6wpMLVLzMCbezsZaK7SOqFpxzvDsW rQlQlHEUbWMF7/PbYvVixgudfVPHwdqCpA6ZCpz4aQQsNudwPmz9o6vWsT89PISnQS2g EsFbzb715UzGYsvm5MOnS52GeS+azVS7ZM01+ErY/uXC/NITeNX3hQ/p1SHjRHnWzlW5 STKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uD3hLWWW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m12-20020a05680806cc00b00339e0107359si12857685oih.116.2022.07.19.05.33.25; Tue, 19 Jul 2022 05:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uD3hLWWW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239670AbiGSMZU (ORCPT + 99 others); Tue, 19 Jul 2022 08:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239736AbiGSMYP (ORCPT ); Tue, 19 Jul 2022 08:24:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC2D961134; Tue, 19 Jul 2022 05:09:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 09FDD6165C; Tue, 19 Jul 2022 12:08:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA8FAC341C6; Tue, 19 Jul 2022 12:08:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232482; bh=+gmyvOgCkIdlZeHOrXPsGFQ4i4vUrAXEpwwq4tJ8hdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uD3hLWWWhvVfAzXvvKVCi4nXT+lqHWRIwFLRri5GmUcdvdmKTMRC/KJQ9amvK7HlF 5AUZfTrCMM8PuJVRMv3STc5GhnB3QJr+nuiOd09PE0pSgXodlpjZ99+dBQ/WsXvF0A 9zaMKmMfTGfJkLKxIUihH2EwAb6oaY9TQDSigvUE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Chia-Lin Kao (AceLan)" , Paolo Abeni , Sasha Levin Subject: [PATCH 5.10 073/112] net: atlantic: remove aq_nic_deinit() when resume Date: Tue, 19 Jul 2022 13:54:06 +0200 Message-Id: <20220719114633.549666637@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114626.156073229@linuxfoundation.org> References: <20220719114626.156073229@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chia-Lin Kao (AceLan) [ Upstream commit 2e15c51fefaffaf9f72255eaef4fada05055e4c5 ] aq_nic_deinit() has been called while suspending, so we don't have to call it again on resume. Actually, call it again leads to another hang issue when resuming from S3. Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992345] Call Trace: Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992346] Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992348] aq_nic_deinit+0xb4/0xd0 [atlantic] Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992356] aq_pm_thaw+0x7f/0x100 [atlantic] Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992362] pci_pm_resume+0x5c/0x90 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992366] ? pci_pm_thaw+0x80/0x80 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992368] dpm_run_callback+0x4e/0x120 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992371] device_resume+0xad/0x200 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992373] async_resume+0x1e/0x40 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992374] async_run_entry_fn+0x33/0x120 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992377] process_one_work+0x220/0x3c0 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992380] worker_thread+0x4d/0x3f0 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992382] ? process_one_work+0x3c0/0x3c0 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992384] kthread+0x12a/0x150 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992386] ? set_kthread_struct+0x40/0x40 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992387] ret_from_fork+0x22/0x30 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992391] Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992392] ---[ end trace 1ec8c79604ed5e0d ]--- Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992394] PM: dpm_run_callback(): pci_pm_resume+0x0/0x90 returns -110 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992397] atlantic 0000:02:00.0: PM: failed to resume async: error -110 Fixes: 1809c30b6e5a ("net: atlantic: always deep reset on pm op, fixing up my null deref regression") Signed-off-by: Chia-Lin Kao (AceLan) Link: https://lore.kernel.org/r/20220713111224.1535938-2-acelan.kao@canonical.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c index 8c05b2b79339..a0ce213c473b 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c @@ -419,9 +419,6 @@ static int atl_resume_common(struct device *dev) pci_set_power_state(pdev, PCI_D0); pci_restore_state(pdev); - /* Reinitialize Nic/Vecs objects */ - aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol); - if (netif_running(nic->ndev)) { ret = aq_nic_init(nic); if (ret) -- 2.35.1