From patchwork Thu Nov 19 12:11:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shameerali Kolothum Thodi X-Patchwork-Id: 328399 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp361460ils; Thu, 19 Nov 2020 04:13:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1clAS7XApZdbjVPJRHBGw2uxo0QG7zJG3tk545XPnq01MOv3MCXHu8t0gG7FoBVOEJ4xR X-Received: by 2002:a17:906:7f19:: with SMTP id d25mr10436685ejr.0.1605788030721; Thu, 19 Nov 2020 04:13:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605788030; cv=none; d=google.com; s=arc-20160816; b=eOoRcnPdSM5hTyySwVY/6HAhDlEYDF590GBnonCZMM62Sxp+aNfY5MjJcx1DwxHiOG WtPb4ElvNWr37ARHCQ/nZac49c5pLyZAGjpxTrVnuJVqCdL87Yw/E/I7iivt4x4c8F10 7grqRkBTBhnYvY/HEs9FKs9/ep6j5ZLrefoIxcE5beK+A9DrR7rmryDp/T7HoqDtxZtU pziirQ5UvPHlvLuFcmyMdbK2x3FUckTcuNH3AxEKUZGGQZ2akF6gMCgdJ+iZCRy7J4zz vHQSLVc+0lch/uXl7Mb5HGHCXNe3DivPL+/g6p5lLB4OaYJXZwb/dIGfQCR7sLk4xT8b 7n7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=aaf/G6l8tKSjeTfUqYOgNGT551bxUYkcwq7T/2D1kqU=; b=RIglt9U7FgniWAwF0ldaTt6S4VmcJhoXql7yg9tSsi9BjPHxU/qIKoAqwF5LS8e2AW AE4mC/vg4ttVrH28scl5y632hYH2G0bsLfmdTdqUv69HdLbFJNyfuESkplQM15jZxGSj cW303in/teQ9AIGka8LsHjbdXWripK1AalXkbXnRLQ7jd4/1r0fWfKbsu9kzRO2/n1fE tyc/wKtvvC6UIjBV2KoOrqrSU7oFxmPn+ybfqJ5yMAdBnhGkm3yz+ws3rfoTfrvx2xnS 640ZQXWyD9TIwfiEHUkCVDv5Gx7tUCfR95yNqOrtxJuet4sM3+hoEJilLOpijvgnyQzM YyzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc4si16705640ejb.188.2020.11.19.04.13.50; Thu, 19 Nov 2020 04:13:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbgKSMMh (ORCPT + 5 others); Thu, 19 Nov 2020 07:12:37 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7563 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbgKSMMh (ORCPT ); Thu, 19 Nov 2020 07:12:37 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CcJTJ31GlzhXkw; Thu, 19 Nov 2020 20:12:20 +0800 (CST) Received: from S00345302A-PC.china.huawei.com (10.210.168.73) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Thu, 19 Nov 2020 20:12:26 +0800 From: Shameer Kolothum To: , , , CC: , , , , , , , , Subject: [RFC PATCH v2 1/8] ACPICA: IORT: Update for revision E Date: Thu, 19 Nov 2020 12:11:43 +0000 Message-ID: <20201119121150.3316-2-shameerali.kolothum.thodi@huawei.com> X-Mailer: git-send-email 2.12.0.windows.1 In-Reply-To: <20201119121150.3316-1-shameerali.kolothum.thodi@huawei.com> References: <20201119121150.3316-1-shameerali.kolothum.thodi@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.210.168.73] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org IORT revision E contains a few additions like,     -Added an identifier field in the node descriptors to aid table      cross-referencing.     -Introduced the Reserved Memory Range(RMR) node. This is used     to describe memory ranges that are used by endpoints and requires     a unity mapping in SMMU. -Introduced a flag in the RC node to express support for PRI. Signed-off-by: Shameer Kolothum --- include/acpi/actbl2.h | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index ec66779cb193..274fce7b5c01 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -68,7 +68,7 @@ * IORT - IO Remapping Table * * Conforms to "IO Remapping Table System Software on ARM Platforms", - * Document number: ARM DEN 0049D, March 2018 + * Document number: ARM DEN 0049E, June 2020 * ******************************************************************************/ @@ -86,7 +86,8 @@ struct acpi_iort_node { u8 type; u16 length; u8 revision; - u32 reserved; + u16 reserved; + u16 identifier; u32 mapping_count; u32 mapping_offset; char node_data[1]; @@ -100,7 +101,8 @@ enum acpi_iort_node_type { ACPI_IORT_NODE_PCI_ROOT_COMPLEX = 0x02, ACPI_IORT_NODE_SMMU = 0x03, ACPI_IORT_NODE_SMMU_V3 = 0x04, - ACPI_IORT_NODE_PMCG = 0x05 + ACPI_IORT_NODE_PMCG = 0x05, + ACPI_IORT_NODE_RMR = 0x06, }; struct acpi_iort_id_mapping { @@ -167,10 +169,10 @@ struct acpi_iort_root_complex { u8 reserved[3]; /* Reserved, must be zero */ }; -/* Values for ats_attribute field above */ +/* Masks for ats_attribute field above */ -#define ACPI_IORT_ATS_SUPPORTED 0x00000001 /* The root complex supports ATS */ -#define ACPI_IORT_ATS_UNSUPPORTED 0x00000000 /* The root complex doesn't support ATS */ +#define ACPI_IORT_ATS_SUPPORTED (1) /* The root complex supports ATS */ +#define ACPI_IORT_PRI_SUPPORTED (1<<1) /* The root complex supports PRI */ struct acpi_iort_smmu { u64 base_address; /* SMMU base address */ @@ -241,6 +243,17 @@ struct acpi_iort_pmcg { u64 page1_base_address; }; +struct acpi_iort_rmr { + u32 rmr_count; + u32 rmr_offset; +}; + +struct acpi_iort_rmr_desc { + u64 base_address; + u64 length; + u32 reserved; +}; + /******************************************************************************* * * IVRS - I/O Virtualization Reporting Structure