From patchwork Fri Aug 25 02:52:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lan,Tianyu" X-Patchwork-Id: 9921441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8CB4A60349 for ; Fri, 25 Aug 2017 09:01:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BB4626E4A for ; Fri, 25 Aug 2017 09:01:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7085027D16; Fri, 25 Aug 2017 09:01:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00, DATE_IN_PAST_06_12, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 16AB726E4A for ; Fri, 25 Aug 2017 09:01:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlASV-0000SV-MZ; Fri, 25 Aug 2017 08:59:19 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlASU-0000Ra-4z for xen-devel@lists.xen.org; Fri, 25 Aug 2017 08:59:18 +0000 Received: from [85.158.137.68] by server-14.bemta-3.messagelabs.com id 45/25-01862-5E6EF995; Fri, 25 Aug 2017 08:59:17 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNLMWRWlGSWpSXmKPExsXS1taRovvk2fx Ig8OTDC2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oynty+xF/zgq7jxaRpzA+Nx7i5GDg4hgQqJ NU/Vuxg5OSQEeCWOLJvBCmH7S3xuecYIYgsJdDBKzPuoCmKzCahLnFg8ESwuIiAtce3zZSCbi 4NZYDOjxIrb75hBEsICHhLflqxnBZnPIqAqsWOWBUiYV8BFovPcDWaI+QoSUx6+B7M5BVwlmn vPMUGc4yJxbV3QBEbeBYwMqxg1ilOLylKLdA3N9ZKKMtMzSnITM3N0DQ2M9XJTi4sT01NzEpO K9ZLzczcxAgOBAQh2ML487XmIUZKDSUmUd3n0/EghvqT8lMqMxOKM+KLSnNTiQ4wyHBxKEryX ngDlBItS01Mr0jJzgCEJk5bg4FES4XV9CpTmLS5IzC3OTIdInWJUlBLnlQdJCIAkMkrz4Npgc XCJUVZKmJcR6BAhnoLUotzMElT5V4ziHIxKwrxRIFN4MvNK4Ka/AlrMBLR40ok5IItLEhFSUg 2M6x/tE9TW+RtrlOJXz3eMN3/Jem+m0OkiZx8qpVx6cHYhm5nmZplV0p58zvO6atql+JMeVfG 0zEl5s9GtXq9z+3pN60zRA7uPJt7lWqApJDm5Pe/umy8rRa2ybzqvnHJw4qszgny1UTekrx31 v1JyOyo8MdnuC2vZHZamF6wyMyI2VC8X2JeixFKckWioxVxUnAgAWrkv6H4CAAA= X-Env-Sender: tianyu.lan@intel.com X-Msg-Ref: server-7.tower-31.messagelabs.com!1503651554!104020333!1 X-Originating-IP: [134.134.136.100] X-SpamReason: No, hits=0.8 required=7.0 tests=DATE_IN_PAST_06_12 X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 47730 invoked from network); 25 Aug 2017 08:59:16 -0000 Received: from mga07.intel.com (HELO mga07.intel.com) (134.134.136.100) by server-7.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 25 Aug 2017 08:59:16 -0000 Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP; 25 Aug 2017 01:59:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,424,1498546800"; d="scan'208";a="141896202" Received: from sky-ws.sh.intel.com (HELO localhost) ([10.239.48.141]) by orsmga005.jf.intel.com with ESMTP; 25 Aug 2017 01:59:12 -0700 From: Lan Tianyu To: xen-devel@lists.xen.org Date: Thu, 24 Aug 2017 22:52:18 -0400 Message-Id: <1503629540-26053-4-git-send-email-tianyu.lan@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1503629540-26053-1-git-send-email-tianyu.lan@intel.com> References: <1503629540-26053-1-git-send-email-tianyu.lan@intel.com> Cc: Lan Tianyu , kevin.tian@intel.com, wei.liu2@citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, jbeulich@suse.com, chao.gao@intel.com Subject: [Xen-devel] [RFC PATCH 3/5] Tool/ACPI: DSDT extension to support more vcpus X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch is to change DSDT table for processor object to support >255 vcpus. Signed-off-by: Lan Tianyu --- tools/libacpi/mk_dsdt.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/libacpi/mk_dsdt.c b/tools/libacpi/mk_dsdt.c index 2daf32c..d37aed6 100644 --- a/tools/libacpi/mk_dsdt.c +++ b/tools/libacpi/mk_dsdt.c @@ -196,8 +196,7 @@ int main(int argc, char **argv) /* Define processor objects and control methods. */ for ( cpu = 0; cpu < max_cpus; cpu++) { - push_block("Processor", "PR%02X, %d, 0x0000b010, 0x06", cpu, cpu); - + push_block("Device", "P%03X", cpu); stmt("Name", "_HID, \"ACPI0007\""); stmt("Name", "_UID, %d", cpu); @@ -268,15 +267,15 @@ int main(int argc, char **argv) /* Extract current CPU's status: 0=offline; 1=online. */ stmt("And", "Local1, 1, Local2"); /* Check if status is up-to-date in the relevant MADT LAPIC entry... */ - push_block("If", "LNotEqual(Local2, \\_SB.PR%02X.FLG)", cpu); + push_block("If", "LNotEqual(Local2, \\_SB.P%03X.FLG)", cpu); /* ...If not, update it and the MADT checksum, and notify OSPM. */ - stmt("Store", "Local2, \\_SB.PR%02X.FLG", cpu); + stmt("Store", "Local2, \\_SB.P%03X.FLG", cpu); push_block("If", "LEqual(Local2, 1)"); - stmt("Notify", "PR%02X, 1", cpu); /* Notify: Device Check */ + stmt("Notify", "P%03X, 1", cpu); /* Notify: Device Check */ stmt("Subtract", "\\_SB.MSU, 1, \\_SB.MSU"); /* Adjust MADT csum */ pop_block(); push_block("Else", NULL); - stmt("Notify", "PR%02X, 3", cpu); /* Notify: Eject Request */ + stmt("Notify", "P%03X, 3", cpu); /* Notify: Eject Request */ stmt("Add", "\\_SB.MSU, 1, \\_SB.MSU"); /* Adjust MADT csum */ pop_block(); pop_block();