From: Chen Pei <cp0613@linux.alibaba.com>
To: Junjie Cao <junjie.cao@intel.com>
Cc: palmer@dabbelt.com, alistair.francis@wdc.com, mst@redhat.com,
imammedo@redhat.com, sunilvl@ventanamicro.com,
sunilvl@oss.qualcomm.com, jic23@kernel.org, pbonzini@redhat.com,
liwei1518@gmail.com, daniel.barboza@oss.qualcomm.com,
zhiwei_liu@linux.alibaba.com, chao.liu@processmission.com,
anisinha@redhat.com, dave.jiang@intel.com,
alison.schofield@intel.com, guoren@kernel.org,
qemu-riscv@nongnu.org, qemu-devel@nongnu.org,
linux-cxl@vger.kernel.org
Subject: Re: [PATCH 3/4] hw/riscv/virt: Provide a 32-bit MMIO window for CXL host bridges
Date: Fri, 28 Aug 2026 18:05:18 +0800 [thread overview]
Message-ID: <20260828172602.300003-1-cp0613@linux.alibaba.com> (raw)
In-Reply-To: <20260827193716.200002-1-cp0613@linux.alibaba.com>
Hi Junjie,
Following up on my earlier note -- I have done the rework and the
end-to-end verification you flagged.
Reworked along the extra-pci-roots line: riscv virt now calls
pci_bus_add_fw_cfg_extra_pci_roots() to advertise the pxb-cxl expander
root bus, and EDK2's PciBusDxe enumerates behind it and assigns the
root-port window and bus numbers. build_crs() then emits a correct
_CRS for the ACPI0016 host bridge. The regenerated DSDT shows the
firmware-assigned window (DWordMemory 0x40400000-0x405FFFFF, a
QWordMemory, and WordBusNumber [0x0C-0x0D]), and as you noted it scales
to multiple pxb-cxl (each gets its own window from the shared aperture).
Verified end-to-end on a booting RVA22 guest:
# cxl list -> mem0 (4 GiB), port1, root0
# cxl enable-memdev mem0 -> enabled 1 mem
# cxl create-region -d decoder0.0 -w 1 mem0 -> region0 committed
# daxctl online-memory dax0.0 -> onlined memory for 1 device
# free -h -> 3.8Gi -> 7.8Gi (+4 GiB)
I will send the respun series shortly.
Thanks again,
Pei
next prev parent reply other threads:[~2026-08-28 10:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-21 8:19 [PATCH 0/4] hw/riscv/virt: Add CXL support to the RISC-V virt machine Chen Pei
2026-08-21 8:19 ` [PATCH 1/4] " Chen Pei
2026-08-21 8:19 ` [PATCH 2/4] hw/riscv/virt-acpi-build: Add _DEP to ACPI0017 for CXL host bridge dependency Chen Pei
2026-08-21 8:19 ` [PATCH 3/4] hw/riscv/virt: Provide a 32-bit MMIO window for CXL host bridges Chen Pei
2026-08-26 13:37 ` Junjie Cao
2026-08-27 12:17 ` Chen Pei
2026-08-28 10:05 ` Chen Pei [this message]
2026-08-21 8:19 ` [PATCH 4/4] tests/qtest: Add RISC-V ACPI bios tables test for CXL Chen Pei
2026-08-26 13:38 ` Junjie Cao
2026-08-27 12:24 ` Chen Pei
2026-08-21 8:43 ` [PATCH 0/4] hw/riscv/virt: Add CXL support to the RISC-V virt machine Chen Pei
2026-08-26 13:37 ` Junjie Cao
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=20260828172602.300003-1-cp0613@linux.alibaba.com \
--to=cp0613@linux.alibaba.com \
--cc=alison.schofield@intel.com \
--cc=alistair.francis@wdc.com \
--cc=anisinha@redhat.com \
--cc=chao.liu@processmission.com \
--cc=daniel.barboza@oss.qualcomm.com \
--cc=dave.jiang@intel.com \
--cc=guoren@kernel.org \
--cc=imammedo@redhat.com \
--cc=jic23@kernel.org \
--cc=junjie.cao@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=liwei1518@gmail.com \
--cc=mst@redhat.com \
--cc=palmer@dabbelt.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=sunilvl@oss.qualcomm.com \
--cc=sunilvl@ventanamicro.com \
--cc=zhiwei_liu@linux.alibaba.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