Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3176611ybi; Fri, 5 Jul 2019 03:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHdhSVpZ6vBs6GLL52WiAHZ6RAs1fcAQxCi7qfwGIcT4SMyOJPEAh5AnZ1ZjS6bmCrbNc+ X-Received: by 2002:a17:902:1566:: with SMTP id b35mr4579945plh.147.1562321534548; Fri, 05 Jul 2019 03:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562321534; cv=none; d=google.com; s=arc-20160816; b=SEkqSxKUEGlTbuec26gnHwKrdMjscNhRWHwMYcyEGNm2jJUUvmTT0ZWWmrCV5BJgvQ /C1YAldJvqv6hN9yWEh0LWdtrZPfPK6+T8qUlLrMTw/Ei1wONVxYzfcKKtomCPDVg8za 7jRHIpPxuOOF/m4iyOtEsdgOPh8I/clOor9bng/KugFdW8O9/6eAJy1z2gPA9NAWqPq8 w1e3IN+UATTIZXzuezsc/gXnX4K8oya4QgcoHaXVqGqTfmgKLVmFqugAi0YXwGS1z1qN P/ewgi/MpN2DXyjMtnc7HZHyyFaW6PqzN23us+J/tyZaFiSsjdA1Tqmc06QMRpMpcr0K YlkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=moykGIzDeeyJ2VJfL+7ALk0S/cygB75TGP3MVqKgtFY=; b=pxkBbCQ4vkXT7E4RiT+sgFuQbYCRF1ApqoDBGLIOVwyLeUQ3rXXyfAY56b7e5JN+E+ oSgR3MT2pKX2gO3fD8AdCSnfkTJawYLMr5K2ocqp0VS9pYk1KhD81ypxERlREmgUF5mZ N+RCo1jNuI7c31dXChgWt6TSsyznCaY6FPSTnZ+SF2nvr78gzQOiApqTkOzRhqZeIDKW M7E6UHNPUKy/XsaFc4TTE3Y8kBzH7iRBZs13FSgbeCjoH+5p6gySgAyjMgXB8NL810/S 10MAVF/adgm1W1g+cpr6HEFOaDy+FiHVnRatEA0iDI2GyxSM97TQp7FkcgTG0CDadgVo n7GA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si8113872pgt.460.2019.07.05.03.11.59; Fri, 05 Jul 2019 03:12:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728363AbfGEKJQ (ORCPT + 99 others); Fri, 5 Jul 2019 06:09:16 -0400 Received: from inva021.nxp.com ([92.121.34.21]:47822 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727695AbfGEKHI (ORCPT ); Fri, 5 Jul 2019 06:07:08 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5254D200E79; Fri, 5 Jul 2019 12:07:06 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C88102006F8; Fri, 5 Jul 2019 12:06:57 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5970D402E5; Fri, 5 Jul 2019 18:06:47 +0800 (SGT) From: Hou Zhiqiang To: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com, l.subrahmanya@mobiveil.co.in, shawnguo@kernel.org, leoyang.li@nxp.com, lorenzo.pieralisi@arm.com, catalin.marinas@arm.com, will.deacon@arm.com Cc: Mingkai.Hu@nxp.com, Minghuan.Lian@nxp.com, Xiaowei.Bao@nxp.com, Hou Zhiqiang Subject: [PATCHv6 02/28] PCI: mobiveil: Remove the flag MSI_FLAG_MULTI_PCI_MSI Date: Fri, 5 Jul 2019 17:56:30 +0800 Message-Id: <20190705095656.19191-3-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190705095656.19191-1-Zhiqiang.Hou@nxp.com> References: <20190705095656.19191-1-Zhiqiang.Hou@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Mobiveil internal MSI controller requires separate target addresses, one per MSI vector; this is clearly incompatible with the Multiple MSI feature, which requires the same target address for all vectors requested by an endpoint (ie the Message Address field in the MSI Capability structure), so the multi MSI feature is clearly not supported by the host controller driver. Remove the flag MSI_FLAG_MULTI_PCI_MSI and with it multi MSI support, fixing the misconfiguration. Fixes: 1e913e58335f ("PCI: mobiveil: Add MSI support") Signed-off-by: Hou Zhiqiang [lorenzo.pieralisi@arm.com: commit log] Signed-off-by: Lorenzo Pieralisi Reviewed-by: Minghuan Lian --- V6: - Rebased the patch, no functional change. drivers/pci/controller/pcie-mobiveil.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index d55c7e7..e581902 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -692,7 +692,7 @@ static int mobiveil_pcie_intx_map(struct irq_domain *domain, unsigned int irq, static struct msi_domain_info mobiveil_msi_domain_info = { .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | - MSI_FLAG_MULTI_PCI_MSI | MSI_FLAG_PCI_MSIX), + MSI_FLAG_PCI_MSIX), .chip = &mobiveil_msi_irq_chip, }; -- 1.7.1