Message ID | 1411614872-4009-11-git-send-email-wangyijing@huawei.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDP3JFH37QKRB34HR2QQKGQEXZY3YYY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DE4E4204FF for <linaro@patches.linaro.org>; Thu, 25 Sep 2014 02:54:40 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf60831lam.4 for <linaro@patches.linaro.org>; Wed, 24 Sep 2014 19:54:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=PpQyY/03BXXi341AfUQMgdx1EPUdlyzSHjjQG74L97o=; b=SILnzWYMio3ve6mVkk+tpdelWjxL0fUjGyO7X6nmzfhVljcaZcgJAfozWHqfrpCPQ+ zMgqUHrBthjz8Tyeklpdaj23ZgLbiS//HxzvHA7+ht7TE7C/ln699w1hEXyrHLP/wkAN KBTBZHuua5U4/cDddkQU3AchTtXVoEqBU/bu7bYh6P71jhZRD0/5ZWYrMkLkcCWyaxSB u21E1Ht1ZWIXe+1xw5WlQyrfBnNBeuGhE1MUrgD3kMcHEcL1ddDE7PwC7u5lq4YSg6I5 9bW29wfBPEM/wODXjRVG+645wJBrzNViSGGvxlMoICUUmjdT9ADZ7LEfv9zIP/QX38f9 AwZg== X-Gm-Message-State: ALoCoQlJ/JAEBOx7zO7RooUuTPp+ErPNf36rxE3ueVx7Gw4iCKplJSWCJ4dLEw2cPgCbIWdIsABE X-Received: by 10.180.183.165 with SMTP id en5mr4653318wic.1.1411613679713; Wed, 24 Sep 2014 19:54:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.3 with SMTP id o3ls212798lah.14.gmail; Wed, 24 Sep 2014 19:54:39 -0700 (PDT) X-Received: by 10.152.37.169 with SMTP id z9mr10168402laj.66.1411613679500; Wed, 24 Sep 2014 19:54:39 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx.google.com with ESMTPS id f4si1123311lag.46.2014.09.24.19.54.39 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Sep 2014 19:54:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id ge10so11820876lab.13 for <patchwork-forward@linaro.org>; Wed, 24 Sep 2014 19:54:39 -0700 (PDT) X-Received: by 10.112.130.68 with SMTP id oc4mr9451879lbb.41.1411613679405; Wed, 24 Sep 2014 19:54:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp683458lbb; Wed, 24 Sep 2014 19:54:38 -0700 (PDT) X-Received: by 10.221.44.7 with SMTP id ue7mr3094833vcb.28.1411613675378; Wed, 24 Sep 2014 19:54:35 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id rl7si490899vcb.85.2014.09.24.19.54.34 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 24 Sep 2014 19:54:35 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1XWzBN-0004Yr-B1; Thu, 25 Sep 2014 02:53:25 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <wangyijing@huawei.com>) id 1XWzBK-0004UN-Uh for xen-devel@lists.xenproject.org; Thu, 25 Sep 2014 02:53:23 +0000 Received: from [85.158.139.211:38550] by server-15.bemta-5.messagelabs.com id 42/EA-12002-2A383245; Thu, 25 Sep 2014 02:53:22 +0000 X-Env-Sender: wangyijing@huawei.com X-Msg-Ref: server-2.tower-206.messagelabs.com!1411613597!11875441!1 X-Originating-IP: [119.145.14.65] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTE5LjE0NS4xNC42NSA9PiA3NzQ2Mw==\n X-StarScan-Received: X-StarScan-Version: 6.12.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5614 invoked from network); 25 Sep 2014 02:53:20 -0000 Received: from szxga02-in.huawei.com (HELO szxga02-in.huawei.com) (119.145.14.65) by server-2.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 25 Sep 2014 02:53:20 -0000 Received: from 172.24.2.119 (EHLO szxeml409-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BZX30366; Thu, 25 Sep 2014 10:50:42 +0800 (CST) Received: from localhost.localdomain (10.175.100.166) by szxeml409-hub.china.huawei.com (10.82.67.136) with Microsoft SMTP Server id 14.3.158.1; Thu, 25 Sep 2014 10:50:34 +0800 From: Yijing Wang <wangyijing@huawei.com> To: Bjorn Helgaas <bhelgaas@google.com> Date: Thu, 25 Sep 2014 11:14:20 +0800 Message-ID: <1411614872-4009-11-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1411614872-4009-1-git-send-email-wangyijing@huawei.com> References: <1411614872-4009-1-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.100.166] X-CFilter-Loop: Reflected Cc: linux-mips@linux-mips.org, linux-ia64@vger.kernel.org, linux-pci@vger.kernel.org, Bharat.Bhushan@freescale.com, Yijing Wang <wangyijing@huawei.com>, Thierry Reding <thierry.reding@gmail.com>, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Russell King <linux@arm.linux.org.uk>, Michael Ellerman <mpe@ellerman.id.au>, Joerg Roedel <joro@8bytes.org>, x86@kernel.org, Sebastian Ott <sebott@linux.vnet.ibm.com>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, xen-devel@lists.xenproject.org, arnab.basu@freescale.com, Arnd Bergmann <arnd@arndb.de>, Chris Metcalf <cmetcalf@tilera.com>, Thomas Gleixner <tglx@linutronix.de>, linux-arm-kernel@lists.infradead.org, Thomas Petazzoni <thomas.petazzoni@free-electrons.com>, Xinwei Hu <huxinwei@huawei.com>, Tony Luck <tony.luck@intel.com>, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>, linux-kernel@vger.kernel.org, Ralf Baechle <ralf@linux-mips.org>, iommu@lists.linux-foundation.org, David Vrabel <david.vrabel@citrix.com>, Wuyun <wuyun.wu@huawei.com>, linuxppc-dev@lists.ozlabs.org, "David S. Miller" <davem@davemloft.net>, Lucas Stach <l.stach@pengutronix.de> Subject: [Xen-devel] [PATCH v2 10/22] Irq_remapping/MSI: Use MSI chip framework to configure MSI/MSI-X irq X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangyijing@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c index 33c4395..7929590 100644 --- a/drivers/iommu/irq_remapping.c +++ b/drivers/iommu/irq_remapping.c @@ -148,6 +148,11 @@ static int irq_remapping_setup_msi_irqs(struct pci_dev *dev, return do_setup_msix_irqs(dev, nvec); } +static struct msi_chip remap_msi_chip = { + .setup_irqs = irq_remapping_setup_msi_irqs, + .teardown_irq = native_teardown_msi_irq, +}; + static void eoi_ioapic_pin_remapped(int apic, int pin, int vector) { /* @@ -168,6 +173,7 @@ static void __init irq_remapping_modify_x86_ops(void) x86_msi.setup_msi_irqs = irq_remapping_setup_msi_irqs; x86_msi.setup_hpet_msi = setup_hpet_msi_remapped; x86_msi.compose_msi_msg = compose_remapped_msi_msg; + x86_msi_chip = &remap_msi_chip; } static __init int setup_nointremap(char *str)
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang <wangyijing@huawei.com> --- drivers/iommu/irq_remapping.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)