From patchwork Sun Mar 31 12:34:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hawa, Hanna" X-Patchwork-Id: 10878719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A3B4F922 for ; Sun, 31 Mar 2019 12:35:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8904D287D1 for ; Sun, 31 Mar 2019 12:35:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B27D28950; Sun, 31 Mar 2019 12:35:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 158A1287D1 for ; Sun, 31 Mar 2019 12:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ZidhKi8JgW5IDp8beODMwYjVMpDvCeYuwinkmPyBSYI=; b=oYOtlPfrRp9Dfj fFStAYMha9LJMp5x2lVeRaf7EQ3dkPVLnps8YFYdW4p8zvy6TC/1049LvcfhYHewty2LwwNCdrSvS Vb4PCDzN8CQk0/27beep9FPf5CLtPvI2Gh5v5MJdfT6UkcBx9bgxApwyuqZvS2J2dC9/49eqtV53q 2aPW+K8CAygFndYkF1NjcDPiLqMwgDyrwqPpRg0Wexr6Hx9zG6mj97uKBQc/gwI2ZRvlEMAWX/Q2e Qj09W5Ojx5A3N6aVCMCCvxh+ZBVBsEaqh+LkRXF9f4vunTETVJZbm0rpxOZuxg66JdWrAyXvaDnGC 8ToPHkVVl3zb3vG0QWHA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAZg4-00067B-Rz; Sun, 31 Mar 2019 12:35:08 +0000 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAZg1-0004y7-Ee for linux-arm-kernel@lists.infradead.org; Sun, 31 Mar 2019 12:35:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1554035705; x=1585571705; h=from:to:cc:subject:date:message-id:mime-version; bh=Iul4vSYsr5VYCV8EP6+bp2FKLpnLhXgg24oWcD2zEZk=; b=GvD7dJP/c3AwJVASP5thOKhQEgzgqY0vnbV0hiZFizDi3KnBGWNzoBOq HVYXw4bTV1uGblBQ5NPJrzbtCCXIq22fM2lxvThfhWvqEqDy6pYVqHf3Y EhlkHTJPubMbC6KVwzN/WDKoDGtcIz5WwvKykt39nwDDC/qNA102EF1fI g=; 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: , , , , , , , , , 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 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) Precedence: Bulk X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190331_053505_571107_CCCE88B8 X-CRM114-Status: GOOD ( 11.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, barakw@amazon.com, hhhawa@amazon.com, vaerov@amazon.com, linux-kernel@vger.kernel.org, hanochu@amazon.com, linux-acpi@vger.kernel.org, zeev@amazon.com, dwmw@amazon.co.uk, jonnyc@amazon.com, ronenk@amazon.com, talel@amazon.com, alisaidi@amazon.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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%)