[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aBzxnPdKuFLTKaM5@aschofie-mobl2.lan>
Date: Thu, 8 May 2025 11:02:04 -0700
From: Alison Schofield <alison.schofield@...el.com>
To: <alejandro.lucero-palau@....com>
CC: <linux-cxl@...r.kernel.org>, <netdev@...r.kernel.org>,
<dan.j.williams@...el.com>, <edward.cree@....com>, <davem@...emloft.net>,
<kuba@...nel.org>, <pabeni@...hat.com>, <edumazet@...gle.com>,
<dave.jiang@...el.com>, Alejandro Lucero <alucerop@....com>, Ben Cheatham
<benjamin.cheatham@....com>, Jonathan Cameron <Jonathan.Cameron@...wei.com>
Subject: Re: [PATCH v14 13/22] cxl: define a driver interface for DPA
allocation
On Thu, Apr 17, 2025 at 10:29:16PM +0100, alejandro.lucero-palau@....com wrote:
> From: Alejandro Lucero <alucerop@....com>
>
> Region creation involves finding available DPA (device-physical-address)
> capacity to map into HPA (host-physical-address) space. Define an API,
> cxl_request_dpa(), that tries to allocate the DPA memory the driver
> requires to operate. The memory requested should not be bigger than the
> max available HPA obtained previously with cxl_get_hpa_freespace.
>
> Based on https://lore.kernel.org/linux-cxl/168592158743.1948938.7622563891193802610.stgit@dwillia2-xfh.jf.intel.com/
>
> Signed-off-by: Alejandro Lucero <alucerop@....com>
> Reviewed-by: Ben Cheatham <benjamin.cheatham@....com>
> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@...wei.com>
> ---
> drivers/cxl/core/hdm.c | 77 ++++++++++++++++++++++++++++++++++++++++++
> include/cxl/cxl.h | 5 +++
> 2 files changed, 82 insertions(+)
snip
> diff --git a/include/cxl/cxl.h b/include/cxl/cxl.h
> index e9ae7eff2393..c75456dd7404 100644
> --- a/include/cxl/cxl.h
> +++ b/include/cxl/cxl.h
> @@ -8,6 +8,7 @@
> #include <linux/cdev.h>
> #include <linux/node.h>
> #include <linux/ioport.h>
> +#include <linux/range.h>
> #include <cxl/mailbox.h>
range.h is not needed here in this patch, nor for the set as whole.
It builds without.
>
Powered by blists - more mailing lists