The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Dan Williams (nvidia)" <djbw@kernel.org>
To: "Dan Williams (nvidia)" <djbw@kernel.org>,
	 smadhavan@nvidia.com,  bhelgaas@google.com,
	 dan.j.williams@intel.com,  dave.jiang@intel.com,
	 jonathan.cameron@huawei.com,  ira.weiny@intel.com,
	 vishal.l.verma@intel.com,  alison.schofield@intel.com,
	 dave@stgolabs.net
Cc: alwilliamson@nvidia.com,  jeshuas@nvidia.com,  vsethi@nvidia.com,
	 skancherla@nvidia.com,  vaslot@nvidia.com,
	 sdonthineni@nvidia.com,  mhonap@nvidia.com,  vidyas@nvidia.com,
	 jan@nvidia.com,  mochs@nvidia.com,  dschumacher@nvidia.com,
	 linux-cxl@vger.kernel.org,  linux-pci@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	 Srirangan Madhavan <smadhavan@nvidia.com>
Subject: Re: [PATCH v5 5/7] cxl: Add CXL DVSEC reset sequence and flow orchestration
Date: Thu, 14 May 2026 12:21:16 -0700	[thread overview]
Message-ID: <6a0620acec806_57ad71008c@djbw-dev.notmuch> (raw)
In-Reply-To: <6a03e5c099d98_123a100e3@djbw-dev.notmuch>

Dan Williams (nvidia) wrote:
> smadhavan@ wrote:
[..]

A follow-up///

> In the short term the fastest answers to those questions is just walk
> the memdev and cxl root, in the longer term I would be open to building
> more CXL awareness into the core so that CXL reset does not need a
> driver loaded.

While I do think cxl_memdev attach is required for now, I do not think
the UABI should suffer a move if the plan is to ever support more CXL
awareness in the PCI core.

It is also the case that PCI in general wants all PCI device relative
attributes to be statically defined in pci_dev_attr_groups.

What I think this wants then is something like a "cxl" attribute group
whose visibility for now depends on the CXL core to invoke
sysfs_update_group(s) when a cxl_memdev is registered.

Then we can start to build the built-in CXL infrastructure that a
driver-less "CXL reset" capability would need. I think this looks like
HDM address space discovery is separated from 'struct cxl_decoder'
object creation and the CXL core learns to reference the common /
built-in HDM address space discovery.

The main semantic we need is that anything that tries to map CXL memory
needs to wait for a pending reset, and that reset needs to be blocked if
CXL memory is mapped.

      reply	other threads:[~2026-05-14 19:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260306092322.148765-1-smadhavan@nvidia.com>
     [not found] ` <20260306092322.148765-6-smadhavan@nvidia.com>
2026-05-13  2:45   ` [PATCH v5 5/7] cxl: Add CXL DVSEC reset sequence and flow orchestration Dan Williams (nvidia)
2026-05-14 19:21     ` Dan Williams (nvidia) [this message]

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=6a0620acec806_57ad71008c@djbw-dev.notmuch \
    --to=djbw@kernel.org \
    --cc=alison.schofield@intel.com \
    --cc=alwilliamson@nvidia.com \
    --cc=bhelgaas@google.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=dave@stgolabs.net \
    --cc=dschumacher@nvidia.com \
    --cc=ira.weiny@intel.com \
    --cc=jan@nvidia.com \
    --cc=jeshuas@nvidia.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=mhonap@nvidia.com \
    --cc=mochs@nvidia.com \
    --cc=sdonthineni@nvidia.com \
    --cc=skancherla@nvidia.com \
    --cc=smadhavan@nvidia.com \
    --cc=vaslot@nvidia.com \
    --cc=vidyas@nvidia.com \
    --cc=vishal.l.verma@intel.com \
    --cc=vsethi@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