Linux CXL
 help / color / mirror / Atom feed
From: Dave Jiang <dave.jiang@intel.com>
To: dan.j.williams@intel.com, Li Ming <ming.li@zohomail.com>
Cc: dave@stgolabs.net, jonathan.cameron@huawei.com,
	alison.schofield@intel.com, vishal.l.verma@intel.com,
	ira.weiny@intel.com, linux-cxl@vger.kernel.org
Subject: Re: [PATCH] cxl/region: Add decoder check to check_commit_order()
Date: Thu, 1 May 2025 08:09:00 -0700	[thread overview]
Message-ID: <2562ba5b-cd14-4961-a2a7-c0ebcd204fa2@intel.com> (raw)
In-Reply-To: <681306aba4219_29cd5100c3@dwillia2-mobl4.notmuch>



On 4/30/25 10:29 PM, dan.j.williams@intel.com wrote:
> Li Ming wrote:
>> On 5/1/2025 5:36 AM, Dave Jiang wrote:
>>> check_commit_order() attempts to convert a device to a decoder without
>>> making sure the device is a decoder. So far this has been working due
>>> to pure luck. Issue discovered while doing deferred dport probing when
>>> child ports are now in the midst of decoders due to ordering change
>>> of child port additions. Add a check before attempting to do decoder
>>> conversion.
>>>
>>> Fixes: 105b6235ad0f ("cxl/port: Prevent out-of-order decoder allocation")
>>> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
>>
>> I also have a patch for this issue during I worked on deferred dport probing.
>>
>> https://lore.kernel.org/linux-cxl/20250107035708.1134954-4-ming.li@zohomail.com/
>>
>> I am not sure if we should define it as a bug, my understanding is
>> that it will never happen with current implementation, it only happens
>> when we are trying to delay the switch decoders initialization.
> 
> Agree. This is not a fix. The current implementation is lucky that ports
> are always registered after decoders. So there is zero exposure to this
> issue for current kernels.
> 
> Dave, please just include this as a prep patch in the same series that
> invalidates the port child device ordering assumption.

will do

      reply	other threads:[~2025-05-01 15:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-30 21:36 [PATCH] cxl/region: Add decoder check to check_commit_order() Dave Jiang
2025-05-01  0:46 ` Alison Schofield
2025-05-01  2:51 ` Li Ming
2025-05-01  5:29   ` dan.j.williams
2025-05-01 15:09     ` Dave Jiang [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=2562ba5b-cd14-4961-a2a7-c0ebcd204fa2@intel.com \
    --to=dave.jiang@intel.com \
    --cc=alison.schofield@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave@stgolabs.net \
    --cc=ira.weiny@intel.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=ming.li@zohomail.com \
    --cc=vishal.l.verma@intel.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