Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4638946ybi; Mon, 15 Jul 2019 12:12:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQk1Vw6FjJ5YLF7pOKEn1+AyR3C1YG3hwhc2ingWEsmnur4loL3fQjA5UgybGggCTJbP59 X-Received: by 2002:a17:902:f213:: with SMTP id gn19mr31049390plb.35.1563217920821; Mon, 15 Jul 2019 12:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563217920; cv=none; d=google.com; s=arc-20160816; b=msdA1NPBJQ5l/rOdJZrm/QP8NtweYL/Um9HMNkPYb/q7vLUApbpU0vWCcdiVDYssps HoJOYA4lnELZThwx5czPp/vFco4Th518jhHzL4ReNgYgWrkKDj4rYourggFe0HS46OAM aWF64+IEgqep18FiFgEO9dpB05XqzP6ED8ZX+5zIpcbHGXiu8LAmAHZtySrNqGILb1wv rpTijSGH//flJ98HCFcCYgdlD9h4FOQMHrHkgOBciDmzbb//gXH+EbLMFzAAB+/oaoAk FEa1DMdEb/hCWwcABMeIGQcjlCcW9nAh6uYjMi7VsqOaOZXdg/Eab1eG1aIZJR9FmL0j g0pw== 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=jTVmzQ6neKdloJm8QssJoJ5qnc+DaNEAQ8hIL/4zJJU=; b=02EFIvtryYA2TcitXY6zY/yJ/wsAVPg1YoN2oQBsFbaqoo2uoTOh+tlGBO2eZl/LKs w0UBLzs67Aqi+5d2z0xqd+WNJWFBHZFpFJgoy4RqVz6mw/1Gsolup1TJsaqr0RJhyuOS blag/mNtE9PctnrBpjzBvV08AvD7VcKsKnsYFC2EbK6WvcasLPyY1Do3yLn4wCCRAsdY 2PGt8Wb+txHKBMLqS0C3d83FX6D10f1qH7NuJrLZhU5RVpoP4zjDoLLe/B2KYZabLt+G 3LtCbeWLh2SnhgNNWPD3ctNVJDlIEyhEhyFCAzBx/6q1YCaw2eVWprmnvz1uWAH4J0JY S7fQ== 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 u123si13358233pgb.12.2019.07.15.12.11.42; Mon, 15 Jul 2019 12:12:00 -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 S1730119AbfGOTJ6 (ORCPT + 99 others); Mon, 15 Jul 2019 15:09:58 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:48567 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729940AbfGOTJ6 (ORCPT ); Mon, 15 Jul 2019 15:09:58 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hn6M5-0004VD-RP; Mon, 15 Jul 2019 21:09:45 +0200 Date: Mon, 15 Jul 2019 21:09:44 +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: <82fa0f47-ccb9-18fc-e35d-af02df37e3fb@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> <82fa0f47-ccb9-18fc-e35d-af02df37e3fb@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, 15 Jul 2019, Octavio Alvarez wrote: > If I reboot with sky2.disable_msi=1, then I get IO-APIC and the bug does not > occur: > > 19: 0 0 0 0 IO-APIC 19-fasteoi eth0 > > However, if I reboot without sky2.disable_msi=1 it properly starts as PCI-MSI > and then, after re-modprobing it it goes to IO-APIC, but the bug occurs > anyway: > > $ cat /proc/interrupts | grep eth > 27: 0 1 0 0 PCI-MSI 3145728-edge > eth0 > > $ sudo modprobe -r sky2 > [sudo] password for alvarezp: > > $ sudo modprobe sky2 disable_msi=1 > > $ # hibernating and coming back hibernation > > $ cat /proc/interrupts | grep eth > 19: 0 0 0 0 IO-APIC 19-fasteoi eth0 > > > > Also please check Linus suspicion about the module being reloaded after > > hibernation through some distro magic. > > This is not happening. Each time the driver is loaded the message "sky2: > driver version 1.30" is shown. > > I confirm only 1 line for the sky2.disable_msi=1 from kernel boot and only 2 > lines for re-modprobing. Odd. I still fail to make a connection to that commit you identified which merily restores the behaviour before the big changes. As we cannot revert that commit by any means and as the hardware is known to have issues with MSI, the only option we have is to avoid MSI on that particular machine. I suspect that the fact that it is 'working' on some older kernel version does not necessarily mean that it works by design. It might as well be a works by chance thing. Thanks for all the detective work you put into that and sorry that I can't come up with the magic cure for this. Thanks, tglx