Message ID | 20220905152439.77770-1-justin.he@arm.com |
---|---|
Headers | show |
Series | Make ghes_edac a proper module | expand |
On Monday, September 5, 2022 9:25 AM, Jia He wrote: > diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c > index 8cb65f757d06..b0a6445c6da2 100644 > --- a/drivers/acpi/apei/ghes.c > +++ b/drivers/acpi/apei/ghes.c > @@ -109,6 +109,14 @@ static inline bool is_hest_type_generic_v2(struct > ghes *ghes) > bool ghes_disable; > module_param_named(disable, ghes_disable, bool, 0); > > +/* > + * "ghes.edac_force_enable" forcibly enables ghes_edac and skips the > platform > + * check. > + */ > +bool ghes_edac_force_enable; > +EXPORT_SYMBOL(ghes_edac_force_enable); > +module_param_named(edac_force_enable, ghes_edac_force_enable, > bool, 0); Thanks for the update. It looks good to me. Reviewed-by: Toshi Kani <toshi.kani@hpe.com> Toshi
On Monday, September 5, 2022 9:25 AM, Jia He wrote: > -void ghes_edac_unregister(struct ghes *ghes) > +static void ghes_edac_unregister(struct ghes *ghes) > { > struct mem_ctl_info *mci; > unsigned long flags; > > - if (!ghes_edac_force_enable) > - return; > - I am not familiar with this original check. Assuming it is safe to delete it now (as you mentioned in other email w/o description), I suggest adding some description to the commit log. At high-level, the patch looks good to me. Acked-by: Toshi Kani <toshi.kani@hpe.com> Toshi
Hi Kani > -----Original Message----- > From: Kani, Toshi <toshi.kani@hpe.com> > Sent: Thursday, September 8, 2022 8:31 AM > To: Justin He <Justin.He@arm.com>; Len Brown <lenb@kernel.org>; James > Morse <James.Morse@arm.com>; Tony Luck <tony.luck@intel.com>; Borislav > Petkov <bp@alien8.de>; Mauro Carvalho Chehab <mchehab@kernel.org>; > Robert Richter <rric@kernel.org>; Robert Moore <robert.moore@intel.com>; > Qiuxu Zhuo <qiuxu.zhuo@intel.com>; Yazen Ghannam > <yazen.ghannam@amd.com>; Jan Luebbe <jlu@pengutronix.de>; Khuong > Dinh <khuong@os.amperecomputing.com> > Cc: Ard Biesheuvel <ardb@kernel.org>; linux-acpi@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-edac@vger.kernel.org; devel@acpica.org; > Rafael J . Wysocki <rafael@kernel.org>; Shuai Xue > <xueshuai@linux.alibaba.com>; Jarkko Sakkinen <jarkko@kernel.org>; > linux-efi@vger.kernel.org; nd <nd@arm.com> > Subject: RE: [PATCH v5 5/8] EDAC/ghes: Make ghes_edac a proper module to > remove the dependency on ghes > > On Monday, September 5, 2022 9:25 AM, Jia He wrote: > > -void ghes_edac_unregister(struct ghes *ghes) > > +static void ghes_edac_unregister(struct ghes *ghes) > > { > > struct mem_ctl_info *mci; > > unsigned long flags; > > > > - if (!ghes_edac_force_enable) > > - return; > > - > > I am not familiar with this original check. Assuming it is safe to delete it now > (as you mentioned in other email w/o description), I suggest adding some > description to the commit log. > Thanks, will do I've tested the insmod/rmmod multiple times on Arm host. I will wait for others' comments for a while before sending the new version. > At high-level, the patch looks good to me. > Acked-by: Toshi Kani <toshi.kani@hpe.com> Thanks a lot for the help 😊 -- Cheers, Justin (Jia He)