Linux CXL
 help / color / mirror / Atom feed
From: Jeongtae Park <jtp.park@samsung.com>
To: Davidlohr Bueso <dave@stgolabs.net>
Cc: linux-cxl@vger.kernel.org,
	Dan Williams <dan.j.williams@intel.com>,
	Alison Schofield <alison.schofield@intel.com>,
	Vishal Verma <vishal.l.verma@intel.com>,
	Ben Widawsky <bwidawsk@kernel.org>,
	Jonathan Cameron <jonathan.cameron@huawei.com>,
	Dave Jiang <dave.jiang@intel.com>, Fan Ni <fan.ni@samsung.com>,
	Kyungsan Kim <ks0204.kim@samsung.com>,
	Wonjae Lee <wj28.lee@samsung.com>,
	Hojin Nam <hj96.nam@samsung.com>,
	Junhyeok Im <junhyeok.im@samsung.com>,
	Jehoon Park <jehoon.park@samsung.com>,
	Jeongtae Park <jeongtae.park@gmail.com>
Subject: Re: [RFC PATCH 0/3] cxl: Fix background operation handling
Date: Thu, 5 Oct 2023 18:06:32 +0900	[thread overview]
Message-ID: <ZR58mPWDrb/QRt3T@jtpark-7920> (raw)
In-Reply-To: <yuxcbtl6zjtas55y6d4x6q6jx267fjcsvhjodofk6sqsg25lhh@gcvpdf3j3bmi>

[-- Attachment #1: Type: text/plain, Size: 1886 bytes --]

On Wed, Sep 27, 2023 at 06:02:03PM -0700, Davidlohr Bueso wrote:
> On Fri, 22 Sep 2023, Jeongtae Park wrote:
> 
> > Hello,
> > 
> > We are currently trying to add background commands like
> > fw-related and sanitize operation. However, as we modified
> > the code, we found that there was a lot of duplication of
> > code, so we would like to modify the existing background
> > command handling a little bit. We want to make the most of
> > the existing background command handling so that we can
> > easily add other background commands in the future.
> 
> What code duplication? All you need to do is arm the
> struct cxl_mbox_cmd with sensible timeouts. For example,
> see 9521875bbe0 (cxl: add a firmware update mechanism using
> the sysfs firmware loader).
> 
> > The first patch modifies the existing sanitize operation
> > handling to allow other background commands to be used
> > with it, and the second patch modifies sanitize to work
> > with the modified code. Finally, the third patch adds a
> > sysfs file related to the background operation.
> > This sysfs entry is select/poll capable from userspace
> > to notify upon completion of a background operation.
> 
> This says nothing about the motivation of these changes.
> Specially when it has been well discussed in the past that
> exactly because of its monopolizing nature, the driver will
> _only_ do sanitize asynchronously. See the changelog of
> ccadf1310fb (cxl/mbox: Add background cmd handling machinery).
> 
> Thanks,
> Davidlohr

Hello Davidlohr,

I'm afraid that as you mentioned, the cover letter didn't seem to be
written including the problems need to be improved (we are guessing)
and our intentions. I'll review history about them, and make more
specific examples to explain our intentions and how we're going to fix it.

(Sorry for late reply, We've been on long holiday for a while.)

Thanks!
/jtpark

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



      reply	other threads:[~2023-10-05 14:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20230922130253epcas2p3112ca71e8a1dcf42967543063322df1e@epcas2p3.samsung.com>
2023-09-22 13:05 ` [RFC PATCH 0/3] cxl: Fix background operation handling Jeongtae Park
2023-09-25 22:56   ` Dave Jiang
2023-10-05  8:24     ` Jeongtae Park
2023-09-28  1:02   ` Davidlohr Bueso
2023-10-05  9:06     ` Jeongtae Park [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=ZR58mPWDrb/QRt3T@jtpark-7920 \
    --to=jtp.park@samsung.com \
    --cc=alison.schofield@intel.com \
    --cc=bwidawsk@kernel.org \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=dave@stgolabs.net \
    --cc=fan.ni@samsung.com \
    --cc=hj96.nam@samsung.com \
    --cc=jehoon.park@samsung.com \
    --cc=jeongtae.park@gmail.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=junhyeok.im@samsung.com \
    --cc=ks0204.kim@samsung.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=vishal.l.verma@intel.com \
    --cc=wj28.lee@samsung.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