Received: by 10.213.65.68 with SMTP id h4csp1371046imn; Mon, 26 Mar 2018 06:21:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELsp1yMtIkMl5fQHfmFxbBOHh1jVzGcF/93+cXbK5OBm+rGlxQEl9cDRzc+pjnKv3O4I3m6a X-Received: by 10.98.73.214 with SMTP id r83mr24544843pfi.76.1522070470315; Mon, 26 Mar 2018 06:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522070470; cv=none; d=google.com; s=arc-20160816; b=nC+rn/+AmwZaBRHp8zqScdLPEnvp+3XMM4iiDASE4tTsEEwOgV1kYUzm8irx2jK84/ aEVJlAFtEowVVg64teXYyTrHPz84yFzz1BTNP4VQSJHQ1EDnUalubvQl60ZXf/584GI7 r0axBvD9ppmxscyg8dqrqv4oowu6tUznTwIOi1RZHLrZCpJBhteGksOO5qOZvrriqBvN CxVmnWMdKI7T6Kb1I0hXDCsMwuBz6EjHM7zn9xBwAUas+NF91qROdtAMGRkfQ9kEGj7X XzCsGSWeGUj7qV5KlBuiv/wwEyRiJCdNkHta/LIUZV8dUn+WqLLJtPQZhfSZ2rqU2Juc lCzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=ZRjWpjKlnWctUvdYS6Fic8qwu+wySxoSQatIom3vcI4=; b=oYPQnLu0LifygcYK1t5EGbNmwX2lZMTjjJ8UCiaJU6Co4Lx9uOYeQNTO3kQtljCd6P I+wUBy1yWwML5oddyI2rXLsiHDH5D87gLhQEER3PY6BJoM22nOSxqHaOEnhfF77WLYn3 M5T/G7OtW5VVYLHGPHQ5yyOrJMNPh14cTwR9mV2bI5Ib4OXqieanGODwczh2lzZQt+ov JastDeVgNclVAFsmqZMjwroLJsZ5cI/qObMTTWYILAqZebnZ1kG4hv53hQyY1bNz4pre NUKQZoNnNKS/ytsHduxOLoYJgtxXp6/5+w6mZS00k9G5/SVxrcKXOQRo7UUneUZSTI6+ rLZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20si9939461pgv.604.2018.03.26.06.20.55; Mon, 26 Mar 2018 06:21:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751997AbeCZNTg (ORCPT + 99 others); Mon, 26 Mar 2018 09:19:36 -0400 Received: from terminus.zytor.com ([198.137.202.136]:36227 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751908AbeCZNTe (ORCPT ); Mon, 26 Mar 2018 09:19:34 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2QDJK7s256791; Mon, 26 Mar 2018 06:19:20 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2QDJKiO256788; Mon, 26 Mar 2018 06:19:20 -0700 Date: Mon, 26 Mar 2018 06:19:20 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Ivan Gorinov Message-ID: Cc: andy.shevchenko@gmail.com, mark.rutland@arm.com, frowand.list@gmail.com, tglx@linutronix.de, mingo@kernel.org, robh+dt@kernel.org, ivan.gorinov@intel.com, robh@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com Reply-To: mingo@kernel.org, tglx@linutronix.de, robh+dt@kernel.org, robh@kernel.org, ivan.gorinov@intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, andy.shevchenko@gmail.com, frowand.list@gmail.com, mark.rutland@arm.com In-Reply-To: <4b1a471a56ac0ebd7510f4759afce9104595d6da.1521753738.git.ivan.gorinov@intel.com> References: <4b1a471a56ac0ebd7510f4759afce9104595d6da.1521753738.git.ivan.gorinov@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/platform] of/Documentation: Specify local APIC ID in "reg" Git-Commit-ID: 7f2e85840871f199057e65232ebde846192ed989 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 7f2e85840871f199057e65232ebde846192ed989 Gitweb: https://git.kernel.org/tip/7f2e85840871f199057e65232ebde846192ed989 Author: Ivan Gorinov AuthorDate: Thu, 22 Mar 2018 14:35:33 -0700 Committer: Thomas Gleixner CommitDate: Mon, 26 Mar 2018 15:13:32 +0200 of/Documentation: Specify local APIC ID in "reg" Use the "reg" property to specify the processor's local APIC ID instead of setting it to the CPU node index in Device Tree. Local APIC ID is assigned by hardware and visible in the APIC ID register. Some processor models allow APIC ID to be changed by software, but CPUID instruction executed with %eax = 0x0b always returns the initial ID in %edx. Local APIC ID does not match the node index in many systems. Signed-off-by: Ivan Gorinov Signed-off-by: Thomas Gleixner Reviewed-by: Andy Shevchenko Reviewed-by: Rob Herring Cc: Mark Rutland Cc: Rob Herring Cc: Frank Rowand Link: https://lkml.kernel.org/r/4b1a471a56ac0ebd7510f4759afce9104595d6da.1521753738.git.ivan.gorinov@intel.com --- Documentation/devicetree/bindings/x86/ce4100.txt | 37 ++++++++++++++++++------ 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/x86/ce4100.txt b/Documentation/devicetree/bindings/x86/ce4100.txt index b49ae593a60b..cd1221bfb539 100644 --- a/Documentation/devicetree/bindings/x86/ce4100.txt +++ b/Documentation/devicetree/bindings/x86/ce4100.txt @@ -7,17 +7,36 @@ Many of the "generic" devices like HPET or IO APIC have the ce4100 name in their compatible property because they first appeared in this SoC. -The CPU node ------------- - cpu@0 { - device_type = "cpu"; - compatible = "intel,ce4100"; - reg = <0>; - lapic = <&lapic0>; +The CPU nodes +------------- + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + compatible = "intel,ce4100"; + reg = <0x00>; + }; + + cpu@2 { + device_type = "cpu"; + compatible = "intel,ce4100"; + reg = <0x02>; + }; }; -The reg property describes the CPU number. The lapic property points to -the local APIC timer. +A "cpu" node describes one logical processor (hardware thread). + +Required properties: + +- device_type + Device type, must be "cpu". + +- reg + Local APIC ID, the unique number assigned to each processor by + system hardware. The SoC node ------------