From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 514642561DB for ; Thu, 6 Mar 2025 17:08:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741280937; cv=none; b=SdhgrIoiOL+QaGStlELxqps9L863Ox7g4XsfjUZH3AYPsef4p8elMGjxnOLncGOm2NllaiDtx4M4TmQYBPUizWiq0age6SmnW4AQnixRpc19/b2MXdor5OsQLnkgLElcS/XIRfbqkcBt0BHSefaIQxpsCC6H8Ra/HKWrKhek+Dc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741280937; c=relaxed/simple; bh=RUEhFfWhM5UlQ2uov74uy48HBJc5JClctmAaFgriwI4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uom/m3iuRqc4oEVgNYSoAgW1r+l/QCdcWxD5k/rMRi/X5UuUNwTNifjK3V4CAoMYICjNE7MPGc2XXai2fsu4Dw/qoWobrLVk4DhoddetENuXqL6+GMZPzE1TvSvQgvba6ifC6egDqPkXO8t0MBOz8DMXa+dr4OfzMbqSti180HY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=fS5Df75Q; arc=none smtp.client-ip=209.85.222.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="fS5Df75Q" Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-7c07cd527e4so81415085a.3 for ; Thu, 06 Mar 2025 09:08:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1741280934; x=1741885734; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=1wNyXxcCEsmV3rMjIVb7Etw5fSJV7UEopsGd2j/hR1s=; b=fS5Df75QuIH6V1NtwQfhY3gI1AGXkZgDYKU3TWbo9wvxTgPt6+hROtfoopNLJvkDXP Mrh1crW1CoQqR3DPB0eFN8P+1XYQdHqf7Xm03r0uvUk6Zg4XD27SWkmWovW8FXobEMwg 2z0bjXX8yqXhgvROywDk6eDLjas4Rk/HEje+hDZTp/bwkJ/WXw06LZJfurnm8ARq7fWw 8yf3RVIFo11lsQq3N3QcNIS4smPiPetodYzP4x4vNJx8L1PS4N6CEVJHmsLsea7XSO3u wJP0Yh7BpABFQ50Z3xCLIx1gz+P07hh6NS8l8rxL+a//dssZpyZu+/9mch4/YIdPAXS5 u4Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741280934; x=1741885734; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1wNyXxcCEsmV3rMjIVb7Etw5fSJV7UEopsGd2j/hR1s=; b=e3Bd+4kNs+JT2WVkcbFtyFb0BjMaTgrrzE9BGHgEhFjGUGwx4RZMdJ/Y/7/hz7EEnc RWrOXth//sHSqjLDZ4DykU7sKWrholeefDQ96eCjEpb9J0+OV4/zg2VB9RwPRc+ekFvr lQ6oWTPpkVn1rT7mIyhw5ghDH8WCoO/MUacW7EP5ZI4zMcwqkij+IXbmdIYv4MDzujUK 9hYFbzaF/fkgmYeyNRB2RLMn6btmuDGnGHWAhHdodBJRp9V1KkWEc8k9Jp5RI2E1a8GE Y9LKY7T8t3s3MJ162U4OIqNnWsAf4q+X5HJaGMnmO2VpuNhgzHRZFzSKjZNHyNVgJntP XLqw== X-Forwarded-Encrypted: i=1; AJvYcCUT9QJPVCzTNLX65bMu6CKR2SSnwR8hAxsLt0p7LQKaJXSrtRaLdS+xCowx8BnnsMkX1JshNrqvfko=@vger.kernel.org X-Gm-Message-State: AOJu0YyhLMvoTUDdumLE1+uGhid/jkSvYMlBEeXnU4sel6NgHFAsvY9q JqqCX5t1NAMyL8+A3c6GNzUGRCU7cgznH5dmj3bYlyZpXLHfBuO2DudeaYhqAGFhgZBGdqf0/HC O X-Gm-Gg: ASbGncvpUrtiy5zFPqhaJZhkuxVO5grwbrn6scdOqTOlvCMw/YXr5605/YHa6kDxRIz 3aIM3J9UZNl2MdxM8SvP8FhEXjQtOWMBI0NJCSr3fA5MoJg+hmf7d822BPdUje8g7cJj9ape/cK o/gjxqVExWA0NwGvB6R8Ix3RHZsHOiVY2Kxo726NhRCyFQRiYsvXbXN+sMY+rJIxVviCwR9rhDF f2laxEpuUUPGj+k7lwfMZBnONFSKcq2KyLcrYrRG8VNvTMgiRP1YtO7UayGk+PUasQ9KVBHiT0s V1i3pjRvppX82TDW+wGN+saVzrZC/W3F/1mMedQ9xd4oUDOHa1ErYPX2Gq3vBHRr/ljqs5foyO8 ItO9YYcMxbyLuL8OjAGY4zVD3Y34= X-Google-Smtp-Source: AGHT+IGzXdo+ayTPw4Ob64P9xw3wnYIZAQKLG2XeMD/1+CZlCiHLJrym6jweO9Vd+DG+fYhwPqgi2w== X-Received: by 2002:a05:620a:8806:b0:7c0:a357:fe62 with SMTP id af79cd13be357-7c3d8e65564mr986859185a.19.1741280932574; Thu, 06 Mar 2025 09:08:52 -0800 (PST) Received: from gourry-fedora-PF4VCD3F (pool-173-79-56-208.washdc.fios.verizon.net. [173.79.56.208]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7c3e55116a5sm111483085a.106.2025.03.06.09.08.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Mar 2025 09:08:51 -0800 (PST) Date: Thu, 6 Mar 2025 12:08:49 -0500 From: Gregory Price To: Yuquan Wang Cc: lsf-pc@lists.linux-foundation.org, linux-mm@kvack.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [LSF/MM] CXL Boot to Bash - Section 0: ACPI and Linux Resources Message-ID: References: Precedence: bulk X-Mailing-List: linux-cxl@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Mar 06, 2025 at 09:37:49AM +0800, Yuquan Wang wrote: > On Wed, Mar 05, 2025 at 05:20:52PM -0500, Gregory Price wrote: First, thank you for bringing this up, this is exactly the type of ambiguiuty i was hoping others would contribute. It's difficult to figure out if the ACPI tables are "Correct", if there's unimplemented features, or we're doing something wrong - because some of this is undocumented theory of operation. > > ================== > > NUMA node creation > > =================== > > NUMA nodes are *NOT* hot-pluggable. All *POSSIBLE* NUMA nodes are > > identified at `__init` time, more specifically during `mm_init`. > > > > What this means is that the CEDT and SRAT must contain sufficient > > `proximity domain` information for linux to identify how many NUMA > > nodes are required (and what memory regions to associate with them). > > > Condition: > 1) A UMA/NUMA system that SRAT is absence, but it keeps CEDT.CFMWS > 2)Enable CONFIG_ACPI_NUMA > > Results: > 1) acpi_numa_init: the fake_pxm will be 0 and send to acpi_parse_cfmws() > 2)If dynamically create cxl ram region, the cxl memory would be assigned > to node0 rather than a fake new node. > This is very interesting. Can I ask a few questions: 1) is this real hardware or a VM? 2) By `dynamic creation` you mean leveraging cxl-cli (ndctl)? 2a) Is the BIOS programming decoders, or are you programming the decoder after boot? > Confusions: > 1) Does CXL memory usage require a numa system with SRAT? As you > mentioned in SRAT section: > > "This table is technically optional, but for performance information > to be enumerated by linux it must be present." > > Hence, as I understand it, it seems a bug in kernel. > It's hard to say if this is a bug yet. It's either a bug, or your system should have an SRAT to describe what the BIOS has done. > 2) If it is a bug, could we forbid this situation by adding fake_pxm > check and returning error in acpi_numa_init()? > > 3)If not, maybe we can add some kernel logic to allow create these fake > nodes on a system without SRAT? > I think we should at least provide a warning (if the SRAT is expected but missing) - but lets get some more information first. ~Gregory