Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753715AbdFMORl (ORCPT ); Tue, 13 Jun 2017 10:17:41 -0400 Received: from mail-by2nam01on0082.outbound.protection.outlook.com ([104.47.34.82]:4352 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753294AbdFMORj (ORCPT ); Tue, 13 Jun 2017 10:17:39 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=George.Cherian@cavium.com; From: George Cherian To: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, devel@acpica.org Cc: rjw@rjwysocki.net, lenb@kernel.org, jassisinghbrar@gmail.com, robert.moore@intel.com, lv.zheng@intel.com, George Cherian Subject: [PATCH 0/2] Make cppc acpi driver aware of pcc subspace ids Date: Tue, 13 Jun 2017 14:17:09 +0000 Message-Id: <1497363431-10002-1-git-send-email-george.cherian@cavium.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0090.INDPRD01.PROD.OUTLOOK.COM (10.174.208.158) To BY1PR0701MB1708.namprd07.prod.outlook.com (10.162.111.14) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY1PR0701MB1708: X-MS-Office365-Filtering-Correlation-Id: b9d79d3a-b123-48f2-08be-08d4b266f049 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BY1PR0701MB1708; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1708;3:dXUoVFx0G/PWow24fyyEXevtFVqG1lzw9nDISL12IKOp+bwclzM73iSANebsGH5OHSwiDg1QZ6e9wiC8wMXUydqpqHYmOvUT1nPPS+hADoqVSU9OYGG7qBLR8n5bA9PFORJQ+gaRLcB9tlWg1O8Ra5vuSCLm8Kg9MV39LjfLa2zo3bNXC3T2zYOt0xvvwj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c5rd9vHlASb9+2tsBZL3RCpsCdcJdSohBLTQ0AS+PFGG1G0bXLs2IRAhHD7esyoxYSAWstFtg9YixnH53GRqbEHDn/CFqa3qu1CfGYct6uLsF5l+HbLMIgmYYjDwms7yMV0fplfERj8gt3nkJS3mt+3BwDfNpT34DLr3YC2w/uSsPYOPVcrMsgcfk2NiQayXPupJ6MKul/eP4WudrKCAUTAn6l4lpe0UDLnS3dLkaeGLLuJ6BfzNk+bL/d6onvZFKBO4DmbbB8lqyFx/l1D67Lf78jqrVToMYT2U3QBUos/fGacRtOUrZ5mOUtKsJVAQFZKKIJm2soPYECcG6ZO1QTwtJLOQqyZJVlGEj5pnadMcv X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY1PR0701MB1708;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY1PR0701MB1708; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0701MB1708;4:babAa7+RsZRm8WB1l1lz1Js1Nuh+k5rcdMwdag25?= =?us-ascii?Q?A7mI5CmkLE91gnwHFxJVqzY5ZI0o6ZnVxExycYxPRYcSO7rcqudIV4t7dfK3?= =?us-ascii?Q?5IkEkpqAaGg035EvjJe9X1oFIxnI1SViMNzB6nEbItxBWnnN7YUx86ufMRS8?= =?us-ascii?Q?3biws86P1v2sP/3KsPJCREH4WFcYymeDKKsp0N4i9DAXd6pz6u36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lNWrxsabqzyAi37EneJWkfiLrKtJ+fcbwPCMrn9xSL?= =?us-ascii?Q?f3ggRSZ3Akgj2TeG3OjgJs5DrDwPfWzF?= X-Forefront-PRVS: 0337AFFE9A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39450400003)(39410400002)(39850400002)(39400400002)(39840400002)(199003)(189002)(36756003)(107886003)(6666003)(110136004)(69596002)(38730400002)(105586002)(53936002)(5003940100001)(7736002)(33646002)(305945005)(106356001)(42186005)(68736007)(6512007)(25786009)(6506006)(6486002)(101416001)(5009440100003)(50226002)(5660300001)(72206003)(4326008)(97736004)(3846002)(6116002)(50986999)(2906002)(48376002)(47776003)(86362001)(8676002)(66066001)(53416004)(478600001)(81156014)(50466002)(81166006)(189998001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0701MB1708;H:ubuntu.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0701MB1708;23:4/9G2G6pCZLHa7m57cLC0RJbpSQYyV5J2QEeyaG?= =?us-ascii?Q?v2COhWg0maHcpqKYk4R2Pwq4HPCC4kxtios4KM0GRbtCEfeHuvBQhWPC703Y?= =?us-ascii?Q?zRTFdytMNyh5zz2KLeTbwjDpaE2cFhVA8a/3b3QVSC9lZdd6C6am0X2Ut7hC?= =?us-ascii?Q?shjUGShsiFYLlAK9HyEuUf+z9f+CRoLm87TfUbTTJqzFvnU2rpVbIjre/6k3?= =?us-ascii?Q?kodP+nuC9QroZLV098Z7FM/xMKsX6gwvS+hvixEsp/n7LGQISv43WwSOa//A?= =?us-ascii?Q?MqrfFPC72bKXYjcv/7mMOO2DBsvB6Id5DRE9mUstnTy1duOXrSbG31QuMFb9?= =?us-ascii?Q?TUbiePKu5JiR6bcAwCIQv0whZPAH0vvDcoE4YG3DUbaIvgBA0gDGrvWDS1g1?= =?us-ascii?Q?onVoMIxCYAuRwvR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Z6SbKo6OqCHm;24:7kul1YTghCYkw5vWYUNJb7E1vQKowfa8WsXSrVOg2mtsVtW97abiAUdXmO7OqjS76ykM4uNgBWnV5JuHSCQAcFALlQvBIqLgm9P+pkHp+0w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1708;7:6BVYSPiBx4Oo8hkoJgNid1S8ySPVz2798vKVtKvH3J0Ak0Rd+6LBrQOF1W5A2xaNuFxcQZGr/wMpnwcIzYh7jt/8jmXCBIVJTpHDQkkHCoh4+KLkx3j5QwOmvCViRdTuNNjY7yd+21WaL3iqLuufwhKTRtcyc0OxYIkNAsNlZTPxEOItRC30znM+yNWcT6ifrZz9TA2fcigCJiXpUX2v6iIcZFUPSD9dY4szrVnHdd+FQLzuUZfW8k624J9V/oGIZWcS+C6iqkS1W4rnDL+l7Bm0crSZoAFOOkPlmCDkAx+xWJsbkR5XWMX60LK38Hk4Lqau3VXiDmMNnXZ3PJk9lQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2017 14:17:32.5839 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1708 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 977 Lines: 25 The current cppc acpi driver works with only one pcc subspace id. It maintains and registers only one pcc channel even if the acpi table has different pcc subspace ids. As per ACPI 6.2 spec all PCC registers, for all processors in the same performance domain (as defined by _PSD), must be defined to be in the same subspace. The series tries to address the same by making cppc acpi driver aware of multiple possible pcc subspace ids. Patch 1 : In preparation to share the MAX_PCC_SUBSPACE definition with cppc acpi driver Patch 2 : Make the cppc acpi driver aware of multiple pcc subspace ids. George Cherian (2): mailbox: PCC: Move the MAX_PCC_SUBSPACES definition to header file ACPI / CPPC: Make cppc acpi driver aware of pcc subspace ids drivers/acpi/cppc_acpi.c | 179 +++++++++++++++++++++++++---------------------- drivers/mailbox/pcc.c | 1 - include/acpi/pcc.h | 1 + 3 files changed, 97 insertions(+), 84 deletions(-) -- 2.7.4