From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751914AbdLNCWU (ORCPT ); Wed, 13 Dec 2017 21:22:20 -0500 Received: from mail.windriver.com ([147.11.1.11]:54827 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751101AbdLNCWT (ORCPT ); Wed, 13 Dec 2017 21:22:19 -0500 From: To: CC: , , , Subject: [PATCH] PCI: designware: add a check of msi_desc in irqchip Date: Thu, 14 Dec 2017 10:21:22 +0800 Message-ID: <1513218083-5461-1-git-send-email-cao.zou@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ---------------------------------------------------- Summary: PCI: designware: add a check of msi_desc in irqchip Reviewers: paul ---------------------------------------------------- Upstream Project Name: linux-kernel Upstream Project URL: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ Applies to: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ Brief Description: Incorrect mask bits leave device stalled after flood ping. Will Submit to: shan lai , linux-kernel@vger.kernel.org Origin of patch: Discovered by me while working on common_pc IP content: None, trivial obvious fix. Comments: --------- this issue is reproduced in imx7d-sdb when running the kdump with pluging Intel 1030 PCI, the root caused is machine_kexec_mask_interrupts will force to mask every exist irq_desc include msi irq. background: msi irq mask is based on msi_desc, it is bound only in msi irq setup by pci driver. for others not request msi irqs by pci driver, its msi_desc is null, so crash in machine_kexec_mask_interrupts.