From: Dan Williams <dan.j.williams@intel.com>
To: "Zhang, Rui" <rui.zhang@intel.com>,
"Huang, Ying" <ying.huang@intel.com>,
"Moore, Robert" <robert.moore@intel.com>,
"Jonathan.Cameron@huawei.com" <Jonathan.Cameron@huawei.com>,
"Williams, Dan J" <dan.j.williams@intel.com>,
"Wysocki, Rafael J" <rafael.j.wysocki@intel.com>
Cc: "benjamin.cheatham@amd.com" <benjamin.cheatham@amd.com>,
"Jiang, Dave" <dave.jiang@intel.com>,
"Schofield, Alison" <alison.schofield@intel.com>,
"gourry@gourry.net" <gourry@gourry.net>,
"linux-cxl@vger.kernel.org" <linux-cxl@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Verma, Vishal L" <vishal.l.verma@intel.com>,
"Weiny, Ira" <ira.weiny@intel.com>,
"dave@stgolabs.net" <dave@stgolabs.net>,
"alucerop@amd.com" <alucerop@amd.com>
Subject: Re: [PATCH] cxl: Rename ACPI_CEDT_CFMWS_RESTRICT_TYPE2/TYPE3
Date: Tue, 10 Dec 2024 12:08:06 -0800 [thread overview]
Message-ID: <67589fa6c84fe_10a083294fe@dwillia2-xfh.jf.intel.com.notmuch> (raw)
In-Reply-To: <1595d6b740602682f12a4e502e459b0d82e48711.camel@intel.com>
Zhang, Rui wrote:
> CC Rafael,
>
> On Sun, 2024-11-10 at 14:13 +0800, Huang, Ying wrote:
> > Dan Williams <dan.j.williams@intel.com> writes:
> >
> > > Alison Schofield wrote:
> > > [..]
> > > > > I think so too. However, I prefer to keep this patch just
> > > > > mechanic
> > > > > renaming and do these changes in another patch. Do you agree?
> > > > >
> > > >
> > > > I don't know. I was just questioning where and how far the naming
> > > > scheme
> > > > needs to change.
> > > >
> > > > Maybe Jonathan, as the Suggested-by, can chime in and move this
> > > > ahead.
> > >
> > > I feel like we are going to be living with the ghosts of the
> > > original
> > > "Type2 / Type3" naming problem for the rest of the subsystem's
> > > lifespan
> > > especially since they were encoded in the ABI and ABI is forever.
> > >
> > > I am not opposed to this localized rename in drivers/cxl/acpi.c on
> > > principal, but in terms of incremental value relative to the
> > > thrash, it's
> > > questionable.
> > >
> > > For example changes to include/acpi/actbl1.h need to be chased
> > > through
> > > ACPICA, at which point is this rename really worth it?
> >
> > I think that it's not too hard to change ACPI tables definition.
> > Added
> > Bob and Rui for ACPICA related change.
>
> For the change below,
>
> diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h
> index 199afc2cd122..e195909928df 100644
> --- a/include/acpi/actbl1.h
> +++ b/include/acpi/actbl1.h
> @@ -551,11 +551,11 @@ struct acpi_cedt_cfmws_target_element {
>
> /* Values for Restrictions field above */
>
> -#define ACPI_CEDT_CFMWS_RESTRICT_TYPE2 (1)
> -#define ACPI_CEDT_CFMWS_RESTRICT_TYPE3 (1<<1)
> -#define ACPI_CEDT_CFMWS_RESTRICT_VOLATILE (1<<2)
> -#define ACPI_CEDT_CFMWS_RESTRICT_PMEM (1<<3)
> -#define ACPI_CEDT_CFMWS_RESTRICT_FIXED (1<<4)
> +#define ACPI_CEDT_CFMWS_RESTRICT_DEVMEM (1)
> +#define ACPI_CEDT_CFMWS_RESTRICT_HOSTONLYMEM (1<<1)
> +#define ACPI_CEDT_CFMWS_RESTRICT_VOLATILE (1<<2)
> +#define ACPI_CEDT_CFMWS_RESTRICT_PMEM (1<<3)
> +#define ACPI_CEDT_CFMWS_RESTRICT_FIXED (1<<4)
>
> This change is made based on the spec update, right?
>
> Do we have any user(other than Linux) for the old version of spec?
> If yes, we probably need to keep the old ones. And IMO, if spec changes
> and the bit definition changes, we should introduce new Macros for the
> new definitions, together with spec revision info, say something like
At least for me the thrash does not have a signficant upside. The more
important terminology concepts are within the CXL core.
So I would just merge this rename below and call it a day, i.e. leave
the cxl_acpi rename alone.
diff --git a/drivers/cxl/cxl.h b/drivers/cxl/cxl.h
index 0fc96f8bf15c..b9083ce1cf74 100644
--- a/drivers/cxl/cxl.h
+++ b/drivers/cxl/cxl.h
@@ -315,13 +315,13 @@ resource_size_t cxl_rcd_component_reg_phys(struct device *dev,
* Additionally indicate whether decoder settings were autodetected,
* user customized.
*/
-#define CXL_DECODER_F_RAM BIT(0)
-#define CXL_DECODER_F_PMEM BIT(1)
-#define CXL_DECODER_F_TYPE2 BIT(2)
-#define CXL_DECODER_F_TYPE3 BIT(3)
-#define CXL_DECODER_F_LOCK BIT(4)
-#define CXL_DECODER_F_ENABLE BIT(5)
-#define CXL_DECODER_F_MASK GENMASK(5, 0)
+#define CXL_DECODER_F_RAM BIT(0)
+#define CXL_DECODER_F_PMEM BIT(1)
+#define CXL_DECODER_F_DEVMEM BIT(2)
+#define CXL_DECODER_F_HOSTONLYMEM BIT(3)
+#define CXL_DECODER_F_LOCK BIT(4)
+#define CXL_DECODER_F_ENABLE BIT(5)
+#define CXL_DECODER_F_MASK GENMASK(5, 0)
enum cxl_decoder_type {
CXL_DECODER_DEVMEM = 2,
prev parent reply other threads:[~2024-12-10 20:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 8:41 [PATCH] cxl: Rename ACPI_CEDT_CFMWS_RESTRICT_TYPE2/TYPE3 Huang Ying
2024-11-05 15:17 ` Ira Weiny
2024-11-05 22:25 ` Fan Ni
2024-11-06 2:27 ` Alison Schofield
2024-11-06 2:43 ` Huang, Ying
2024-11-07 20:36 ` Alison Schofield
2024-11-07 21:35 ` Dan Williams
2024-11-10 6:13 ` Huang, Ying
2024-11-12 2:37 ` Zhang, Rui
2024-12-10 20:08 ` Dan Williams [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=67589fa6c84fe_10a083294fe@dwillia2-xfh.jf.intel.com.notmuch \
--to=dan.j.williams@intel.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=alison.schofield@intel.com \
--cc=alucerop@amd.com \
--cc=benjamin.cheatham@amd.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.net \
--cc=gourry@gourry.net \
--cc=ira.weiny@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=robert.moore@intel.com \
--cc=rui.zhang@intel.com \
--cc=vishal.l.verma@intel.com \
--cc=ying.huang@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