Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753506AbdFMOPg (ORCPT ); Tue, 13 Jun 2017 10:15:36 -0400 Received: from mail-sn1nam01on0074.outbound.protection.outlook.com ([104.47.32.74]:38115 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752756AbdFMOPe (ORCPT ); Tue, 13 Jun 2017 10:15:34 -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-internal 0/2] Make cppc acpi driver aware of pcc subspace ids Date: Tue, 13 Jun 2017 14:15:11 +0000 Message-Id: <1497363313-9936-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: PN1PR01CA0109.INDPRD01.PROD.OUTLOOK.COM (10.174.144.25) To BN3PR0701MB1704.namprd07.prod.outlook.com (10.163.39.158) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3ee95f2d-f1ac-4ff4-a4a2-08d4b266a63c X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BN3PR0701MB1704; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1704;3:j9qLupBvyjm0nyOsa8ac9h235uHQmP75tD4HiHtD0GX7Kn1FU2kP1TvA92pk6/8j5DHj5PtGWuDH6wLZZ6Ih+LHlBWLw6AOqqYSdv7XVLBK/9PYsPAPxdIkULls+Owrga8N+afpbZ9YnG72Wpqizo9fkCBfl4G4VEZpW3qx8CJx/A+5YtYJQPAJh9Nl5pt04d5SZlmMynWY15YDP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xWfFsVLj6E3GtLLrClcLOM21l1KGl98vqwfvhFcyw7e17yROUT3s8mwMNTIR5kqSdFHxcjX3o7dS6FrOUH10sbTJjO21zKOJTEwwk7ZVYkfza/YE5GsuXxjkRJ0v8kWPAuYng7sUO2yvQKL8cvvhSENiDR24Ggd9q2o5PGrJa2Jl2cZVwpLtFUmeVGfw+2Sf3CJXceUKSEnLMIymoeXbjLSqFE+MMRwmrf3hSLMlCsIfDvWb4dYg2y8s4aFWWo+/6DRU5rd5jyfRO4Dhwx7/oMajZWNjhapG8XXuisEhnGnXk4l2JPfcA68Z2FJvbOU3AU70rH1NCOWM0zLfHl8X+cniIrAwXpbUQbjdcBRgkrRLN2E7Zh6cgSUqf 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)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN3PR0701MB1704;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN3PR0701MB1704; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0701MB1704;4:fJF1/D05dr4yN+u7YfrFFXzlYqDCMqMyE689axeM?= =?us-ascii?Q?idvH5tBFGx/hJEmoG7iFV2Sprt3ErsAxyJu9oEAXkhTPHNI0JxETSOEGoLoc?= =?us-ascii?Q?WWxk0ksNr+nXiVdZWRpG8Frjbs2RNkykTqoqJKUV1EStisn5vV9amd+ncu7D?= =?us-ascii?Q?0nNIAwyeym4/aGOFOZp9FGbndxu2vGubrhvg3XKa0uNoaO6LCiqwkyJLyZo1?= =?us-ascii?Q?sIP3sGAxTJ6WY5/QIpB96o04h1awvx+4/ue7ZztscrAbzZCJAggmIOZsERXf?= =?us-ascii?Q?uElSAwEb2VvKo1oLAbexNDN3IgmL0clWdQdo9z3buq71CLves4HTu1Pme9B2?= =?us-ascii?Q?fcLu7z4vl4lXwGKjt+jMw+FVz9URhzB8N3N40jTYazWwE/HfAI8D4ZqspZmQ?= =?us-ascii?Q?2G43xrsfaz2+2xhn8m26VR2wljddus1u4vBN6dcmSSEUmfF9oOzPV5FG2ga5?= =?us-ascii?Q?xtOoTJlvvJz2A3tSbnwAN6gpdwkfvJvv8+4FAcS2Ydqzb9GmucKkBbwCoX1G?= =?us-ascii?Q?5k//MHU2TPdixwbv4pH7fHbtr9WExqDiwioyJvTp+FwvvMUGPNWa8taCKqFr?= =?us-ascii?Q?ulkwqxzl8EBgZ4MgxR1MaiXm3b5WGtfWssZAEXbSDaiBY/LI24yqICX/03wm?= =?us-ascii?Q?w/RdIt5fOzy5fGUxTxoKaQ87lJWyRSZ6dZfgpxthp7CHm90qmdaclJsYZkW1?= =?us-ascii?Q?AgqM6cMnZM4YhFfFaEDelBDtJLlOJqTUFqw+mdayUdETBcVt946IKjeftj6n?= =?us-ascii?Q?m/cIiNSLjL0XqaK7cWOc/4xYw69427Ee+FMQSbr766toeb0HaKf1dgqjvVls?= =?us-ascii?Q?xGNQld1qt3+VIwP2sAIJZZj4CgWHiqqqgvrmNFsju5fZqphkDfoJN2uUutHp?= =?us-ascii?Q?LxvepfLk7YSahGv4NXWqtbOvo8MnAt2RaLv2Q/p1wbQWfaG6l84gKeB0syGk?= =?us-ascii?Q?SB9ChhDmMdTRqRhAoMnwcov3UW2gFwDybkYALc7ViLkqlKRco9R4MwFxbEf5?= =?us-ascii?Q?sn4Z/oc2ETOK4/G3Njh5UJfFzksmmWsYWB0uDSykzQtUI3eO6elO+eanPSde?= =?us-ascii?Q?9J0vEhC6yGkOcguamV9bSqiiLkPTixIZBBmeVpDM59dhZuzZMVZO0ZWtRqcx?= =?us-ascii?Q?YXmYY7lNkvpYgx0VVXqIXnmX718GJdzj?= X-Forefront-PRVS: 0337AFFE9A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39400400002)(39410400002)(39850400002)(39840400002)(39450400003)(189002)(199003)(107886003)(3846002)(110136004)(25786009)(38730400002)(50986999)(5009440100003)(305945005)(69596002)(2906002)(5003940100001)(101416001)(6512007)(48376002)(81166006)(50226002)(7736002)(36756003)(50466002)(4326008)(53936002)(6116002)(81156014)(72206003)(8676002)(478600001)(106356001)(105586002)(68736007)(6506006)(33646002)(189998001)(6486002)(97736004)(86362001)(53416004)(5660300001)(47776003)(6666003)(66066001)(42186005);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0701MB1704;H:ubuntu.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0701MB1704;23:5JTk+tYZlf8/Ggvhp2Jre/2RRB56hFc+hAvQuBC?= =?us-ascii?Q?51hske3GEmifCr6Cu+J3LfjbWGU/ODnKVNVMarpkQZP8BX/oUAncdm2vOAn4?= =?us-ascii?Q?mGYL5b5LY4CWdiHZCKLIJRdQAtMRMRkPQzNJ4PgaqEf92WD/9JBj4VAL887E?= =?us-ascii?Q?SayZO72OY01uKm9Unn05RsrdIKVWA0Sd1rPVkNYZnqG6/RRWWgv3X0tlNoHz?= =?us-ascii?Q?BLl9HwruOh9kJ/TSGESDHtr4n+oeqQhd+wkkKEIsBMvjcFt+kmSjvBtgrIbj?= =?us-ascii?Q?Q7noTGfVNI6O7shNCCmwmcK4WBxa4Zt9pagMKRI25Qi9WKS/NIfFLT/2xmrB?= =?us-ascii?Q?TDkNbt/oKGiyLr6GM53P/LAaedAl2ZTHQ/QTFvRRMofaa8dfoZzyHxCyaW2a?= =?us-ascii?Q?AhapJV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Ejmul2v3Frd;24:dA/aPMTezul+HhkWHyy1aIwfmPZwARJPAZi1KUZUUIFchV4cMrkdVgXQXYX5IF69NXawun8nuoFRhZXBPxcvHbotHPYA2W9ODzjJQDGQoas= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1704;7:u87OBHrV779S2LZbzmAxGhzE93pBUvKgxAW9YrcpQgAiUtb0kHJnWVDX2E6ioM60qevuqAd9UInXpO39eJKe20PbEBuctech5AwIRQkr/2ikzk6zBKYziAmFyKMICC+6Zwbuwd7M0SKqmdD6ZeuDvcRr+TKNVscvrOkjKfBCUrFH3T3s7eYqICzLgu3Sa2TUpCoA4VVDN0eaKmWMqNtozon+oMbb2Viooh01unAFnbLwoJcmTtXVaAluj0pafegdjDJAwEbrHEFYTD65P0pNtuhiVgrPpEFkARBVMhHoCdYhSV6QUm203yTGkCAezT3tTDliFmQO3j0M+zy311UVag== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2017 14:15:28.6420 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1704 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