Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2154798ybd; Thu, 27 Jun 2019 07:39:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTb3JrepNEX0QwhR+d+4EgI5pE2KJ93BkwHi3PQrwsNggeCERsUg34qc+9H2cNMoVt+Fdf X-Received: by 2002:a17:90a:8d86:: with SMTP id d6mr6185461pjo.127.1561646391253; Thu, 27 Jun 2019 07:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561646391; cv=none; d=google.com; s=arc-20160816; b=rpLY7odkH/BDD0TJXA4MT4eW4xUt6kx4SNJZFmcH2RVCQmwEib2aKpWqyCrfuxNjSz tUkU4g3gKdccN96/uUamKHkLc/fsE5HdyRr0HxXL522eBu80stgS5iB40fTO2//2hyaY /CekkIsJ1uV41YNTWi3rItI+ohKmgR7egc71ag4XQRncB9AopK05WyHSoMW3lgJINbPP GYmc2QlDZA+TcQwZxVwSkBD3G1lcDWmOHnGpghZejjHtb18EMxSxn+nyQi+V+n5KPQR0 NcpmddEUbROtt5K/Z/7uktSIqSzZukKu+jr3cAOko5URdKKpurNFuWq/lW7rbfTctN0I zvTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=4Q/K7bXBYBy8TqZ2bGy3e5Zggk9+1LzaMI6TbZh/d3s=; b=Is2EzXADopJvYPINd4KFjzxxPVlgRFj4I4iq4e/JC3KIcydQ7NV1SB9dAy/70v0bwY 8k8DWgBNW51G+GHfBAdNAgZeFksI26NlLnb55gHjiGuo9cc+7VeZLVKDlU6RLy8n80YY 6SL1wI/eUOQIsoyM5NtmYw99lsmaMI3Y1be+wkWLBxPTpJ6DiyMnV+g3AXDPC9Jd4JdU +AEp7c8FrkV7Cyw/OvuTFos3b35pM9ZGKF9a/nvCiyGOiuAR2YD5wHjsRrhldIF7uSkh z2hpO3uqdvEM7yGWF7q9b/4tzwYZUTdoLGGh16Y/C9JP7N8F60SULqyrGEOFipl7bn3b /8BA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 78si2262044pga.411.2019.06.27.07.39.33; Thu, 27 Jun 2019 07:39:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726903AbfF0Oik (ORCPT + 99 others); Thu, 27 Jun 2019 10:38:40 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56202 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726431AbfF0Oik (ORCPT ); Thu, 27 Jun 2019 10:38:40 -0400 Received: from p5b06daab.dip0.t-ipconnect.de ([91.6.218.171] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hgVXj-0006CB-G4; Thu, 27 Jun 2019 16:38:31 +0200 Date: Thu, 27 Jun 2019 16:38:30 +0200 (CEST) From: Thomas Gleixner To: Octavio Alvarez cc: Linus Torvalds , LKML , x86@kernel.org, Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Marc Zyngier , "Rafael J. Wysocki" , "Steven Rostedt (VMware)" , Jiang Biao , Yi Wang , Dou Liyang , Nicolai Stange , Mirko Lindner , Stephen Hemminger Subject: Re: PROBLEM: Marvell 88E8040 (sky2) fails after hibernation In-Reply-To: <098de4c3-5f71-f84d-8b49-d2f43e18ed91@alvarezp.org> Message-ID: References: <2cf2f745-0e29-13a7-6364-0a981dae758c@alvarezp.org> <95539fd9-ffdb-b91c-935f-7fd54d048fdf@alvarezp.org> <098de4c3-5f71-f84d-8b49-d2f43e18ed91@alvarezp.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Octavio, On Mon, 24 Jun 2019, Octavio Alvarez wrote: > On 6/23/19 7:54 AM, Thomas Gleixner wrote: > > Load the driver on Linus master with the following module parameter: > > > > disable_msi=1 > > > > That switches to INTx usage. Does the machine resume proper with that? > > I did two tests: > > If I boot with sky2.disable_msi=1 on the kernel cmdline then the problem goes > away (when back from hibernation, the NIC works OK). > > If I boot regularly (disable_msi not set) and then do modprobe -r sky2; > modprobe sky2 disable_msi=1, the problem stays (when back from hibernation, > the NIC does not work). Interesting. Did you verify that the driver still uses INTx after hibernation in /proc/interrupts? cat /proc/interrupts | grep eth0 The 6st column should show IO-APIC for INTx. If it shows PCI-MSI then something went wrong. Also please check Linus suspicion about the module being reloaded after hibernation through some distro magic. Thanks, tglx