From patchwork Wed Aug 9 10:53:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 109714 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp706563qge; Wed, 9 Aug 2017 04:04:13 -0700 (PDT) X-Received: by 10.84.231.135 with SMTP id g7mr8574636plk.405.1502276653071; Wed, 09 Aug 2017 04:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502276653; cv=none; d=google.com; s=arc-20160816; b=qCO87jusNiDhb5UgWIYIkfksgog1dO8osDal/8TKaWzzC0sZSvigRYSkaeZ0JHtnt8 FqxqATU4Sn0fHBNmRDkA7ywWCr16UIbDBnmLuhLh2uMlCzw+oZQzoaLEfmO/qIgA5kBG 3sux0hLqkHhZ+z+08+lrloXH+WE79iCh17bKqPM2x6lFN2rloyJSojpD3tUYiJyY8JPw 6QVAjys4gb09CypkVWGxXnjnfVZTcLkzQ/6ZhqrV42enmT6xUqvpJOxbhx7AxbtRJPQe TX2CeNlJkJOxjc4p21OUwibNlWLnaHsh7j16ikudnKT4t7JGZUVridKJUvIEZkhz0hGj Vpzw== 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:arc-authentication-results; bh=vo9WgOiPt1ARVCY/sjwOpvWUfvbxtdpZl9FiLYRJDrw=; b=JEdufe6xJOroSFuvwtt7vIXGVSobEnCs4HtDw0hJGIoBAyUOB+Kp3T1tQhbGi/sdoP aHAfmwafw+xGHxzph2DepMBdWu5RP/YVmYyOj1+X2mZSOBK6bF2ZKnenhUQB/eSxUxtl eIMQZEF8tizQ2sR6FWNPhU5xoTCeCKVD9sxngnqDy8jGPKXohylQ2Prg51BnwL551wS3 PkE+3AYmxjcheldQSJOL6XgzbFGjuwNx0jzczHHFVnTkC4RE9BGPWLKeHUOrV1xTvXLt h54rgz6Qb4Y9aRbqNiStC9vh/VOA6G/1cisiolK3NT30Cq61PetfcVi6LCRhQ/YN18EM GdGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x69si2401191pfj.283.2017.08.09.04.04.12; Wed, 09 Aug 2017 04:04:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-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-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098AbdHILEK (ORCPT + 7 others); Wed, 9 Aug 2017 07:04:10 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3484 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752106AbdHILEJ (ORCPT ); Wed, 9 Aug 2017 07:04:09 -0400 Received: from 172.30.72.59 (EHLO DGGEMS411-HUB.china.huawei.com) ([172.30.72.59]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DEU08685; Wed, 09 Aug 2017 19:00:43 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.301.0; Wed, 9 Aug 2017 19:00:31 +0800 From: Hanjun Guo To: Lorenzo Pieralisi CC: , , , Sinan Kaya , "Rafael J. Wysocki" , Marc Zyngier , Hanjun Guo Subject: [RFC PATCH 0/4] SMMUv3 MSI support Date: Wed, 9 Aug 2017 18:53:33 +0800 Message-ID: <1502276017-63108-1-git-send-email-guohanjun@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.598AEB5B.0110, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 7ebd593eb67d16d2a435c16d031b3f1d Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Hanjun Guo IORT revision C introduced SMMUv3 MSI support for control interrupts, which introduced a device ID mapping index to retrieve the dev ID and ITS parent. This patch set reuse the existing APIs to retrieve the data to configure the MSI, but doing special checks to not introduce regressions for CPI/NC--->SMMU--->ITS cases, please refer to each patch for detail commit message. Hanjun Guo (4): ACPICA: Add SMMUv3 device ID mapping index support ACPI: IORT: lookup iort node via fwnode ACPI: IORT: Skip SMMUv3 device ID map for two steps mappings ACPI: IORT: Add SMMUv3 MSI support drivers/acpi/arm64/iort.c | 126 +++++++++++++++++++++++++++++++++++++++++----- include/acpi/actbl2.h | 1 + 2 files changed, 115 insertions(+), 12 deletions(-) -- 1.7.12.4 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html