From patchwork Fri Nov 17 23:42:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmauss, Erik" X-Patchwork-Id: 119234 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1139503qgn; Fri, 17 Nov 2017 15:46:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMZVc/wrJnZ4B6H/jkTJ+8+pB5e6izXmzqLRp1dXZglKTx0q7WyBAJ/c7PRO4kpQHTTBR+s6 X-Received: by 10.84.132.34 with SMTP id 31mr717220ple.395.1510962399097; Fri, 17 Nov 2017 15:46:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510962399; cv=none; d=google.com; s=arc-20160816; b=nutFrohv+L+faEVWH8iL40Zm+nhHhZvFR+B6PUtSBK++nbHPDbKby3LfhdgKDYQl6y 4s9DPLsOhitgOwhSY7naivnM2ekwfa/RZ5A7tihuTT/k/jOi2vVy9QJhmdv3oChrCwdB fJVebY5m8bIk98d7m7Cim3U2/FNvtOWX/AAwpwoJJbjIkPgS5nUz0ZHscR7stH4i8dwb j3TasjuQo7Mp9AQGkfD72Ta5mm6Ncrq4VJonz/Uuk9JrkK214IlaJSbVMwkeB4A94EBp qf2IbNKl98RPtFSL39DV+SCgiGc8HqXcMYlNtlnnul3rjJqc++SKwiqfCosaWz/LU5/A USgg== 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:arc-authentication-results; bh=jlwEzKrj1OBfK+fPZCV+kV1rouwUz9j0wZOSLVjinpg=; b=plOxpGGXuiB2wG+gKGXW2oPlAKPCYgZtKDbep1vBEbgDq1HMtGwNbZaunNFxJcSpyY qthes44sTI1KYHT561hDddAAmSIYmT5kwPG82kRNSyTGi/xvw9xD6TX24nbS5/c+hz4p 3FGRmtT7Oxd5agF3hGDsv1Xcm2qcnbnbJ1Oj1PbKwTIky9sDeXAG/tq2Fnr8D9g5fg8d nrwTA7QIR+89uvg10o712Sux3NRrBsHH+eD5qrO4MzHIlvrKW1uXezofYDc0NSI2VRUu vq20zcb7KCWwG+yYqBYJl+2NxEyhShJsQFWmaTdhkHTDJ5Y5UbQcGloAqsMQBpwGeEiE n6GA== 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 y38si3661695plh.61.2017.11.17.15.46.38; Fri, 17 Nov 2017 15:46:39 -0800 (PST) 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 S1759958AbdKQXqh (ORCPT + 7 others); Fri, 17 Nov 2017 18:46:37 -0500 Received: from mga02.intel.com ([134.134.136.20]:39431 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759953AbdKQXqh (ORCPT ); Fri, 17 Nov 2017 18:46:37 -0500 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Nov 2017 15:46:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,411,1505804400"; d="scan'208";a="177058270" Received: from bartok.jf.intel.com ([10.54.75.154]) by fmsmga005.fm.intel.com with ESMTP; 17 Nov 2017 15:46:36 -0800 From: Erik Schmauss To: linux-acpi@vger.kernel.org Cc: Hanjun Guo , Bob Moore , Erik Schmauss Subject: [PATCH 04/15] ACPICA: iasl: Add SMMUv3 device ID mapping index support Date: Fri, 17 Nov 2017 15:42:19 -0800 Message-Id: <20171117234230.913-5-erik.schmauss@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171117234230.913-1-erik.schmauss@intel.com> References: <20171117234230.913-1-erik.schmauss@intel.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Hanjun Guo ACPICA commit 5c371879e035122c5807752f42247fd091d107d6 SMMUv3 device ID mapping index is used for SMMUv3 MSI which is introduced in IORT spec revision c, add its support for iasl. Tested with iasl -t IORT then get the right SMMUv3 node in iort.asl. Link: https://github.com/acpica/acpica/commit/5c371879 Signed-off-by: Hanjun Guo Signed-off-by: Bob Moore Signed-off-by: Erik Schmauss --- include/acpi/actbl2.h | 1 + 1 file changed, 1 insertion(+) -- 2.13.6 -- 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 diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index 2623f9d72e46..0d60d5df14f8 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -810,6 +810,7 @@ struct acpi_iort_smmu_v3 { u8 pxm; u8 reserved1; u16 reserved2; + u32 id_mapping_index; }; /* Values for Model field above */ From patchwork Fri Nov 17 23:42:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmauss, Erik" X-Patchwork-Id: 119235 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1139604qgn; Fri, 17 Nov 2017 15:46:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMaInex3aPQYPTgdy1Z4aJ9ZrOeS+gWt2aqPG5M0FZnttN3GstwCPAmzrLq0KMPNUgEtl5wT X-Received: by 10.98.7.74 with SMTP id b71mr3721768pfd.172.1510962407920; Fri, 17 Nov 2017 15:46:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510962407; cv=none; d=google.com; s=arc-20160816; b=yUqkYQc6LddnozpRu56vDS5wrOxNn9zcPI2vY0fJFpY2Wymj5oq4E+/jcVO97bAy8E Dvrtqz4khpDWKWuM+wrY+ginBvOgPyf5RzwZUyaZmuwl+L4pualup/TFFXRaqRXE+//8 gx7K4CLzdVyihfU1BU5sd+vgU5Lbbtvmx5ouYVggep0DEdSRMFLIlxqghSwOwPDsZA+4 0oX7GRjVwKhKdhh7UVCeRHj9H2U+dx/fXLbpN1IDRABxXcSOvFVXnSFsmbLTknGBh1DY 2e8pO+sgpFD0C3vh/gachiiqofcSNwvaHenKOfldiJTS6DH+qLdjCxhV7TYgCms/vm6o p0Ew== 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:arc-authentication-results; bh=pBUM0/vbW3h6YZOPjNORLjQ3ld9/XIPruzYOTne30aY=; b=b0d8cpELvUwb2nM6zCPs4nW4tLIFUCUtQRiNpv2Mm2lA+vaas7KiKG1HwNJ7swOi9i DzA7QwJ7F66s9NJjbn1XyPFJ+D72sGL7d7aiTgnkhK4wnj2KLugEPGpbz6QgerkbJ5vx +bTo7SmjxpVUDEJ0YA2gv8A4A19l6mvlBnaB7P4nX1Knz2hOr/Wip2MrgVe0M7MRS4mJ 1+tRB4kkjtXUOZSrvRgJtB2awQyBGLjScGxujFVtDHqNn3r1PDZPrpKH+WoPLtURuyHO PEKlXa5pEddQYIBLIHfWFHguMPd42yS/jeq7dCNvS1qcDbQDnfCGBDSy7eADcvDaEAJu V4/Q== 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 y38si3661695plh.61.2017.11.17.15.46.47; Fri, 17 Nov 2017 15:46:47 -0800 (PST) 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 S1161069AbdKQXqq (ORCPT + 7 others); Fri, 17 Nov 2017 18:46:46 -0500 Received: from mga02.intel.com ([134.134.136.20]:39440 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161767AbdKQXqp (ORCPT ); Fri, 17 Nov 2017 18:46:45 -0500 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Nov 2017 15:46:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,411,1505804400"; d="scan'208";a="177058342" Received: from bartok.jf.intel.com ([10.54.75.154]) by fmsmga005.fm.intel.com with ESMTP; 17 Nov 2017 15:46:45 -0800 From: Erik Schmauss To: linux-acpi@vger.kernel.org Cc: Jeremy Linton , Bob Moore , Erik Schmauss Subject: [PATCH 14/15] ACPICA: ACPI 6.2: Additional PPTT flags Date: Fri, 17 Nov 2017 15:42:29 -0800 Message-Id: <20171117234230.913-15-erik.schmauss@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171117234230.913-1-erik.schmauss@intel.com> References: <20171117234230.913-1-erik.schmauss@intel.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Jeremy Linton ACPICA commit fba3ae99b2bc514ca34f0d7b2609c2a043582784 The ACPI 6.2 spec has flags to describe cache allocation, write back, and whether it is an instruction, data or unified cache. Link: https://github.com/acpica/acpica/commit/fba3ae99 Signed-off-by: Jeremy Linton Signed-off-by: Bob Moore Signed-off-by: Erik Schmauss --- include/acpi/actbl1.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.13.6 -- 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 diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index 178661f1b896..4c304bf4d591 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h @@ -1441,6 +1441,20 @@ struct acpi_pptt_cache { #define ACPI_PPTT_MASK_CACHE_TYPE (0x0C) /* Cache type */ #define ACPI_PPTT_MASK_WRITE_POLICY (0x10) /* Write policy */ +/* Attributes describing cache */ +#define ACPI_PPTT_CACHE_READ_ALLOCATE (0x0) /* Cache line is allocated on read */ +#define ACPI_PPTT_CACHE_WRITE_ALLOCATE (0x01) /* Cache line is allocated on write */ +#define ACPI_PPTT_CACHE_RW_ALLOCATE (0x02) /* Cache line is allocated on read and write */ +#define ACPI_PPTT_CACHE_RW_ALLOCATE_ALT (0x03) /* Alternate representation of above */ + +#define ACPI_PPTT_CACHE_TYPE_DATA (0x0) /* Data cache */ +#define ACPI_PPTT_CACHE_TYPE_INSTR (1<<2) /* Instruction cache */ +#define ACPI_PPTT_CACHE_TYPE_UNIFIED (2<<2) /* Unified I & D cache */ +#define ACPI_PPTT_CACHE_TYPE_UNIFIED_ALT (3<<2) /* Alternate representation of above */ + +#define ACPI_PPTT_CACHE_POLICY_WB (0x0) /* Cache is write back */ +#define ACPI_PPTT_CACHE_POLICY_WT (1<<4) /* Cache is write through */ + /* 2: ID Structure */ struct acpi_pptt_id {