Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1317974

Re: ipmi_si feature request: SMBIOS-based autoloading

From Corey Minyard <minyard@acm.org>
Newsgroups linux.kernel
Subject Re: ipmi_si feature request: SMBIOS-based autoloading
Date 2016-01-26 15:40 +0100
Message-ID <qVcWL-5sj-29@gated-at.bofh.it> (permalink)
References <qUEs2-4Xi-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/24/2016 07:45 PM, Andy Lutomirski wrote:
> ipmi_si doesn't autoload on systems where it's found via SMBIOS.
> Could that be fixed?

I'm not really sure.  I kind of assumed this was handled in userland
like the ACPI tables.  I don't think there are many systems that have
SMBIOS and not ACPI, so I'm not sure of the impact here or what
to do.

> If I were doing it, I'd suggest rigging up some code that's compiled
> in to the main kernel even if ipmi_si is a module that creates the
> platform device if the dmi device is there and then set up a modalias
> so that the platofrm device causes ipmi_si to load.
>
> (In general, having the same driver create the platform device and
> register the platform driver means that autoloading is unlikely to
> work right.  See arch/x86/kernel/pmem.c for an example of a weird
> legacy device that gets this right.)

This sounds like kind of a hack.

> Alternatively, maybe /sys/firmware/dmi could learn how to advertise
> modaliases.  But that might be a giant mess to solve a tiny problem.

This sounds like the right way, but you are probably right.  Are
there any other resources that could benefit from this?  I"m
guessing not.

There is already a "dmi_save_ipmi_device" function that gets called
when scanning the SMBIOS table (see drivers/firmware/dmi_scan.c).
Maybe a tie-in there?  That happens pretty early, though, I'm not
sure if it's too early.

Of course it would be easy to have a file like pmem.c that detects
if an IPMI device is in the SMBIOS table and create a platform
device for it.

Are you willing to do this work?

-corey

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

ipmi_si feature request: SMBIOS-based autoloading Andy Lutomirski <luto@kernel.org> - 2016-01-25 02:50 +0100
  Re: ipmi_si feature request: SMBIOS-based autoloading Corey Minyard <minyard@acm.org> - 2016-01-26 15:40 +0100
    Re: [Openipmi-developer] ipmi_si feature request: SMBIOS-based  autoloading Corey Minyard <minyard@acm.org> - 2016-01-26 15:50 +0100
      Re: [Openipmi-developer] ipmi_si feature request: SMBIOS-based autoloading Andy Lutomirski <luto@amacapital.net> - 2016-01-26 18:30 +0100

csiph-web