From: "Zhang, Rui" <rui.zhang@intel.com>
To: "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, 12 Nov 2024 02:37:40 +0000 [thread overview]
Message-ID: <1595d6b740602682f12a4e502e459b0d82e48711.camel@intel.com> (raw)
In-Reply-To: <87a5e762gc.fsf@yhuang6-desk2.ccr.corp.intel.com>
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
#define ACPI_CEDT_CFMWS_V2_RESTRICT_DEVMEM (1)
#define ACPI_CEDT_CFMWS_V2_RESTRICT_HOSTONLYMEM (1<<1)
#define ACPI_CEDT_CFMWS_V2_RESTRICT_VOLATILE (1<<2)
#define ACPI_CEDT_CFMWS_V2_RESTRICT_PMEM (1<<3)
#define ACPI_CEDT_CFMWS_V2_RESTRICT_FIXED (1<<4)
and make Linux stick with the new Macros?
thanks,
rui
next prev parent reply other threads:[~2024-11-12 2:38 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 [this message]
2024-12-10 20:08 ` Dan Williams
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=1595d6b740602682f12a4e502e459b0d82e48711.camel@intel.com \
--to=rui.zhang@intel.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=alison.schofield@intel.com \
--cc=alucerop@amd.com \
--cc=benjamin.cheatham@amd.com \
--cc=dan.j.williams@intel.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=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