From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752542AbcBAIqz (ORCPT ); Mon, 1 Feb 2016 03:46:55 -0500 Received: from mx2.suse.de ([195.135.220.15]:56712 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751194AbcBAIqy (ORCPT ); Mon, 1 Feb 2016 03:46:54 -0500 Subject: Re: [Openipmi-developer] ipmi_si feature request: SMBIOS-based autoloading From: Jean Delvare To: Andy Lutomirski Cc: Corey Minyard , Andy Lutomirski , OpenIPMI Developers , linux-kernel , brijeshkumar.singh@amd.com In-Reply-To: References: <56A7757A.6040704@acm.org> <56A777EF.4010205@acm.org> Content-Type: text/plain; charset="UTF-8" Organization: Suse Linux Date: Mon, 01 Feb 2016 09:46:49 +0100 Message-ID: <1454316409.4754.9.camel@chaos.site> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Tuesday 26 January 2016 à 09:29 -0800, Andy Lutomirski a écrit : > On Tue, Jan 26, 2016 at 5:43 AM, Corey Minyard wrote: > > > > On 01/26/2016 07:32 AM, Corey Minyard wrote: > >> > >> On 01/24/2016 07:45 PM, Andy Lutomirski wrote: > >>> 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. > > No clue. Jean might know. Jean? In principle I agree it would be the right thing to do. Now in practice I'm afraid the interest would be limited, because 1* on so many occasions the DMI data is wrong and 2* the level of details that can be encoded in the DMI table data is fairly limited. The IPMI records may be an exception there because IPMI is only found on high-end hardware and this is where in general the DMI data is correct. But for most other records, you want to trust the hardware itself more than the DMI data. So you only want to rely on DMI data for information you can't get in any other way. That being said, advertising a modalias is something fairly safe. The driver getting loaded is free to use or not use the DMI data. And even if the only modalias in /sys/firmware/dmi is going to be for IPMI, I see no reason for not doing that, if it serves the purpose. -- Jean Delvare SUSE L3 Support