lkml.org 
[lkml]   [2022]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v6 00/12] platform/x86: introduce p2sb_bar() helper
    On Mon, Jun 06, 2022 at 07:41:26PM +0300, Andy Shevchenko wrote:
    > There are a few users that would like to utilize P2SB mechanism of hiding
    > and unhiding a device from the PCI configuration space.
    >
    > Here is the series to consolidate p2sb handling code for existing users
    > and to provide a generic way for new comer(s).
    >
    > It also includes a patch to enable GPIO controllers on Apollo Lake
    > when it's used with ABL bootloader w/o ACPI support.
    >
    > The patch that brings the helper ("platform/x86/intel: Add Primary to
    > Sideband (P2SB) bridge support") has a commit message that sheds a light
    > on what the P2SB is and why this is needed.
    >
    > I have tested this on Apollo Lake platform (I'm able to see SPI NOR and
    > since we have an ACPI device for GPIO I do not see any attempts to recreate
    > one).
    >
    > The series is ready to be merged via MFD tree, but see below.
    >
    > The series also includes updates for Simatic IPC drivers that partially
    > tagged by respective maintainers (the main question is if Pavel is okay
    > with the last three patches, since I believe Hans is okay with removing
    > some code under PDx86). Hence the first 8 patches can be merged right
    > away and the rest when Pavel does his review.

    Kernel test bot seems found an issue with dependencies, because selection
    of P2SB is not enough.

    There are two solutions that I can see now:
    1) move P2SB out of X86_PLATFORM_DEVICES section (like PMC_ATOM);
    2) add 'depends on X86_PLATFORM_DEVICES' to the affected drivers.

    I think the first solution cleaner, because it would be strange to have
    the dependency on the drivers that quite unlikely be on server platforms
    (e.g. EDAC).

    In long term perhaps something like drivers/platform/x86/lib which is for
    platform libraries or so and independent on X86_PLATFORM_DEVICES?

    I will send a fix soon as per 1) above, feel free to comment here or there.

    --
    With Best Regards,
    Andy Shevchenko


    \
     
     \ /
      Last update: 2022-07-18 13:19    [W:4.396 / U:0.172 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site