From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8DB2C433B4 for ; Fri, 30 Apr 2021 18:15:44 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1040161468 for ; Fri, 30 Apr 2021 18:15:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1040161468 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FX0sp2kZhz2yyr for ; Sat, 1 May 2021 04:15:42 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=cWu5ucJZ; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::52a; helo=mail-ed1-x52a.google.com; envelope-from=ratankgupta31@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=cWu5ucJZ; dkim-atps=neutral Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FX0sL4G9Vz2xxg for ; Sat, 1 May 2021 04:15:16 +1000 (AEST) Received: by mail-ed1-x52a.google.com with SMTP id n25so11572004edr.5 for ; Fri, 30 Apr 2021 11:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/Um5z+j3AxlSDsEx0dRV9Ztj0sCHkUYOOd65wdXVh+4=; b=cWu5ucJZLyCjg46CruUC4K50w76fRYw48L4xaIgJMpZ5FRJWw+zEFAtH5hj0O6OvuS D0brnaNVSOqXl846yH0dvZ43oYEyCaXt2OB3KL9lsPuGRqdPgU+TmqfEecKxNspSm1wC OsRgStlW32unI3PQarJeKqR9fpFNqkoOsPfVPUp1e9RwcKkIGhBZlSTASciSKoxdKLLx IwjQ3tZ6nr6xJsn8mVNJQ0cKsPpoxJeNQ1jLLtmPSgVarOcuJWbAIODIcHIH5FOhraWh XRMEAh402dEutWyO748H+45wO16/VKEL+4mPCfS3P/msY8cNPuIuO9tYNs4zo3sVOlSI Y8kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/Um5z+j3AxlSDsEx0dRV9Ztj0sCHkUYOOd65wdXVh+4=; b=jyh+1RJJKQ8togINxGc7GCobPCpU6tsgobweRNwQnxeWtVa3ggtAOyAMZk0kQaSkXa y8HxS7K74uTonAqG2dRo3ki5qCBaThYwrhaBAeB9UEEe6HGkeaumNFgaivVua0npbukF Esuc7OQrclstQgsPDoU6awuDAQ06/pHy/lmWL+T85E9zvYESmA0ofjHfgYvDuOIurpSn zkjqYKsl2MA/00hVv3KyuplOVRu/8QGKmnpbXpy/parHrdVYZ3W/UWLS0C8YipFQuTwx VZSXvTtYZSXyIzlVn0B1sscCjIlFvRjxV7ws05Br+6Tv5/1UMWocP1pb9ThEIyiXbuPc EbEg== X-Gm-Message-State: AOAM531cyH0ogHHasxulFrtG/sDUaHHwubct/WG0C+vYQYZEmG+on/Gb fQnAYlP7cLkAdFUoXxnpguLhsEDXSR0pmhadNGj/plI1vD4= X-Google-Smtp-Source: ABdhPJzT/PMXr2GNT72yklYaRBsCPMkMZr8LX70imj1CXAs9ulRCTWzLSxUGyWy1GpjVLPi08og31olqFmZ2rmG8RF0= X-Received: by 2002:aa7:cc15:: with SMTP id q21mr7805977edt.140.1619806511582; Fri, 30 Apr 2021 11:15:11 -0700 (PDT) MIME-Version: 1.0 From: Ratan Gupta Date: Fri, 30 Apr 2021 23:45:00 +0530 Message-ID: Subject: D-bus model proposal for pay for access features To: openbmc@lists.ozlabs.org Content-Type: multipart/alternative; boundary="000000000000ba519c05c134972b" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --000000000000ba519c05c134972b Content-Type: text/plain; charset="UTF-8" Hi All, I would like to introduce a dbus model proposal around pay for access features.Normally IBM system ships with more hardware than was purchased, which can be unlocked later. Features could be 1) AIX enabled/disabled 2) How many processors are enabled 3) How much memory is enabled *Proposed Model:* The model consists of following main entities:1 - licenses - these objects represents the features. There will be a license represnting feature(one is to one relation ship) and these objects have state - active, inactive, unknown, etc. These objects could implement the Delete interface for when a client wishes to disable the license/feature. 2 - manager - the manager object (distinct from freedesktop object manager) provides a method interface to create new license objects. *Alternate Dbus Model:* 1 - Licenses: these objects represent an agreement. These objects have an association to one or more features, and these objects have state - active,inactive, unknown, etc. These objects could implement the Delete interface for when a client wishes to disable the license. 2 - Features: these objects describe the features available. Feature objects would be static and implementation/platform defined. A BMC or host firmware update could potentially add or remove the available features exposed as dbus objects. At the moment the only feature attribute I can think of is a name and the feature status. 3 Manager - the manager object (distinct from freedesktop object manager) provides a method interface to create new license objects. The difference between two models areIn the alternate Dbus model we are keeping the feature Dbus object and the License have an associated features In the proposed model we are only keeping the license D-bus object which represent the feature. Flow would be as below with the proposed model -1/ Manager object would be having interface like upload (License activation key) 2/ On IBM systems we send this key to the host firmware which activates the features 3/ Host Firmware sends the activated feature list to the BMC 4/ BMC creates the licenses for the activated features I suspect an implementation of the above flow is highly IBM specific, but I hope some of you have some feedback that might enable some collaboration. If not - where should we put this application? Ratan --000000000000ba519c05c134972b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi All,

I would like to introduce a dbus mod= el proposal around pay for access features.Normally = IBM system ships with more hardware than was purchased, which can be unlock= ed later.

Features could be 1) AIX enabled/disabled
2) Ho= w many processors are enabled
3) How much m= emory is enabled

Proposed Model:
The model consists of following main entities:1 - licenses - these objects represents the features. T= here will be a license represnting
feature(one is to one relation ship)= and these objects have state - active, inactive, unknown, etc.
These objects could implement the Delete interface for= when a client wishes to disable the license/feature.

2 - manager - the manager object (distinct = from freedesktop object manager) provides a method
interface to create n= ew license objects.

Alternate Dbus Model:<= /b>

1 - Licenses: these objects represent an = agreement. These objects have an
associati= on to one or more features, and these objects have state - active,inactive,= unknown, etc.
These objects could implement the Delete interface for wh= en a client wishes to disable the license.

2 = - Features: these objects describe the features available.
Feature objects would be static and implementation/platform= defined. A BMC or host firmware update
could potentially add or remov= e the available features exposed as dbus objects. At the moment the
on= ly feature attribute I can think of is a name and the feature status.
3 Manager - the manager object (distinct from free= desktop object manager)
provides a method i= nterface to create new license objects.

The difference between two models areIn the alternate Dbus model we are keeping the feature Dbus object and t= he License have an associated features
In t= he proposed model we are only keeping the license D-bus object which repres= ent the feature.

Flow = would be as below with the proposed model -1/ Manage= r object would be having interface like upload (License activation key)
2/ On IBM systems we send this key to the host= firmware which activates the features
3/ H= ost Firmware sends the activated feature list to the BMC
4/ BMC creates the licenses for the activated features
I suspect an implementation = of the above flow is highly IBM specific,
= but I hope some of you have some feedback that might enable some collaborat= ion.
If not - where should we put this ap= plication?
Ratan
--000000000000ba519c05c134972b--