Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp514009yba; Sun, 31 Mar 2019 05:35:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBXy2VuUIFDhBg3WMw2STtKaKf3kfNDVl+w67wyCwsKxiDwpCOd2jZCCk189js5aIUit65 X-Received: by 2002:a65:6489:: with SMTP id e9mr39840613pgv.364.1554035757611; Sun, 31 Mar 2019 05:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554035757; cv=none; d=google.com; s=arc-20160816; b=j1vWAwrtpMtHm75YBtNnhACywe8PbaJi9t0icMZECpWjC6RuOFTLCLUEYA1VeE3/uP vaQdxEBUoo57RX3VIqzs0JA1QrfDOZ1c6ZQgInBfxRQ1Djb160ZrAGMQDAaHxohwySDj etCCHyjtYLahoJa6ItrHpsYQfJD3LUnlualQ5P3+sSwckfBgloXhmEnvaJXzwRqrOj+1 LPivQJkNEEVnzA78drvE1cBCao0r7ULKKmFibsDCig3+08/wieYPQq8F6JL+wAxrqgpP KGA0+0ez55ZSGtA5BNia1re4TEaAxPnl4zAWkIaKTYqX97js7i7RNUBTNIGXBYoph82y IdnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=Iul4vSYsr5VYCV8EP6+bp2FKLpnLhXgg24oWcD2zEZk=; b=I/MRX+lXg4oy8qlAsyNtzhEgZWjDByd26JT6IunKIyb4LyFjMPRmqrWD4sHk+8S9Lm 9hwUaHnylCTpWSS6CuXuZ8INLpj0hLJbn9HN8HDzID5NCf3Mw8O5YSgwk+R3MDJYy/av hCPyifCpMRLELUiyjwk4nEYs87808egMtmaFi+L4d3aJP//Mocp54fiao2YNKPwB6b7w vbXx0dy/LcqiYURPHv9tG1AB6qVPCIVE0NnIDl1p6tmeh7rIJVoFC7b4GMyP2n7ayiHK 2RYMKtCd1BVvbHjsqzsMD6QglePvifu5F0cprPOFRyfRHi2eyGnKBKoSOvAlJvcxq1Dh JtfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=psN6qJlU; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si6788520plg.187.2019.03.31.05.35.40; Sun, 31 Mar 2019 05:35:57 -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; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=psN6qJlU; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731130AbfCaMfC (ORCPT + 99 others); Sun, 31 Mar 2019 08:35:02 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:55212 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726975AbfCaMfC (ORCPT ); Sun, 31 Mar 2019 08:35:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1554035701; x=1585571701; h=from:to:cc:subject:date:message-id:mime-version; bh=Iul4vSYsr5VYCV8EP6+bp2FKLpnLhXgg24oWcD2zEZk=; b=psN6qJlUEcMn45EdKpD6fpt4X6raXVSCw8NA9kzu6WLZ99fEhrEDDHhz 9YXyvnH0o6eICRB3rgDdVHKw2kQqEVuB8mUAwZ+jdotIZffIpq8KGxVKW 5aWqGuqtvWMVATD2Q4pyMS6cQmMnc2YhsuPMBMI/ftAfhSPz/YzzvmGli U=; X-IronPort-AV: E=Sophos;i="5.60,292,1549929600"; d="scan'208";a="796653331" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-2a-22cc717f.us-west-2.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Mar 2019 12:34:59 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2a-22cc717f.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id x2VCYl4M045137 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Sun, 31 Mar 2019 12:34:54 GMT Received: from EX13D19EUB003.ant.amazon.com (10.43.166.69) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 31 Mar 2019 12:34:53 +0000 Received: from ub6d44c9ce3e25c.ant.amazon.com (10.43.160.69) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 31 Mar 2019 12:34:43 +0000 From: Hanna Hawa To: , , , , , , , , , CC: , , , , , , , , , , , , Subject: [PATCH 0/7] al-msi: Rename driver and add support for ACPI Date: Sun, 31 Mar 2019 15:34:08 +0300 Message-ID: <1554035655-11352-1-git-send-email-hhhawa@amazon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.69] X-ClientProxiedBy: EX13P01UWA003.ant.amazon.com (10.43.160.197) To EX13D19EUB003.ant.amazon.com (10.43.166.69) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series includes three major changes: 1. IOMMU DMA mapping MSI message fix. 2. Re-name the AL-MSIx driver to new name convention. 3. Add ACPI support for the driver. Alpine is the name of the SoC family, while AL stands for Annapurna Labs. Rename to the latter since the driver will appear in other SoC families other than Alpine. The AL-MSIx controller is not standard, is not included in the UEFI specification, and will not be added. The driver ACPI binding is performed when the following conditions are true: - OEM ID is AMAZON - MADT table type is 0x80 (part of the OEM reserved range). GICv2m driver is called from context of parent interrupt controller, which ensures that the parent interrupt domain exists and holds valid information. As calling AL-MSIx driver from GICv3 driver would not make sense, a new API was added, to get the GSI IRQ domain that was registered by GICv3 driver in the ACPI framework. Hanna Hawa (7): irqchip/alpine-msi: Call IOMMU DMA mapping MSI message hook irqchip/alpine-msi: Update driver license to use SPDX irqchip/al-msi: Rename AL-MSIx driver irqchip/al-msi: Update wrong parameter naming ACPI / irq: Add GSI IRQ domain getter function irqchip/al-msi: Refactor in preparation to add ACPI support irqchip/al-msi: Add ACPI support arch/arm/mach-alpine/Kconfig | 2 +- arch/arm64/Kconfig.platforms | 2 +- drivers/acpi/irq.c | 13 + drivers/irqchip/Kconfig | 2 +- drivers/irqchip/Makefile | 2 +- drivers/irqchip/{irq-alpine-msi.c => irq-al-msi.c} | 320 ++++++++++++++------- include/linux/acpi.h | 1 + 7 files changed, 236 insertions(+), 106 deletions(-) rename drivers/irqchip/{irq-alpine-msi.c => irq-al-msi.c} (40%) -- 2.7.4