From: Yazen Ghannam <yazen.ghannam@amd.com>
To: Shiju Jose <shiju.jose@huawei.com>
Cc: "rafael@kernel.org" <rafael@kernel.org>,
"linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"bp@alien8.de" <bp@alien8.de>,
"tony.luck@intel.com" <tony.luck@intel.com>,
"lenb@kernel.org" <lenb@kernel.org>,
"leo.duran@amd.com" <leo.duran@amd.com>,
"mchehab@kernel.org" <mchehab@kernel.org>,
Jonathan Cameron <jonathan.cameron@huawei.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
Linuxarm <linuxarm@huawei.com>,
"rientjes@google.com" <rientjes@google.com>,
"jiaqiyan@google.com" <jiaqiyan@google.com>,
"Jon.Grimm@amd.com" <Jon.Grimm@amd.com>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"naoya.horiguchi@nec.com" <naoya.horiguchi@nec.com>,
"james.morse@arm.com" <james.morse@arm.com>,
"jthoughton@google.com" <jthoughton@google.com>,
"somasundaram.a@hpe.com" <somasundaram.a@hpe.com>,
"erdemaktas@google.com" <erdemaktas@google.com>,
"pgonda@google.com" <pgonda@google.com>,
"duenwen@google.com" <duenwen@google.com>,
"gthelen@google.com" <gthelen@google.com>,
"wschwartz@amperecomputing.com" <wschwartz@amperecomputing.com>,
"dferguson@amperecomputing.com" <dferguson@amperecomputing.com>,
"wbs@os.amperecomputing.com" <wbs@os.amperecomputing.com>,
"nifan.cxl@gmail.com" <nifan.cxl@gmail.com>,
tanxiaofei <tanxiaofei@huawei.com>,
"Zengtao (B)" <prime.zeng@hisilicon.com>,
Roberto Sassu <roberto.sassu@huawei.com>,
"kangkang.shen@futurewei.com" <kangkang.shen@futurewei.com>,
wanghuiqiang <wanghuiqiang@huawei.com>
Subject: Re: [PATCH v8 1/2] ACPI:RAS2: Add ACPI RAS2 driver
Date: Fri, 13 Jun 2025 14:53:25 -0400 [thread overview]
Message-ID: <20250613185325.GA171759@yaz-khff2.amd.com> (raw)
In-Reply-To: <3fe6a12393f34bf5870313b59fa39e11@huawei.com>
On Thu, Jun 12, 2025 at 04:29:50PM +0000, Shiju Jose wrote:
[...]
> >
> >Just curious, would the new "faux" bus work for this use case?
>
> I tried with "faux" interface, following are the observations.
> 1. RAS2 scrub control interface do present and work under /sys/bus/faux/devices/...
> as expected. However it does not appear under /sys/bus/edac/devices/... as required.
> It seems that the reason for this is that, with the faux device, the RAS2 faux probe function
> and thus edac_dev_register() is called during the early boot stage, compared to the probe
> of the present auxiliary device based solution.
> I think EDAC is not fully initialized at that boot stage?
> This issue is solved with late_initcall(acpi_ras2_init) instead of calling acpi_ras2_init()
> from acpi_init() (drivers/acpi/bus.c).
>
> 2. The faux_device_create() function takes a struct faux_device_ops *, which requires the
> faux_device_ops for RAS2 to be defined within this driver (drivers/acpi/ras2.c). Therefore,
> registration with EDAC for RAS features may necessitate moving to a *ras2_faux_probe()
> function here. This would also require moving the struct edac_scrub_ops ras2_scrub_ops and
> the corresponding callback functions from drivers/ras/acpi_ras2.c to this location.
> Alternatively, we could add and export a ras2_faux_init() function in drivers/ras/acpi_ras2.c
> and call it from *ras2_faux_probe().
>
> Thus not sure "faux" is a suitable interface for RAS2?
>
Right, maybe not. Or could be something to look at later.
I only became aware of the "faux" interface recently, so I just thought
to ask. :)
Thanks,
Yazen
next prev parent reply other threads:[~2025-06-13 18:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 12:37 [PATCH v8 0/2] ACPI: Add support for ACPI RAS2 feature table shiju.jose
2025-06-10 12:37 ` [PATCH v8 1/2] ACPI:RAS2: Add ACPI RAS2 driver shiju.jose
2025-06-11 19:01 ` Yazen Ghannam
2025-06-12 16:29 ` Shiju Jose
2025-06-13 18:53 ` Yazen Ghannam [this message]
2025-06-10 12:37 ` [PATCH v8 2/2] ras: mem: Add memory " shiju.jose
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=20250613185325.GA171759@yaz-khff2.amd.com \
--to=yazen.ghannam@amd.com \
--cc=Jon.Grimm@amd.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=dferguson@amperecomputing.com \
--cc=duenwen@google.com \
--cc=erdemaktas@google.com \
--cc=gthelen@google.com \
--cc=james.morse@arm.com \
--cc=jiaqiyan@google.com \
--cc=jonathan.cameron@huawei.com \
--cc=jthoughton@google.com \
--cc=kangkang.shen@futurewei.com \
--cc=lenb@kernel.org \
--cc=leo.duran@amd.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-edac@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linuxarm@huawei.com \
--cc=mchehab@kernel.org \
--cc=naoya.horiguchi@nec.com \
--cc=nifan.cxl@gmail.com \
--cc=pgonda@google.com \
--cc=prime.zeng@hisilicon.com \
--cc=rafael@kernel.org \
--cc=rientjes@google.com \
--cc=roberto.sassu@huawei.com \
--cc=shiju.jose@huawei.com \
--cc=somasundaram.a@hpe.com \
--cc=tanxiaofei@huawei.com \
--cc=tony.luck@intel.com \
--cc=wanghuiqiang@huawei.com \
--cc=wbs@os.amperecomputing.com \
--cc=wschwartz@amperecomputing.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