[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f31ad04e-90da-4de6-9065-5ff9fd1d20ba@amd.com>
Date: Thu, 17 Apr 2025 13:07:32 +0100
From: Alejandro Lucero Palau <alucerop@....com>
To: Jonathan Cameron <Jonathan.Cameron@...wei.com>,
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, Ben Cheatham <benjamin.cheatham@....com>
Subject: Re: [PATCH v13 05/22] cxl: add function for type2 cxl regs setup
On 4/15/25 14:21, Jonathan Cameron wrote:
> On Mon, 14 Apr 2025 16:13:19 +0100
> alejandro.lucero-palau@....com wrote:
>
>> From: Alejandro Lucero <alucerop@....com>
>>
>> Create a new function for a type2 device initialising
>> cxl_dev_state struct regarding cxl regs setup and mapping.
>>
>> Export the capabilities found for checking them against the
>> expected ones by the driver.
>>
>> Signed-off-by: Alejandro Lucero <alucerop@....com>
>> Reviewed-by: Ben Cheatham <benjamin.cheatham@....com>
>> ---
> One trivial thing inline.
>
>> drivers/cxl/core/pci.c | 52 ++++++++++++++++++++++++++++++++++++++++++
>> include/cxl/cxl.h | 4 ++++
>> 2 files changed, 56 insertions(+)
>>
>> int cxl_pci_get_bandwidth(struct pci_dev *pdev, struct access_coordinate *c)
>> {
>> int speed, bw;
>> diff --git a/include/cxl/cxl.h b/include/cxl/cxl.h
>> index afad8a86c2bc..729544538673 100644
>> --- a/include/cxl/cxl.h
>> +++ b/include/cxl/cxl.h
>> @@ -231,4 +231,8 @@ struct cxl_dev_state *_cxl_dev_state_create(struct device *dev,
>> struct pci_dev;
>> int cxl_check_caps(struct pci_dev *pdev, unsigned long *expected,
>> unsigned long *found);
>> +
>> +struct cxl_memdev_state;
> Why have this here? only cxl_dev_state is used.
Right. Some leftover from previous versions.
Removing it.
Thanks
>> +int cxl_pci_accel_setup_regs(struct pci_dev *pdev, struct cxl_dev_state *cxlmds,
>> + unsigned long *caps);
>> #endif /* __CXL_CXL_H__ */
Powered by blists - more mailing lists