Received: by 10.213.65.68 with SMTP id h4csp47109imn; Mon, 19 Mar 2018 19:05:42 -0700 (PDT) X-Google-Smtp-Source: AG47ELudt+K+R1R2iJhFQhPy9I0yBBCrSSNGXRMUwN8d/+VsIs5n6Fo2vBFPI/w9PnecobKXQGPW X-Received: by 10.101.76.207 with SMTP id n15mr10947822pgt.313.1521511542501; Mon, 19 Mar 2018 19:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521511542; cv=none; d=google.com; s=arc-20160816; b=0QbFlBoXkvwjeB7BygjiFhcraylotiiWpZnXzszuEGWxYcdFIPJro5+QCehraYBjci ivO+Us7pztZZayNbS20o1Pknazgz8M36GoOoxNb3oPkY038vm46yi5HrwJZQVo9i1Kul E6on2Jw/ySJ8WyooryFfPzb+Y4ClN3ifMlzf4VC48Q1MLCaQXHF2TuWM9LwE5lkYyE0+ EOgjL+Hnwdrf7g8LvENLNLC3BcDFhJXl50tplzk3l3epWamABIFexB+uEkAax35sRCjv O7JvGo0W+fvVIcNfNZdJCQsijYruOQyemYJvTOap7ko+JpYsnKPScCStQtabq+0ggZVU v6MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=iDMRAQqpH2L8O5H+KntS5mt6vK9hx87JU51w3SIadBo=; b=g8+wfIQO5pCjfuQHSHKV4mKOxKitd23Wmh57/anZWHvsTyePr8LKOt0DGPWfO0piAK q02fMEa5inDiKmH4JuGYHT5cUgq2SPa5xHyYJGhAHeUPrEifDPuaiQPRwjmvRdtj97PP +5YaDcof2ajjIoiBhi60/LmNEpwmCQA+FBxoq6osygd3A2+e/3eMSqlJ/ufuP2runful Og7cWx5xBV+kHEi3GsJd0bLSSoIoYuBlrAO4oJ5ru0lfmh1tvjsI2FBPCrdx/KNU5As+ qQSnxLIBtazYzVOpn0ly6GYKfUBB+Q4UOGr3nWIgtRvenvQgh+3XyL/T4iodo8wqwyyp bQJw== 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 x5-v6si599643plm.443.2018.03.19.19.05.28; Mon, 19 Mar 2018 19:05:42 -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 S935303AbeCTAkQ (ORCPT + 99 others); Mon, 19 Mar 2018 20:40:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:56030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933689AbeCTAkO (ORCPT ); Mon, 19 Mar 2018 20:40:14 -0400 Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 30ACC217D8 for ; Tue, 20 Mar 2018 00:40:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 30ACC217D8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qk0-f170.google.com with SMTP id z184so20418253qkc.1 for ; Mon, 19 Mar 2018 17:40:14 -0700 (PDT) X-Gm-Message-State: AElRT7F3C48G3oxDiwnrBguwCws0C+Fl7DglXuKiqv0wr9uc0eE14GIA Q7UIYf57jqvU6/ymysD+Z55deypI2FWuVXZfew== X-Received: by 10.55.217.143 with SMTP id q15mr21004000qkl.304.1521506413280; Mon, 19 Mar 2018 17:40:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.178.131 with HTTP; Mon, 19 Mar 2018 17:39:52 -0700 (PDT) In-Reply-To: References: From: Rob Herring Date: Mon, 19 Mar 2018 19:39:52 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 1/2] of: Documentation: Specify local APIC ID in "reg" To: Ivan Gorinov Cc: Thomas Gleixner , Frank Rowand , Andy Shevchenko , Linux Kernel Mailing List , Ingo Molnar , Mark Rutland Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 5:05 PM, Ivan Gorinov wrote: > Use the "reg" property to specify the processor's local APIC ID. > Local APIC ID is assigned by hardware and may differ from CPU number. Is "CPU number" a s/w visible h/w number or has it just been an index for DT? In the latter case, I'm okay with this change. In the former case, you should stick to the existing numbering. For example on ARM, the number here corresponds to a core ID number in a register called MPIDR. > > Signed-off-by: Ivan Gorinov > --- > 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 b49ae59..1c41cbd 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@0x00 { Drop the '0x' and leading 0s. > + device_type = "cpu"; > + compatible = "intel,ce4100"; > + reg = <0x00>; > + }; > + > + cpu@0x02 { > + 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 > ------------ > -- > 2.7.4 >