From: Zhi Wang <zhiw@nvidia.com>
To: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: "linux-cxl@vger.kernel.org" <linux-cxl@vger.kernel.org>,
"alison.schofield@intel.com" <alison.schofield@intel.com>,
"dan.j.williams@intel.com" <dan.j.williams@intel.com>,
"dave.jiang@intel.com" <dave.jiang@intel.com>,
"dave@stgolabs.net" <dave@stgolabs.net>,
"ira.weiny@intel.com" <ira.weiny@intel.com>,
"vishal.l.verma@intel.com" <vishal.l.verma@intel.com>,
Andy Currid <ACurrid@nvidia.com>, Neo Jia <cjia@nvidia.com>,
Surath Mitra <smitra@nvidia.com>,
Ankit Agrawal <ankita@nvidia.com>,
Aniket Agashe <aniketa@nvidia.com>,
Kirti Wankhede <kwankhede@nvidia.com>,
"Tarun Gupta (SW-GPU)" <targupta@nvidia.com>,
"zhiwang@kernel.org" <zhiwang@kernel.org>,
Li Ming <ming.li@zohomail.com>
Subject: Re: [PATCH v2] cxl: factor out cxl_await_range_active() and cxl_media_ready()
Date: Sat, 28 Dec 2024 11:44:15 +0000 [thread overview]
Message-ID: <bedbfc9c-93ea-4cd3-815a-839df5accb75@nvidia.com> (raw)
In-Reply-To: <20241224161652.000067d6@huawei.com>
On 12/24/2024 6:16 PM, Jonathan Cameron wrote:
> On Fri, 13 Dec 2024 02:39:06 -0800
> Zhi Wang <zhiw@nvidia.com> wrote:
>
>> Before accessing the CXL device memory after reset/power-on, the driver
>> needs to ensure the device memory media is ready.
>>
>> However, not every CXL device implements the CXL memory device register
>> groups. E.g. a CXL type-2 device. Thus calling cxl_await_media_ready()
>> on these devcie will lead to a kernel panic. This problem was found when
>
> Spell check. device
Thanks. I did add checkpatch.pl in my patch sending script since you
told me last time, but checkpatch.pl cannot catch this one until I
install codespell and did checkpatch.pl --codespell *.patch.
==== without codespell ====
inno@inno-linux:~/linux$ scripts/checkpatch.pl *.patch
WARNING: The commit message has 'Call Trace:', perhaps it also needs a
'Fixes:' tag?
total: 0 errors, 1 warnings, 54 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or
--fix-inplace.
0001-cxl-factor-out-cxl_await_range_active-and-cxl_media_.patch has
style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
==== with codespell ====
inno@inno-linux:~/linux$ scripts/checkpatch.pl *.patch --codespell
WARNING: 'devcie' may be misspelled - perhaps 'device'?
#12:
on these devcie will lead to a kernel panic. This problem was found when
^^^^^^
...
> I've no problem with the change, but would prefer to see it as part of
> a series making use of the newly exported split.
>
It started as a fix when I was working on QEMU type-2 device emulation
[1]. Guess the near coming user should be the sample CXL type-2 driver
and VFIO CXL.
[1] https://lore.kernel.org/all/20241212130422.69380-2-zhiw@nvidia.com/T/
> Assuming one comes along.
> Reviewed-by; Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
next prev parent reply other threads:[~2024-12-28 11:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 10:39 [PATCH v2] cxl: factor out cxl_await_range_active() and cxl_media_ready() Zhi Wang
2024-12-15 13:29 ` Li Ming
2024-12-24 16:16 ` Jonathan Cameron
2024-12-28 11:44 ` Zhi Wang [this message]
2025-01-03 18:01 ` Ira Weiny
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=bedbfc9c-93ea-4cd3-815a-839df5accb75@nvidia.com \
--to=zhiw@nvidia.com \
--cc=ACurrid@nvidia.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=alison.schofield@intel.com \
--cc=aniketa@nvidia.com \
--cc=ankita@nvidia.com \
--cc=cjia@nvidia.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.net \
--cc=ira.weiny@intel.com \
--cc=kwankhede@nvidia.com \
--cc=linux-cxl@vger.kernel.org \
--cc=ming.li@zohomail.com \
--cc=smitra@nvidia.com \
--cc=targupta@nvidia.com \
--cc=vishal.l.verma@intel.com \
--cc=zhiwang@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.