From patchwork Tue Sep 2 00:27:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zheng, Lv" X-Patchwork-Id: 36425 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ABE682032B for ; Tue, 2 Sep 2014 00:27:45 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id kx10sf67324267pab.4 for ; Mon, 01 Sep 2014 17:27: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: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=lDeShAJ4VnjnW1oF1j581IAYcqLS89L/itoOezn0CBU=; b=PNZRS6Mb4KTuGkm+KphzqMZyaunGz4vmcI7JR+M13kr60z0NxrCp8PQjE2JuN5vPJ3 aJuLXCX6GRfU0l+U3a6qiQAJhkRCbjVQn8QlYaYlmFYazDLKUyFxHyeF1NdxFPDg0nJB Nta8EdeZf0BG8lzC55g++ZgwASzXizuwteRcde+NWvmZ5qOtOXLJFLoN99ctpI8BpNmb Y3bcN9uH+WdJW2RMXG+b2z/AO4+EQ7rpfwexrZRW66+vc/ytA6TDHJm302er8hM54Wu2 0IB4jdGks6hxEWmhLzOxIoGZOseeRcC+f6sSM+mzSezgBBNuorMfF+cOD/41a+mpdqr1 SPfQ== X-Gm-Message-State: ALoCoQnV8jeQOmS2F8dKDgWn+FljFM7Wb52qWDnpYfmiEc4e7/1+uyfz1HrcKGAv+/0BP3gp1RD0 X-Received: by 10.68.216.231 with SMTP id ot7mr17434274pbc.2.1409617664972; Mon, 01 Sep 2014 17:27:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.240 with SMTP id n103ls2308009qgd.13.gmail; Mon, 01 Sep 2014 17:27:44 -0700 (PDT) X-Received: by 10.220.127.17 with SMTP id e17mr59130vcs.56.1409617664876; Mon, 01 Sep 2014 17:27:44 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id be11si1580806vdd.60.2014.09.01.17.27.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 17:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hq11so6127850vcb.22 for ; Mon, 01 Sep 2014 17:27:44 -0700 (PDT) X-Received: by 10.220.116.196 with SMTP id n4mr27208599vcq.6.1409617664705; Mon, 01 Sep 2014 17:27:44 -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.221.45.67 with SMTP id uj3csp451591vcb; Mon, 1 Sep 2014 17:27:44 -0700 (PDT) X-Received: by 10.68.179.66 with SMTP id de2mr42954311pbc.31.1409617663898; Mon, 01 Sep 2014 17:27:43 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si3371108pdr.83.2014.09.01.17.27.43 for ; Mon, 01 Sep 2014 17:27:43 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1752881AbaIBA12 (ORCPT + 25 others); Mon, 1 Sep 2014 20:27:28 -0400 Received: from mga11.intel.com ([192.55.52.93]:1628 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752585AbaIBA1T (ORCPT ); Mon, 1 Sep 2014 20:27:19 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 01 Sep 2014 17:27:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,446,1406617200"; d="scan'208";a="584793681" Received: from yzhu16-mobl.ccr.corp.intel.com (HELO lvzheng-z530.sh.intel.com) ([10.239.37.123]) by fmsmga001.fm.intel.com with ESMTP; 01 Sep 2014 17:27:16 -0700 From: Lv Zheng To: "Rafael J. Wysocki" , Len Brown Cc: Lv Zheng , Lv Zheng , , linux-acpi@vger.kernel.org, Hanjun Guo , Bob Moore Subject: [PATCH 2/6] ACPICA: ACPI 5.1/Disassembler: Add GICC affinity subtable to SRAT table. Date: Tue, 2 Sep 2014 08:27:12 +0800 Message-Id: <4146d3ca95c7360d4808d36f51e2ba9bba99e332.1409617516.git.lv.zheng@intel.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: References: 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: lv.zheng@intel.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 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: Hanjun Guo Update template for SRAT. Add clock_domain to standard CPU affinity subtable. Mostly by Hanjun Guo Signed-off-by: Hanjun Guo Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/actbl1.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index 7626bfe..29e7937 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h @@ -952,7 +952,8 @@ enum acpi_srat_type { ACPI_SRAT_TYPE_CPU_AFFINITY = 0, ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1, ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2, - ACPI_SRAT_TYPE_RESERVED = 3 /* 3 and greater are reserved */ + ACPI_SRAT_TYPE_GICC_AFFINITY = 3, + ACPI_SRAT_TYPE_RESERVED = 4 /* 4 and greater are reserved */ }; /* @@ -968,7 +969,7 @@ struct acpi_srat_cpu_affinity { u32 flags; u8 local_sapic_eid; u8 proximity_domain_hi[3]; - u32 reserved; /* Reserved, must be zero */ + u32 clock_domain; }; /* Flags */ @@ -1010,6 +1011,20 @@ struct acpi_srat_x2apic_cpu_affinity { #define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */ +/* 3: GICC Affinity (ACPI 5.1) */ + +struct acpi_srat_gicc_affinity { + struct acpi_subtable_header header; + u32 proximity_domain; + u32 acpi_processor_uid; + u32 flags; + u32 clock_domain; +}; + +/* Flags for struct acpi_srat_gicc_affinity */ + +#define ACPI_SRAT_GICC_ENABLED (1) /* 00: Use affinity structure */ + /* Reset to default packing */ #pragma pack()