Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1806494rwd; Thu, 18 May 2023 18:20:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5SZR4IyMd0XVvpOo1jjE1rL1gP9tkWLEz7wiwl3Scr1YohvhPGsk5MrDR2ZcIvyA2Lsmch X-Received: by 2002:a05:6a00:2288:b0:643:aa8d:8cd7 with SMTP id f8-20020a056a00228800b00643aa8d8cd7mr857323pfe.32.1684459214448; Thu, 18 May 2023 18:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684459214; cv=none; d=google.com; s=arc-20160816; b=Ik6SoYNfDZjXedaHZ0kC5yQUqpPiS9w6RRYjQKHJ2wjsgOPtYTI383o8jYg6iFEy0L JROrc8CWULAECBwlBKA/ZIFcXtZOlq3Wks8A2m8oR1mF1a4r/hKFQKjEonfUsuefBBG2 OpL5DSkM+/4T2GMStHMiONAN3c2DgN1SsuFIWMHNotiLkx6iiDPJWe/ATjBFSAAY31QE kF7/uFgU06hVbdfdmhXt1l6qYfR1zS6B2TGuPtrCB0UlfUxuokOpCW68Ff8hOuL+WPV+ xKPSKrC787Guv3OBcCrCjHiW+zCkhgiTsjtnuBp77frjKxLPWVIKNRvTu8m79GCOnLSV 4lfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fey5X+3YFOepJoDnqtXfVsu39YMJuG1DRNirwmHUe3o=; b=AWMjC3b3tzbDzanOPo8/dvZgHG5PAWpSiuRX9LuPeHq0FzN3CoLFD3h7PTQcS+ZS/L VQm9ZaHCR8GFhjYvCS47Bj1Wa+qeDYaj36+83VjrCrwreYR/GBKwShVFzLjqZx9loMPF o+K0s5hhnVFm0/CRI2d0ogMh8M7UeySKy1orFzGCSo7FLdJo9sDWsQKeUzm/jhFucpCe TQUMahdP7jstqHv22wms13hsstxBOH/S+6dZXh+F9mH0pCtZKeOr7d+cG4syZiIbP+Ud tlvr8xcN756J3m1uwctORr+MabU0PV8boaCY/7+tmfEHIyHCb3O9vwhYDLCa5QyCaVMy Q7yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Pm6bQBXe; 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 y202-20020a6264d3000000b00648628d30f5si2890239pfb.379.2023.05.18.18.20.02; Thu, 18 May 2023 18:20:14 -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=Pm6bQBXe; 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 S230096AbjESAnW (ORCPT + 99 others); Thu, 18 May 2023 20:43:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjESAnV (ORCPT ); Thu, 18 May 2023 20:43:21 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DCA3BC; Thu, 18 May 2023 17:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684457000; x=1715993000; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=8/K+FKtfU5ptt8CUslFmSHuuIq82VJWzkwwU9cWQ8sQ=; b=Pm6bQBXebQA3dOr8L8EtO9iHBJhCYl0+gImN/gm1mnYujKuNei1rjVdt tmO4/fSUcrYPt/tgmaWIG9JWESDF4v1rXoIxbrGPlOHbbtlXmUHmeMtE+ GQQpW+pFmzltfVq3n0tl0pOwG6371iReTlwQdYoxXeR1kwW3irdEHDdt4 CulixJAYQOnghk8TnDh6Im18x2ip6KthK04Fx5EmYvjHDPXk6n66BKXpy 2GTKWjyq2fFEW2TkeAkR+momBKk8T5cG4JxlDTjfLHlN9efAC/a7GRG/N Qfks2+mf/CXvQWhwXImgIKGvDZQ/p7HryqnrgG6b3ZN5iLYGVhtWR3tyv A==; X-IronPort-AV: E=McAfee;i="6600,9927,10714"; a="380446268" X-IronPort-AV: E=Sophos;i="6.00,175,1681196400"; d="scan'208";a="380446268" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2023 17:43:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10714"; a="792155452" X-IronPort-AV: E=Sophos;i="6.00,175,1681196400"; d="scan'208";a="792155452" Received: from mkim1-mobl.amr.corp.intel.com (HELO [10.209.118.171]) ([10.209.118.171]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2023 17:43:15 -0700 Message-ID: Date: Thu, 18 May 2023 17:43:14 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 1/2] x86/numa: Introduce numa_fill_memblks() Content-Language: en-US To: Alison Schofield Cc: "Rafael J. Wysocki" , Len Brown , Dan Williams , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Andrew Morton , Jonathan Cameron , Dave Jiang , x86@kernel.org, linux-cxl@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org References: <8dc725c8-613a-b51b-6cc1-80d2275ca130@intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 5/18/23 17:26, Alison Schofield wrote: > On Thu, May 18, 2023 at 05:08:16PM -0700, Dave Hansen wrote: >> On 5/18/23 17:04, alison.schofield@intel.com wrote: >>> The initial use case is the ACPI driver that needs to extend >>> SRAT defined proximity domains to an entire CXL CFMWS Window[1]. >> >> Dumb question time: Why didn't the SRAT just cover this sucker in the >> first place? Are we fixing up a BIOS bug or is there a legitimate >> reason that the SRAT didn't cover it up front? >> > There is no requirement that the BIOS describe (in the SRAT) all the > HPA assigned to a CFMWS Window. The HPA range may not actually map to > any memory at boot time. It can be persistent capacity or may be there > to enable hot-plug. IIUC BIOS can pick and choose and define volatile > regions wherever it pleases. I understand that it _can_ do this. I'm trying to get to the reasoning of why. Is this essentially so that the physical address space doesn't have to be *committed* to a single use up front? For RAM, I guess this wasn't a problem because there was only a finite amount of RAM that could get hotplugged into a single node. But with these fancy schmancy new devices, it's really hard to figure out how much space will show up and what performance it will have until you actually start poking at it. The firmware wasn't _quite_ sure how it wanted to burn the physical address space at the time the SRAT was created. But, now it knows, and this is handling the case where the firmware only expands an adjacent chunk of physical address space. Close?