From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751712AbeCTS0V (ORCPT ); Tue, 20 Mar 2018 14:26:21 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:35488 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751472AbeCTS0U (ORCPT ); Tue, 20 Mar 2018 14:26:20 -0400 Date: Tue, 20 Mar 2018 19:26:12 +0100 (CET) From: Thomas Gleixner To: Ivan Gorinov cc: Rob Herring , Frank Rowand , Andy Shevchenko , Linux Kernel Mailing List , Ingo Molnar , Mark Rutland Subject: Re: [PATCH v6 1/2] of: Documentation: Specify local APIC ID in "reg" In-Reply-To: <20180320181018.GA8670@intel.com> Message-ID: References: <20180320181018.GA8670@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Mar 2018, Ivan Gorinov wrote: > On Mon, Mar 19, 2018 at 07:39:52PM -0500, Rob Herring wrote: > > 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. > > The latter case. Apparently, "CPU number" was just an index in the list. > Local APIC ID is the s/w visible h/w assigned number. > Some processor models allow local APIC ID to be changed by software, but > CPUID instruction executed with %eax = 0x0b always returns the initial ID > assigned by hardware in %edx. > > APIC ID does not match index in the list in many systems. Please document that in the changelog. Thanks, tglx