From patchwork Tue May 5 13:50:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 48030 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A182620553 for ; Tue, 5 May 2015 13:52:14 +0000 (UTC) Received: by wizk4 with SMTP id k4sf42971920wiz.2 for ; Tue, 05 May 2015 06:52:14 -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=4vWv+TmoBnZd/0htOXvNNU/oy3JSADlpyHWxLkzQYMY=; b=H2kaL4fBLlHb9+P3+4LUqKg8kiIFZFrljPtu61D672wmkLoFxxOCs4yvXYSEBH0poh YABWrJcIsxBBOZEJGTXwx6pvVY1dKDOYyNZ3G43J9SBt499GXvLggPXAon1yGq9oozvS f/2T3ka1TDCFPA0qWZ57jJqceOaqkzDLXUTpZaityHieZ0LT74NoubzovnCGrd0Xu65Q c98CvtP+fPr/EZh93JdvCnd8lMiGbOSAgaCi4crhMt4nQPkYllw4PComHm3qxs55zUNR E4XW5aodvoIFaDyWxg1skl5JjcD4QXl3VqgezcgXt7cIcEbmE1/wdS71xTKKT6z0+KRi 5GUQ== X-Gm-Message-State: ALoCoQmR920xsTwhpSLSuhr5/hK+lY3NBpbCqMZW0SBXU82Jff0YoDqLE3wxiVghKa+4vCb5K+L3 X-Received: by 10.180.216.12 with SMTP id om12mr1560870wic.1.1430833933990; Tue, 05 May 2015 06:52:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.169 with SMTP id l9ls910952lah.52.gmail; Tue, 05 May 2015 06:52:13 -0700 (PDT) X-Received: by 10.152.2.227 with SMTP id 3mr23790834lax.73.1430833933692; Tue, 05 May 2015 06:52:13 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id s2si12481841lbf.154.2015.05.05.06.52.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2015 06:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by layy10 with SMTP id y10so127956840lay.0 for ; Tue, 05 May 2015 06:52:13 -0700 (PDT) X-Received: by 10.153.6.36 with SMTP id cr4mr24629538lad.56.1430833933587; Tue, 05 May 2015 06:52:13 -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.67.65 with SMTP id l1csp2261988lbt; Tue, 5 May 2015 06:52:12 -0700 (PDT) X-Received: by 10.68.246.1 with SMTP id xs1mr51408456pbc.53.1430833931762; Tue, 05 May 2015 06:52:11 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cq2si24414827pbb.67.2015.05.05.06.52.10; Tue, 05 May 2015 06:52:11 -0700 (PDT) Received-SPF: none (google.com: linux-acpi-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992689AbbEENwH (ORCPT + 7 others); Tue, 5 May 2015 09:52:07 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36073 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992684AbbEENwF (ORCPT ); Tue, 5 May 2015 09:52:05 -0400 Received: by pabsx10 with SMTP id sx10so193801177pab.3 for ; Tue, 05 May 2015 06:52:05 -0700 (PDT) X-Received: by 10.68.69.45 with SMTP id b13mr52182147pbu.150.1430833925297; Tue, 05 May 2015 06:52:05 -0700 (PDT) Received: from localhost ([180.150.157.4]) by mx.google.com with ESMTPSA id a5sm16082903pdk.58.2015.05.05.06.52.01 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 05 May 2015 06:52:02 -0700 (PDT) From: Hanjun Guo To: Marc Zyngier , Jason Cooper , Will Deacon , Catalin Marinas , "Rafael J. Wysocki" Cc: Jiang Liu , Lorenzo Pieralisi , Arnd Bergmann , Tomasz Nowicki , Grant Likely , Thomas Gleixner , Olof Johansson , linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Hanjun Guo Subject: [RFC PATCH 1/9] ACPICA: Introduce GIC version for arm based system Date: Tue, 5 May 2015 21:50:49 +0800 Message-Id: <1430833857-30736-2-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430833857-30736-1-git-send-email-hanjun.guo@linaro.org> References: <1430833857-30736-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@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.41 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: Tomasz Nowicki A new field is added in GIC distributor to indication the GIC version, support it in ACPICA for later use Signed-off-by: Tomasz Nowicki Signed-off-by: Hanjun Guo --- include/acpi/actbl1.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index b80b0e6..b4f0f74 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h @@ -819,7 +819,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 6.0) */ struct acpi_madt_generic_distributor { struct acpi_subtable_header header; @@ -827,7 +827,20 @@ struct acpi_madt_generic_distributor { u32 gic_id; u64 base_address; u32 global_irq_base; - u32 reserved2; /* reserved - must be zero */ + u8 gic_version; + u8 reserved2[3]; /* reserved - must be zero */ +}; + +/* Values for gic_version in Generic Distributor (ACPI 6.0) */ + +enum acpi_madt_gic_ver_type +{ + ACPI_MADT_GIC_VER_UNKNOWN = 0, + ACPI_MADT_GIC_VER_V1 = 1, + ACPI_MADT_GIC_VER_V2 = 2, + ACPI_MADT_GIC_VER_V3 = 3, + ACPI_MADT_GIC_VER_V4 = 4, + ACPI_MADT_GIC_VER_RESERVED = 5 /* 5 and greater are reserved */ }; /* 13: Generic MSI Frame (ACPI 5.1) */