Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7809520rwr; Wed, 10 May 2023 13:01:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4YJBDJA+Oqt7ySZtoE5chYZpEXOw8FS6Ncr0BDylfrxjy7kdHn7XEHV5MV8+VoBbOegnwt X-Received: by 2002:a17:903:280b:b0:1ab:15c2:e2e9 with SMTP id kp11-20020a170903280b00b001ab15c2e2e9mr17044548plb.7.1683748866510; Wed, 10 May 2023 13:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683748866; cv=none; d=google.com; s=arc-20160816; b=APk1CUCT6H3Ir25I/uraMwln8QolGbI+gED8h2T+9XJaTNFcF9IZPakRCoiRjj65Zt LZggr5EiecV7Nr1a7YKRkJ7E3Vr6R6e3QAQDZNLJQXs5VwTbXZiungrm5bAVqHZzfcL8 Co+XqU/NeIBSNRsnGsdNmogJAOrQRfQfbFNYFVKbRWbLmwhhgbdQVkSnJFrt0+9vtesW UX76kZMxU0zP6XPM/oIUmxlsPIbsmb+GVP7lEV5h7D2xQmqJa2D+OTwOuw8BH1Q04vUl h25Ce1mwFLmjA9+bEzISPRY/uvQp3FA0IUzgGrAtMtS0a9VCgj/WIaHnmx2RNzRNiP81 pRPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=n6leWSlUkD+zmpp51G66BjEMN+lV3dRH46PuDVDl2f0=; b=S0ZepxeXoaiKaAz8DUYC+/vUeSDcVLtO+1RPZHOK6r+F2RWMozsGZ/KnxwVkivni+g RaREEDCkquOqzJaeWkHUMqPrPSH7GkRx7vZkx1RAhDujeZljdlp3IpWVDW/TzBroHNLS 2CWnagYp40T0CK7BXwegr8aASSFn18DyP7gyzOWat6SXgM1kK4+Mjtov1EAxJgM0SMSn De2uP2gnVtZ+z+b0mz3poXtU6b7M0FLaCBQJEXceE2bBX1nEOkaCckub8WkJZZKicO0g gEQbz+iC5322EzV1+Tyzs0Nsl44Cosoe2MBfHpJo0GQxFcxNZ9PAVl/zZJ2w3aMrLDOp 3OZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V1mZHeT5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020a170902be0300b0019c93e0dce0si4611042pls.254.2023.05.10.13.00.51; Wed, 10 May 2023 13:01:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V1mZHeT5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235757AbjEJTRd (ORCPT + 99 others); Wed, 10 May 2023 15:17:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjEJTRc (ORCPT ); Wed, 10 May 2023 15:17:32 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E4485255 for ; Wed, 10 May 2023 12:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683746251; x=1715282251; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=75dGGtHMQ8FdwfGHnsegDYBoFOE0eghlGa3Ibvz1Xa8=; b=V1mZHeT5fzfIsnIGE0CfZ0Cq0gBzlU5I6ypl6U8sJdUAeXXdEj48mkfH Tss7YBL5X+Mk0uvqUUO3/AmK1rD98y5Qduzhes5Ubt3qVPBXeyh0+/T1Q puuAmDeQvJi7IFt8ISFKbgWj96pRECs/QTaSx4EEkf6JpEn0vgoPRZLOb PZLskcTPJwTtPrXVXNlELVr47Uh8w4kiLQ3vPbVJ4Ya8cKqjX75DiWAC1 U4QPnDf4WBdR0jmQq+dQl/rjCywUh15ZghL/+pzialFMZMsbXWJekyBFt k5sB9cdwZW9iRSGKMDDj7llOyH/ctt/nyJJmFdbNQQTlqcn8KtGZCBtaI Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="349134518" X-IronPort-AV: E=Sophos;i="5.99,265,1677571200"; d="scan'208";a="349134518" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 12:17:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="945812897" X-IronPort-AV: E=Sophos;i="5.99,265,1677571200"; d="scan'208";a="945812897" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by fmsmga006.fm.intel.com with ESMTP; 10 May 2023 12:17:30 -0700 Date: Wed, 10 May 2023 12:20:29 -0700 From: Ricardo Neri To: x86@kernel.org Cc: Andreas Herrmann , Chen Yu , Len Brown , Pu Wen , "Rafael J. Wysocki" , Srinivas Pandruvada , Zhang Rui , Ricardo Neri , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] x86/cacheinfo: Set the number of leaves per CPU Message-ID: <20230510192029.GB18514@ranerica-svr.sc.intel.com> References: <20230424001956.21434-1-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230424001956.21434-1-ricardo.neri-calderon@linux.intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 23, 2023 at 05:19:54PM -0700, Ricardo Neri wrote: > Hi, > > This v2 of now a patchset to set the number of cache leaves independently > for each CPU. v1 can be found here [1]. > > These are the changes since v2: > * Dave Hansen, suggested to use the existing per-CPU ci_cpu_cacheinfo > variable. Now the global variable num_cache_leaves became useless. > * While here, I noticed that init_cache_level() also became useless: > x86 does not need ci_cpu_cacheinfo::num_levels. > > These patches apply cleanly on top of the master branch of the tip tree. FYI, I see a NULL pointer dereference when I apply this patchset on top of v6.4-rc1. I started a discussion here[1]. [1]. https://lore.kernel.org/all/20230510191207.GA18514@ranerica-svr.sc.intel.com/