From: Jonathan Cameron via <qemu-devel@nongnu.org>
To: Zhi Wang <zhiw@nvidia.com>
Cc: <qemu-devel@nongnu.org>, <dan.j.williams@intel.com>,
<dave.jiang@intel.com>, <ira.weiny@intel.com>,
<fan.ni@samsung.com>, <alex.williamson@redhat.com>,
<alucerop@amd.com>, <clg@redhat.com>, <acurrid@nvidia.com>,
<cjia@nvidia.com>, <smitra@nvidia.com>, <ankita@nvidia.com>,
<aniketa@nvidia.com>, <kwankhede@nvidia.com>,
<targupta@nvidia.com>, <zhiwang@kernel.org>
Subject: Re: [PATCH 1/3] hw/cxl: factor out cxl_host_addr_to_dpa()
Date: Tue, 21 Jan 2025 15:52:24 +0000 [thread overview]
Message-ID: <20250121155224.00005c8b@huawei.com> (raw)
In-Reply-To: <20241212130422.69380-2-zhiw@nvidia.com>
Hi Zhi,
> index 945ee6ffd0..abb2e874b2 100644
> --- a/include/hw/cxl/cxl_component.h
> +++ b/include/hw/cxl/cxl_component.h
> @@ -268,6 +268,9 @@ uint8_t cxl_interleave_ways_enc(int iw, Error **errp);
> int cxl_interleave_ways_dec(uint8_t iw_enc, Error **errp);
> uint8_t cxl_interleave_granularity_enc(uint64_t gran, Error **errp);
>
> +bool cxl_host_addr_to_dpa(CXLComponentState *cxl_cstate, hwaddr host_addr,
> + uint64_t *dpa);
> +
Other than this being a really odd place to put it (in the middle of interleave
granularity functions. This change seems like a logical enough change without
the reuse.
Also, I'm carrying a patch for 3/6/12 way support so I've merged this on top of that
in general interest of reducing patches flying around when then are reasonable
on their own.
Jonathan
> hwaddr cxl_decode_ig(int ig);
>
> CXLComponentState *cxl_get_hb_cstate(PCIHostState *hb);
next prev parent reply other threads:[~2025-01-21 15:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 13:04 [PATCH 0/3] Introduce CXL type-2 device emulation Zhi Wang
2024-12-12 13:04 ` [PATCH 1/3] hw/cxl: factor out cxl_host_addr_to_dpa() Zhi Wang
2025-01-21 15:52 ` Jonathan Cameron via [this message]
2024-12-12 13:04 ` [PATCH 2/3] hw/cxl: introduce cxl_component_update_dvsec() Zhi Wang
2025-01-21 15:57 ` Jonathan Cameron via
2024-12-12 13:04 ` [PATCH 3/3] hw/cxl: introduce CXL type-2 device emulation Zhi Wang
2024-12-12 17:02 ` Alejandro Lucero Palau
2024-12-12 18:33 ` Zhi Wang
2025-01-21 16:16 ` Jonathan Cameron via
2025-01-31 10:45 ` Zhi Wang
2025-01-31 11:52 ` Jonathan Cameron via
2024-12-12 16:49 ` [PATCH 0/3] Introduce " Alejandro Lucero Palau
2024-12-12 18:10 ` Zhi Wang
2025-01-21 15:34 ` Jonathan Cameron via
2025-01-31 10:37 ` Zhi Wang
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=20250121155224.00005c8b@huawei.com \
--to=qemu-devel@nongnu.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=acurrid@nvidia.com \
--cc=alex.williamson@redhat.com \
--cc=alucerop@amd.com \
--cc=aniketa@nvidia.com \
--cc=ankita@nvidia.com \
--cc=cjia@nvidia.com \
--cc=clg@redhat.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=fan.ni@samsung.com \
--cc=ira.weiny@intel.com \
--cc=kwankhede@nvidia.com \
--cc=smitra@nvidia.com \
--cc=targupta@nvidia.com \
--cc=zhiw@nvidia.com \
--cc=zhiwang@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.