From patchwork Thu Jun 11 09:51: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: 49736 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D699F2460E for ; Thu, 11 Jun 2015 09:51:46 +0000 (UTC) Received: by lbcue7 with SMTP id ue7sf578373lbc.3 for ; Thu, 11 Jun 2015 02:51:45 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=2NI083+WrHzKJnCiqzqyuu52ifY7V5GBrvfxHpBD2uw=; b=IxvoOmjZcjuSxYL2iB6qB7aqvV1OWxrGjemT5VTF4Ax3LLN4e9XkfpDFKi1z5B1YXj 3YhKu2TOaHhAy1KxV+mkp8h+SOBaRB6Ty5AUcCOXGcbRWQlVuWI52xff+8xM6Lzp5HiD 6gAOm4Ts86GWkfh2FygfCHxeyzD0SK9YDkixQRZIEueVY/N60r6smLfpEaxPZn4tLLOo xTtAodyxwmXVXiweBZzamfPqO99TrAd/2a5eWg0IHwxqfkxsTsNXLbtrq8RhC8/yMEXR Iq/QoV179hfLgDGbF4oGwRg6BP0qkokpuVC1buVXa1zMGHoOsZj1sPMFEV8O6xxHMPba QDAA== X-Gm-Message-State: ALoCoQnGRdO4KSdwE71XTkeFYxfMC8eq4TJXb7mcK924V0HiW8DKrYHFQ/jxKdrSCqrP9I8Lu/Wj X-Received: by 10.194.236.230 with SMTP id ux6mr7640215wjc.5.1434016305806; Thu, 11 Jun 2015 02:51:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.18 with SMTP id s18ls385385lal.63.gmail; Thu, 11 Jun 2015 02:51:45 -0700 (PDT) X-Received: by 10.152.42.200 with SMTP id q8mr8571627lal.53.1434016305639; Thu, 11 Jun 2015 02:51:45 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id of3si123901lbb.110.2015.06.11.02.51.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jun 2015 02:51:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbqq2 with SMTP id qq2so1289174lbb.3 for ; Thu, 11 Jun 2015 02:51:45 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr8812456lay.72.1434016305534; Thu, 11 Jun 2015 02:51:45 -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 hn6csp3916496lbb; Thu, 11 Jun 2015 02:51:44 -0700 (PDT) X-Received: by 10.68.102.1 with SMTP id fk1mr13683786pbb.56.1434016304433; Thu, 11 Jun 2015 02:51:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bt1si190337pbb.171.2015.06.11.02.51.43; Thu, 11 Jun 2015 02:51:44 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753101AbbFKJvm (ORCPT + 5 others); Thu, 11 Jun 2015 05:51:42 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:32778 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133AbbFKJvm (ORCPT ); Thu, 11 Jun 2015 05:51:42 -0400 Received: by pdjn11 with SMTP id n11so1521541pdj.0 for ; Thu, 11 Jun 2015 02:51:41 -0700 (PDT) X-Received: by 10.70.56.4 with SMTP id w4mr13650748pdp.148.1434016301627; Thu, 11 Jun 2015 02:51:41 -0700 (PDT) Received: from localhost ([104.207.83.5]) by mx.google.com with ESMTPSA id fk10sm206782pab.18.2015.06.11.02.51.39 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 11 Jun 2015 02:51:40 -0700 (PDT) From: Hanjun Guo To: Lv Zheng , "Rafael J. Wysocki" Cc: Robert Moore , linux-acpi@vger.kernel.org, Hanjun Guo Subject: [PATCH v2] ACPICA: Add values for MADT GIC version field for ACPI 6.0 Date: Thu, 11 Jun 2015 17:51:04 +0800 Message-Id: <1434016264-4801-1-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 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.217.176 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: , ACPI 6.0 specified MADT generic distributor version values, but the detail definition is missing in ACPICA version 20150515, add its support in this patch which is needed for ARM64 ACPI based GIC init. Signed-off-by: Hanjun Guo Signed-off-by: Bob Moore --- Hi Lv, Rafael, Could you help merge this patch for 4.2? It should be in the ACPICA release of 20150515, but we missed that chance. This patch will be needed for ARM64 GIC init and I prepare to upstream those patches in 4.3, so if this patch accpeted in 4.2, it will have less dedenpence for ACPICA core and ARM64 GIC code in next kernel version. This patch was accepted by Bob and merged into ACPICA tree, I reworked it on top of linux ACPICA. Thanks Hanjun include/acpi/actbl1.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index cadf21c..d382de8 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h @@ -834,6 +834,17 @@ struct acpi_madt_generic_distributor { u8 reserved2[3]; /* reserved - must be zero */ }; +/* Values for Version field above */ + +enum acpi_madt_gic_version { + ACPI_MADT_GIC_VERSION_NONE = 0, + ACPI_MADT_GIC_VERSION_V1 = 1, + ACPI_MADT_GIC_VERSION_V2 = 2, + ACPI_MADT_GIC_VERSION_V3 = 3, + ACPI_MADT_GIC_VERSION_V4 = 4, + ACPI_MADT_GIC_VERSION_RESERVED = 5 /* 5 and greater are reserved */ +}; + /* 13: Generic MSI Frame (ACPI 5.1) */ struct acpi_madt_generic_msi_frame {