From patchwork Wed Feb 4 14:01:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Dixit X-Patchwork-Id: 44339 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8826E2029F for ; Wed, 4 Feb 2015 14:04:48 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id gd6sf348053lab.1 for ; Wed, 04 Feb 2015 06:04:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=YYOHDxNuqFX1zJAtvVOVtHA9TMShpWtL/2F11iJu9BQ=; b=Gmw/z6Zw7nDqVxIoPeVO+/uFn7mmYidug1KGZu1mL5RCnJzlOVqWJKt0iTplD1dHuC OCfVi6weVCc2MfdOZQRKU3wFEfTcNDNOrSXRd8uDZUAyYnUBDP44O0CcePv35jwcAbEj 6MvPK0khgzUgxcCh3Cj1lgw7qKtcND2y+yChFnl/eZ5UKHG0x/TnhRAQq/YdOazvyYq4 xzawgzdVCOydobPazgWWbDRY2GeH6DhAAA34ksCP8n8oAk9TnRX8INNlgzzK6uKxDrNK IwLwlCpvRkpQYtFx0Q2svtgAvSbgCVhTc2IoMEv27C3L6VnInKQ0JORXOdULGkQoXFID 5hoQ== X-Gm-Message-State: ALoCoQkYeGghM39WLSFMx4DrzY4T8kYRunYtOfu9brisE5YuZTtzMYOX2kVIAHf8Kir/pG7K7zuZ X-Received: by 10.180.109.13 with SMTP id ho13mr525835wib.7.1423058687286; Wed, 04 Feb 2015 06:04:47 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.9 with SMTP id p9ls33075lag.86.gmail; Wed, 04 Feb 2015 06:04:47 -0800 (PST) X-Received: by 10.112.151.228 with SMTP id ut4mr30508040lbb.77.1423058687053; Wed, 04 Feb 2015 06:04:47 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id uj2si1366379lac.132.2015.02.04.06.04.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 06:04:47 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id ms9so1738667lab.1 for ; Wed, 04 Feb 2015 06:04:47 -0800 (PST) X-Received: by 10.112.173.202 with SMTP id bm10mr30496574lbc.24.1423058686942; Wed, 04 Feb 2015 06:04:46 -0800 (PST) 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.35.133 with SMTP id h5csp506491lbj; Wed, 4 Feb 2015 06:04:46 -0800 (PST) X-Received: by 10.220.179.200 with SMTP id br8mr19240308vcb.12.1423058685520; Wed, 04 Feb 2015 06:04:45 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id y6si744586vck.27.2015.02.04.06.04.44 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Feb 2015 06:04:45 -0800 (PST) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJ0YU-0006fJ-Gc; Wed, 04 Feb 2015 14:03:46 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJ0YT-0006el-Me for xen-devel@lists.xen.org; Wed, 04 Feb 2015 14:03:45 +0000 Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id 98/44-02995-0C622D45; Wed, 04 Feb 2015 14:03:44 +0000 X-Env-Sender: parth.dixit@linaro.org X-Msg-Ref: server-9.tower-31.messagelabs.com!1423058622!8275580!1 X-Originating-IP: [209.85.192.177] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.12.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12555 invoked from network); 4 Feb 2015 14:03:44 -0000 Received: from mail-pd0-f177.google.com (HELO mail-pd0-f177.google.com) (209.85.192.177) by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 4 Feb 2015 14:03:44 -0000 Received: by pdjy10 with SMTP id y10so872441pdj.7 for ; Wed, 04 Feb 2015 06:03:42 -0800 (PST) X-Received: by 10.66.159.67 with SMTP id xa3mr47490695pab.13.1423058622512; Wed, 04 Feb 2015 06:03:42 -0800 (PST) Received: from parthd-ubunutu.qualcomm.com ([202.46.23.62]) by mx.google.com with ESMTPSA id kg12sm2161881pbb.44.2015.02.04.06.03.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 06:03:41 -0800 (PST) From: parth.dixit@linaro.org To: xen-devel@lists.xen.org Date: Wed, 4 Feb 2015 19:31:51 +0530 Message-Id: <1423058539-26403-8-git-send-email-parth.dixit@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> References: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> Cc: ian.campbell@citrix.com, Naresh Bhat , julien.grall@linaro.org, tim@xen.org, Tomasz Nowicki , stefano.stabellini@citrix.com, Hanjun Guo , jbeulich@suse.com, christoffer.dall@linaro.org Subject: [Xen-devel] [PATCH RFC 07/35] ACPI / ACPICA: Add new features for MADT which introduced by ACPI 5.1 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: parth.dixit@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.42 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-Archive: From: Naresh Bhat Add new features for MADT which introduced by ACPI 5.1: -comment on the GIC ID field of the GIC structure which is replaced by CPU Interface Number. -add new fields: Redistributor Base Address, GICV, GICH, and MPIDR. -add new structures for GIC MSI frame and GICR. -add flag definition for GICC flags. Signed-off-by: Tomasz Nowicki Signed-off-by: Hanjun Guo Signed-off-by: Naresh Bhat --- xen/include/acpi/actbl1.h | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/xen/include/acpi/actbl1.h b/xen/include/acpi/actbl1.h index dd6dc27..d16670d 100644 --- a/xen/include/acpi/actbl1.h +++ b/xen/include/acpi/actbl1.h @@ -641,7 +641,9 @@ enum acpi_madt_type { ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10, ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11, ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12, - ACPI_MADT_TYPE_RESERVED = 13 /* 13 and greater are reserved */ + ACPI_MADT_TYPE_GIC_MSI_FRAME = 13, + ACPI_MADT_TYPE_GIC_REDISTRIBUTOR = 14, + ACPI_MADT_TYPE_RESERVED = 15 /* 15 and greater are reserved */ }; /* @@ -762,18 +764,23 @@ struct acpi_madt_local_x2apic_nmi { u8 reserved[3]; }; -/* 11: Generic Interrupt (ACPI 5.0) */ +/* 11: Generic Interrupt (ACPI 5.1) */ struct acpi_madt_generic_interrupt { struct acpi_subtable_header header; u16 reserved; /* reserved - must be zero */ - u32 gic_id; + u32 gic_id; /* it was renamed to cpu interface number in ACPI 5.1 */ u32 uid; u32 flags; u32 parking_version; u32 performance_interrupt; u64 parked_address; u64 base_address; + u64 gicv_base_address; + u64 gich_base_address; + u32 vgic_maintenance_interrupt; + u64 redist_base_address; + u64 mpidr; }; /* 12: Generic Distributor (ACPI 5.0) */ @@ -787,14 +794,37 @@ struct acpi_madt_generic_distributor { u32 reserved2; /* reserved - must be zero */ }; +/* 13: GIC MSI Frame (ACPI 5.1) */ + +struct acpi_madt_gic_msi_frame { + struct acpi_subtable_header header; + u16 reserved; /* reserved - must be zero */ + u32 gic_msi_frame_id; + u64 base_address; +}; + +/* 14: GIC Redistributor (ACPI 5.1) */ + +struct acpi_madt_gic_redistributor { + struct acpi_subtable_header header; + u16 reserved; /* reserved - must be zero */ + u64 base_address; + u32 region_size; +}; + /* * Common flags fields for MADT subtables */ -/* MADT Local APIC flags (lapic_flags) */ +/* MADT Local APIC flags (lapic_flags) and GICC flags */ #define ACPI_MADT_ENABLED (1) /* 00: Processor is usable if set */ +/* MADT GICC flags only */ + +#define ACPI_MADT_PERF_INT_MODE (1<<1) /* 01: Performance Interrupt Mode */ +#define ACPI_MADT_VGIC (1<<2) /* 02: VGIC Maintenance interrupt mode */ + /* MADT MPS INTI flags (inti_flags) */ #define ACPI_MADT_POLARITY_MASK (3) /* 00-01: Polarity of APIC I/O input signals */