lkml.org 
[lkml]   [2022]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] ACPI: APEI: move edac_init ahead of ghes platform drv register
    On Mon, Aug 08, 2022 at 09:36:13PM +0000, Kani, Toshi wrote:
    > Platforms with ACPI GHES support should use ghes_edac. This is the
    > case on Arm. The x86 side has additional platform ID check to protect
    > from legacy buggy GHES FW existed before ghes_edac enablement.

    Sounds to me like we should put all that logic in ghes.c and out of
    ghes_edac and the EDAC drivers will query it by doing upon load:

    <edac_driver>_init:

    if (ghes_edac_driver_is_preferred())
    return -ENODEV;

    And then ghes_edac can become a normal driver module again.

    Thx.

    --
    Regards/Gruss,
    Boris.

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

    \
     
     \ /
      Last update: 2022-08-09 09:41    [W:9.514 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site