From patchwork Sun May 3 20:49:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Richter X-Patchwork-Id: 6322311 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E17E1BEEEE for ; Sun, 3 May 2015 20:53:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B91BA203E9 for ; Sun, 3 May 2015 20:53:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0916D203AF for ; Sun, 3 May 2015 20:53:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yp0qE-0006cz-0z; Sun, 03 May 2015 20:50:22 +0000 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yp0q8-0005TH-1I for linux-arm-kernel@lists.infradead.org; Sun, 03 May 2015 20:50:16 +0000 Received: by wgyo15 with SMTP id o15so133282396wgy.2 for ; Sun, 03 May 2015 13:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=zk2mN/dzqiw/y83sMDPtA6C9JO1fQj1gM4F5bK5c6Pw=; b=ckETM+M9zzZbpOFDCRlsXLnj4IUEWTC5rJFD1Jc39sWjEaSAXYl2/PXz+ev0xx9Uf7 vxgguXMitTua7DfpwwLS5/EebsQt9nf4igHPwtr8t5RP4UppU5PnEEQ4ZCSp3QSGEMgG 3O5jh5xCCNxul/FId4STDBdbE6XFYdzt2sq7Lo6meqLfO+GDMarbh6YPkMNg90NlQz/y /+6J+VxUwz7B69OUrQOOKGLMnjKbp3EtU5ygNPJlrJizsO+gtwnoBc/ZZQN3wN1Ft5gG QMiBjAE1siW710M3Thv8Dc24yn7WQF+Mx/t8IwjJZ0QyEMtJa4Lzh8hj/JVa/z7lDjgN fY6A== X-Received: by 10.180.97.164 with SMTP id eb4mr14351430wib.3.1430686192881; Sun, 03 May 2015 13:49:52 -0700 (PDT) Received: from rric.localhost (x5ce0c090.dyn.telefonica.de. [92.224.192.144]) by mx.google.com with ESMTPSA id js3sm17527661wjc.5.2015.05.03.13.49.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 May 2015 13:49:52 -0700 (PDT) From: Robert Richter To: Marc Zyngier , Thomas Gleixner , Jason Cooper Subject: [PATCH 1/4] arm64: gicv3: its: Encode domain number in PCI stream id Date: Sun, 3 May 2015 22:49:29 +0200 Message-Id: <1430686172-18222-2-git-send-email-rric@kernel.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1430686172-18222-1-git-send-email-rric@kernel.org> References: <1430686172-18222-1-git-send-email-rric@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150503_135016_242999_C6E4F276 X-CRM114-Status: GOOD ( 10.20 ) X-Spam-Score: -0.4 (/) Cc: Robert Richter , linux-kernel@vger.kernel.org, Robert Richter , Tirumalesh Chalamarla , Radha Mohan Chintakuntla , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tirumalesh Chalamarla PCI stream ids need to consider pci bridge number to be unique on the system. Using only bus and devfn can't do the trick in systems that have multiple pci bridges. Signed-off-by: Tirumalesh Chalamarla Signed-off-by: Robert Richter --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 9687f8afebff..e30b4de04c6c 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -1186,7 +1186,7 @@ static int its_get_pci_alias(struct pci_dev *pdev, u16 alias, void *data) { struct its_pci_alias *dev_alias = data; - dev_alias->dev_id = alias; + dev_alias->dev_id = (pci_domain_nr(pdev->bus) << 16) | alias; if (pdev != dev_alias->pdev) dev_alias->count += its_pci_msi_vec_count(dev_alias->pdev);