From: Dan Williams <dan.j.williams@intel.com>
To: Yiannis Nikolakopoulos <yi.nikolakop@gmail.com>,
<linux-cxl@vger.kernel.org>
Cc: <yiannis@zptcorp.com>, <dan.j.williams@intel.com>
Subject: Re: dax behavior on CXL 1.1 hosts
Date: Mon, 19 May 2025 15:56:20 -0700 [thread overview]
Message-ID: <682bb71427ee2_1626e100f1@dwillia2-xfh.jf.intel.com.notmuch> (raw)
In-Reply-To: <CA+CExOgLYnVYdhHADBp4EEmDgfvhv81R1RW1iHGJZxd+V_1wSw@mail.gmail.com>
Yiannis Nikolakopoulos wrote:
> Hi,
>
> I am trying to understand the dax behavior on CXL 1.1 hosts running
> recent kernels and what is that I have probably misconfigured.
> To my understanding this series [1] introduced some different
> behavior, and I am trying to figure out what I am getting wrong here
> (but of course I might as well be looking in a completely wrong
> place).
[..]
> When running with Kernel 6.2.16 (or older) the dax device appears as
> expected, and I can either map it or configure it as system ram. No
> issues there.
[..]
> What is it that I am missing here?
Starting around v6.3 the CXL subsystem started attempting to takeover
dax device registration.
09d09e04d2fc cxl/dax: Create dax devices for CXL RAM regions
I.e. instead of simply relying on memory-map information, "dax_hmem",
let the CXL subsystem assemble a cxl_region which outputs a dax-device
on the backend.
The rationale for this is that a CXL Region enables RAS flows that raw
memory map enumeration does not.
The problem though is what happens when the CXL subsytem fails to parse
the configuration. In that case you end up with neither a CXL Region, or
the the original "raw" dax_hmem device.
There has been a slow drip of fixes to get the CXL subsystem to
understand all the various platform quirks contributing to CXL Region
assembly failure. There is also efforts like this [1] in flight to
attempt to recover dax operation after a Region assembly failure.
Until then, the workaround is to disable the cxl_acpi driver from
loading. When cxl_acpi is disabled, dax_hmem proceeds to produce a raw
dax device. That configuration forfeits all the RAS support, but that is
to be expected when the CXL subsystem needs help to parse the system
topology.
[1]: http://lore.kernel.org/20250403183315.286710-1-terry.bowman@amd.com
next prev parent reply other threads:[~2025-05-19 22:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-15 22:50 dax behavior on CXL 1.1 hosts Yiannis Nikolakopoulos
2025-05-19 22:56 ` Dan Williams [this message]
2025-05-21 21:22 ` Yiannis Nikolakopoulos
2025-05-21 21:57 ` Dan Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=682bb71427ee2_1626e100f1@dwillia2-xfh.jf.intel.com.notmuch \
--to=dan.j.williams@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=yi.nikolakop@gmail.com \
--cc=yiannis@zptcorp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox