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=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 8DDC1C4361B for ; Fri, 4 Dec 2020 19:46:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4937422CAE for ; Fri, 4 Dec 2020 19:46:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726775AbgLDTqU (ORCPT ); Fri, 4 Dec 2020 14:46:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725923AbgLDTqU (ORCPT ); Fri, 4 Dec 2020 14:46:20 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0518C061A4F for ; Fri, 4 Dec 2020 11:45:39 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id lt17so10392549ejb.3 for ; Fri, 04 Dec 2020 11:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AD0IzZHnsxcGiXN64Y6L0qkMgIS2YHimQXlXQZyApjo=; b=kUoDpbKxpm+YdrWJl/SlPW2GaESXSnrKM26FHNq4RpsQ8nG8oihOgGCISNJRsxiUg8 mrlE2iZ8/l529sBJaKbxQpA1gGqW4/a0EVuT1e7p2hAk+nv5UANLtoEdTOuhLIDZcbYQ eemdj0fUMdpwrI/vWzWSZj2YS8Qh/oBZxTPusdsl7dVjLn+12WdBD2EHu6krOzGETuNO qz1+aGgf+1gJ4K/HYS6n4tB6ADE7hJDG0KiFd71kkJ4ECTwvjXXfybLFsFowsrZETEIv rq0anna6yKGWCcTVFitNNjnqIgPYkopLAcq6WKtcGG9d0FY7R51oS2eceCJo8CDl85J3 tPbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AD0IzZHnsxcGiXN64Y6L0qkMgIS2YHimQXlXQZyApjo=; b=J451Lhg37HfYdshPbKjLuAASOabmszfPJA+0pHPXTwZz88eP868VFQRKe2TiFqKHh3 A6MvOo+ltYp5vX3MUNr5RtGkOB97Zd4YOA2utqyuS5O9R17g5JAGv5ThcK6WdfokJ4gh PXgV60E7KZiv/fLdOl2lvaZPRVbpt51zWuXa6dE493dvi9b6oVGT9rPDUSbo7FZMIbeE uojuX89f//ReXQnMBuTqy8Gt9dazkoT+amEcqdQafGAlS/Bzxz8tVZExMYVJX3VN/H71 0ZdQ7ZRGlkKqiYHOSjDLMCU6yXhcgX3+MkcIPYSj2UHLPkfWARje0VEvpuBmxjoVaGBK gc8w== X-Gm-Message-State: AOAM533sWge528XPz7ghMNFe6VKO9CYSe0xzKY16azuZOvL7R7fYAv/w wJB3rLbJOZc1xrClEhY1EgRzEtQxFsIxjXZJDL+Jhg== X-Google-Smtp-Source: ABdhPJzqqPz+AOjJ0g3TsYDaAG13gjaFaniKh+NAJ5rtKyHI8OloVQx2oO8nO3ar2qelyR99M7S3q1+9VQiHENb5Yn4= X-Received: by 2002:a17:906:2707:: with SMTP id z7mr3056063ejc.418.1607111138435; Fri, 04 Dec 2020 11:45:38 -0800 (PST) MIME-Version: 1.0 References: <20201204181217.n3cm7gqujaqlcp2h@intel.com> <1878cd93df75dc8c1b35eab7b7aaaed243f9129e.camel@intel.com> In-Reply-To: <1878cd93df75dc8c1b35eab7b7aaaed243f9129e.camel@intel.com> From: Dan Williams Date: Fri, 4 Dec 2020 11:45:34 -0800 Message-ID: Subject: Re: [RFC PATCH 0/9] CXL 2.0 Support To: "Verma, Vishal L" Cc: "Widawsky, Ben" , "cbrowy@avery-design.com" , "Kelley, Sean V" , "Weiny, Ira" , "linux-cxl@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Wysocki, Rafael J" , "linux-pci@vger.kernel.org" , "bhelgaas@google.com" , "linux-acpi@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Fri, Dec 4, 2020 at 11:26 AM Verma, Vishal L wrote: > > On Fri, 2020-12-04 at 10:12 -0800, Ben Widawsky wrote: > > Hi Chris. > > > > On 20-12-04 12:40:03, Chris Browy wrote: > [..] > > > > > acpidump indicates the CXL0 and CXLM devices but no SRAT or HMAT tables are > > > in the dump which is curious. > > > > I don't typically use HMAT, but I do have an SRAT in mine, so that's strange. > > You should also have a CEDT. > > > I suspect an SRAT is only added if you have distinct numa nodes. Adding > a few '-numa node' bits to the qemu command line should be enough to > make that happen. For CXL-2.0-Type-3, BIOS is responsible for retrieving CDATs and synthesizing SRAT/SLIT/HMAT tables for the CXL.mem that is mapped by platform firmware. For CXL.mem that is mapped by the OS, there is no requirement to publish updated ACPI tables. CXL.mem mapped by the OS need only support native CXL memory enumeration and leave ACPI only for static platform resources.