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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id EAE3EC433EF for ; Fri, 11 Feb 2022 02:17:57 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Jvy2D1wyhz3bZX for ; Fri, 11 Feb 2022 13:17:56 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=YXAUGt9D; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=google.com (client-ip=2607:f8b0:4864:20::b35; helo=mail-yb1-xb35.google.com; envelope-from=gauravgandhi@google.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=YXAUGt9D; dkim-atps=neutral Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (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 4JvH630VhFz2yNv for ; Thu, 10 Feb 2022 11:03:52 +1100 (AEDT) Received: by mail-yb1-xb35.google.com with SMTP id y6so10736072ybc.5 for ; Wed, 09 Feb 2022 16:03:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZMpBS0TDGW/H24X/8kI4HLy6YpFjlJ4x4xg0MFEc8rs=; b=YXAUGt9Dm9As2JZdJwBQiTcgOFQJnzug3BexvmwF1No/AXv9/jBkKpGQbA9765fnYN roMUEnt6m51nW5mBYSiKSq0L344HSM0+JjTZKEF3sEGpZ+a3szkxSOyH6d0bECd+nROG i0CYYyxmKFhiXwe3YOElA4uTMqm8ei1nxBSYl+LMtDK71FAMZQLUJ1FDnznht/rT4szz YiWHjvpKC+450hA717bgwZGPDG56yeVeyM5vDOry/O1agTC6L/SKY9iPnQPBoIB6QPAC f3KfATvrq/+a+iTIX+ycxmo9Qd7zLfKYdXrXbQK7SJ+XDT2/lkzqipkH9Ta7oSfmoPFs b+ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZMpBS0TDGW/H24X/8kI4HLy6YpFjlJ4x4xg0MFEc8rs=; b=ZwN4gWS00KghQmyBRW5wW+JBTwlP+FMx3o7HXOIY+v8I0h0HxRtGmWfB7X34N8lVPd bSQFjYkmhpMj68YbQK0SblIAe2+vM9SO6KWMadHqkWlen8nbZ8waw3S2B2l1HXdp6fAM KULn0XVGuc6CNAbgByYxXoPCRoHFF+uQefT2TPCGkq+d4ylMqiPV02JqRzgZBwGaB3MY Fncr1UgZav8ugQRPP40mzfGrh46OA1HpJifoFNpAF4IA64Z6ko/wdhvSTbd9QeVH6ik+ Bw4ospqbMULFu2pHgCey4taQ0YIQZin6Wj7KMxsUR6FKKGzeDAz+iv8ySYPvjNfJGIva pZbw== X-Gm-Message-State: AOAM5327cK8SbhBHlXIiVsnIhYL4NbC7r12f065kpD49lpmueA22gLm3 3wy188dam27Ac0sklvgQgDifndydQFdMyBJCM8OoJKKuYZZspg== X-Google-Smtp-Source: ABdhPJxF+GnpBl/wJVrJgixICHZeCPjWEKjRgdVtx1+nVXswDHBvQR/p8NAkY2ob3jQVBol9jrXByTt+HrhlfRtr0MU= X-Received: by 2002:a81:ad1e:: with SMTP id l30mr4739488ywh.151.1644451429243; Wed, 09 Feb 2022 16:03:49 -0800 (PST) MIME-Version: 1.0 References: <28950C51-9A48-47BB-BB6F-5E580F0A4516@stwcx.xyz> In-Reply-To: <28950C51-9A48-47BB-BB6F-5E580F0A4516@stwcx.xyz> From: Gaurav Gandhi Date: Wed, 9 Feb 2022 16:03:38 -0800 Message-ID: Subject: Re: Use ObjectMapper in Dcmihandler for PowerCap interface To: openbmc@lists.ozlabs.org Content-Type: multipart/alternative; boundary="0000000000004aceea05d79eaf81" X-Mailman-Approved-At: Fri, 11 Feb 2022 13:16:37 +1100 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: , Cc: vernon.mauery@linux.intel.com, Ed Tanous , rushtotom@gmail.com, Jason Ling Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --0000000000004aceea05d79eaf81 Content-Type: text/plain; charset="UTF-8" Hi Everyone, Currently in dcmihandler object path for PCAP_INTERFACE is hardcoded to get settings service. It was discussed earlier in this review that this needs to be more dynamic. Currently I have 2 options to resolve this: 1. instead of getting a specific service with a hardcoded path, set/getPcap should call getAllDbusObjects . This will give an object tree and we have to iterate through all the objects implementing the powercap interface. I am not sure if this is safe to do so. Need input from the maintainers. 2. Another option is to add a compile time flag to select a path. Please let me know what you think. - Thanks, Gaurav > --0000000000004aceea05d79eaf81 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --0000000000004aceea05d79eaf81--