From: Ira Weiny <ira.weiny@intel.com>
To: Srirangan Madhavan <smadhavan@nvidia.com>,
Ira Weiny <ira.weiny@intel.com>,
"linux-cxl@vger.kernel.org" <linux-cxl@vger.kernel.org>
Cc: Vishal Aslot <vaslot@nvidia.com>, Alejandro Lucero <alucerop@amd.com>
Subject: Re: [RFC PATCH v1] cxl: add support for cxl reset
Date: Fri, 20 Dec 2024 17:54:54 -0600 [thread overview]
Message-ID: <676603cdee673_2ec99229411@iweiny-mobl.notmuch> (raw)
In-Reply-To: <PH7PR12MB796800828DEC6E60D7C7C0F1C3072@PH7PR12MB7968.namprd12.prod.outlook.com>
Srirangan Madhavan wrote:
> External email: Use caution opening links or attachments
>
> Hello Ira!
>
> Thank you so much for your comments. I’ve added my response below.
> Apologies for the slight delay.
>
> > Srirangan Madhavan wrote:
> >> Currently, there is a lack of support for the CXL Reset method for cxl
> >> devices. This change adds the support and implements the common reset
> >> steps as laid out by the CXL Spec v3.1 Sections 9.6 & 9.7.
>
> > I'm not sure what the use case for this support is. Do you have a use
> > case in mind?
>
> I think that this change would be broadly useful due to few interrelated
> reasons. Without the change, even if devices are capable of CXL reset,
> users will not be able to access the method. Considering the changes
> to support type 2 devices are being added now, there will be more such
> devices.
I see use cases for type 2 for sure.
>
> Adding the support would enable cases where more fine grained
> reset is required than bus reset methods/conventional reset. And FLR does
> not affect the CXL.cache/CXL.mem protocols. Spec also mentions cases like
> FM uses CXL reset for rebinding, error recovery. So I think that adding this
> change would be useful for all devices with the capability.
>
> > What happens if there are current cxl regions mapped to the device being
> > reset? I don't think it is enough to flush the caches. Section 9.7
> > talks about system software requirements for the HDMs. How are those
> > requirements met with this patch?
>
> Sorry for not covering that. Your & other maintainer input here would be
> much appreciated. Since “system software” here is not very specifc,
> my proposal here is not very specific as well.
>
> Considering different platforms might have specific operations to
> effectively clear the regions, some type of optional helper routines in the
> CXL core would be appropriate. This way if required, a Type 2 device driver
> for example can choose to use it if required.
There are a couple of ways to go here. For memory devices I think this is
on the user. But I don't think that is a primary use case as I'm still
unclear of why a user would need to do any reset of the memory device.
For type 2 devices I think the use case will be device dependant. The
specific driver in that case will need to tear down their regions (with or
without user space coordination) and then issue the reset.
All that said I think this patch belongs with a series which implements
some device support. Or is more general for type 2. Which is what
Alejandro (cc'ed) is working on.
https://lore.kernel.org/linux-cxl/20241216161042.42108-1-alejandro.lucero-palau@amd.com/
Ira
next prev parent reply other threads:[~2024-12-20 23:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 7:41 [RFC PATCH v1] cxl: add support for cxl reset Srirangan Madhavan
2024-12-17 17:02 ` Ira Weiny
2024-12-20 22:09 ` Srirangan Madhavan
[not found] ` <PH7PR12MB796800828DEC6E60D7C7C0F1C3072@PH7PR12MB7968.namprd12.prod.outlook.com>
2024-12-20 23:54 ` Ira Weiny [this message]
2024-12-23 23:49 ` Srirangan Madhavan
2024-12-24 10:03 ` Alejandro Lucero Palau
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=676603cdee673_2ec99229411@iweiny-mobl.notmuch \
--to=ira.weiny@intel.com \
--cc=alucerop@amd.com \
--cc=linux-cxl@vger.kernel.org \
--cc=smadhavan@nvidia.com \
--cc=vaslot@nvidia.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