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,URIBL_BLOCKED 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 6BEBBC4361A 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 23C5222582 for ; Fri, 4 Dec 2020 19:46:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725923AbgLDTqU (ORCPT ); Fri, 4 Dec 2020 14:46:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbgLDTqU (ORCPT ); Fri, 4 Dec 2020 14:46:20 -0500 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA97DC061A52 for ; Fri, 4 Dec 2020 11:45:39 -0800 (PST) Received: by mail-ej1-x641.google.com with SMTP id b9so19553ejy.0 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=RZGh4GMiMQ8zVmuqWY8IHw0q4dOya/To/i2muJE4spzjg6762AefC8BnnrfvhhI3lt WK5CiU52xXl/W8n82zCr6lV8SsPNiPtFLSUkU+/MriIICN4BYzzAXlbJAkYDSno8zTn7 5UamVPJsH7+xqrHXO/pWe3CMTpqQIaR/igfyJUF3EsKujD2opuwNvbKRJaC9vdUt3Jf3 gF7tSOE9NDF4n8tmDQCeW5zFVJLVhbsAaDKZwBp4mDUHKh6yXuMjcBoyOyVXIGAKQGK6 GfcpzYr7OogHK+bqur4AEm+lCEtZ1DT6NnANFE5fYXSd4h9LuDyktDNEwgk5mCHu2Lmp v1kA== X-Gm-Message-State: AOAM533tfERyAThqqgHKsTcERVIvAawWf1H6KGqlqr3Ik2uGVlAXELzd cdogTcPLzkDdzmLMIxZv39FU6Ic/ZMvkGyvh7mUNqg== 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-acpi@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.