From: "Yuquan Wang" <wangyuquan1236@phytium.com.cn>
To: linux-cxl <linux-cxl@vger.kernel.org>
Subject: Re: A confusion about cxl.mem in CXL drivers
Date: Fri, 22 Sep 2023 16:49:23 +0800 [thread overview]
Message-ID: <2023092216492261309286@phytium.com.cn> (raw)
In-Reply-To: 20230920131902.0000504f@Huawei.com
On 2023-09-20 20:19, jonathan.cameron wrote:
Thanks for your patient explanation.
>
> So from driver side of things, the CXL.IO stuff is either in ECAM (for config
> space) or mapped as PCIe BARs. The CXL.mem stuff is mapped via the Host Physical
> Addresses described in a CXL Fixed Memory Window.
>
> So the right type of access is used based on the underlying hardware performing
> the routing for the appropriate Host Physical Address range. Same applies
> on top of QEMU.
>
Therefore, from the view of kernel side, the kernel do not need to distinguish the physical cxl subprotocol
(cxl.io,cxl.cache,cxl.mem). In fact, the underlying hardware would directly finish this work so system software
don't care about it.
According to the instance of qemu virt machine, my understanding is below:
1) CXL.IO: finding, setting and enumerating CXL ECAM/BARs (programmed in cxl_acpi, cxl_pci drivers)
Underlying hardware performing the routing : PCIe RC
2) CXL.MEM: host is going to access the memory mapped in CFMWs
Underlying hardware performing the routing : HDM decoders
Many thanks
Yuquan
next prev parent reply other threads:[~2023-09-22 8:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 7:22 CXL Namespaces of ACPI disappearing in Qemu demo Yuquan Wang
2023-08-23 19:44 ` Gregory Price
2023-08-24 1:11 ` Yuquan Wang
2023-08-24 9:06 ` Jonathan Cameron via
2023-09-04 10:27 ` Yuquan Wang
2023-09-04 12:43 ` Jonathan Cameron via
2023-09-04 12:43 ` Jonathan Cameron via
2023-09-05 10:45 ` Yuquan Wang
2023-09-05 14:34 ` Jonathan Cameron via
2023-09-05 14:34 ` Jonathan Cameron via
2023-09-06 11:22 ` Yuquan Wang
2023-09-07 10:58 ` Jonathan Cameron via
2023-09-07 10:58 ` Jonathan Cameron via
[not found] ` <2023092018244461102314@phytium.com.cn>
2023-09-20 12:19 ` A confusion about cxl.mem in CXL drivers Jonathan Cameron
2023-09-22 8:49 ` Yuquan Wang [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-10-08 6:50 Yuquan Wang
2023-10-09 15:37 ` Jonathan Cameron
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=2023092216492261309286@phytium.com.cn \
--to=wangyuquan1236@phytium.com.cn \
--cc=linux-cxl@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.