All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: "Limonciello, Mario" <Mario.Limonciello@dell.com>,
	Divya Bharathi <divya27392@gmail.com>,
	"dvhart@infradead.org" <dvhart@infradead.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	"platform-driver-x86@vger.kernel.org" 
	<platform-driver-x86@vger.kernel.org>,
	"Bharathi, Divya" <Divya.Bharathi@Dell.com>,
	"Ksr, Prasanth" <Prasanth.Ksr@dell.com>,
	Richard Hughes <rhughes@redhat.com>,
	Jared Dominguez <jaredz@redhat.com>
Subject: Re: [PATCH] Introduce support for Systems Management Driver over WMI for Dell Systems
Date: Tue, 22 Sep 2020 10:57:33 +0200	[thread overview]
Message-ID: <52fb287e-e683-63bc-3641-90abd78c605a@redhat.com> (raw)
In-Reply-To: <DM6PR19MB263615C1060108E5661AE615FA3A0@DM6PR19MB2636.namprd19.prod.outlook.com>

Hi,

On 9/21/20 5:26 PM, Limonciello, Mario wrote:

<snip>

I will do another more detailed reply in another email, but I would like to focus
at the main pain point here, which is the using a generic sysfs-ABI/class vs using
a Dell specific sysfs-ABI.

>> I guess a could way to look at the generic sysfs firmware attributes
>> class I'm proposing is looking at it as a lowest common denominator
>> solution. With the addition of vendor specific extensions so that
>> vendors (e.g. Dell) are not limited to only offering functionality
>> offered by the generic, shared ABI. Does that make sense ?
>>
>> Regards,
>>
> 
> I really think that trying to fit all the vendors into the same interface is going
> to stifle areas for innovation in the firmware and kernel space in the name of
> "simplicity" which really only goes as far as the kernel side.  Userspace has
> to carry delta between vendors no matter what, so why introduce a LCD then?
> 
> Just as easily we could have:
> /sys/devices/platform/dell-wmi-sysman/attributes/
> 
> Which works 90% the same as:
> /sys/devices/platform/lenovo-wmi-sysman/attributes/

So the reason why I want a class interface for this is to allow say
FleetCommander to have a generic plugin implementing that 90%, so
no deps, only support plain admin-password authentication.

Allowing such a generic plugin requires 2 things:

1) Ensuring that the 90% overlapping functionality offers a 100%
identical userspace ABI, thus a shared sysfs ABI definition

2) That userspace has a generic way to enumerate devices/drivers
implementing this shared sysfs ABI, and we have a standard
mechanism for enumerating drivers which implement a standard ABI,
that is we make them register class devices under /sys/class/<abi-name>.

I have not heard any convincing arguments against why would
should not or can not have these 2 things. All I'm hearing is
a vague fear that this may "stifle areas for innovation in the firmware
and kernel space".

Honestly I have the feeling we are going in circles in this discussion
and I really do not understand why you are so dead set against having
a common sysfs ABI/class for this?

In part of the snipped text you write "Having to de-feature the sysfs
interface", but I have not asked you to remove any features anywhere in
this thread!

So I really do not understand where this fear of not being able to
implement certain, possibly Dell specific, features comes from?

You mentioned that the way the dependencies are expressed are
highly Dell specific, so I suggested allowing having vendor
extensions like dell-modifiers and dell-value_modifiers. The whole
idea behind allowing vendor-extensions is actually the exact
opposite of de-featuring the sysfs interface.

Regards,

Hans


  reply	other threads:[~2020-09-22  8:57 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-30 14:31 [PATCH] Introduce support for Systems Management Driver over WMI for Dell Systems Divya Bharathi
2020-08-08 18:37 ` Limonciello, Mario
2020-08-08 18:37   ` Limonciello, Mario
2020-08-10  8:27   ` Andy Shevchenko
2020-08-10  8:27     ` Andy Shevchenko
2020-09-01  9:49 ` Hans de Goede
2020-09-01 14:17   ` Limonciello, Mario
2020-09-01 14:17     ` Limonciello, Mario
2020-09-14  9:13     ` Hans de Goede
2020-09-14  9:13       ` Hans de Goede
2020-09-14  9:13     ` Hans de Goede
2020-09-14  9:13       ` Hans de Goede
2020-09-14 16:06       ` Limonciello, Mario
2020-09-14 16:06         ` Limonciello, Mario
2020-09-17 10:11         ` Hans de Goede
2020-09-17 16:18           ` Limonciello, Mario
2020-09-21 10:02             ` Hans de Goede
2020-09-21 15:26               ` Limonciello, Mario
2020-09-22  8:57                 ` Hans de Goede [this message]
2020-09-22  9:14                   ` Hans de Goede
2020-09-22 18:02                     ` Limonciello, Mario
2020-09-22  9:02                 ` Hans de Goede
2020-09-01 10:09 ` Hans de Goede
2020-09-01 14:22   ` Limonciello, Mario
2020-09-01 14:22     ` Limonciello, Mario
2020-09-14  8:45     ` Hans de Goede
2020-09-14  8:45       ` Hans de Goede
2020-09-14  8:57       ` Hans de Goede
2020-09-14  8:57         ` Hans de Goede
2020-09-01 11:41 ` Hans de Goede
2020-09-02  8:04   ` Andy Shevchenko
2020-09-03 14:27     ` Limonciello, Mario
2020-09-14  9:53       ` Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52fb287e-e683-63bc-3641-90abd78c605a@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=Divya.Bharathi@Dell.com \
    --cc=Mario.Limonciello@dell.com \
    --cc=Prasanth.Ksr@dell.com \
    --cc=divya27392@gmail.com \
    --cc=dvhart@infradead.org \
    --cc=jaredz@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rhughes@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.