From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03A92C33CB1 for ; Fri, 17 Jan 2020 14:23:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CC20C2072B for ; Fri, 17 Jan 2020 14:23:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728831AbgAQOXm (ORCPT ); Fri, 17 Jan 2020 09:23:42 -0500 Received: from foss.arm.com ([217.140.110.172]:41780 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbgAQOXl (ORCPT ); Fri, 17 Jan 2020 09:23:41 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EC81411D4; Fri, 17 Jan 2020 06:23:40 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1370B3F534; Fri, 17 Jan 2020 06:23:39 -0800 (PST) Date: Fri, 17 Jan 2020 14:23:33 +0000 From: Sudeep Holla To: Greg Kroah-Hartman Cc: Zeng Tao , linuxarm@huawei.com, "Rafael J. Wysocki" , Sudeep Holla , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] cpu-topology: Don't error on more than CONFIG_NR_CPUS CPUs in device tree Message-ID: <20200117142333.GA4088@bogus> References: <1579225973-32423-1-git-send-email-prime.zeng@hisilicon.com> <20200117101957.GA4099@bogus> <20200117142134.GA1858257@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200117142134.GA1858257@kroah.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 17, 2020 at 03:21:35PM +0100, Greg Kroah-Hartman wrote: > On Fri, Jan 17, 2020 at 10:19:57AM +0000, Sudeep Holla wrote: > > On Fri, Jan 17, 2020 at 09:52:52AM +0800, Zeng Tao wrote: > > > When the kernel is configured with CONFIG_NR_CPUS smaller than the > > > number of CPU nodes in the device tree(DT), all the CPU nodes parsing > > > done to fetch topology information will fail. This is not reasonable > > > as it is legal to have all the physical CPUs in the system in the DT. > > > > > > Let us just skip such CPU DT nodes that are not used in the kernel > > > rather than returning an error. > > > > > > Reviewed-by: Sudeep Holla > > > Signed-off-by: Zeng Tao > > > > Hi Greg, > > > > Can you pick this patch for v5.6 ? > > oops, didn't realize this was for me, sorry, will go do so now. > No worries, it just got baked this morning :). I just dropped you a note before I could forget. -- Regards, Sudeep