From: Dave Jiang <dave.jiang@intel.com>
To: Alison Schofield <alison.schofield@intel.com>
Cc: vishal.l.verma@intel.com, linux-cxl@vger.kernel.org
Subject: Re: [NDCTL PATCH 0/3] ndctl: Add support of QoS Throttling Group (QTG) id for CXL CLI
Date: Fri, 14 Apr 2023 16:27:47 -0700 [thread overview]
Message-ID: <cbee0ae4-0aa5-d2aa-649d-a0c2ef4b2e83@intel.com> (raw)
In-Reply-To: <ZDnKciEJe80+2yrz@aschofie-mobl2>
On 4/14/23 2:49 PM, Alison Schofield wrote:
> On Fri, Apr 14, 2023 at 10:42:55AM -0700, Dave Jiang wrote:
>> The series adds support for the kernel enabling [1] of QoS Throttling Group
>> (QTG) id. The kernel exports a QTG id for the root decoders (CFMWS) and as
>> well as for the CXL memory devices. The QTG id exported for a device is
>> calculated by the driver during device probe. Currently a QTG id is exported
>> for the volatile partition and another for the persistent partition. In the
>> future QTG id(s) will be exported for DCD regions. Display of QTG id is
>> through the CXL CLI list command.
>>
>> A QTG id check as also been added for region creation. A warning is emitted
>> when the QTG id of a memory range of a CXL memory device being included in
>> the CXL region assembly does not match the QTG id of the root decoder. Options
>> are available to suppress the warning or to fail the region creation. This
>> enabling provides a guidance on flagging memory ranges being used is not
>> optimal for performance for the CXL region to be formed.
>
> Can you cut/paste me some cxl list sample output? I'm not going to be
> trying this out to review.
# cxl list -D
[
{
"decoder":"decoder0.0",
"resource":49660559360,
"size":4294967296,
"interleave_ways":1,
"max_available_extent":4294967296,
"pmem_capable":true,
"volatile_capable":true,
"accelmem_capable":true,
"qtg_id":0,
"nr_targets":1
},
{
"decoder":"decoder0.1",
"resource":53955526656,
"size":4294967296,
"interleave_ways":2,
"interleave_granularity":8192,
"max_available_extent":4294967296,
"pmem_capable":true,
"volatile_capable":true,
"accelmem_capable":true,
"qtg_id":0,
"nr_targets":2
}
]
# cxl list
[
{
"memdev":"mem3",
"ram_size":268435456,
"qtg_id":0,
"serial":0,
"host":"0000:c5:00.0"
},
{
"memdev":"mem5",
"pmem_size":268435456,
"qtg_id":0,
"serial":0,
"host":"0000:c2:00.0"
},
{
"memdev":"mem2",
"ram_size":268435456,
"qtg_id":0,
"serial":0,
"host":"0000:c4:00.0"
},
{
"memdev":"mem7",
"pmem_size":268435456,
"qtg_id":0,
"serial":0,
"host":"0000:c3:00.0"
},
{
"memdev":"mem6",
"ram_size":268435456,
"qtg_id":0,
"serial":0,
"host":"0000:38:00.0"
},
{
"memdev":"mem1",
"pmem_size":268435456,
"qtg_id":0,
"serial":0,
"host":"0000:37:00.0"
},
{
"memdev":"mem4",
"ram_size":268435456,
"qtg_id":0,
"serial":0,
"host":"0000:39:00.0"
},
{
"memdev":"mem0",
"pmem_size":268435456,
"qtg_id":0,
"serial":0,
"host":"0000:36:00.0"
}
]
>
> Thanks!
>
>
>>
>> [1]: https://lore.kernel.org/linux-cxl/168088732996.1441063.10107817505475386072.stgit@djiang5-mobl3/T/#t
>>
>> ---
>>
>> Dave Jiang (3):
>> ndctl: Add QTG ID support for the root decoder
>> ndctl: Add QTG ID support for the memory device
>> ndctl: add QTG ID check for region creation
>>
>>
>> Documentation/cxl/cxl-create-region.txt | 9 ++++
>> cxl/json.c | 22 +++++++++-
>> cxl/lib/libcxl.c | 31 ++++++++++++++
>> cxl/lib/libcxl.sym | 3 ++
>> cxl/lib/private.h | 3 ++
>> cxl/libcxl.h | 5 +++
>> cxl/region.c | 57 ++++++++++++++++++++++++-
>> 7 files changed, 128 insertions(+), 2 deletions(-)
>>
>> --
>>
next prev parent reply other threads:[~2023-04-14 23:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-14 17:42 [NDCTL PATCH 0/3] ndctl: Add support of QoS Throttling Group (QTG) id for CXL CLI Dave Jiang
2023-04-14 17:43 ` [NDCTL PATCH 1/3] ndctl: Add QTG ID support for the root decoder Dave Jiang
2023-04-20 16:05 ` Alison Schofield
2023-04-14 17:43 ` [NDCTL PATCH 2/3] ndctl: Add QTG ID support for the memory device Dave Jiang
2023-04-14 17:43 ` [NDCTL PATCH 3/3] ndctl: add QTG ID check for region creation Dave Jiang
2023-04-14 21:49 ` [NDCTL PATCH 0/3] ndctl: Add support of QoS Throttling Group (QTG) id for CXL CLI Alison Schofield
2023-04-14 23:27 ` Dave Jiang [this message]
2023-04-20 16:15 ` Alison Schofield
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=cbee0ae4-0aa5-d2aa-649d-a0c2ef4b2e83@intel.com \
--to=dave.jiang@intel.com \
--cc=alison.schofield@intel.com \
--cc=linux-cxl@vger.kernel.org \
--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