From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756796AbcGZOCB (ORCPT ); Tue, 26 Jul 2016 10:02:01 -0400 Received: from forward2p.cmail.yandex.net ([77.88.31.17]:33149 "EHLO forward2p.cmail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752213AbcGZOCA (ORCPT ); Tue, 26 Jul 2016 10:02:00 -0400 Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@forstwoof.ru X-Yandex-Suid-Status: 1 0,1 0,1 0,1 0,1 0 Subject: Re: PROBLEM: Intel I210AT NIC resets while using PCI passthrough on ESXi (regression) To: Thomas Gleixner References: Cc: LKML , Matthias Prager , Jason Taylor , Marc Zyngier From: Foster Snowhill Organization: ForstWoof Message-ID: <20c1e36b-df93-9b30-31be-8a0a3eeaafc1@forstwoof.ru> Date: Tue, 26 Jul 2016 17:01:55 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Thunderbird/49.0a2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26.07.16 16:49, Thomas Gleixner wrote: > On Mon, 25 Jul 2016, Foster Snowhill wrote: >> On 25.07.16 13:56, Thomas Gleixner wrote: >>> Could you please give the patch below a try? It might be related, but I'm not >>> sure whether it will cure that particular vmware oddity. >> >> Patch fixed the issue for me. Did 4-5 reboots just to be sure, all working properly, no adapter resets. Just for the sake of experiment built a clean 4.7 kernel without the patch, issue still present there as expected. >> > > Can you please test something else with that patch? > > After starting the NIC, can you please shutdown the interface, so the > interrupt gets shutdown as well. (It should vanish from /proc/interrupts). root@ubuntutest ~ # cat /proc/interrupts CPU0 0: 22 IO-APIC 2-edge timer 1: 9 IO-APIC 1-edge i8042 4: 3641 IO-APIC 4-edge serial 8: 1 IO-APIC 8-edge rtc0 9: 0 IO-APIC 9-fasteoi acpi 12: 15 IO-APIC 12-edge i8042 14: 0 IO-APIC 14-edge ata_piix 15: 0 IO-APIC 15-edge ata_piix 16: 1 IO-APIC 16-fasteoi vmwgfx 24: 0 PCI-MSI 344064-edge PCIe PME, pciehp 25: 0 PCI-MSI 346112-edge PCIe PME, pciehp 26: 0 PCI-MSI 348160-edge PCIe PME, pciehp 27: 0 PCI-MSI 350208-edge PCIe PME, pciehp 28: 0 PCI-MSI 352256-edge PCIe PME, pciehp 29: 0 PCI-MSI 354304-edge PCIe PME, pciehp 30: 0 PCI-MSI 356352-edge PCIe PME, pciehp 31: 0 PCI-MSI 358400-edge PCIe PME, pciehp 32: 0 PCI-MSI 360448-edge PCIe PME, pciehp 33: 0 PCI-MSI 362496-edge PCIe PME, pciehp 34: 0 PCI-MSI 364544-edge PCIe PME, pciehp 35: 0 PCI-MSI 366592-edge PCIe PME, pciehp 36: 0 PCI-MSI 368640-edge PCIe PME, pciehp 37: 0 PCI-MSI 370688-edge PCIe PME, pciehp 38: 0 PCI-MSI 372736-edge PCIe PME, pciehp 39: 0 PCI-MSI 374784-edge PCIe PME, pciehp 40: 0 PCI-MSI 376832-edge PCIe PME, pciehp 41: 0 PCI-MSI 378880-edge PCIe PME, pciehp 42: 0 PCI-MSI 380928-edge PCIe PME, pciehp 43: 0 PCI-MSI 382976-edge PCIe PME, pciehp 44: 0 PCI-MSI 385024-edge PCIe PME, pciehp 45: 0 PCI-MSI 387072-edge PCIe PME, pciehp 46: 0 PCI-MSI 389120-edge PCIe PME, pciehp 47: 0 PCI-MSI 391168-edge PCIe PME, pciehp 48: 0 PCI-MSI 393216-edge PCIe PME, pciehp 49: 0 PCI-MSI 395264-edge PCIe PME, pciehp 50: 0 PCI-MSI 397312-edge PCIe PME, pciehp 51: 0 PCI-MSI 399360-edge PCIe PME, pciehp 52: 0 PCI-MSI 401408-edge PCIe PME, pciehp 53: 0 PCI-MSI 403456-edge PCIe PME, pciehp 54: 0 PCI-MSI 405504-edge PCIe PME, pciehp 55: 0 PCI-MSI 407552-edge PCIe PME, pciehp 56: 4319 PCI-MSI 1572864-edge vmw_pvscsi 57: 32 PCI-MSI 129024-edge vmw_vmci 58: 0 PCI-MSI 129025-edge vmw_vmci 59: 134 PCI-MSI 1064960-edge ahci[0000:02:01.0] 60: 1 PCI-MSI 9961472-edge ens224 61: 64 PCI-MSI 9961473-edge ens224-rx-0 62: 43 PCI-MSI 9961474-edge ens224-tx-0 NMI: 0 Non-maskable interrupts LOC: 5384 Local timer interrupts SPU: 0 Spurious interrupts PMI: 0 Performance monitoring interrupts IWI: 1 IRQ work interrupts RTR: 0 APIC ICR read retries RES: 0 Rescheduling interrupts CAL: 0 Function call interrupts TLB: 0 TLB shootdowns TRM: 0 Thermal event interrupts THR: 0 Threshold APIC interrupts DFR: 0 Deferred Error APIC interrupts MCE: 0 Machine check exceptions MCP: 1 Machine check polls ERR: 0 MIS: 0 PIN: 0 Posted-interrupt notification event PIW: 0 Posted-interrupt wakeup event root@ubuntutest ~ # ifdown ens224 RTNETLINK answers: No such process RTNETLINK answers: Cannot assign requested address root@ubuntutest ~ # cat /proc/interrupts CPU0 0: 22 IO-APIC 2-edge timer 1: 9 IO-APIC 1-edge i8042 4: 4459 IO-APIC 4-edge serial 8: 1 IO-APIC 8-edge rtc0 9: 0 IO-APIC 9-fasteoi acpi 12: 15 IO-APIC 12-edge i8042 14: 0 IO-APIC 14-edge ata_piix 15: 0 IO-APIC 15-edge ata_piix 16: 1 IO-APIC 16-fasteoi vmwgfx 24: 0 PCI-MSI 344064-edge PCIe PME, pciehp 25: 0 PCI-MSI 346112-edge PCIe PME, pciehp 26: 0 PCI-MSI 348160-edge PCIe PME, pciehp 27: 0 PCI-MSI 350208-edge PCIe PME, pciehp 28: 0 PCI-MSI 352256-edge PCIe PME, pciehp 29: 0 PCI-MSI 354304-edge PCIe PME, pciehp 30: 0 PCI-MSI 356352-edge PCIe PME, pciehp 31: 0 PCI-MSI 358400-edge PCIe PME, pciehp 32: 0 PCI-MSI 360448-edge PCIe PME, pciehp 33: 0 PCI-MSI 362496-edge PCIe PME, pciehp 34: 0 PCI-MSI 364544-edge PCIe PME, pciehp 35: 0 PCI-MSI 366592-edge PCIe PME, pciehp 36: 0 PCI-MSI 368640-edge PCIe PME, pciehp 37: 0 PCI-MSI 370688-edge PCIe PME, pciehp 38: 0 PCI-MSI 372736-edge PCIe PME, pciehp 39: 0 PCI-MSI 374784-edge PCIe PME, pciehp 40: 0 PCI-MSI 376832-edge PCIe PME, pciehp 41: 0 PCI-MSI 378880-edge PCIe PME, pciehp 42: 0 PCI-MSI 380928-edge PCIe PME, pciehp 43: 0 PCI-MSI 382976-edge PCIe PME, pciehp 44: 0 PCI-MSI 385024-edge PCIe PME, pciehp 45: 0 PCI-MSI 387072-edge PCIe PME, pciehp 46: 0 PCI-MSI 389120-edge PCIe PME, pciehp 47: 0 PCI-MSI 391168-edge PCIe PME, pciehp 48: 0 PCI-MSI 393216-edge PCIe PME, pciehp 49: 0 PCI-MSI 395264-edge PCIe PME, pciehp 50: 0 PCI-MSI 397312-edge PCIe PME, pciehp 51: 0 PCI-MSI 399360-edge PCIe PME, pciehp 52: 0 PCI-MSI 401408-edge PCIe PME, pciehp 53: 0 PCI-MSI 403456-edge PCIe PME, pciehp 54: 0 PCI-MSI 405504-edge PCIe PME, pciehp 55: 0 PCI-MSI 407552-edge PCIe PME, pciehp 56: 4338 PCI-MSI 1572864-edge vmw_pvscsi 57: 39 PCI-MSI 129024-edge vmw_vmci 58: 0 PCI-MSI 129025-edge vmw_vmci 59: 156 PCI-MSI 1064960-edge ahci[0000:02:01.0] 60: 1 PCI-MSI 9961472-edge 61: 72 PCI-MSI 9961473-edge 62: 49 PCI-MSI 9961474-edge NMI: 0 Non-maskable interrupts LOC: 7417 Local timer interrupts SPU: 0 Spurious interrupts PMI: 0 Performance monitoring interrupts IWI: 1 IRQ work interrupts RTR: 0 APIC ICR read retries RES: 0 Rescheduling interrupts CAL: 0 Function call interrupts TLB: 0 TLB shootdowns TRM: 0 Thermal event interrupts THR: 0 Threshold APIC interrupts DFR: 0 Deferred Error APIC interrupts MCE: 0 Machine check exceptions MCP: 1 Machine check polls ERR: 0 MIS: 0 PIN: 0 Posted-interrupt notification event PIW: 0 Posted-interrupt wakeup event