From: Davidlohr Bueso <dave@stgolabs.net>
To: Dave Jiang <dave.jiang@intel.com>
Cc: dan.j.williams@intel.com, jonathan.cameron@huawei.com,
alison.schofield@intel.com, vishal.l.verma@intel.com,
ira.weiny@intel.com, fan.ni@samsung.com,
a.manzanares@samsung.com, sthanneeru.opensrc@micron.com,
emirakhur@micron.com, ajayjoshi@micron.com,
Ravis.OpenSrc@micron.com, sthanneeru@micron.com,
linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] cxl/pci: lockless background synchronous polling
Date: Tue, 14 Jan 2025 11:30:06 -0800 [thread overview]
Message-ID: <20250114193006.eqdbemtkmfkdapst@offworld> (raw)
In-Reply-To: <831f83fa-01da-42aa-8d9b-c0662e520134@intel.com>
On Tue, 14 Jan 2025, Dave Jiang wrote:
>On 10/21/24 8:18 PM, Davidlohr Bueso wrote:
>> +static inline bool cxl_is_background_cmd(u16 opcode)
>> +{
>> + switch (opcode) {
>> + case CXL_MBOX_OP_TRANSFER_FW:
>> + case CXL_MBOX_OP_ACTIVATE_FW:
>> + case CXL_MBOX_OP_SCAN_MEDIA:
>> + case CXL_MBOX_OP_SANITIZE:
>> + return true;
>> + default:
>> + return false;
>> + }
>> +}
>
>Should this information be pulled from the CEL entry? We should add the code to store the 'command effect' field when walking the CEL and store this information for each command. And then we can just check bit6 of the field rather than statically program that in the kernel.
Yeah, Will do.
Thanks,
Davidlohr
next prev parent reply other threads:[~2025-01-14 19:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-22 3:18 [PATCH 0/3] cxl/mbox: support background operation abort requests Davidlohr Bueso
2024-10-22 3:18 ` [PATCH 1/3] cxl/pci: lockless background synchronous polling Davidlohr Bueso
2025-01-14 16:12 ` Dave Jiang
2025-01-14 18:40 ` Jonathan Cameron
2025-01-14 19:30 ` Davidlohr Bueso [this message]
2024-10-22 3:18 ` [PATCH 2/3] cxl/mbox: support aborting the current background operation Davidlohr Bueso
2025-01-14 17:00 ` Dave Jiang
2025-01-14 19:33 ` Davidlohr Bueso
2025-01-14 20:25 ` Dave Jiang
2024-10-22 3:18 ` [PATCH 3/3] cxl/pci: rename cxl_mbox_background_complete() Davidlohr Bueso
2025-01-14 17:26 ` Dave Jiang
2024-10-23 5:32 ` [PATCH 0/3] cxl/mbox: support background operation abort requests Ravis OpenSrc
2024-10-23 14:29 ` Davidlohr Bueso
2024-10-23 21:17 ` Ravis OpenSrc
2024-10-23 23:35 ` Davidlohr Bueso
2024-10-24 6:30 ` Ravis OpenSrc
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=20250114193006.eqdbemtkmfkdapst@offworld \
--to=dave@stgolabs.net \
--cc=Ravis.OpenSrc@micron.com \
--cc=a.manzanares@samsung.com \
--cc=ajayjoshi@micron.com \
--cc=alison.schofield@intel.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=emirakhur@micron.com \
--cc=fan.ni@samsung.com \
--cc=ira.weiny@intel.com \
--cc=jonathan.cameron@huawei.com \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sthanneeru.opensrc@micron.com \
--cc=sthanneeru@micron.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