Re: [PATCH] drm/amdgpu: Register bad page handler for Aldebaran

From: Borislav Petkov
Date: Fri May 14 2021 - 03:05:51 EST


On Thu, May 13, 2021 at 11:10:34PM +0000, Joshi, Mukul wrote:
> That's probably not the best example to look at.

Oh, it is the *perfect* example but...

> smca_get_long_name() is used in drivers/edac/mce_amd.c and this file
> doesn't get compiled when CONFIG_X86_MCE_AMD is not defined.
>
> And amdgpu driver has no dependency on CONFIG_X86_MCE_AMD.

... maybe this will make you see it the right way: how much of the
amdgpu RAS functionality you're adding, is going to even function
without CONFIG_X86_MCE_AMD?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette