From patchwork Fri Jun 19 08:46:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 50063 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EF243218C9 for ; Fri, 19 Jun 2015 08:47:00 +0000 (UTC) Received: by lbbti3 with SMTP id ti3sf26614302lbb.1 for ; Fri, 19 Jun 2015 01:46:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=vm5k2uCEmBX6xWpJZimPkmpKpuSIHTJo4DOUY7voDlI=; b=QvpzktRdU30cOA/SkZF96D8vmBShXijHLGusHJYbQJxqlReSQJ+0/VlUhDrfU5ehZy VJsjn5OBhJ7X/cd1BvdjwSkYyea3yUsJJBchzYI9VoVMwa76nOMWS8bO1eawtCHHBb/h P9UTSga0u/Cjs+lp8CG2KYzpT2hW6hdXyBZ8qUIUZ+hFr5mWiLoVYt4jpUmgVWCoOuhI xPwiZCtRbU02pwN1G068V3u2DZ9tAirlySNNP+T/CXhoon/Fi9Ulw2VraMuVBmogTitD Z0lhIGhg3Bf7FCqay1iiQG7Hi06sa1uvlE9OtFPZb7h1fIRGjfKD2jql+ooZVj0T5Hgp z6Ag== X-Gm-Message-State: ALoCoQlWKHrsnf4LIWf66D3dtd7/4u0PJx832Bfu62zFeC1EI/5MC9kh/oDE0IfkoEZKLTBAoS0M X-Received: by 10.112.14.101 with SMTP id o5mr14055734lbc.3.1434703619927; Fri, 19 Jun 2015 01:46:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.232 with SMTP id p8ls591565laf.13.gmail; Fri, 19 Jun 2015 01:46:59 -0700 (PDT) X-Received: by 10.152.7.65 with SMTP id h1mr16794240laa.33.1434703619744; Fri, 19 Jun 2015 01:46:59 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id u7si8596897laj.60.2015.06.19.01.46.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jun 2015 01:46:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by laka10 with SMTP id a10so69964395lak.0 for ; Fri, 19 Jun 2015 01:46:59 -0700 (PDT) X-Received: by 10.152.7.7 with SMTP id f7mr16949455laa.106.1434703619590; Fri, 19 Jun 2015 01:46:59 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp411584lbb; Fri, 19 Jun 2015 01:46:58 -0700 (PDT) X-Received: by 10.66.164.161 with SMTP id yr1mr29337196pab.63.1434703617571; Fri, 19 Jun 2015 01:46:57 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jx7si15294621pbc.201.2015.06.19.01.46.56; Fri, 19 Jun 2015 01:46: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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754702AbbFSIqw (ORCPT + 30 others); Fri, 19 Jun 2015 04:46:52 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33440 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754631AbbFSIqe (ORCPT ); Fri, 19 Jun 2015 04:46:34 -0400 Received: by padev16 with SMTP id ev16so81008177pad.0 for ; Fri, 19 Jun 2015 01:46:33 -0700 (PDT) X-Received: by 10.68.135.233 with SMTP id pv9mr30097760pbb.115.1434703593853; Fri, 19 Jun 2015 01:46:33 -0700 (PDT) Received: from localhost ([180.150.157.4]) by mx.google.com with ESMTPSA id mq2sm10420897pbb.16.2015.06.19.01.46.32 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 19 Jun 2015 01:46:33 -0700 (PDT) From: Hanjun Guo To: Marc Zyngier , Jason Cooper , Will Deacon , Catalin Marinas , "Rafael J. Wysocki" Cc: Thomas Gleixner , Jiang Liu , Lorenzo Pieralisi , Arnd Bergmann , Tomasz Nowicki , Grant Likely , Olof Johansson , Wei Huang , linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Bob Moore , Lv Zheng , "Rafael J. Wysocki" Subject: [PATCH v2 1/9] ACPICA: ACPI 6.0: Add changes for MADT table. Date: Fri, 19 Jun 2015 16:46:04 +0800 Message-Id: <1434703572-26221-2-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434703572-26221-1-git-send-email-hanjun.guo@linaro.org> References: <1434703572-26221-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Bob Moore ACPICA commit 02cbb41232bccf7a91967140cab95d5f48291f21 New subtable type. Some additions to existing subtables. Link: https://github.com/acpica/acpica/commit/02cbb412 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki --- This patch is already merged into APCICA core, sending them out just for the help of better understanding later GIC related code. include/acpi/actbl1.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index b80b0e6..cadf21c 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h @@ -673,7 +673,8 @@ enum acpi_madt_type { ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12, ACPI_MADT_TYPE_GENERIC_MSI_FRAME = 13, ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR = 14, - ACPI_MADT_TYPE_RESERVED = 15 /* 15 and greater are reserved */ + ACPI_MADT_TYPE_GENERIC_TRANSLATOR = 15, + ACPI_MADT_TYPE_RESERVED = 16 /* 16 and greater are reserved */ }; /* @@ -794,7 +795,7 @@ struct acpi_madt_local_x2apic_nmi { u8 reserved[3]; /* reserved - must be zero */ }; -/* 11: Generic Interrupt (ACPI 5.0) */ +/* 11: Generic Interrupt (ACPI 5.0 + ACPI 6.0 changes) */ struct acpi_madt_generic_interrupt { struct acpi_subtable_header header; @@ -811,6 +812,8 @@ struct acpi_madt_generic_interrupt { u32 vgic_interrupt; u64 gicr_base_address; u64 arm_mpidr; + u8 efficiency_class; + u8 reserved2[3]; }; /* Masks for Flags field above */ @@ -819,7 +822,7 @@ struct acpi_madt_generic_interrupt { #define ACPI_MADT_PERFORMANCE_IRQ_MODE (1<<1) /* 01: Performance Interrupt Mode */ #define ACPI_MADT_VGIC_IRQ_MODE (1<<2) /* 02: VGIC Maintenance Interrupt mode */ -/* 12: Generic Distributor (ACPI 5.0) */ +/* 12: Generic Distributor (ACPI 5.0 + ACPI 6.0 changes) */ struct acpi_madt_generic_distributor { struct acpi_subtable_header header; @@ -827,7 +830,8 @@ struct acpi_madt_generic_distributor { u32 gic_id; u64 base_address; u32 global_irq_base; - u32 reserved2; /* reserved - must be zero */ + u8 version; + u8 reserved2[3]; /* reserved - must be zero */ }; /* 13: Generic MSI Frame (ACPI 5.1) */ @@ -855,6 +859,16 @@ struct acpi_madt_generic_redistributor { u32 length; }; +/* 15: Generic Translator (ACPI 6.0) */ + +struct acpi_madt_generic_translator { + struct acpi_subtable_header header; + u16 reserved; /* reserved - must be zero */ + u32 translation_id; + u64 base_address; + u32 reserved2; +}; + /* * Common flags fields for MADT subtables */