Linux CXL
 help / color / mirror / Atom feed
From: Alejandro Lucero Palau <alucerop@amd.com>
To: "Zhijian Li (Fujitsu)" <lizhijian@fujitsu.com>,
	Gregory Price <gourry@gourry.net>
Cc: "linux-cxl@vger.kernel.org" <linux-cxl@vger.kernel.org>,
	Jonathan Cameron <jonathan.cameron@huawei.com>,
	Dave Jiang <dave.jiang@intel.com>,
	Alison Schofield <alison.schofield@intel.com>,
	Vishal Verma <vishal.l.verma@intel.com>,
	Ira Weiny <ira.weiny@intel.com>,
	Dan Williams <dan.j.williams@intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH] cxl: Allow reprogramming misconfigured hdm decoders
Date: Wed, 7 May 2025 12:10:10 +0100	[thread overview]
Message-ID: <f12240f3-636a-4bda-89e1-42f4cf866248@amd.com> (raw)
In-Reply-To: <8f7019ed-a7a2-4cc8-9a8b-e7f96cf5c8d7@fujitsu.com>


On 5/7/25 07:42, Zhijian Li (Fujitsu) wrote:
>
> On 30/04/2025 16:42, Alejandro Lucero Palau wrote:
>>> Hi Gregory,
>>>
>>> Thank you for the feedback. Based on current CXL driver behavior, user-space tools
>>> can indeed reprogram firmware-provisioned HDM decoders in practice.
>>>
>>> For example, after a successful boot, one may destroy the auto-constructed region
>>> via cxl destroy-region and create a new different region.
>>> This indicates that the kernel does not inherently lock down these decoders.
>>>
>>> As for the locking rationale you mentioned, platform vendors might enforce their policies
>>> through mechanisms like the *Lock-On-Commit* in CXL HDM Decoder n Control Register
>>>
>>> While platform vendors may have valid considerations (as you noted), from a driver and
>>> end-user perspective, depending solely on firmware updates to fix transient failures
>>> is not smooth sometimes 🙂.
>>>
>> Hi Zhijan,
>>
>>
>>   From my current effort trying to get a Type2 device properly initialized by the kernel after the BIOS/platform firmware doing whatever it needs to do, I really think we should have a wider discussion regarding this sync, and maybe to have first something from the kernel expectation of what the BIOS should and should not do.
>>
>>
>> If this makes sense, I could work on a initial draft about the outline or points to discuss about this.
>>
> Hi Alejandro,
>
> Thanks for sharing this concrete pain point. Your experience highlights a critical gap in
> "defining clear handoff protocols between firmware and the kernel" for CXL device initialization.
> I agree that we need a community-driven effort to establish these expectations.
>
>
> I’m happy to see your draft or thread for deeper discussion.


Hi Zhijan,


Great. I'll work on this and hopefully something to share in a couple of 
weeks.


Thanks


>
> Best,
> Zhijian
>
>
>> Thank you

      reply	other threads:[~2025-05-07 11:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-30  1:29 [RFC PATCH] cxl: Allow reprogramming misconfigured hdm decoders Li Zhijian
2025-04-30  2:17 ` Gregory Price
2025-04-30  3:24   ` Zhijian Li (Fujitsu)
2025-04-30  8:42     ` Alejandro Lucero Palau
2025-05-07  6:42       ` Zhijian Li (Fujitsu)
2025-05-07 11:10         ` Alejandro Lucero Palau [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=f12240f3-636a-4bda-89e1-42f4cf866248@amd.com \
    --to=alucerop@amd.com \
    --cc=alison.schofield@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=gourry@gourry.net \
    --cc=ira.weiny@intel.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizhijian@fujitsu.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