Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4490299ybi; Mon, 15 Jul 2019 09:42:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+vnH8K1sy75x9/nT40jkULxAgULN3k0J6YnMGN495z10C3wDlLoV4mZgwMRlgOXcDkLZE X-Received: by 2002:a17:902:24b:: with SMTP id 69mr28128406plc.250.1563208946913; Mon, 15 Jul 2019 09:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563208946; cv=none; d=google.com; s=arc-20160816; b=F0JpBOuUcTPz+04DqyYCXaNgCBnGmGPSbwhnq8Nv47UXP2OsOPJAmE6DMnWUpIS9OY EZzYmOtAEXjrPtuabvwv5UU+B0vC0v6tIfY2NJUrkJOzFn7ATa47q9u9mjtOkOZRgRnf 0fE3H+3kTl2AD3H0w9A4u+O4dIYiRrYOZFUgye1UUKnNdOPM8JtxA1JzIynH1pq02tsw G95qmJRe+XViwshd7/V80xFZGQT1/lqfcSxufKKvNVaLncHEVGvOMxB9pqzO2M3gUZWu G4ckFH3LagVMFwnLj+kKhyyO6wTW1IgFk5KNxIw/WacMSMVFnQzvt/VCYVo1fCN7NK7+ VBdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=efgFnPIXatB1GGYEZOC5y24/DXtKMJmYUFPyiVdIF/A=; b=aVZChWtMCS4KdI6ya6pzhi0pW1k+mSysmQnOJn1kMdrKZcmqsMjPgpMnDMaHjKeLAJ pd6p4ffusrdCZD+qaEutLxBmmRWLU9L/rQBxlNE+up2OUEQUiHeTHCtZMWaBKwaftlAB DJKFQuIoZqt5ITfOhwNEsLbqXVIOscnYSQgfElngA29b3Jd3E/xHIdILGcygTbI3h1d9 xOameTFwODyqABqE5UpXwUA2cRDRkYxVOBnQ1L3gZUqmIstVmVx10tJOlxP14ngdKj4N e4Y9NJcWM9bHU8X+iU/pYugRemRioFc3qACAnYj/KR5AnQdPKXO+ihgAtaA/qJcpnWcx 9DLw== 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 x16si15675080plr.214.2019.07.15.09.42.09; Mon, 15 Jul 2019 09:42:26 -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 S1731410AbfGOQkf (ORCPT + 99 others); Mon, 15 Jul 2019 12:40:35 -0400 Received: from sobre.alvarezp.com ([173.230.155.94]:54078 "EHLO sobre.alvarezp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731220AbfGOQkf (ORCPT ); Mon, 15 Jul 2019 12:40:35 -0400 Received: from [192.168.15.3] (187-177-154-156.dynamic.axtel.net [187.177.154.156]) by sobre.alvarezp.com (Postfix) with ESMTPSA id 573971E31B; Mon, 15 Jul 2019 11:40:33 -0500 (CDT) From: Octavio Alvarez Subject: Re: PROBLEM: Marvell 88E8040 (sky2) fails after hibernation To: Thomas Gleixner 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 References: <2cf2f745-0e29-13a7-6364-0a981dae758c@alvarezp.org> <95539fd9-ffdb-b91c-935f-7fd54d048fdf@alvarezp.org> <098de4c3-5f71-f84d-8b49-d2f43e18ed91@alvarezp.org> Message-ID: <82fa0f47-ccb9-18fc-e35d-af02df37e3fb@alvarezp.org> Date: Mon, 15 Jul 2019 11:40:31 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-MX Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/27/19 9:38 AM, Thomas Gleixner wrote: >> 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 Hi, Thomas, 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. Best regards, Octavio.