Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755521AbdDMKA4 (ORCPT ); Thu, 13 Apr 2017 06:00:56 -0400 Received: from ozlabs.org ([103.22.144.67]:48177 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbdDMKAy (ORCPT ); Thu, 13 Apr 2017 06:00:54 -0400 From: Michael Ellerman To: Michael Neuling , "Gautham R. Shenoy" , Benjamin Herrenschmidt , "Shreyas B. Prabhu" , Shilpasri G Bhat , Vaidyanathan Srinivasan , Anton Blanchard , Balbir Singh , Akshay Adiga , Nicholas Piggin , Mahesh J Salgaonkar , "Aneesh Kumar K.V" Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] powernv:idle: Use correct IDLE_THREAD_BITS in POWER8/9 In-Reply-To: <1492065380.4624.50.camel@neuling.org> References: <1b89d07b1a7ea140501a86b1ed246c5af1b0ce83.1491996797.git.ego@linux.vnet.ibm.com> <1492065380.4624.50.camel@neuling.org> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Thu, 13 Apr 2017 20:00:47 +1000 Message-ID: <87bms0aapc.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 612 Lines: 18 Michael Neuling writes: > On Wed, 2017-04-12 at 17:16 +0530, Gautham R. Shenoy wrote: >> From: "Gautham R. Shenoy" >> >> This patch ensures that POWER8 and POWER9 processors use the correct >> value of IDLE_THREAD_BITS as POWER8 has 8 threads per core and hence >> the IDLE_THREAD_BITS should be 0xFF while POWER9 has only 4 threads >> per core and hence the IDLE_THREAD_BITS should be 0xF. > > Why don't we derive this from the device tree rather than hard wiring it per cpu > type? Right. In fact we already have threads_per_core which is exactly that. cheers